· Launch a t1.micro instance using an Ubuntu AMI
· Connect to the instance via SSH using the associated private key (remembering to append “ubuntu@” to the start of the instance IP if you’re using putty or some other terminal tool.
· Run sudo apt-get update
· Run sudo apt-get install vnc4server
· Run vncserver :0
· Set a password for your VNC connection
· Edit the xstartup file within ~/.vnc/ folder, remove the last couple of lines and add in a line for gnome-session&
· Should look a bit like this…
# 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 &
· Next run sudo nano /etc/init.d/vncserver
· Within the nano within paste the following: (remember to modify the USER variable to be the name of your current user, note the DISPLAY variable, this is the port number / session ID)
· Press CTRL + X and save the file
· Run “sudo update-rc. /etc/init.d/vncserver defaults”
· Reboot by running “sudo reboot”
· Launch VNC viewer enter the IP address followed by the “:1” or whatever port your chose.
· Hit Connect and you should be logged in.