This is quick setup guide to connect to Ubuntu 20.04 via Remote Desktop.
Install xrdp with apt command
sudo apt update
sudo apt install -y xrdp
sudo systemctl restart xrdp
Connect from Windows 10 to Ubuntu 20.04
Open RDP on Windows 10 . Before you connect from Windows to Ubuntu via RDP, I recommend to adjust screen resolution to the appropriate value at Ubuntu side so that screen can be displayed properly at RDP connection.
The login screen is shown. Enter your username and password on Ubuntu.
After log in, you can see your Ubuntu’s screen.
Troubleshooting – Black Screen
You may encounter the black screen and connection is failed.
If you see such screen, Please check if you have already logged in your Ubuntu machine from other session. In such cases, RDP connection may not be established properly.
If you can, rebooting your Ubuntu may be a good idea to clean up unnecessary sessions.