$defaultXStartup
= ("#!/bin/sh/n/n".
"# Uncomment the following two lines for normal desktop:/n".
"# unset SESSION_MANAGER/n".
"# exec /etc/X11/xinit/xinitrc/n/n".
"[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup/n".
"[ -r /$HOME/.Xresources ] && xrdb /$HOME/.Xresources/n".
"xsetroot -solid grey/n".
"vncconfig -iconic &/n".
"xterm -geometry 80x24+10+10 -ls -title /"/$VNCDESKTOP Desktop/" &/n".
"twm &/n");
将红色部分的注释符号去掉,并将其余的行加上注释符#即可。如下:
$defaultXStartup
= ("#!/bin/sh/n/n".
"# Uncomment the following two lines for normal desktop:/n".
"unset SESSION_MANAGER/n".
"exec /etc/X11/xinit/xinitrc/n/n".
"# [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup/n".
"# [ -r /$HOME/.Xresources ] && xrdb /$HOME/.Xresources/n".
"# xsetroot -solid grey/n".
"# vncconfig -iconic &/n".
"# xterm -geometry 80x24+10+10 -ls -title /"/$VNCDESKTOP Desktop/" &/n".
"# twm &/n");
