Solaris 9安装VNC

本文介绍在Solaris系统上安装配置RealVNC的过程,包括解决安装过程中的权限问题和缺少SecurityPolicy文件的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

先从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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值