还是在Solaris6的时代曾经挑战了一次vnc server。结果,无果而终。配置太麻烦了。
前些天一个同事告诉我,Solaris下vnc服务器可以很简单地配置了,并送来了如下网址:
https://blogs.oracle.com/timthomas/entry/a_simple_vnc_server_zh
读完后,试了一下,果然能用了。于是乎,废弃了使用多年的x-server程序。
用了几天后,发现了一些问题:
1. 使用vnc server没有password保护。
于是,凡是有vncviewer的,都可以连接你的vnc server。你在干什么看的一清二楚不说,还可以直接操纵你的机器。
作为系统管理员,犯下如此初级错误,你是否觉得追悔莫及?
先看原因吧:
# svccfg
svc:> select xvnc-inetd
svc:/application/x11/xvnc-inetd> listprop
............
inetd_start/exec astring "/usr/X11/bin/Xvnc -inetd -query localhost -once securitytypes=none"
............
看到了吧。xvnc-inetd服务的缺省配置不要求password(securitytypes=n