How To Set Up GUI On Amazon EC2 Ubuntu server

By | April 14, 2015
Amazon EC2 Linux servers does not come with GUI, all the operations have to be done using ssh client like putty. So if you wish to have a GUI for your amazon Linux instances, you can achieve it pretty easily. Once you installed the GUI essentials on your server, you can access it via windows remote desktop client. If you are using Linux , then you can use VNC viewer as a remote desktop client. In order to have a GUI a light weight lxde desktop has to be installed on your server.

LXDE: 
  1. Specially designed for cloud-based servers.
  2. Light weight GUI for Linux
  3. Better interface
  4. Multi-language support
  5. Supports standard keyboard shortcuts
  6. Fast performance
Getting Started:
Step 1: Connect to server using ssh client putty. 
 
Step 2: Make sure that RDP port is enabled on the ubuntu instance in which you are going to install lxde. Update the server and install lxde using the following commands.

 Sudo apt-get update 
 Sudo apt-get install lxde

Step 3: Once lxde is installed on your server , start the ldxe using the following command

 sudo start lxdm

Step 4:  Install xrdp to establish a remote desktop connection since you cant have a GUI using putty. Use the following command to isntall xrdp

 sdo apt-get install xrdp

Step 5: Set a password for the default user “ubuntu” ,since remote desktop connection requires username and password.

 sudo passwd ubuntu

Step 6: Start the windows remote desktop client and enter the public DNS or the elastic ip of your server instance and hit connect.

Step 7: Enter the user name and password of the server instance and hit ok as shown below.

Bingo!! you can start using your Ubuntu server with GUI via remote desktop connection.

Сomments аrchive