Ubuntu 10.04
1:sudo apt-get install vnc4server
2:vncpasswd
3:编辑 ~/.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 &
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
x-window-manager &
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession
4:在10.04上通过vnc viewer 连接时s键和M键无法使用,关联到了系统按键,更新系统之后OK
5:vncserver -geometry 1280x800 ,指定分辨率1280x800