How To Install xrdp on Ubuntu 18.04

In this tutorial we learn how to install xrdp on Ubuntu 18.04. xrdp is Remote Desktop Protocol (RDP) server

Introduction

In this tutorial we learn how to install xrdp on Ubuntu 18.04.

What is xrdp

xrdp is:

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.

xrdp accepts connections from freerdp, rdesktop, and the built-in terminal server / remote desktop clients of Microsoft Windows operating systems. In the xorgxrdp (which replaces X11RDP) and VNC modes, it provides a fully functional Linux terminal server, offering an X-Window desktop to the user. In the RDP or VNC forwarding mode, any sort of desktop can be used.

There are three methods to install xrdp on Ubuntu 18.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install xrdp Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install xrdp using apt-get by running the following command:

sudo apt-get -y install xrdp

Install xrdp Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install xrdp using apt by running the following command:

sudo apt -y install xrdp

Install xrdp Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install xrdp using aptitude by running the following command:

sudo aptitude -y install xrdp

How To Uninstall xrdp on Ubuntu 18.04

To uninstall only the xrdp package we can use the following command:

sudo apt-get remove xrdp

Uninstall xrdp And Its Dependencies

To uninstall xrdp and its dependencies that are no longer needed by Ubuntu 18.04, we can use the command below:

sudo apt-get -y autoremove xrdp

Remove xrdp Configurations and Data

To remove xrdp configuration and data from Ubuntu 18.04 we can use the following command:

sudo apt-get -y purge xrdp

Remove xrdp configuration, data, and all of its dependencies

We can use the following command to remove xrdp configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge xrdp

References

Summary

In this tutorial we learn how to install xrdp package on Ubuntu 18.04 using different package management tools: apt, apt-get and aptitude.