How to Setup GUI Desktop with Ubuntu on AWS EC2

Shrihari Haridas
3 min readFeb 12, 2023

--

1. Deploy your EC2 Instance first with normal configuration

Launch EC2 with by default configuration

2. Connect machine with the help of putty and update your machine

sudo apt-get update

3. After update your machine install xrds- is an open-source implementation of the RDP server that allows RDP connections for Linux-based servers.

sudo apt install xrdp -y

4. Now enable the xrdp service

sudo systemctl enable xrdp
Enable xrdp service

5. then enter gnome command- Ubuntu GNOME is a discontinued Linux distribution, distributed as free and open-source software. It used a pure GNOME 3 desktop environment with GNOME Shell, rather than the Unity graphical shell

sudo add-apt-repository ppa:gnome3-team/gnome3

6. Then Install gnome3 in your system for access GUI

sudo apt-get install gnome-shell ubuntu-gnome-desktop
Install Gnone3

7. now set the password

sudo passwd ubuntu
Set Password

8. Now restart/reboot your machine

reboot

9. Now go to EC2 Security group and allow all traffic

Allow all traffic

10. Now open RDP in your local machine and type public ip and connect

Enter your Public IP

11. Now you see login window where you type Username: ubuntu and Password you set in step no7 and hit login

You can see login window

12. Now finally you can see you GUI of your ubuntu

Ubuntu GUI

--

--

Shrihari Haridas

Hello everyone, I am Shrihari Haridas I am a Cloud & DevOps Engineer, I work with most of DevOps Tools like, Jenkins, Git, Docker, etc.!& for Cloud AWS