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
- Run Xmanager.
- 'File → New → Xmanager RDP Session'
To be able to select the XRDP session type later on, leave the user information blank. - Press OK to save the session file.
- Run the session.
- 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. - 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.
- 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. - Without logging out of the existing session, close the Xrdp session. (Pause)
- Run the relevant RDP (Xrdp) session from Xmanager.
- Enter the same username, password, and port number of the session from Step 1.
- You are now reconnected to the session with DISPLAY 11.0 (VNC port number 5911). (Resume)
, multiple selections available,
Related content
CentOS 8.x - XRDP Enabling Multiple Sessions and Pause/Resume
CentOS 8.x - XRDP Enabling Multiple Sessions and Pause/Resume
More like this
CentOS 8.x - XRDP Installation and Configuration
CentOS 8.x - XRDP Installation and Configuration
More like this
RHEL 7.x - XRDP Enabling Multiple Sessions and Pause/Resume
RHEL 7.x - XRDP Enabling Multiple Sessions and Pause/Resume
More like this
Ubuntu 22.04 - XRDP Enabling Multiple Sessions and Pause/Resume
Ubuntu 22.04 - XRDP Enabling Multiple Sessions and Pause/Resume
More like this
RHEL 7.x - XRDP Installation and Configuration
RHEL 7.x - XRDP Installation and Configuration
More like this
CentOS6.x에서 XRDP 설치 및 사용
CentOS6.x에서 XRDP 설치 및 사용
More like this