Created
June 13, 2020 22:47
-
-
Save khanjanny/f7fed65f733c6622622d1f224dfa28a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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