远端实验服务器: RedHat 6.5
一、在Linux上安装vncserver
[root@shihuan ~]# rpm -qa|grep vnc
[root@shihuan ~]# yum -y install tigervnc-server
二、启用vncserver
[root@shihuan ~]# vncserver
You will require a password to access your desktops.
Password: 这里输入密码
Verify: 这里输入密码
New 'shihuan:1 (root)' desktop is shihuan:1
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ohs12:1.log
[root@shihuan ~]# netstat -an|grep 5901
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN
[root@shihuan ~]# service iptables stop
[root@shihuan ~]# chkconfig iptables off
三、重新启动vncserver的方法
[root@shihuan ~]# vncserver -kill :1
[root@shihuan ~]# vncserver
四、在VNCViewer中连接vncserver