To enable WSL in Windows 10, open PowerShell as an administrator and run the following command:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
To install WSL, open a new PowerShell window as an administrator and run the following command:
wsl --install
To set WSL 2 as the default version of WSL, open PowerShell as an administrator and run the following command:
wsl --set-default-version 2
To install Kali Linux, run the following command in a PowerShell window:
wsl --install -d kali-linux
To install the Kali Linux desktop environment (XFCE), run the following command:
sudo apt install kali-win-kex -y
Or u can use, kali-tweaks to install as per ur requirement.
kali-tweaks
To start the Kali Linux desktop environment (XFCE), run the following command:
kex --win -s
To install the Zsh shell, run the following command:
sudo apt install zsh*
To set Zsh as the default shell, run the following command:
chsh -s $(which zsh)
Here, run the following command:
sudo apt install -y kali-linux-large
That's it! You should now have Kali Linux installed in WSL with optional GUI and Zsh shell support. Your computer has now become a lethal weapon! 💣🚀💥