What is wsl2 ?
WSL 2 is a new version of the architecture that powers the Windows Subsystem for Linux to run ELF64 Linux binaries on Windows. Its primary goals are to increase file system performance, as well as adding full system call compatibility.
What is the advantage of installing kali linux on windows 10?
The main advantage is you don’t need to go through a long process to dual boot your system and also you can use both your linux and windows at the same time.
So let’s start the installation:- (video attatched at the bottom of the post)
Step 1: Open power shell as an administrator
Step 2: Enter the following commands
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Now restart your pc.
Step 3: Download the linux kernal update package
By clicking this link download and intall the file.
Step 4: open your power shell and type this command
wsl –set-default-version 2
Step 5: open your windows store in order to download and install kali linux
After installing, Launch the app and set your User Id and password
Step 6: Update and Upgrade all the packages by typing this command
sudo apt update && sudo apt upgrade -y
Done.. You have installed and updated kali linux on your windows 10.
Now to download the GUI (graphical user interface) :-
Step 1: Type this command
sudo apt install kali-win-kex -y
This process will take around 15-20 minutes…
Step 2: launch the GUI by typing kex
When you will launch kex for the first time you will need to setup 6 digit passcode then you are all set.
Kali linux is now up and running on your windows 10 using wsl2 and kex.
Tip:- After launching kex if you see an error or black screen type kex stop and then type sudo kex again to start.