${HOME}是用户目录.如下:
gnome桌面的配置文件如下:
#!/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桌面的配置文件如下:
#!/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
startkde&
如下是样例:
#!/bin/sh# Uncomment the following two lines for normal desktop:# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
gnome-session &
本文深入探讨了VNCxstartup程序配置,包括默认启动twm以及如何将其调整为GNOME或KDE桌面环境。通过详细解析配置文件,用户能够轻松实现不同桌面环境之间的切换。
471

被折叠的 条评论
为什么被折叠?



