下载安装包

 

下载地址:http://www.realvnc.com/download/vnc/

 

1.VNC for Windows

下载完的文件名为:VNC-5.0.3-Windows.zip

2.VNC for LinuxRed   Hat-compatible installer

下载完的文件名为:VNC-5.0.3-Linux-x64-RPM.tar.gz

 

将gz压缩包解压,服务器只需安装VNC-Server-5.0.3-Linux-x64.rpm包即可

tar -xvf VNC-5.0.3-Linux-x64-RPM.tar.gz

rpm -ivh VNC-Server-5.0.3-Linux-x64.rpm

 

注:这里可能需要xterm安装包,使用yum安装即可。

yum -y install xterm

 

###################################

配置VNC服务器

设置密码,默认用户名为root

命令如下:vncpasswd

 

安装序列号

[root@localhost ~]# /usr/bin/vnclicense -add   8XWCU-ZRJBF-U7BXZ-G5EAE-ZPQ2A

 

关闭防火墙

 

##临时关闭防火墙

service iptables stop

##永久关闭防火墙

chkconfig iptables off

 

配置VNC服务器自动启动

chkconfig vncserver-x11-serviced on

 

###################################

重启服务器

reboot

 

##这里不重启也可以,需要手动启动vnc服务
 

service vncserver-x11-serviced restart

 

###################################

windows安装vnc客户端即可连接