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 小时前
【Linux】缓冲区
linux·运维·服务器
ltl7 小时前
向量库与图 RAG:HNSW、DiskANN 到 GraphRAG
linux
学代码的CJY8 小时前
Linux 库制作与原理:静态库、动态库、ELF 与动态链接完全指南
linux·运维·服务器
呱呱巨基10 小时前
Linux 查找命令
linux·笔记·学习·查找命令
basketball61610 小时前
软考中级网络工程师 第4章 无线通信网 备考总结
linux·服务器·网络·网络工程师·软考
好评12411 小时前
【Linux】进程信号
linux·运维·服务器
zhangrelay11 小时前
ROS 2 Lyrical 第4章 URDF机器人建模与Gazebo Garden仿真
linux·笔记·学习·ubuntu·机器人·ros2
wuminyu11 小时前
JVM利用io_uring优化堆外内存性能原理剖析
java·linux·c语言·jvm·c++
xianyuCcCcCCCcc11 小时前
Nginx 深度解析:从基础架构到反向代理与负载均衡实战全解
linux·运维·nginx·bash·负载均衡
爱折腾的小码农11 小时前
解决Navicat 17 Premium Lite在Linux上运行报错“LIBSYSTEMD_251‘ not found”问题
linux·运维