How to Setup GUI Desktop with Ubuntu on AWS EC2
1. Deploy your EC2 Instance first with normal 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
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
7. now set the password
sudo passwd ubuntu
8. Now restart/reboot your machine
reboot
9. Now go to EC2 Security group and allow all traffic
10. Now open RDP in your local machine and type public ip and connect
11. Now you see login window where you type Username: ubuntu and Password you set in step no7 and hit login
12. Now finally you can see you GUI of your ubuntu