For Ubuntu exists XRDP. I always install it using briliant script available here:
https://c-nergy.be/repository.html
# Download the script wget https://c-nergy.be/downloads/xRDP/xrdp-installer-1.5.2.zip # Unzip it unzip xrdp-installer-1.5.2.zip # Make it executable chmod +x xrdp-installer-1.5.2.sh # Run it (must be ran as normal user and needs authentication during run) ./xrdp-installer-1.5.2.sh # Confgure your firewal (if you are using it - check sudo ufw status) sudo ufw allow from YOUR_LOCAL_IP/16 to any port 3389 # OR for any IP sudo ufw allow 3389/tcp