-
create an EC2 instance on AWS with an Ubuntu AMI.
-
allow ingress traffic on port 3389 on the instance security group (this will be used for RDP)
-
connect to it with SSH
-
run the commands below on the instance shell session
sudo apt update
sudo apt install -y xrdp
sudo systemctl start xrdp
sudo systemctl enable xrdpudo apt install -y xfce4 xfce4-goodies
echo xfce4-session >~/.xsession(assuming the username is ubuntu)
sudo passwd ubuntunow you can connect to the instance using an RDP client, with the password set on step 3 above