还是在Solaris6的时代曾经挑战了一次vnc server。结果,无果而终。配置太麻烦了。前些天一个同事告诉我,Solaris下vnc服务器可以很简单地配置了,并送来了如下网址:http://www.linuxidc.com/Linux/2012-10/71787.htm读完后,试了一下,果然能用了。于是乎,废弃了使用多年的x-server程序。用了几天后,发现了一些问题:1. 使用vnc server没有password保护。于是,凡是有vncviewer的,都可以连接你的vnc server。你在干什么看的一清二楚不说,还可以直接操纵你的机器。作为系统管理员,犯下如此初级错误,你是否觉得追悔莫及?先看原因吧:# svccfgsvc:> select xvnc-inetdsvc:/application/x11/xvnc-inetd> listprop............inetd_start/exec astring "/usr/X11/bin/Xvnc -inetd -query localhost -once securitytypes=none"............看到了吧。xvnc-inetd服务的缺省配置不要求password(securitytypes=none)。坑人吧?2. 同时不能启动多个vnc server。再查查看,发现这篇文章很有帮助https://blogs.Oracle.com/jasonhuang/entry/vnc_on_solaris_10(安装部分可以省略不看,因为安装好了的)这个是用户个人起动vncserver的,不需要管理员介入。具体步骤如下2.1. 用户个人起动vncserver初次使用必须设定password。以后再起动就不必了。www.lnuxidc.com @linux:~$ vncserverYou will require a password to access your desktops.Password:Verify:Warning: bsapx86:2 is taken because of /tmp/.X2-lockRemove this file if there is no X server bsapx86:2xauth: file /home/zhang/.Xauthority does not existNew "bsapx86:3 ()" desktop is bsapx86:3Creating default startup script /home/zhang/.vnc/xstartupStarting applications specified in /home/zhang/.vnc/xstartupLog file is /home/zhang/.vnc/bsapx86:3.log上例中,vnc server在2号Display(bsapx86:2)2.2. 用 vncviewer 连接在vncviewer的窗口中要输入bsapx86:2。(不能只输入bsapx86。)然后在第2个窗口中输入2.1.中设定的Password。2.3. vncserver 的停止www.lnuxidc.com @linux:~$ vncserver -kill :22.4. 重新设置Passwordwww.lnuxidc.com @linux:~$ vncpasswd注意:此方法可以让用户在需要的时候启动vnc server。但是,如果用户不及时关闭不需要的vnc server,会影响系统功能。管理员在必要时可通过kill杀掉不必要的vnc server进程。vnc server相关的文件在用户的$HOME/.vnc底下。----------------------分割线----------------------如果你是系统管理员,可别忘了把xvnc-inetd这个服务给关了。
# svcadm disable xvnc-inetd如果你启动vncserver时得到错误信息,比如说没找到xauth或Xvnc等,你可以使用如下命令查找。
www.linuxidc.com @linux::~$ find / -name xauth 2>/dev/null
/usr/openwin/bin/xauth
find / -name Xvnc 2>/dev/null
/usr/X11/bin/Xvnc然后把这两个文件所在的Directory加入你的 .profile (k,ba-shell等)或 .cshrc(c-shell)。www.linuxidc.com @linux:~$ vi .profile
......
PATH=/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/ucb:/usr/ccs/bin:/usr/openwin/bin:/usr/X11/bin
......
再执行,使其生效。
www.linuxidc.com @linux:~$ source .profileSolaris 11(x86)安装后不能使用中文EUC的问题一个简单的 OpenSolaris 2008.05 VNC 服务器和 GDM 配置示例相关资讯 Solaris VNC Solaris教程 Solaris 11 Xvnc
- VMware虚拟机安装x86架构的Solaris (今 14:25)
- CentOS 7下安装配置 VNC Server (07月03日)
- Oracle Sun Solaris 本地安全漏洞( (04月22日)
| - 远程管理之VNC 详解 (08月22日)
- Linux 开启VNC远程管理服务的图形 (05月12日)
- CentOS 5.11开启VNC访问 (01月22日)
|
本文评论 查看全部评论 (0)