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