CentOS 8.x - XRDP Installation and Configuration

Table of Contents

XRDP Installation

$ sudo yum install epel-release
$ sudo yum install xrdp
$ sudo systemctl start xrdp
# To have the xrdp service start automatically when the system starts up, use the following.
$ sudo systemctl enable xrdp

Xorg Module Installation and Configuration

  • Installation

    $ sudo yum install xorgxrdp
    $ sudo vi /etc/xrdp.ini
    ...
    [Xorg]
    name=Xorg
    lib=libxup.so
    username=ask
    password=ask
    ip=127.0.0.1
    port=-1
    code=20
    ...
  • Configuration
    In the /etc/xrdp.ini file, remove the (#) from the [Xorg] section.

    $ sudo vi /etc/xrdp.ini
    ...
    [Xorg]
    name=Xorg
    lib=libxup.so
    username=ask
    password=ask
    ip=127.0.0.1
    port=-1
    code=20
    ...

Xvnc Installation and Configuration

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

    $ sudo yum install tigervnc-server
  • Configuration
    Xfce does not support the default 32-bit color depth, so if you'd like to install and use Xfce you will need to switch to 24-bit. To do so, in the /etc/xrdp/xrdp.ini file, remove the (#) from 'xserverbpp=24.'

    $ 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

Session Creation and Connection

  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 the session type 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.