一、在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
![realvnc使用_第1张图片](http1://img.it610.com/image/product/041743f13314424286b727d4ec2584b0.png)
![realvnc使用_第2张图片](http1://img.it610.com/image/product/66afd80cd2f74988974485d86c810ef2.png)
![realvnc使用_第3张图片](http1://img.it610.com/image/info5/71a00ffa7b1b4816b1a9523e520f3c3a.png)
![realvnc使用_第4张图片](http1://img.it610.com/image/info5/72120d11561841eab598845ef5fd02c7.jpg)
![realvnc使用_第5张图片](http1://img.it610.com/image/product/12a8ee95951a40d0b16035937cdd353c.jpg)
![realvnc使用_第6张图片](http1://img.it610.com/image/product/a4b4038bedf24eda854f233b21438478.jpg)
![realvnc使用_第7张图片](http1://img.it610.com/image/info5/0e78e812c7384a17a96a079335189cc1.jpg)
![realvnc使用_第8张图片](http1://img.it610.com/image/product/9e00eaf858c6402f869112d485106f52.jpg)