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

完结!

相关推荐
CreasyChan11 分钟前
VirtualBox 安装 CentOS 7.2
linux·运维·centos
AAA.建材批发刘哥11 分钟前
04--C++ 类和对象下篇
linux·c++·经验分享·青少年编程
杰克崔24 分钟前
glibc社区提问
linux·运维·服务器·车载系统
山上三树39 分钟前
MMU与页表
linux·嵌入式硬件
yueguangni1 小时前
centos7虚拟机nat模式连接不上xshell方法分享
linux·运维·服务器
wadesir1 小时前
解决VSCodeServer在CentOS 7上运行问题:glibc 2.17升级与内核优化指南(2025最新版)
linux·运维·centos
Hello_wshuo1 小时前
锅炉温控系统优化
linux·python·物联网
HuaYi_Sir2 小时前
i.MX6ULL移植uboot Linux buildroot(二)
linux·运维·服务器
小鹏linux2 小时前
【像素贪吃蛇小游戏】部署文档-linux篇
linux·运维·服务器
DD-WL3 小时前
PKI&&数字证书相关概念
linux·网络协议