Xrdp server is an open-source and free Remote Desktop protocol server that controls the virtual or remote system. It provides the graphical communication between the windows and Ubuntu machine. A user can access the remote machine and entertain the real desktop like a local machine.
The Xrdp provides several features to entertain its users such as it transfers the clipboard, mounts the drives of local clients and supports the encryption. This article provides the deep knowledge to learn how to install the Xrdp (remote desktop) server on Ubuntu 22.04.
How to install Xrdp Server (Remote Desktop) on Ubuntu 22.04
Xrdp is a remote desktop server that provides a virtual or remote system for communication between Windows and Ubuntu machines. To Install the Xrdp on Ubuntu 22.04, follow the below-mentioned steps:
Step 1: Update System packages
Before installing the Ubuntu desktop, you should update the system packages repository. To update the system’s repository, run the following command:
$ sudo apt update
The installed packages are updated successfully.
Step 2: Install Xrdp
To install the Xrdp, type and run the following command:
$ sudo apt install xrdp
The no error shows that the Xrdp is installed successfully.
Step 3: Check status of Xrdp server
To check the installation status of Xrdp, run the following given command:
$ sudo systemctl status xrdp
The output shows that the Xrdp service is actively running.
Step 4: Start Xrdp
To start the Xrdb, execute the following command:
$ sudo systemctl start xrdp
Step 5: Enable Xrdp
A user should enable the Xrdp because the enable services automatically start the system after reboot. To enable the application service to execute, run the below mentioned command:
$ sudo systemctl enable xrdp
The application is enabled and ready to use.
Configuring firewall with Xrdp
You can open the Xrdp port by configuring the firewall with Xrdp. To allow the access from any port, type and run the following command:
$ sudo ufw allow from any port to any port 3389
How to Connect to Ubuntu 22.04 through the Xrdp (remote desktop)
After the successful installation and configuration of the firewall, a user can connect to the remote desktop to access the Ubuntu machine. A user can follow the following procedure to connect to the Xrdp remote desktop server.
Search the remote desktop application and open it. Put the ‘IP address’ of your Ubuntu machine and hit the ‘Connect’.
The access is authorised from the IP range. To connect with a remote computer, hit the ‘’Yes’.
This permission will open the Xrdp remote desktop. To login to Xrdp server (remote desktop), add the username and password.
After the login, the remote server is open and ready to use.
You have installed the Xrdp server and also learned to connect the Ubuntu machine through Xrdp server.
How to remove Xrdp server from Ubuntu 22.04
You can also remove the application from Ubuntu whenever you want. However, to uninstall Xrdp server (Remote Desktop) application from Ubuntu, run the following command in terminal:
$ sudo apt remove xrdp
The Xrdp server (Remote Desktop) application was removed successfully from Ubuntu 22.04.
The Xrdp server (Remote Desktop) can be installed from the official repository of Ubuntu 22.04. This article provided a deep insight on how to install the Xrdp server on Ubuntu 22.04. Xrdp server is an open-source and free Remote Desktop protocol that controls the virtual or remote system for communication. We have provided the configuration steps to connect to an Ubuntu 22.04 machine through Xrdp.
The Best Linux Tutorials Website