ubuntu上安装vncserver网上有很多教程了,这里只提几点需要注意的地方:
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 &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
gnome-session-fallback &
1. 注掉x-window-manager
2. ubuntu 11.10默认采用gnome3特效,如果用gnome-session会看不到标题栏,因此需要采用gnome-session-fallback