Skip to content

Instantly share code, notes, and snippets.

@nicholasadamou
Created May 23, 2018 12:57
Show Gist options
  • Save nicholasadamou/252c46427f454a662f0a455c54b0c75c to your computer and use it in GitHub Desktop.
Save nicholasadamou/252c46427f454a662f0a455c54b0c75c to your computer and use it in GitHub Desktop.
Install xfce4 on Kali Linux WSL to be used with an XRDP client on Windows.
#!/bin/bash
echo "[+] Installing XFCE4, this will take a while"
sudo apt update
sudo apt dist-upgrade -y --force-yes
sudo apt --yes --force-yes install kali-desktop-xfce xorg xrdp
echo "[+] Configuring XRDP to listen on port 3390 (but not starting the service)..."
echo "[+] To start the service run: sudo /etc/init.d/xrdp start"
sudo sed -i 's/port=3389/port=3390/g' /etc/xrdp/xrdp.ini
sudo echo "alias startx=\"sudo /etc/init.d/xrdp start\"" > ~/.bash_aliases
sudo echo "alias stopx=\"sudo /etc/init.d/xrdp stop\"" > ~/.bash_aliases
source ~/.bash_aliases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment