> ## Content Index
> Fetch the complete content index at: https://comtechies.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How To Set Up GUI On Amazon EC2 Ubuntu server?
- URL: https://comtechies.com/set-up-gui-on-amazon-ec2-ubuntu-server/
- Published: 2023-10-04T06:21:08.000Z
- Updated: 2025-08-15T14:48:40.000Z
- Author: Bibin Wilson
- Tags: Amazon AWS, #Migrated-1755084814468, #wp, #wp-post, #Import 2025-08-13 11:34

Amazon EC2 Linux servers do not come with GUI, all the operations have to be done using an 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, the remote desktop client. If you are using Linux, then you can use the VNC viewer as a remote desktop client. In order to have a GUI, a lightweight LXDE desktop has to be installed on your server.

### LXDE

1. Specially designed for cloud-based servers.
2. Lightweight GUI for Linux
3. Better interface
4. Multi-language support
5. Supports standard keyboard shortcuts
6. Fast performance

**Prerequisites**

1. A running Ubuntu ec2 instance.
2. Security group inbound traffic configured for SSH and RDP access (**22 and 3389**)

> **Note**: This setup is tested on Ubuntu 18.x server

### Getting Started

**Step 1:** Connect to the server using ssh client putty. How To Connect Ubuntu Server Using Putty

**Step 2:** Make sure that the 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 -y   
sudo apt-get install lxde -y
```

**Step 3:** Install `xrdp` to establish a remote desktop connection since you can't have a GUI using putty. Use the following command to install xrdp sudo apt-get install xrdp -y

**Step 4:** Set a [password for the default user](https://comtechies.com/password-authentication-aws-ec2/) "ubuntu", as a remote desktop connection requires a username and password.

```
sudo passwd ubuntu
```

> **Note**: You can set up your own user and password for remote desktop

**Step 5:** Start the Windows remote desktop client enter the public DNS or the public IP of your server instance and hit connect.

[![](http://4.bp.blogspot.com/-MOrkAGiSdCE/URZMm2hgZRI/AAAAAAAAAzk/uoaf61rxiUA/s400/3.PNG)](http://4.bp.blogspot.com/-MOrkAGiSdCE/URZMm2hgZRI/AAAAAAAAAzk/uoaf61rxiUA/s1600/3.PNG?ref=comtechies.com)

**Step 6:** Enter the username and password of the server instance that we created in Step 5 and hit OK. Make sure RDP 3389 is enabled in your security group.

> **Note:** If you are looking for more Linux command line hands on, use [pluralsight 10 days free account to learn Linux Command Line](https://comtechies.com/recommends/pluralsight-linux-cli-course)

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

![Lightweight GUI for Linux on ec2](https://storage.ghost.io/c/98/17/98179ffe-00c9-4599-8b4a-1f5f7ba0565b/content/images/2025/08/image-701.png)