Mint 21.2 - XRDP Installation and Configuration
Table of Contents
XRDP Installation and Configuration
When installing the xrdp package in Mint 21.2, the Xorg module will also be installed. Upon installation, the daemon will be initialized and will be registered in the init process.
- Xorg: Uses the Xorg X server as the X display server.
- Xvnc: Uses the Xvnc X server as the X display server.
XRDP Installation
$ sudo apt install xrdp
Note : If you'd rather use an Xvnc session with xrdp, please note that there is a bug in the libvnc.so file required to run an Xvnc session, so you must use a modified xrdp package. To do so, install the xrdp package with the following command instead of the above command.
$ XRDP_DEB="$(mktemp)" && wget -O "$XRDP_DEB" 'https://cdn.netsarang.net/utils/xrdp_0.9.19-1_amd64.deb' && sudo dpkg -i "$XRDP_DEB" rm -f "$XRDP_DEB"
Initialization and Registering to the init Process
Registration will automatically occur during installation. If, for some reason, registration does not occur, you can reference the following for starting the daemon and registering xrdp to the init process.
# Start xrdp daemon $ sudo systemctl start xrdp # Register with init process $ sudo systemctl enable xrdp
Xorg Module Installation and Configuration
For Mint 21.x, the xorgxrdp package is installed by default when installing xrdp.
Xvnc Installation and Configuration
Tigervnc works well with xrdp and will be used for this guide. You can opt for your preferred vncserver, but note that it may not work well with xrdp.
$ sudo apt install tigervnc-standalone-server
libvnc.so Bug
As mentioned previously, there is a bug with the libvnc.so included in Mint 21.2's xrdp package, preventing access to Xvnc sessions and regular vnc sessions. If you've already installed Mint 21.2's xrdp package you can use the following paths to upgrade to the package which includes a fix.
x64 package:: https://cdn.netsarang.net/utils/xrdp_0.9.19-1_amd64.deb
Non x64 packages: https://packages.ubuntu.com/kinetic/xrdp
Xorg Session Creation and Connection
- Run Xmanager
- 'File → New → Xmanager RDP Session'
- When utilizing multiple session types such as Xorg and Xvnc, leave the user information blank in order to be able to select the session type later on.
- Click OK to save the session file.
- Run the session and select Xorg as the Session type. Enter your user account name and account password.
- Confirm that the connection was successful.
Xvnc Session Creation and Connection
- Run Xmanager.
- 'File → New → Xmanager RDP Session'
- When utilizing multiple session types such as Xorg and Xvnc, leave the user information blank in order to be able to select the session type later on.
- Click OK to save the session file.
- Run the session and select Xvnc as the Session type. Enter your user account name and account password.
- Confirm that the connection was successful.
- Even after closing the window, the session will not terminate and the usage environment is maintained (Pause). If you connect as the same user, you can pick up where you left off (Resume). To end the session, log out.
Creating Multi-Sessions with the Same User and Pause/Resume Functionality
With xrdp's default settings, multiple sessions of the same type cannot be created when connecting to an Xorg session or Xvnc session as the same user from the same IP address. When you reconnect after closing the window, you will be connected to the previous isntance.
You can, however, change this setting in order to create a new session for every session. If you choose to do so but would still like the option of reconnecting to a previous instance when needed, please see the guide below:
Mint 21.x - XRDP Enabling Multiple Sessions and Pause/Resume