XRDP is an open-source remote desktop server that uses the Remote Desktop Protocol (RDP). This guide explains how to install XRDP on Debian 12.
Prerequisites
- Debian 12 installed
- Root or sudo access
- Terminal access
Installation Steps
Quick all in one command
1
sudo apt update && sudo apt upgrade -y && sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y && sudo apt install xrdp -y && sudo adduser xrdp ssl-cert && sudo systemctl restart xrdp
Manual installation
- Update and Upgrade System
1
sudo apt update && sudo apt upgrade -y
- Install Desktop Environment For XFCE:
1
sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y
- Install XRDP
1
sudo apt install xrdp -y
- Verify Installation
1
sudo systemctl status xrdp
- Add XRDP to ssl-cert Group
1
sudo adduser xrdp ssl-cert
- Restart XRDP Service
1
sudo systemctl restart xrdp
- Configure Firewall
1 2
sudo ufw allow 3389/tcp sudo ufw reload
Usage
- On Windows, use “Remote Desktop Connection”
- Enter the IP address of your Debian machine
- Provide your Debian username and password when prompted
Uninstallation
To remove XRDP:
1
sudo apt remove xrdp -y