Oracle Linux 8 安装图形界面和tigervnc-server

Oracle Linux 8 安装图形界面和tigervnc-server

  • [1. 安装 Server with GUI](#1. 安装 Server with GUI)
  • [2. 配置 vncserver](#2. 配置 vncserver)
  • [3. 打开防火墙5901端口](#3. 打开防火墙5901端口)
  • [4. 设置 systemd 服务](#4. 设置 systemd 服务)
  • [5. 安装 vncviewer](#5. 安装 vncviewer)
  • [6. vnc 访问](#6. vnc 访问)
  • [7. 设置 power save time 的值为 `Never`](#7. 设置 power save time 的值为 Never)

1. 安装 Server with GUI

使用root用户执行下面命令,

复制代码
dnf groupinstall 'Server with GUI'
dnf install -y tigervnc-server
systemctl set-default graphical.target

2. 配置 vncserver

使用一般用户执行,

复制代码
vncserver

设置密码,然后设置DISPLAY环境变量,

复制代码
export DISPLAY=<HOSTNAME>:1

3. 打开防火墙5901端口

复制代码
sudo firewall-cmd --add-port=5901/tcp --permanent
sudo firewall-cmd --reload

4. 设置 systemd 服务

使用root用户执行下面命令,

复制代码
vi /etc/tigervnc/vncserver.users

--- add
:1=<your username>
---

然后执行,

复制代码
systemctl enable vncserver@:1
systemctl start vncserver@:1

5. 安装 vncviewer

下载地址为TigerVNC releases

6. vnc 访问

打开vncviewer,输入远程服务器的ip:1,输入第2步设置的密码访问。

7. 设置 power save time 的值为 Never

完结!

相关推荐
m0_694845571 小时前
服务器如何配置防火墙规则开放/关闭端口?
linux·服务器·安全·云计算
阿巴~阿巴~2 小时前
Linux基本命令篇 —— alias命令
linux·服务器·bash
好名字更能让你们记住我2 小时前
Linux多线程(十二)之【生产者消费者模型】
linux·运维·服务器·jvm·windows·centos
学习编程的gas3 小时前
Linux开发工具——gcc/g++
linux·运维·服务器
嵌入式成长家3 小时前
ubuntu rules 使用规则
linux·ubuntu·rules 使用规则
_可乐无糖3 小时前
AWS WebRTC: 判断viewer端拉流是否稳定的算法
linux·服务器·webrtc·aws
数据智能老司机3 小时前
Linux内核编程——Linux设备模型
linux·架构·操作系统
BD_Marathon4 小时前
ubuntu防火墙使用
linux·ubuntu
dessler4 小时前
Kafka-消费者(Consumer)和消费者组(Consumer Group)
linux·运维·kafka
kfepiza4 小时前
Debian-10-standard用`networking`服务的`/etc/network/interfaces`配置文件设置多网卡多IPv6
linux·debian