To access Ubuntu Desktop thru Windows’ Remote Desktop, Xrdp needs to be installed on Ubuntu and port 3389 will need to be opened thru Ubuntu’s firewall.
- Open a Terminal on Ubuntu Desktop.
- Install Xrdp:
$ sudo apt install xrdp - Add Xrdp to ssl-cert group:
$ sudo adduser xrdp ssl-cert - Restart Xrdp:
$ sudo systemctl restart xrdp - Configure Ubuntu firewall to only allow LAN access for Remote Desktop.
$ sudo ufw allow from 192.168.XX.XX/24 to any port 3389 - Open Remote Desktop in Windows and enter Ubuntu’s IP address to connect.
- Login with your Ubuntu’s credentials.
A quirk with Remote Desktop is that it does not automatically save Ubuntu logins under its easily accessible “Recent” logins, however, you can manually map Ubuntu’s IP address to a “Host Name” thru pfsense’s DNS Resolver. You can then provide the Host Name and your login name and “Save” the Remote Desktop connection by pinning it for easier access.
Reference:
1. How to Install Xrdp Server (Remote Desktop) on Ubuntu 20.04 – Linuxize