Ubuntu 20.04 - XRDP Installation and Configuration
Table of Contents
XRDP Installation and Configuration
When installing the xrdp package in Ubuntu20.04, 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
Initialization and Registering to the init Process
Registration will occur during installation. If, for some reason, registration does not occur, you can reference the following for starting the daemon and registering it to the init process.
# xrdp daemon start $ sudo systemctl start xrdp # xrdp init process registration $ sudo systemctl enable xrdp
Xorg Module Installation and Configuration
When installing xrdp in Ubuntu 20.04, the xorgxrdp package will installed by default.
Xvnc Installation and Configuration
$ sudo apt install tigervnc-standalone-server
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.
- Press OK to save the session file.
- Run the session and select Xorg as the Session type.
- Enter your login credentials.
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.
- Desktop Size
To seamlessly reconnect to existing Xvnc sessions, set the desktop size as anything other than 'Work Space'. Depending on the Xmanager window size, the 'Work Space' size will differ. The size of a given X server is set when an RDP session is launched. Thus, if the window size is different, it may be difficult to reconnect to an existing session. - Press OK to save the session file.
- Run the session and select Xvnc as the Session type.
- Enter your login credentials.