Knowledgebase
emscom > emscom Help Desk > Knowledgebase

Search help:


XRDP

Solution

Updated May 2025

For cm5 with /etc/debian_version = 12.11

 

Check the RPI is using X11 and not Wayland

sudo rasp-config

menu A6

 > Advanced > Wayland > X11

 

Install xrdp

sudo apt update

sudo apt install xrdp

# xorgxrdp should be installed automatically ]

sudo apt search xrdp return includes

xrdp/stable,now 0.9.21.1-1 arm64 [installed]
  Remote Desktop Protocol (RDP) server

xorgxrdp/stable,now 1:0.9.19-1 arm64 [installed,automatic]
  Remote Desktop Protocol (RDP) modules for X.org

Check that xrdp is running and listening on 0.0.0.0 on port 3389

That should be it. RDP connections should complete.

 

 

# replaces previous instructions

apt install X11orgxrdp 

Add xrdp user to ssl-cert group

sudo usermod -aG ssl-cert xrdp

 

Remove client user from render group

sudo gpasswd --delete username render

 

Disable RenderD128 option

sudo nano /etc/X11/xrdp/xorg.conf

#change to

#Option "DRMDevice" "/dev/dri/renderD128"

Option "DRMDevice" ""

 

Optional

Remove client user from video group.

 

Switch to lxde

sudo nano /etc/xrdp/startwm.sh

#comment out the following line

#test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession

Add the line

exec /usr/bin/startlxde

 

 

 

 
Was this article helpful? yes / no
Related articles Centos add Mate Desktop to minimal install
Setup minimal kiosk mode
Debian setup cheat sheet
Article details
Article ID: 223
Category: RPI
Date added: 16-02-2024 11:36:49
Views: 1121
Rating (Votes): Article not rated yet (0)

 
« Go back

 
Powered by Help Desk Software HESK, in partnership with SysAid Technologies