How to Remote desktop Linux from Windows?
Say what? This is probably well known by people that knows Linux a little more than average. I often have Kali Linux running on Hyper-V and I often struggle with resolution using the native Hyper-V console. After a little research I found out that I can install xrdp on the Kali machine and be able to RDP directly into the Kali machine. This post is meant as a reminder to myself on how to do this later in life….
The following steps assumes that you have installed Kali Linux from the latest ISO and did the update procedure:
In order to install the RDP server you run the following command from a terminal window:
After xrdp is installed you can start the server with the following command:
update-rc.d xrdp enable (It will not start xrdp-sesman automatic)
Now you should be able to RDP directly into your Kali Linux:
The only problem is that right now there is a bug in the distro (kali/debian with GNOME) causing both VNC and RDP to cause this error message after login:
(UPDATE: In newer Kali versions this screen is not present. Instead nothing is happening)
The only way I found that fixes this is to uninstall the Gnome-desktop and use another window manager (I use LXDE):
update-alternatives –config x-session-manager
After this you need to reboot and the RDP should work “perfectly”
A full list of windows managers can be found here:
There seems to be an issue that causes protocol error. This is if you use 32 bit color depth in the RDP client. Use a lower number and you should be good.