配置VNC

1、在WINDOWS下想连接LINUX的图形桌面,知道从VNC能连接,但是一直提示LINUX没有安装VNCSERVER,于是要先下载,操作如下 :到vnc官方网站可以下载到vncserver的包。 http://www.realvnc.com/ 

2、下载后通过SSH工具上传到LINUX服务器,传玩后执行如下:
rpm -ivh VNC-Server-5.0.5-Linux-x64.rpm 
3、安装完后,输入vncserver,提示需要注册,如下:
[root@soarServer soft]# vncserver
 
VNC(R) Server 5.0.5 (r106461) 
Built on Mar  4 2013 12:57:38
Copyright (C) 2002-2013 RealVNC Ltd.
VNC is a registered trademark of RealVNC Ltd. in the U.S. and in other
countries.
Protected by UK patent 2481870.
See http://www.realvnc.com for information on VNC.
For third party acknowledgements see:
http://www.realvnc.com/products/vnc/documentation/5.0/acknowledgements.txt
 
Error: No license keys installed.
Run vnclicense to install a license key.
4、到网上找到相应的KEY进行执行:
[root@soarServer soft]# vnclicense -add WHJRK-UXY7V-Q34M9-CZU8L-8KGFA
 
5、最后启动VNC即可:
[root@soarServer soft]# vncserver

6、重新建立新的vnc虚拟终端
[oracle@localhost .vnc]$ vncserver

New 'localhost.localdomain:2 (oracle)' desktop is localhost.localdomain:2

Starting applications specified in /home/oracle/.vnc/xstartup
Log file is /home/oracle/.vnc/localhost.localdomain:2.log              --该终端号为 :2

7、在windows客户端用RealVNC软件中的Run VNC Viewer客户端连接。
8、在Run VNC Viewer  只需输入linux服务器的地址和刚才生成的终端号:2 
   格式:192.168.1.56:2
9、输入刚才配置vnc服务的时候配的即可登录linux服务器图形界面。

 

VNC客户端: 
在WINDOWS下安装RealVNC后,运行vncviewer,输入VNC服务器的IP和端口号,然后输入密码即可登陆X界面。 192.168.1.10:端口编号  
如果端口编号是1,vnc默认端口是5900,可以写成192.168.1.10:5901,也可以写成192.168.1.10:1  
注1:如果遇到连接服务器时超时,出现(10060)错误,请检查服务器是否开启了防火墙阻止了vnc端口。可以利用#services iptables stop来关闭防火墙后再试试。 注2:如果安装后运行出现这个错误: 
    error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory 
    可以下载一个libstdc++-libc6.2-2.so.3复制到/usr/lib/目录,具体操作方法可参考:http://blog.csdn.net/lornice/archive/2008/09/06/2891674.aspx

posted @ 2014-03-26 11:14  凡轩之  阅读(584)  评论(0编辑  收藏  举报