CentOS 6.x - XRDP Installation and Configuration & Pause/Resume

CentOS 6.x - XRDP Installation and Configuration & Pause/Resume

Table of Contents



XRDP Installation

$ sudo yum install epel-release
$ sudo yum install xrdp
$ sudo service xrdp start

# To have the xrdp service start automatically when the system starts up, use the following.
$ sudo chkconfig --level `runlevel | awk '{print $2}'` xrdp on

Xvnc Installation and Configuration

  • Installation
    If you don't have Xvnc, use the following command to install the VNC server.
    (When installing xrdp, tigervnc-server may already be installed.)

    $ sudo yum install tigervnc-server
  • Configuration (Optional) - This setting is required for reconnecting to sessions.
    In the /etc/xrdp/xrdp.ini file change 'port=-1' to 'port=ask-1' under the [xrdp1] section.

    $ sudo vi /etc/xrdp/xrdp.ini
    ...
    [xrog1]
    name=sesman-Xvnc
    lib=libvnc.so
    username=ask
    password=ask
    ip=127.0.0.1
    #port=-1
    port=ask-1
    ...
    $ sudo systemctl restart xrdp

Session Creation and Connection

  1. Run Xmanager.

  2. 'File → New → Xmanager RDP Session'
    To be able to select the XRDP session type later on, leave the user information blank.


  3. Press OK to save the session file.

  4. Run the session.

  5. Select sesman-Xvnc as the Module type and enter your login credentials.
    If running a new session, leave port as '-1'. If connecting to an existing session, enter the existing session's port number.



  6. Press OK to start the session. Confirm that the connection was successful.





Reconnecting to an Existing Xvnc Session (Pause & Resume)

Strictly speaking, the Suspend function does not actually Suspend the session. When the Xrdp session is disconnected, Xvnc will still be running in the background. This means that even if the PC and the network are disconnected, the remote Xvnc (X server) is still alive.
Follow the steps below to reconnect to an existing session.

  1. Confirm the session number of the session you want to connect to. There are multiple ways to achieve this.
    • Confirm upon session start.
      Take note of the port number in the message that appears when you create a new session. In the example below, the new session was created using port 5911.


    • Confirm at the terminal after connecting.
      Using the DISPLAY number of the current session, you can confirm the standby port. The value of the DISPLAY number + 5900 is the standby port number.
      In the example below, the DISPLAY number is 11. The standby port is therefore 5911.


    • Confirm using a terminal connection.
      The following value + 5900 is the standby port number. In this example, the standby port number is therefore 5911.


  2. Without logging out of the existing session, close the Xrdp session. (Pause)


  3. Run the relevant RDP (Xrdp) session from Xmanager.

  4. Enter the same username, password, and port number of the session from Step 1.


  5. You are now reconnected to the session with DISPLAY 11.0 (VNC port number 5911). (Resume)


Related content