Setting up VNC on Ubuntu in Amazon EC2
Install the desktop packages and remote desktop (VNC) server:
sudo apt-get update sudo apt-get install ubuntu-desktop sudo apt-get install vnc4server
Configure the VNC server enter
vncserver
, which will then prompt you to create a password. Once created, entervncserver -kill :1
to stop the server.edit the config file: ~/.vnc/xstartup
.
Uncomment the two lines below the string "Uncomment the following two lines for normal desktop." And on the second line add "sh" so the line reads
exec sh /etc/X11/xinit/xinitrc
.
Start the VNC server again by entering
Open VNC through Tunneling putty :vncserver
. References:
http://crl.ucsd.edu/handbook/vnc/