Skip to content

Instantly share code, notes, and snippets.

@khanjanny
Created June 13, 2020 22:47
Show Gist options
  • Save khanjanny/f7fed65f733c6622622d1f224dfa28a8 to your computer and use it in GitHub Desktop.
Save khanjanny/f7fed65f733c6622622d1f224dfa28a8 to your computer and use it in GitHub Desktop.
#!/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