Raspberry PI - XRDP Installation and Configuration
Table of Contents
XRDP Installation
$ sudo apt install xrdp
Session Creation and Connection (Using an Xorg Session)
- Run Xmanager.
- 'File → New → Xmanager RDP Session'
To select the XRDP session type later on (Xorg or Xvnc), leave the user information blank. - Press OK to save the session file.
- Run the session.
- Select Xorg and enter your login credentials.
- Xorg: Uses the Xorg X server as the X display server.
- Xvnc: Uses the Xvnc X server as the X display server.
- Confirm that the connection was successful.
Using an Xvnc Session
If you don't have Xvnc, use the following command to install a VNC server.
$ sudo apt install tightvncserver
Adjust the Xvnc color depth to 24-bit in the XRDP settings. Depending on the type and version of Xvnc, 32-bit may not be supported. In the xrdp.ini file, remove the (#) from 'xserverbpp=24' to have the settings take effect.
$ sudo vi /etc/xrdp/xrdp.ini
... [Xvnc] name=Xvnc lib=libvnc.so username=ask password=ask ip=127.0.0.1 port=-1 xserverbpp=24 #delay_ms=2000 ...
$ sudo systemctl restart xrdp
- Run the XRDP session. Select 'Xvnc' as the Session type and enter your login credentials.
- Confirm that the connection was successful.