solaris系统中使用vnc~

telnet端口被屏蔽掉了 使用xmanager不方便,于是选择了vnc~[@more@]

可以参考下eygle的安装过程,这里因为已经安装好了,不需要进行安装~

# 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

组织相应的文件到系统目录# 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

剩下的就简单了 ~

下个关键是配置好.vnc下面的xstart文件,否则的话将会打不开xwindow。

有问题参考下面的链接

http://www.softpanorama.org/Xwindows/VNC/vnc_on_solaris.shtml

How to choose the Desktop type

In the example above we used the default Desktop wich is the X one.
The VNC software create a subdirectory in your home directory called .vnc (note the "." bevore the name vnc). In this subdirectory there is a file called xstartup in which we can write the commands which starts a Desktop.

Default content for "~/.vnc/xstartup" is:

For X11 (tested and OK):
#!/bin/sh
xrdb $HOME/.Xdefaults
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &

This will start a X-Desktop (and has been tested).

But you may want KDE or others. Here a list (please tell me your experience with it):

The two lines:
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &

can be added to each of the files below.

For KDE (tested and OK)(well this was in year 2000....):
#!/bin/sh
xrdb $HOME/.Xdefaults
/usr/sepp/bin/startkde-1.1 &

ATTENTION: recently we got problems with the command above.
PLEASE substitute the line with startkde-1.1 with:
launchx KDE

For fvwm2 (tested and OK):
#!/bin/sh
xrdb $HOME/.Xdefaults
/usr/sepp/bin/fvwm2 &

For CDE (tested ):
#!/bin/sh
xrdb $HOME/.Xdefaults
/usr/dt/bin/dtwm

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7794469/viewspace-890023/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7794469/viewspace-890023/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值