Results 1 to 4 of 4

Thread: Easy way to get xrdp to work for Kali on WSL or HyperV

  1. #1
    Join Date
    2018-Aug
    Posts
    2

    Easy way to get xrdp to work for Kali on WSL or HyperV

    After burning way too many hours looking for an answer I decided to actually solve my own problem.

    Root cause appears to be that xorgxrdp is no longer included in the distro. I've tested this on WSL and HyperV on Win10 with success.

    Start off with getting everything up to date and tweak the listening port for xrdp:
    apt-get update && apt-get upgrade && apt-get dist-upgrade
    apt-get install kali-desktop-xfce xorg xrdp
    sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini #Critical that you do this up if you are WSL if 3389 is in use
    Next we need to get some tools and build xorgxrdp
    apt-get install git autoconf automake libtool pkg-config nasm gcc make xserver-xorg-dev
    cd xorgxrdp
    ./bootstrap
    ./configure
    make
    make install

    Last step needed is to tweak /etc/xrdp/startwm.sh

    Comment out the last two lines in the file
    #test -x /etc/X11/Xsession && exec /etc/X11/Xsession
    #exec /bin/sh /etc/X11/Xsession
    and add
    startxfce4

    start xrdp
    /etc/init.d/xrdp start

    Run mstsc.exe and point to 127.0.0.1:3390 if on WSL, or IP of guest vm and configured port of choice.

    Hope this helps.
    Last edited by bardsec; 2019-04-22 at 20:02.

  2. #2
    Join Date
    2018-Oct
    Posts
    1
    get clone https://github.com/neutrinolabs/xorgxrdp.git


    did you mean GIT clone instead of GET?

  3. #3
    Join Date
    2019-Mar
    Posts
    1
    git, without any doubts

  4. #4
    Join Date
    2018-Aug
    Posts
    2
    LOL... thanks.

Similar Threads

  1. How to set up xrdp on the AWS Kali image
    By schroeder in forum How-To Archive
    Replies: 4
    Last Post: 2018-03-27, 10:59
  2. getting XRDP to work on Kali (Raspberry Pi)
    By WEP in forum General Archive
    Replies: 1
    Last Post: 2015-10-29, 08:32
  3. Connect to Kali Linux using Remote Desktop with XRDP
    By Michaelvas17 in forum General Archive
    Replies: 0
    Last Post: 2015-06-22, 15:22
  4. Issues with using XRDP - Kali Linux
    By WEP in forum Installing Archive
    Replies: 1
    Last Post: 2015-03-13, 15:02

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •