Win7 VNC远程连接Centos桌面
一,安裝Linux桌面:
將en_US改成zh_CN
二,安裝VNCServer服務(wù)包:
??????? 1,安裝VNCServer服務(wù)端軟件包。
????????????? #yum -y install vnc *vnc-server*
?
???????? 2,修改VNCServer主配置文件
?????????????#vim /etc/sysconfig/vncservers
?????????????復(fù)制最后兩行并去掉行首注釋符,然后修改為
?????????????VNCSERVERS="1:root"
?????????????VNCSERVERARGS[1]="-geometry 1920x1080"
?
????????3,設(shè)置密碼
???????????? #vncpasswd
?
??????? 4,啟動(dòng)vncserver服務(wù)
????????????#/etc/init.d/vncserver start
?
?
?
??????? 5,打開xstartup配置桌面
????????????#vim /root/.vnc/xstartup
????????????將最后一行改為
????????????gnome &????????????
????????????
?
???????6,設(shè)置防火墻
?
?????????? #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服務(wù)
?????????? #/etc/init.d/iptables restart
??????????
?
?????? 7,使用VNC連接(下載地址:http://www.realvnc.com/download/)
??????????
??????????密碼為上面設(shè)置的密碼。
??????????
完成!!!
總結(jié)
以上是生活随笔為你收集整理的Win7 VNC远程连接Centos桌面的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 由浅入深MFC学习摘记--第三部分
- 下一篇: Centos8 部署Promethus(