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

完结!

相关推荐
坐吃山猪1 小时前
Python进度条
linux·服务器·python
IMPYLH2 小时前
Linux 的 b2sum 命令
linux·运维·服务器·bash
celeste03102 小时前
Redis Summary
linux·运维·服务器·redis·笔记
Sylvan.C2 小时前
Windows+Ubuntu 双系统安装超详细保姆级教程2026,包括系统安装、英伟达独显驱动安装以及双系统时间同步的所有过程
linux·运维·ubuntu
伴我与影2 小时前
Ubuntu 安装 NVIDIA 显卡驱动
linux·运维·ubuntu
unsynchronized2 小时前
OpenClaw 安装指南:Linux 与 Windows 系统详细教程
linux·运维·windows·ai
宁波阿成3 小时前
OpenClaw 在 Ubuntu 22.04.5 LTS 上的命令版操作手册
linux·运维·ubuntu·openclaw·龙虾
林姜泽樾3 小时前
Linux入门第十三章,chmod命令和权限控制信息
linux·运维·服务器·centos
是小小张呀3 小时前
WSL Ubuntu修改主机名重启后失效解决方案
linux
一个有温度的技术博主4 小时前
Redis系列三:在linux上安装Redis
linux·数据库·redis