更改vncserver以gnome方式啓動

Linux啓動VNCServer的時候默認的啓動桌面是twm,跟沒有桌面差不多,還不如用SSH遠程登陸呢。要改爲啓動gnome或者kde可以這樣做:

修改~/.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" &
#twm &
#startkde &  #啓動KDE桌面
gnome-session &#啓動gnome桌面


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章