之前的VNC是 realvnc,但现在realvnc需要授权了,centos 6.3中使用tigervnc代替了realvnc,系统中没有自带的,自行手动安装;使用方法类似:
 
[root@oracle11g softpack]# yum -y install tigervnc*
 
[root@oracle11g softpack]# rpm -qa |grep tigervnc
tigervnc-server-1.1.0-5.el6.x86_64
tigervnc-1.1.0-5.el6.x86_64
tigervnc-server-module-1.1.0-5.el6.x86_64
tigervnc-server-applet-1.1.0-5.el6.noarch
 
 
[root@oracle11g softpack]# chkconfig --list vncserver
vncserver       0:off   1:off   2:off   3:off   4:off   5:off   6:off
[root@oracle11g softpack]# chkconfig vncserver on
[root@oracle11g softpack]# chkconfig --list vncserver
vncserver       0:off   1:off   2:on    3:on    4:on    5:on    6:off
 
 
 
[root@oracle11g softpack]# vncserver
 
You will require a password to access your desktops.
 
Password:
Verify:
xauth:  creating new authority file /root/.Xauthority
 
WARNING: The first attempt to start Xvnc failed, possibly because the font
catalog is not properly configured.  Attempting to determine an appropriate
font path for this system and restart Xvnc using that font path ...
Could not start Xvnc.
 
/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids
/usr/bin/Xvnc: symbol lookup error: /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoids
 
 
 
在安装过程中出现报错,网上说是因为字体安装不完全,我的解决方法是更新yum:
 
[root@oracle11g sysconfig]# yum -y upgrade
 
 
[root@oracle11g /]# vncserver
 
New 'oracle11g:1 (root)' desktop is oracle11g:1
 
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oracle11g:1.log
 
[root@oracle11g /]# vncpasswd
Password:
Verify:
 
修改 xstartup 文件把最后的 twm & 删除加上 gnome-session &
 
[root@oracle11g .vnc]# tail -n 3 xstartup
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
 
 
[root@oracle11g .vnc]# vim /etc/sysconfig/vncservers
 
VNCSERVERS="2:root"
VNCSERVERARGS[2]="-geometry 1024x768"
 
[root@oracle11g .vnc]# vim /etc/sysconfig/vncservers
[root@oracle11g .vnc]# service vncserver restart
Shutting down VNC server: 2:root                           [FAILED]
Starting VNC server: 2:root
New 'oracle11g:2 (root)' desktop is oracle11g:2
 
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/oracle11g:2.log
 
                                                           [  OK  ]
 

使用vnc客户端连接;