Advance

Solving the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily

Solving the ‘Kali Linux XRDP Not Working’ Error Quickly and Easily
4.7
(3)

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.

Recommended Article: How to Install and Use Recon-ng on Kali Linux

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:

vim /etc/xrdp/startwm.sh

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:

startxfce4

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:

 

Login-KaliLinux-using XRDP

 

That’s it!

Recommended Article: Introducing And Install Cuckoo On Kali Linux

Conclusion

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.

How useful was this post?

Click on a star to rate it!

Average rating 4.7 / 5. Vote count: 3

No votes so far! Be the first to rate this post.

View More Posts
Marilyn Bisson
Content Writer
Eldernode Writer
We Are Waiting for your valuable comments and you can be sure that it will be answered in the shortest possible time.

    Leave Your Comment

    Your email address will not be published.

    We are by your side every step of the way

    Think about developing your online business; We will protect it compassionately

    We are by your side every step of the way

    +8595670151

    7 days a week, 24 hours a day