Created
May 19, 2018 08:52
-
-
Save AnoRebel/fd9656ce173fc2d2e678541feb5c7537 to your computer and use it in GitHub Desktop.
Installing Kali-Xfce on WSL
This file contains hidden or 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
=| Kali Linux on Win 10 |= | |
[First Install] | |
sudo cat /etc/issue | |
sudo apt-get update | |
sudo apt-get dist-upgrade (y) | |
sudo apt-get install webshells [you may need to allow access via defender / smartscreen] | |
sudo apt-get clean | |
sudo apt-get install webshells [re-do if first time blocked by defender / smartscreen] | |
ls -l /usr/share/webshells/ | |
sudo wget https://kali.sh/xfce4.sh | |
sudo cat xfce4.sh | |
sudo sh xfce4.sh | |
sudo /etc/init.d/xrdp start | |
sudo /etc/init.d/xrdp stop (ogni qualvolta non si dovrà utilizzare la GUI di Kali Linux) | |
# Upgrade OS | |
sudo apt-get update -y && apt-get upgrade -y | |
sudo apt-get dist-upgrade -y | |
sudo apt-get install xrdp lxde-core lxde tigervnc-standalone-server -y | |
sudo update-alternatives --config x-session-manager | |
# choose xfce4-session | |
# edit xrdp.ini | |
sudo nano /etc/xrdp/xrdp.ini | |
autorun=sesman-any | |
max_bpp=16 | |
[sesman-any] | |
ip=127.0.0.1 | |
# changed username and password to the kali user | |
# Mod access permission | |
sudo nano /etc/X11/Xwrapper.config | |
allowed_users=anybody | |
# edit sesman.ini | |
sudo nano /etc/xrdp/sesman.ini | |
[Globals] | |
ListenAddress=127.0.0.1 | |
ListenPort=3390 | |
EnableUserWindowManager=true | |
UserWindowManager=startwm.sh | |
DefaultWindowManager=startwm.sh | |
# start services | |
sudo service xrdp start | |
sudo service xrdp-sesman start | |
# conf services | |
sudo update-rc.d xrdp enable | |
sudo systemctl enable xrdp-sesman.service | |
[First GUI Start] | |
Open terminal | |
sudo cat /etc/issue |
pls i need help
any time i type sudo sh xfce4.sh it shows me syntax error: redirection unexpected
I'm getting the same error maybe it's becz we are on windows and this is mac specific
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
any time i type sudo sh xfce4.sh it shows me syntax error: redirection unexpected