Raspberry PI - XRDP Installation and Configuration

Table of Contents

XRDP Installation

$ sudo apt install xrdp

Session Creation and Connection (Using an Xorg Session)

  1. Run Xmanager.

  2. 'File → New → Xmanager RDP Session'
    To select the XRDP session type later on (Xorg or Xvnc), leave the user information blank.


  3. Press OK to save the session file.

  4. Run the session. 


  5. 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.

  6. Confirm that the connection was successful.

Using an Xvnc Session

  1. If you don't have Xvnc, use the following command to install a VNC server.

    $ sudo apt install tightvncserver
  2. 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
  3. Run the XRDP session. Select 'Xvnc' as the Session type and enter your login credentials.


  4. Confirm that the connection was successful.