Solaris 9安装VNC

先从realVNC下载vnc http://www.realvnc.com/products/enterprise/index.html

下载包 /vnc-E4_5-sparc_solaris.tar.gz
解压
gunzip vnc-E4_5-sparc_solaris.tar.gz
tar -xvf vnc-E4_5-sparc_solaris.tar.gz
安装vnc
./vncinstall
报错

[root@solaris9 vnc-E4_5_r22160-sparc_solaris]./vncinstall
Can’t install manual pages to /usr/local/man/man1
Copying Xvnc to /usr/local/bin
cp: cannot create /usr/local/bin: No such file or directory
chmod: WARNING: can’t access /usr/local/bin/Xvnc
Copying vncviewer to /usr/local/bin
cp: cannot create /usr/local/bin: No such file or directory

查看果真没有/usr/local这个目录
[root@solaris9 vnc-E4_5_r22160-sparc_solaris]mkdir -p /usr/local/man/man1
然后执行./vncinstall 安装成功
加入PATH环境变量
export PATH=$PATH:/usr/local/bin:/usr/openwin/bin
添加license

[root@solaris9 /]vnclicense -add VKQEQ-HTY2P-WN49X-YZJ5S-4WG2A
[root@solaris9 /]vnclicense -check
0/1044088 desktops.
[root@solaris9 /]vnclicense -list
1 1044088 desktops2028/07/20 [full]

启动 vncserver

[root@solaris9 /]vncserver :1
VNC Server Enterprise Edition E4.5 (r22160) - built Mar 31 2009 00:09:42
Copyright (C) 2002-2009 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.
Running applications in /etc/vnc/xstartup

Log file is //.vnc/solaris9:1.log
New desktop is solaris9:1 (192.168.1.215:1)
[root@solaris9 /]netstat -an | grep 5901
*.5901 *.* 0 0 65536 0 LISTEN
*.5901 *.* 0 0 65536 0 LISTEN
*.5901 *.* 0 0 65536 0 LISTEN

关闭

[root@solaris9 /]vncserver -kill :1
VNC Server Enterprise Edition E4.5 (r22160) - built Mar 31 2009 00:09:42
Copyright (C) 2002-2009 RealVNC Ltd.
See http://www.realvnc.com for information on VNC.

启动后,用客户端vncviewer 登录发现错误,No matching security types.接着客户端退出。

在服务器端查看日志
[root@solaris9 /]vi .vnc/solaris9/:1.log
发现里面有下面的错误片段,原来是启动有错误发生了。

error opening security policy file /usr/openwin/lib/X11/xserver/SecurityPolicy
Could not init font path element /usr/openwin/lib/X11/fonts/F3/, removing from
list!
Could not init font path element /usr/openwin/lib/X11/fonts/Speedo/, removing f
rom list!

查找 SecurityPolicy文件,在/usr/openwin/lib/X11/xserver/SecurityPolicy没有该文件
[root@solaris9 /]find /usr/openwin/ -name SecurityPolicy
/usr/openwin/server/etc/SecurityPolicy
建立一个软连接试试。
[root@solaris9 vnc-E4_5_r22160-x86_solaris]ln -s /usr/openwin/server/etc/SecurityPolicy /usr/openwin/lib/X11/SecurityPolicy
现在就OK了。

 

转自:http://blog.csdn.net/inthirties/archive/2010/03/27/5422792.aspx

你可能感兴趣的:(Solaris 9安装VNC)