xRDP provides an RDP-compatible server for Linux. This guide shows how to install xRDP on Ubuntu, configure a desktop environment, and secure the connection.
sudo apt update
sudo apt install -y xfce4 xfce4-goodiessudo apt install -y xrdp
sudo systemctl enable --now xrdpCreate or update ~/.xsession for the user to start XFCE:
echo "xfce4-session" > ~/.xsession
sudo service xrdp restartsudo ufw allow 3389/tcp
sudo ufw reloadUse the server IP and your username/password in your RDP client. For best security, access xRDP via a VPN or SSH tunnel:
ssh -L 3390:localhost:3389 youruser@yourserver
# then point RDP client to localhost:3390