Winpe技术网

淡泊以明志,宁静以致远。

CentOS6/7安装VNC远程桌面,让windows远程控制Linux桌面

1.准备环境:

服务端:CentOS 6.9 ,RealVNC5.10(截止撰写时版本为6.30)

客服端:Win7 ,Real Viewer 5.10

RealVNC历史版下载地址:https://www.realvnc.com/en/connect/download/vnc/#older-versions

2.下载解压并安装RealVNC

[root@dbserver ~]# wget https://www.realvnc.com/download/file/vnc.files/VNC-5.1.0-Linux-x64-RPM.tar.gz

[root@dbserver ~]# tar zxvf VNC-5.1.0-Linux-x64-RPM.tar.gz

[root@dbserver ~]# rpm -ivh VNC-Server-5.1.0-Linux-x64.rpm

error: Failed dependencies:

xterm is needed by realvnc-vnc-server-5.1.0.15125-1.x86_64

[root@dbserver ~]# yum install xterm

#由于环境不同,大家可以根据提示缺少包就yum 安装什么包

[root@dbserver ~]# rpm -ivh VNC-Server-5.1.0-Linux-x64.rpm

[root@dbserver ~]# vnclicense -add B7SLM-7MAX5-B4M74-UTDBE-K5WFA

License key <Enterprise> has been successfully applied.

这里仅学习交流,请支持正版

3.配置防火墙

[root@dbserver ~]# iptables -I INPUT -p tcp --dport 5900:5910 -jACCEPT

[root@dbserver ~]# service iptables save

[root@dbserver ~]# service iptables restart

4.开启VNC服务并加入开启启动

[root@dbserver ~]# vncpasswd  #根据提示配置密码

[root@dbserver ~]# service vncserver-x11-serviced restart

[root@dbserver ~]# chkconfig vncserver-x11-serviced on

5.在Win7系统安装Real VNC Viewer 5.10,打开程序输入IP地址并连接

下载地址:https://www.realvnc.com/download/file/vnc.files/VNC-5.1.0-Windows.zip

根据提示输入系统用户和密码,远程桌面连接成功。

6.重启系统验证

重启系统后验证通过

PS:测试的时候手里只有5.10版本,并且公司所有设备都是这个版本。

参考文章:https://www.realvnc.com/en/connect/docs/redhat-install-remove.html


发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

Powered By Z-BlogPHP 1.7.3

Copyright © 2019 Xiaofeng.org
豫ICP备16026559号-1