2008年4月28日 星期一

linux vnc experience

vnc config -- /root/.vnc/xstartup
--------------------------------------------------------------------
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
gnome-session &
#kde-session &
#twm &
--------------------------------------------------------------------


stop vnc session
vncserver -kill :1

start vncserver
vncserver

restart the vncserver
service vncserver restart ==> this command seems not work for me? I don't know why?

vncserver was a Perl script, the real executable file was Xvnc

沒有留言: