How To Install xrdp on Kali Linux
Introduction
In this tutorial we learn how to install xrdp on Kali Linux.
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 Kali Linux. 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 updateAfter updating apt database, We can install xrdp using apt-get by running the following command:
sudo apt-get -y install xrdpInstall xrdp Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install xrdp using apt by running the following command:
sudo apt -y install xrdpInstall xrdp Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install xrdp using aptitude by running the following command:
sudo aptitude -y install xrdpHow To Uninstall xrdp on Kali Linux
To uninstall only the xrdp package we can use the following command:
sudo apt-get remove xrdpUninstall xrdp And Its Dependencies
To uninstall xrdp and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove xrdpRemove xrdp Configurations and Data
To remove xrdp configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge xrdpRemove 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 xrdpDependencies
xrdp have the following dependencies:
- init-system-helpers
- adduser
- lsb-base
- ssl-cert
- libc6
- libfuse2
- libjpeg62-turbo
- libopus0
- libpam0g
- libssl1.1
- libx11-6
- libxfixes3
- libxrandr2
References
Summary
In this tutorial we learn how to install xrdp package on Kali Linux using different package management tools: apt, apt-get and aptitude.