1.下载安装文件 可以到官方站点下载Free Edtion,也可以到其它网站下载。
2.解压缩 # ls
vnc-3.3.4-solaris_2.5.tar.gz
# gzip -d vnc*
# ls
vnc-3.3.4-solaris_2.5.tar
# tar -xvf *.tar
x vnc-3.3.4-solaris_2.5, 0 bytes, 0 tape blocks
x vnc-3.3.4-solaris_2.5/README, 7763 bytes, 16 tape blocks
x vnc-3.3.4-solaris_2.5/vncinstall, 1991 bytes, 4 tape blocks
x vnc-3.3.4-solaris_2.5/Xvnc, 1748460 bytes, 3415 tape blocks
x vnc-3.3.4-solaris_2.5/Xvnc.man, 6114 bytes, 12 tape blocks
x vnc-3.3.4-solaris_2.5/vncviewer, 320376 bytes, 626 tape blocks
x vnc-3.3.4-solaris_2.5/vncviewer.man, 14590 bytes, 29 tape blocks
x vnc-3.3.4-solaris_2.5/vncpasswd, 14620 bytes, 29 tape blocks
x vnc-3.3.4-solaris_2.5/vncpasswd.man, 1537 bytes, 4 tape blocks
x vnc-3.3.4-solaris_2.5/vncconnect, 7848 bytes, 16 tape blocks
x vnc-3.3.4-solaris_2.5/vncconnect.man, 1815 bytes, 4 tape blocks
x vnc-3.3.4-solaris_2.5/vncserver, 13687 bytes, 27 tape blocks
x vnc-3.3.4-solaris_2.5/vncserver.man, 4237 bytes, 9 tape blocks
x vnc-3.3.4-solaris_2.5/LICENCE.TXT, 18000 bytes, 36 tape blocks
x vnc-3.3.4-solaris_2.5/classes, 0 bytes, 0 tape blocks
x vnc-3.3.4-solaris_2.5/classes/DesCipher.class, 7143 bytes, 14 tape blocks
x vnc-3.3.4-solaris_2.5/classes/animatedMemoryImageSource.class, 1329 bytes, 3 tape blocks
x vnc-3.3.4-solaris_2.5/classes/authenticationPanel.class, 2068 bytes, 5 tape blocks
x vnc-3.3.4-solaris_2.5/classes/clipboardFrame.class, 1761 bytes, 4 tape blocks
x vnc-3.3.4-solaris_2.5/classes/index.vnc, 597 bytes, 2 tape blocks
x vnc-3.3.4-solaris_2.5/classes/optionsFrame.class, 3489 bytes, 7 tape blocks
x vnc-3.3.4-solaris_2.5/classes/rfbProto.class, 8033 bytes, 16 tape blocks
x vnc-3.3.4-solaris_2.5/classes/shared.vnc, 565 bytes, 2 tape blocks
x vnc-3.3.4-solaris_2.5/classes/vncCanvas.class, 6271 bytes, 13 tape blocks
x vnc-3.3.4-solaris_2.5/classes/vncviewer.class, 7489 bytes, 15 tape blocks
x vnc-3.3.4-solaris_2.5/classes/vncviewer.jar, 20370 bytes, 40 tape blocks
# cd vnc*
# ls
LICENCE.TXT Xvnc classes vncconnect.man vncpasswd vncserver vncviewer
README Xvnc.man vncconnect vncinstall vncpasswd.man vncserver.man vncviewer.man
3.组织相应的文件到系统目录 # mkdir -p /usr/local/vnc/classes
# ls
LICENCE.TXT Xvnc classes vncconnect.man vncpasswd vncserver vncviewer
README Xvnc.man vncconnect vncinstall vncpasswd.man vncserver.man vncviewer.man
# cp classes/* /usr/local/vnc/classes
# cp *vnc* /usr/bin
# mkdir $HOME/.vnc
# PATH=$PATH:/usr/local/bin:/usr/openwin/bin:/usr/openwin/lib:/usr/ccs/bin:/usr/ucb:/usr/dt/bin
export PATH
4.启动vncserver 此时需要输入口令,这个口令被用于登陆认证。
# vncserver
You will require a password to access your desktops.
Password:
Verify:
xauth: creating new authority file //.Xauthority
New 'X' desktop is smsyw13:1
Creating default startup script //.vnc/xstartup
Starting applications specified in //.vnc/xstartup
Log file is //.vnc/smsyw13:1.log
5.此时即可通过客户端浏览器访问 http://ip:5801
如果存在防火墙,需要开放5801和5901端口。
常见问题解答可以参考:
http://www.softpanorama.org/Xwindows/VNC/vnc_on_solaris.shtml
-----