Blog

Set up Kali Linux GUI using WSL

Step-by-step guide to installing and configuring Kali Linux GUI on Windows Subsystem for Linux (WSL) for penetration testing and security research.

January 2026·8 min read·Security & Privacy
Set up Kali Linux GUI using WSL

Overview

Windows Subsystem for Linux (WSL) lets you run Linux natively on Windows 10 and 11. Running Kali Linux GUI through WSL gives you access to penetration testing tools and a full desktop environment without dual-booting or heavyweight virtual machines.

Prerequisites

  • Windows 10 version 2004+ (Build 19041+) or Windows 11
  • Administrator privileges
  • At least 20GB free disk space
  • Virtualization enabled in BIOS/UEFI

Step 1: Enable WSL & Install Kali Linux

Open PowerShell as Administrator and run:

powershell
wsl --install -d kali-linux

Restart your PC when prompted to finalize WSL2 installation.

Step 2: Initial Configuration

Launch Kali Linux from Start Menu, create UNIX user/password, and update packages:

bash
sudo apt update && sudo apt upgrade -y

Step 3: Install Desktop Environment (Xfce)

Install the lightweight Xfce desktop:

bash
sudo apt install -y kali-desktop-xfce

Step 4: Configure WSLg

Verify DISPLAY variable is active:

bash
echo $DISPLAY

If blank, run wsl --update in PowerShell as Admin.

Step 5: Start Kali Desktop

Launch Xfce directly with:

bash
startxfce4

Alternatively, use Win-KeX:

bash
sudo apt install -y kali-win-kex
kex --win -s

Step 6: Install Security Tools

Install tool packages as needed:

bash
# Standard metapackage
sudo apt install -y kali-linux-large

# Specific tool categories
sudo apt install -y kali-tools-web kali-tools-wireless kali-tools-forensics

Troubleshooting

  • WSL kernel update needed: Run wsl --update in elevated PowerShell.
  • Blank GUI window: Run wsl --shutdown and re-launch.
  • Virtualization disabled: Enable Intel VT-x / AMD-V in motherboard BIOS.

Subscribe to the Newsletter

Get real-world IT troubleshooting guides, Azure VDI case studies, and sysadmin automation tips in your inbox.

Strict Zero-Spam Promise: Used solely to send technical notes and updates. Never shared, sold, or rented. Complete permanent data deletion upon 1-click unsubscribe. Read our Privacy Policy.

rinkurapria.devAn enterprise IT portfolio & sysadmin registry.
Crafted By@Rapria_Rinku
Source CodeGitHub
StackNext.js · Tailwind CSS
LicenseMIT License
© 2026 Rinku Rapria · Endpoint Engineer
[ENTERPRISE ENDPOINT ARCHITECTURE]
RINKURAPRIA
SYS·NODE: 28.6139° N, 77.2090° E·PROTOCOL: HTTPS/3 QUIC