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

完结!

相关推荐
晓枫-迷麟5 分钟前
【nano与Vim】常用命令
linux·编辑器·vim
LucienShui24 分钟前
Webhook 配置备忘
linux·运维·webhook
超级土豆粉1 小时前
从0到1写一个适用于Node.js的User Agent生成库
linux·ubuntu·node.js
PH_modest1 小时前
【Linux跬步积累】—— 网络编程套接字(二)
linux·运维·网络
CIb0la2 小时前
Ubuntu 25.10 将默认使用 sudo-rs
linux·程序人生·生活
成工小白2 小时前
【Linux】文件操作
linux·运维·服务器
程序员打怪兽2 小时前
基于V4L2摄像头智能识别拍照(人脸和手掌)
linux·嵌入式
张海森-1688204 小时前
windows10搭建nfs服务器
linux
Paddy哥4 小时前
linux 安装mysql8.0;支持国产麒麟,统信uos系统
linux·mysql·麒麟·统信uos·统信
G_whang4 小时前
VMware Workstation 与 Hyper-V 不兼容。请先从系统中移除 Hyper-V 角色,然后再运
linux