1. ssh登录
2. sudo apt-get install xubuntu-desktop
3. vim ~/.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 &
gnome-panel &
gnome-settings-daemon &
metacity &
nautilus &
gnome-terminal &
xfce4-terminal &
startxfce4 &
4. vncserver :port
开启服务
这样的话,至少teminal和文件浏览器出现了,菜单还是没有看见,至少能用了:(