This forum is no longer active. Please post your questions to our new community site

Forums Redmine

How to install Ubuntu Desktop on EC2 EBS

Subscribe to How to install Ubuntu Desktop on EC2 EBS 2 post(s), 2 voice(s)

 
Avatar ctdh 8 post(s)

Many of the instances of Ubuntu on EC2 do not have gnome installed or are not based on an EBS instance which means you cannot stop/start the service without loosing the data and you cannot create your own ami fresh from the instance. So here is How to create your own Ubuntu Desktop on an EBS based EC2:

First follow:
http://bitnami.org/tutorials/amazon_machine_images
Make sure the AWS security group has port 22 open for the IP address you are using locally.

Launch ami-b3c0ebc7 AWS EBS instance (from http://alestic.com/) using default settings.

Using PuTTY set the
Host to ubuntu@[use the public DNS]
Set Connection/SSH/Auth/Private Key file to the mykey.ppk you created in http://bitnami.org/tutorials/amazon_machine_images
Set Connection/SSH/Tunnels Source port: 9000 and to Destination: localhost:5901

Then save the PuTTY settings and open the connection

and enter the following commands at the terminal prompt:
sudo apt-get update
sudo apt-get install ubuntu-desktop
sudo apt-get install vnc4server
vncserver :1
enter a password when prompted

You can then install tightvnc client on your local machine and open a connection to 127.0.0.1::9000 whilst the PuTTY ssh connection is still open.

When you vnc client connects you will be presented with a terminal window in the desktop type the following command to start your gnome desktop:
nohup gnome-session &

Apparently NXserver is better, but I have not managed to install it yet.

Hope this helps someone.

 
Avatar Beltrán Rueda Administrator 3,714 post(s)

Cool! Thanks for this great how-to, I’m sure that this guide will be helpful for many users.

Cheers.

Forums Redmine