CentOS8安裝VNC-Server,並使用VNC Viewer連接


1.查看系統信息

# 查看red-hat版本信息
cat /etc/redhat-release

CentOS Linux release 8.0.1905 (Core) 

2.安裝VNC Server

[root@centos8 ~]# dnf install -y tigervnc-server tigervnc-server-module

3.復制配置文件

[root@centos8 ~]# cp /lib/systemd/system/vncserver@.service /etc/systemd/system/vncserver@:1.service

4.編輯vim /etc/tigervnc/vncserver.users 添加用戶

[root@centos8 ~]# vim /etc/tigervnc/vncserver.users
# TigerVNC User assignment
#
# This file assigns users to specific VNC display numbers.
# The syntax is <display>=<username>. E.g.:

:1=root

5.開啟服務

[root@centos8 ~]# systemctl daemon-reload
[root@centos8 ~]# systemctl start vncserver@:1.service

6.創建vncviewer登錄密碼

[root@centos8 ~]$ vncpasswd
Password:
Verify:
Would you like to enter a view-only password (y/n)? n
A view-only password is not used
[root@centos8 ~]$ exit
exit

7.VNC Viewer開始登錄

image-20211110111835754

image-20211110111923422


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM