How to Install Remote Desktop on Ubuntu 18.04.6 / Ubuntu 20.04.4 / Raspberry Pi / AMD64 / ARM64
Install GNOME:
sudo apt update
sudo apt install ubuntu-desktop
Install XFCE (Recommended for Ubuntu 18.04.6 better RDP Performance):
sudo apt update
sudo apt install xfce4
Install XRDP
sudo apt install xrdp
Add XRDP User
sudo adduser xrdp ssl-cert
Restart XRDP
sudo systemctl restart xrdp
Unblock Port 3389
Make sure you unblock at all the locations like OS Firewall, VM Firewall, etc
sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 3389 -j ACCEPT
sudo netfilter-persistent save
if you are using Ubuntu 20.04.4
sudo ufw allow 3389
Connect to XRDP server using Windows Remote Desktop.
Troubleshooting:
- If the XRDP disconnects quickly after connection and password entered
sudo update-alternatives --config x-session-manager
and select
sudo update-alternatives --config x-session-manager