2013-07-08

[Linux]tigervnc on oracle linux

 資料來源:http://summervast.blog.51cto.com/690507/1168332

[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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
gnome-session &
[root@oracle11g .vnc]# vim /etc/sysconfig/vncservers
VNCSERVERS=”2:root”
VNCSERVERARGS[2]=”-geometry 1024×768″
[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  ]
 port 5901

沒有留言:

張貼留言