1. Connect ssh to ec2 instance.
2. install vncserver:
sudo apt install ubuntu-desktop
sudo apt install vnc4server
sudo apt install gnome-panel
3. Type 'vncserver' to setup pwd
4. Kill vncserver 'vncserver -kill :1'
5. Type following:
vim /home/ubuntu/.vnc/xstartup
and modify
unset SESSION_MANAGER
# exec /etc/.....
gnome-session -session=gnome-classic &
gnome-panel&
('ESC', ':wq', 'ENTER' to quit vim)
Type 'vncserver' to start.
Download TightVNC Viewer to connect.
In AWS website, to set "Inbound rule" to allow connections, with IP::port
Tensorflow with AWS: https://aws.amazon.com/cn/blogs/china/tensorflow-on-aws/