How to RDP: Linux to Windows 10 - After Economics

How to Remote desktop Linux from Windows?

Linux / February 16, 2018

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:

  • Apt-get update && apt-get upgrade
  • Apt-get dist-upgrade
  • 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:

  • Service xrdp start
  • Service xrdp-sesman start (Thanks to Greg for pointing that out) — UPDATE!!
  • If want it to auto start after reboot you need to run this command also:
    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):

  • Apt-get remove gnome-core
  • apt-get install lxde-core lxde kali-defaults kali-root-login desktop-base
  • update-alternatives –config x-session-manager

  • Choose /usr/bin/startlxde
  • After this you need to reboot and the RDP should work “perfectly”

    A full list of windows managers can be found here:

    Update :
    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.