← Back to Debian guides

Install KDE + XRDP on Debian 12 (LXC Ready)

Hey everyone! :) In this guide I'll explain how you can install KDE Plasma on Debian 12 with xrdp. Fully compatible with LXC containers too!

1. Update the system

apt update && apt upgrade -y

2. Install KDE Plasma

apt install -y kde-plasma-desktop

Or use the full desktop environment:

apt install -y task-kde-desktop

3. Install XRDP

apt install -y xrdp

4. Configure XRDP to launch KDE

echo "startplasma-x11" > ~/.xsession

5. Enable and start XRDP

systemctl enable xrdp
systemctl start xrdp

6. Connect via Remote Desktop

Use any RDP client and connect to port 3389. Login with your Debian user account.

Now, have fun with KDE :) cheers!

⚠️ If you get a black screen, make sure KDE is installed and ~/.xsession is correct.