April 14, 2013 asvignesh 0Comment

Lots of web servers are running in LAMP stack, as ubuntu is easy to install and configure and many advantages people prefer ubuntu server,  Ubuntu server is completely command based , you need to do all the operation using the ubuntu Terminal… For the Ubuntu Desktop users who are not very good in ubuntu commands Here is the solution to use server like desktop in amazon EC2 instance.

Create a new ubuntu server instance in amazon EC2

Make sure the AWS security group has port 22 open for your Instance IP address you are using. ( for SSH access )

Start the instance

If you are using windows to connect to the instance use putty tool connect to your cloud using ubuntu@myip and set Connection/SSH/Auth/Private Key file to the mykey.ppk you created

Set Connection/SSH/Tunnels Source port: 9000 and to Destination: localhost:5901

Now Use the following command to install the ubuntu Desktop

sudo apt-get update
sudo apt-get install ubuntu-desktop

Install vnc to access ubuntu like accessing windows using remote desktop connection

sudo apt-get install vnc4server
vncserver :1

Enter a password when prompted

Yes its done in server side

In the client side you need to install tightvnc client and open a connection to whilst the PuTTY ssh connection is still open.

When your 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 &

Reference Article : http://bitnami.com/article/how-to-install-ubuntu-desktop-on-ec2-ebs


6+ years of experience in building data protection, copy data management and storage management applications, automation software and plugins for private and public clouds

Disclaimer :

This is a personal weblog. The opinions expressed here represent my own and not those of my employer. my thoughts and opinions change from time to time… This weblog is intended to provide a semi-permanent point in time snapshot and manifestation of the various memes running around my brain, and as such any thoughts and opinions expressed within out-of-date posts may not the same, nor even similar, to those I may hold today.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.