Situatie
Understanding the Components
Before installation, it is important to understand what each component does.
WSL (Windows Subsystem for Linux)
WSL is a compatibility layer developed by Microsoft that enables Linux distributions to run directly on Windows.
WSL2
WSL2 uses a lightweight virtualization technology and provides better filesystem performance and Linux compatibility.
Kali Linux
Kali Linux is a Debian-based Linux distribution widely used for penetration testing, digital forensics, and security research.
Solutie
Step 1: Open Windows PowerShell as Administrator
Open the Start Menu and search for:
PowerShell
Right-click and select:
Run as Administrator
Press enter or click to view image in full size

Step 2: Install WSL
Execute the following command:
wsl --install
The installation process automatically:
- Enables required Windows features
- Downloads WSL2 components
- Installs Ubuntu by default
- Configures Linux integration
After installation completes, restart the system if prompted.
Press enter or click to view image in full size

Step 3: Verify WSL Installation
After restart, verify installation:
wsl -l -v
Expected output:
NAME STATE VERSION
Ubuntu Running 2
This confirms:
- WSL is functioning correctly
- Version 2 is active
Step 4: Install Kali Linux Distribution
Install Kali Linux directly:
wsl --install -d kali-linux
Windows downloads and installs Kali Linux automatically.
Alternatively, Kali Linux can also be installed from Microsoft Store.
Step 5: Create Default Unix User
On first launch, Kali Linux asks for:
Create a default Unix user account:
New password:
Retype new password:
This account is separate from your Windows account.
Important observations:
- The password will not appear while typing
- Windows credentials are not reused automatically
- Username and password belong only to Kali Linux
Example:
Username: researcher
Password: ********
Press enter or click to view image in full size

Step 6: Launch Kali Linux
Start Kali:
wsl -d kali-linux
Or simply:
wsl
If Kali is configured as default.
Expected terminal:
┌──(user㉿hostname)-[~]
└─$
Step 7: Update the System
Update package repositories:
sudo apt update
sudo apt upgrade -y
This ensures latest package information and security updates are installed.
Step 8: (Optional) Installing Win-Kex GUI
WSL primarily provides command-line functionality. So For a graphical Kali desktop may install Win-Kex.
Install:
sudo apt install kali-win-kex
Press enter or click to view image in full size

Launch:
kex


This will start Kali linux in GUI mode.
Press enter or click to view image in full size

Win-Kex installs additional desktop components and consumes more storage. For beginners focusing on Linux commands and security fundamentals, the terminal environment is sufficient.
Advantages of WSL2 Compared with Virtual Machine
- Lower RAM consumption than Virtual Machine
- Faster startup and shutdown time
- Better integration with the Windows environment
- Reduced storage usage and lightweight setup
- Easier file access and sharing between Windows and Linux systems.
Leave A Comment?