VNC学习笔记

检查是否安装VNC服务器

rpm -qa | grep vnc

 

启动vnc-server进程

vncserver

 

查看进程

ps -eaf|grep vnc

 

查看端口是否已经处于监听状态

netstat -an | grep:580

netstat -an | grep:590

 

防火墙开放端口

iptables -I INPUT -p tcp -m multiport --dports 5801:5805,5901:5905 -j ACCEPT

 

windows平台下载VNC客户端

http://www.realvnc.com

 

启用Gnome桌面系统

vi /root/.vnc/xstartup

将twn & 修改为gnome-session &

将倒数第二行 xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & 去除  //加注释

 

重启vnc

vncserver -kill :1

vncserver :1

 

客户端VNC,可以连接到linux

不要用系统里的注销,只要关闭链接即可。因为注销要重启vnc。

 

 

posted @ 2013-11-20 09:48  laughing_cor  阅读(352)  评论(0编辑  收藏  举报