vnc usage

1.How to Start vncserver

$ vncserver -nolisten local -depth 24

remember display number after vncserver startup sucessfully [option] you can change password by command "vncpasswd" [option] you can kill your vncserver by command "vncserver -kill :"

2.Example xstatup file (located in .vnc of your home directory):

#!/bin/sh

xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -nowin &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#
#twm & #vnc default
#mwm & #X
#/usr/dt/bin/dtwm & #CDE
#olwm & #openwin
#/usr/bin/startkde & #KDE of linux
#exec gnome-session & #GNOME of linux
#
if [ "`uname -sr`" = "SunOS 5.9" ]; then
#/opt/sfw/kde/bin/startkde &
/usr/dt/bin/dtwm &
elif [ `uname -s` = "SunOS" ]; then
/usr/dt/bin/dtwm &
elif [ `uname -s` = "Linux" ]; then
unset SESSION_MANAGER
exec /etc/X11/xinit/xinitrc
else
twm &
fi

[@more@]

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

转载于:http://blog.itpub.net/115961/viewspace-1002151/

你可能感兴趣的:(vnc usage)