Get AI summaries of any video or article — Sign up free
Kali Linux on Windows in 5min (WSL 2 GUI) thumbnail

Kali Linux on Windows in 5min (WSL 2 GUI)

NetworkChuck·
4 min read

Based on NetworkChuck's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.

TL;DR

Confirm Windows 10 version 2004+ (Windows 10 Home is sufficient) before attempting WSL 2.

Briefing

Kali Linux can run inside Windows 10 as a full Linux environment using WSL 2—complete with a graphical desktop you can access through Remote Desktop—turning a security-focused distro into something that behaves like a Windows app. The practical payoff is straightforward: once WSL 2 is set up with a Linux kernel and a GUI stack (XFCE plus Xrdp), users can log into Kali from their Windows machine and run familiar tools without dual-booting or a separate VM.

The setup starts with meeting Windows requirements: Windows 10 Home is acceptable, but the system needs version 2004 (or newer). Users confirm their build by searching for “winver,” then install updates if needed. Next comes enabling WSL and virtualization support through PowerShell run as administrator. After that, the machine is restarted, and the WSL 2 kernel package is updated by downloading the latest kernel installer from Microsoft’s WSL resources and running the installation wizard.

With WSL 2 ready, the workflow shifts to installing Kali Linux from the Microsoft Store. Kali appears as a standard app: users can search for “Kali Linux,” install it, and launch it to create a username and password. At this stage, Kali runs in a terminal-only mode, so the next step is turning it into a desktop environment. System updates are performed with apt (including an upgrade), then a desktop environment is installed using “Kali desktop xfce.” The transcript also verifies WSL is actually running version 2 using “wsl --list --verbose,” confirming the environment is on WSL 2 rather than WSL 1.

To make the GUI accessible remotely, the process installs and starts Xrdp. After Xrdp is running, the user retrieves the Kali environment’s IP address (via “ip address”), then opens “Remote Desktop Connection” on Windows and connects using the Kali login credentials. The result is a working Kali GUI session inside Windows, described as bare-bones at first but functional.

To demonstrate capability, the session installs and runs the Harvester—an information-gathering tool often used for reconnaissance. Using a target domain (David bomble.com) and Google as the source, it returns results such as discovered emails and subdomains. The takeaway is that WSL 2 plus a lightweight desktop (XFCE) and Xrdp can deliver a usable Kali workstation on Windows, with remote access and real security tooling—without leaving the Windows environment.

Cornell Notes

WSL 2 lets Kali Linux run on Windows 10 with a real Linux kernel and a GUI session accessible from Windows. After updating Windows to version 2004+ and enabling WSL/virtual machine features in PowerShell, users install the WSL 2 kernel package and set WSL 2 as the default. Kali Linux is then installed from the Microsoft Store and configured with a desktop environment (XFCE) via apt. Finally, installing and starting Xrdp enables Remote Desktop access to the Kali GUI, using the Kali IP address and the Kali login credentials. The setup is validated by checking WSL version with “wsl --list --verbose,” then demonstrated with the Harvester tool for reconnaissance.

What Windows prerequisites and setup steps ensure WSL 2 works correctly before installing Kali?

The transcript requires Windows 10 Home with version 2004 (or higher). Users verify the build using “winver,” then install updates if needed. WSL is enabled through PowerShell run as administrator, including turning on the virtual machine feature. After enabling WSL, the system is restarted. Then the WSL 2 kernel package is updated by downloading the latest WSL kernel installer and running the installation wizard. A final PowerShell command sets WSL 2 as the default so Kali runs on WSL 2 rather than WSL 1.

How does Kali get installed on Windows, and what happens immediately after installation?

Kali Linux is installed from the Microsoft Store like an app. After searching for “Kali Linux,” users install it and launch it to set a username and password. Immediately afterward, Kali runs in a terminal environment; the transcript notes there’s no GUI by default, so additional packages are required to create a desktop environment.

Which commands are used to turn Kali into a GUI environment, and what desktop is chosen?

First, the system is updated and upgraded using apt (including “apt update” and “apt upgrade -y”). Then the desktop environment is installed with “sudo apt install Kali desktop xfce -y.” XFCE is the chosen lightweight desktop. The transcript also checks that WSL is version 2 using “wsl --list --verbose,” then proceeds once the environment is confirmed.

How is remote GUI access enabled, and how does the user connect from Windows?

Remote access is enabled by installing Xrdp (“sudo apt install xrdp”), then starting the service (“sudo service xrdp start”). The user finds the Kali IP address using “ip address,” then opens “Remote Desktop Connection” on Windows and enters that IP. The login uses the username and password created when Kali was first launched from the Store.

What reconnaissance demonstration is run after the GUI is working?

The session installs and runs the Harvester, described as a tool for gathering information about companies or hacking targets. The example uses the domain David bomble.com with Google as the source. The output includes discovered emails and subdomains, illustrating that Kali tools function normally within the WSL 2 + GUI setup.

Review Questions

  1. Why is updating the WSL 2 kernel package necessary, and what could go wrong if WSL 2 isn’t properly set as the default?
  2. What roles do XFCE and Xrdp play in making Kali’s GUI accessible from Windows?
  3. How does the Harvester example demonstrate that the WSL-based Kali environment is fully usable for security workflows?

Key Points

  1. 1

    Confirm Windows 10 version 2004+ (Windows 10 Home is sufficient) before attempting WSL 2.

  2. 2

    Enable WSL and virtualization features in PowerShell as administrator, then restart the machine.

  3. 3

    Install the latest WSL 2 kernel package from Microsoft’s WSL kernel installer and complete the wizard.

  4. 4

    Set WSL 2 as the default in PowerShell so Kali runs on WSL 2.

  5. 5

    Install Kali Linux from the Microsoft Store, then create a Kali username and password during first launch.

  6. 6

    Add a desktop environment (XFCE) and install Xrdp to enable Remote Desktop access to the Kali GUI.

  7. 7

    Use the Kali IP address and Remote Desktop Connection with the Kali credentials to log into the GUI session.

Highlights

Kali Linux can be installed from the Microsoft Store and launched like an app, but it still needs extra packages to get a GUI.
Installing “Kali desktop xfce” plus Xrdp turns a terminal-only Kali into a remotely accessible desktop.
Verifying “wsl --list --verbose” confirms whether Kali is truly running on WSL 2.
Once connected via Remote Desktop, Kali tools like the Harvester run normally for reconnaissance tasks.

Topics

  • WSL 2 Setup
  • Kali Linux GUI
  • XFCE Desktop
  • Xrdp Remote Desktop
  • Security Recon Tools

Mentioned

  • WSL
  • WSL 2
  • GUI
  • IP
  • XFCE
  • Xrdp