使用VNC远程centos7桌面

使用VNC远程centos7桌面

以最小化的centos系统为例:
1、安装GUI界面:
[root@sd ~]# yum install epel-release -y     #配置好yum源
[root@sd ~]# yum clean all
[root@sd ~]# yum makecache

[root@sd ~]# yum groups install “Server with GUI” -y     #安装完整的图形界面
[root@sd ~]# systemctl set-default graphical.target     #运行级别5

2、安装VNC:
[root@sd ~]# yum install tigervnc-server -y
[root@sd ~]# vncserver

You will require a password to access your desktops.   

Password:
Verify:
Would you like to enter a view-only password (y/n)? y  #是否设置观察者的密码
Password:
Verify:
xauth:  file /root/.Xauthority does not exist


New 'sd.xin:1 (root)' desktop is sd.xin:1

Creating default startup script /root/.vnc/xstartup
Creating default config /root/.vnc/config
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/sd.xin:1.log

[root@sd ~]# systemctl disable firewalld     #关闭防火墙或方通5901端口即可访问了
注意:如果是外网访问可能要映射端口
VNC网盘下载地址:
链接:https://pan.baidu.com/s/1PBv496sV3wbX7u2t8hbU3Q
提取码:j0xa

在这里插入图片描述
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

发布了57 篇原创文章 · 获赞 8 · 访问量 5526

猜你喜欢

转载自blog.csdn.net/zdl244/article/details/105274134