XRDP is a free program for Microsoft RDP that allows remote desktop connections to Linux operating systems. You may encounter the ‘Kali Linux XRDP Not Working’ Error after installing this program on your Kali Linux. This article will teach you How to Solve the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily. If you intend to buy a Linux VPS server, you can check out the packages offered on the Eldernode website.
To manage Kali Linux remotely, SSH service and command line is generally used, but you may be interested in being able to remote control the Kali Linux graphical environment like Windows. In this case, Xrdp software is your solution. XRDP is an open-source version of the Microsoft Remote Desktop Protocol that allows you to graphically control a remote system. If you encounter the ‘Kali Linux XRDP Not Working’ Error, follow the steps below to solve it quickly and easily.
How to Solve the ‘Kali Linux XRDP Not Working’ Error
This may have happened because Remote Desktop on Kali Linux is not enabled with XRDP. To enable the Remote desktop with XRDP, follow the steps below.
Firstly, open your terminal and update your system using the following command:
sudo apt update
sudo apt upgrade
Check if XRDP is installed on your system with the command below:
sudo apt install xrdp
Now you should install tigervnc which helps to circumvent a bug on XRDP:
sudo apt install tigervnc-common
sudo apt install tigervnc-scraping-server
sudo apt install tigervnc-standalone-server
sudo apt install tigervnc-viewer
sudo apt install tigervnc-xorg-extension
Add the user as shown below:
sudo adduser xrdp ssl-cert
Now add the below content to the xsession file:
sudo echo xfce4-session > /etc/.xsession
Open the startwm.sh file using your desired text editor:
And remove the shown lines from the end of the document:
test -x /etc/X11/Xsession && exec /etc/X11/Xsession exec /bin/sh /etc/X11/Xsession
Then add the following string to the end of the document:
Save the file and close it.
Lastly, enable and start the XRDP service using the command below:
sudo systemctl enable xrdp
sudo systemctl start xrdp
Open the RDP client and try to log in. Enter your username and password and remember to choose Xvnc session from the dropdown menu:
In this article, we introduced you to the ‘Kali Linux XRDP Not Working’ Error and taught you how to solve it quickly and easily. I hope this tutorial was useful for you and helps you to solve this Error. If you face any problems, you can ask us in the Comments section.