一、在Linux上安装vncserver
# rpm -qa|grep vnc
# yum -y install tigervnc-server
二、启用vncserver
# 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
# netstat -an|grep 5901
tcp 0 0 0.0.0.0:5901 0.0.0.0:* LISTEN
# service iptables stop
# chkconfig iptables off
三、重新启动vncserver的方法
# vncserver -kill :1
# vncserver
四、在VNCViewer中连接vncserver
[img]http://dl2.iteye.com/upload/attachment/0116/0295/c9e6b2da-e775-37e9-a6a2-ea15d1bc4f1c.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0297/2e3df78a-386d-3bc3-961b-551895a2bebc.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0299/0c089e1b-c62d-3f9e-b897-9c083d6f28f3.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0301/35c4b1bc-545f-3847-ae04-e47c236dcc0c.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0303/1b20b0ba-e30a-3bd6-84eb-1bfa81ec15c5.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0305/40fc0fec-bb79-34f1-8c0d-7d1234478e10.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0307/82ebf27c-803e-3e1b-9ac8-6afcc06ceb3b.png[/img]
[img]http://dl2.iteye.com/upload/attachment/0116/0309/742ac6a5-aa7a-3cb6-b3c1-83a6ce3e9bbd.png[/img]