- Open PowerShell as Administrator and run the following commands:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
- Restart your computer.
- Open PowerShell as Administrator and run:
wsl --set-default-version 2
- Download Windows Terminal from the Microsoft Store for an enhanced terminal experience.
- Open the Microsoft Store, search for "Kali Linux," and install it.
- Alternatively, install via PowerShell:
wsl --install -d kali-linux
- Once installed, launch Kali Linux from the Start Menu or Windows Terminal.
- Upon first launch, it will take some time to set up the file system.
- Set a username and password when prompted.
- Update the package manager and upgrade the distribution:
sudo apt update && sudo apt upgrade -y
To install additional penetration testing tools, use the kali-tools
metapackages:
- For a full installation:
sudo apt install kali-linux-large
- For specific tools:
sudo apt install <tool-name>
- Check the WSL version:
Ensure
wsl --list --verbose
kali-linux
is set to version 2.
- To access graphical applications, you can install an X server like VcXsrv or use WSLg (Windows Subsystem for Linux GUI).
- If you need to run services like Apache or SSH, start them manually in Kali:
sudo service apache2 start sudo service ssh start
Enjoy using Kali Linux on Windows 11 with WSL2!
For GUI Mode
sudo apt install kali-win-kex
Enable/Disable