Win7 VNC远程连接Centos桌面
一,安装Linux桌面:
- yum -y groupinstall Desktop
- yum -y groupinstall "X Window System"
- yum -y groupinstall chinese-support
- vi /etc/sysconfig/i18n
 将en_US改成zh_CN
二,安装VNCServer服务包:
#yum -y install vnc *vnc-server*
2,改动VNCServer主配置文件
#vim /etc/sysconfig/vncservers
复制最后两行并去掉行首凝视符。然后改动为
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 1920x1080"
        3。设置password
#vncpasswd
4,启动vncserver服务
#/etc/init.d/vncserver start
5,打开xstartup配置桌面
#vim /root/.vnc/xstartup
将最后一行改为
            gnome &            
            
6,设置防火墙
#vim /etc/sysconfig/iptables
在“-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT”以下加入一行-A INPUT -m state --state NEW -m tcp -p tcp --dport 5901 -j ACCEPT
重新启动iptables服务
#/etc/init.d/iptables restart
          
7,使用VNC连接(下载地址:http://www.realvnc.com/download/)
          
password为上面设置的password。
          
完毕。!
!
 
                    
                 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号