作者/来源:yixinu.com
栏目:运维/编程
日期:2012-04-18 05:00:12
VNC简介 :
Virtual Network Computing,虚拟网络计算,VNC与操作系统无关,因此可跨平台使用,例如可用Windows连线到某Linux的电脑,反之亦同。甚至在没有安装用户端程式的电脑中,只要有支援JAVA的浏览器,也可使用
安装VNC服务:
[root@server002 ~]# yum install tigervnc tigervnc-server
编辑vncserver配置文件
[root@server002 .vnc]# vim /etc/sysconfig/vncservers …… VNCSERVERS="3:centos 7:root" VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"进入centos用户执行vncserver,,让其生成 .vnc目录及相关文件
[root@server002 .vnc]# su - centos [centos@server002 ~]$ vncserver You will require a password to access your desktops. Password: Verify: xauth: creating new authority file /home/centos/.Xauthority New 'server002.com:1 (centos)' desktop is server002.com:1 ……
重新启动服务
[root@server002 .vnc]# /etc/init.d/vncserver restart
Shutting down VNC server: 3:centos 7:root [FAILED]
Starting VNC server: 3:centos
New 'server002.com:3 (centos)' desktop is server002.com:3
Starting applications specified in /home/centos/.vnc/xstartup
Log file is /home/centos/.vnc/server002.com:3.log
7:root
New 'server002.com:7 (root)' desktop is server002.com:7
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/server002.com:7.log
[ OK ]
从192.168.73.111连接192.168.73.173vnc服务器3号端口
[root@bogon ~]# vncviewer 192.168.73.173:3