http://blog.chinaunix.net/uid-29188737-id-4396414.html
aws设置所有inbound outbound可用,否则端口不通
关闭防火墙
ufw disable
sudo apt-get install gnome-core xfce4 firefox
sudo apt-get install vnc4server
dpkg -l | grep vnc
vncserver
vi ~/.vnc/xstartup
#!/bin/sh export XKL_XMODMAP_DISABLE=1 unset SESSION_MANAGER unset DBUS_SESSION_BUS_ADDRESS startxfce4 & [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic &
vncserver -kill :1
重启后执行
vncserver
在windows下