How to Install and Uninstall xrdp Ubuntu 22.04

Updated: September 23, 2022

xrdp offers a graphical login to a remote client using RDP (the Remote Desktop Protocol). xrdp can connect to a locally created X.org session with the xorgxrdp drivers, to a VNC X11 server, and forward to another RDP server. I will show you how to install xrdp on Ubuntu 22.04 in this tutorial.

Prerequisites to install

  • Operating system: Ubuntu 22.04 or older versions with more than 2GB RAM
  • Privileges: Ascertain that you are able to execute sudo commands.

Prerequisites to install xrdp on Ubuntu 22.04

Install xrdp Ubuntu 22.04

xrdp is one of the popular ways on Ubuntu now so that this tutorial will show you how to install it in various ways. Choose the one that you think is easy and you can follow.

Install xrdp using APT

This is a popular method for installing Ubuntu packages since it’s simple to understand, even if you’re new to Linux. Following these instructions to get xrdp on your Ubuntu.

Step 1: The APT package repository cache needs to be updated before you try to install, update, or remove any packages. Update the APT database to download new packages from Ubuntu. Launch the terminal and enter the following Linux command:

sudo apt -y update

Step 2: Install the package on Ubuntu 22.04. After updating the system, you can now install xrdp Ubuntu by pasting this command into the terminal and pressing Enter.

sudo apt-get install xrdp

Install xrdp using Aptitude

With Aptitude, users can view a list of available packages and manage their installation, upgrade, and removal of packages. If you didn’t install it on Ubuntu, you need to install it by executing this command.

sudo apt install aptitude

After installing it, you can now install xrdp by following these steps:

Step 1: You must update the APT package repository cache before attempting to install, update, or remove any packages. Obtain new packages from Ubuntu by updating the APT database. Opening the terminal and executing the following Linux command:

sudo apt -y update

Step 2: Start the package installation on Ubuntu 22.04. After updating, you can install xrdp Ubuntu by pasting this command into the terminal and pressing Enter.

sudo aptitude install xrdp

Uninstall xrdp on Ubuntu 22.04

Have you ever thought that uninstalling an application from Ubuntu might be challenging? You’re wrong; any program, not just a xrdp, can be easily uninstalled by anyone.

You can uninstall xrdp Ubuntu by running this command if you installed it using APT or Aptitude.

sudo apt remove --auto-remove xrdp

If you want to uninstall xrdp and remove its data and dependencies, you can also run the following command:

sudo apt autoremove --purge xrdp

Ending

In this tutorial, I showed you ways to install xrdp on Ubuntu 22.04 and some ways to uninstall xrdp too. Please do not hesitate to contact me if you require any assistance. I’m delighted to respond to them.