bash-3.00# export PATH=$PATH:/usr/sbin:/usr/bin:/usr/local/bin:/usr/openwin/bin:/usr/openwin/bin:/usr/X11/bin
bash-3.00# cd /usr/bin
bash-3.00# ./vncserver

You will require a password to access your desktops.

Password:
Verify:


bash-3.00# cd /.vnc
bash-3.00# ls
WEB-1:1.log  WEB-1:1.pid  passwd       xstartup
bash-3.00# vi xstartup
"xstartup" 7 行,172 字符
#!/bin/sh

[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
/usr/bin/gnome-session &

 

bash-3.00# vncserver -kill :1
Killing Xvnc process ID 10494
bash-3.00# cd /usr/bin
bash-3.00# ./vncserver

New 'WEB-1:1 (root)' desktop is WEB-1:1

Starting applications specified in //.vnc/xstartup
Log file is //.vnc/WEB-1:1.log

bash-3.00#

posted on 2009-12-27 00:48  jdonson  阅读(2387)  评论(0编辑  收藏  举报