安装

yum groups install "X Window System"
yum groups install "GNOME Desktop"
systemctl set-default graphical.target

yum -y install tigervnc-server tigervnc
reboot

启动

cp /lib/systemd/system/[email protected] /etc/systemd/system/vncserver@:1.service
修改/etc/systemd/system/vncserver@:1.service中的用户名

systemctl daemon-reload
systemctl enable vncserver@:1
执行 vncpasswd 设置密码
systemctl start vncserver@:1

连接

https://www.realvnc.com/en/connect/download/viewer/
下载vnc viewer,地址栏中输入ip地址:1进行连接。

标签: none

添加新评论