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

完结!

相关推荐
好好学习天天向上~~4 小时前
6_Linux学习总结_自动化构建
linux·学习·自动化
冉佳驹4 小时前
Linux ——— 静态库和动态库的设计与使用
linux·动态库·静态库·fpic
陌上花开缓缓归以5 小时前
linux mtd-utils使用源码分析(ubuntu测试版)
linux·arm开发·ubuntu
wangjialelele5 小时前
Linux下的IO操作以及ext系列文件系统
linux·运维·服务器·c语言·c++·个人开发
HypoxiaDream5 小时前
LINUX-Ext系列⽂件系统
linux·运维·服务器
小毛驴8505 小时前
Linux curl 命令用法
linux·运维·chrome
李斯啦果6 小时前
【Linux】Linux目录配置
linux·运维·服务器
AI+程序员在路上6 小时前
linux下线程中pthread_detach与pthread_join区别
linux·运维·服务器
代码游侠6 小时前
C语言核心概念复习——C语言基础阶段
linux·开发语言·c++·学习
logocode_li6 小时前
说透 Linux Shell:命令与语法的底层执行逻辑
linux·运维·ssh