Home XRDP on Debian 12
Post
Cancel

XRDP on Debian 12

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

  1. Update and Upgrade System
    1
    
    sudo apt update && sudo apt upgrade -y
    
  2. Install Desktop Environment For XFCE:
    1
    
    sudo apt install xfce4 xfce4-goodies xorg dbus-x11 x11-xserver-utils -y
    
  3. Install XRDP
    1
    
    sudo apt install xrdp -y
    
  4. Verify Installation
    1
    
    sudo systemctl status xrdp
    
  5. Add XRDP to ssl-cert Group
    1
    
    sudo adduser xrdp ssl-cert
    
  6. Restart XRDP Service
    1
    
    sudo systemctl restart xrdp
    
  7. 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
This post is licensed under CC BY 4.0 by the author.