Install Kali Linux GUI on Windows 10-11 with WSL v2

by | Mar 10, 2022 | Learning

We can run Linux on Windows 10 or 11 without the need virtual machine using the Windows Subsystem for Linux(WSL), and here is the step-by-step method.

For Active Windows Subsystem Linux (WSL):

  1. Go to Control Panel
  2. Programs and Features
  3. Click the Turn Windows features on or off option from the left pane.
  4. Check the Windows Subsystem for the Linux option.
  5. Check the Virtual Machine Platform.
  6. Click OK and restart.

Install (Windows Subsystem for Linux) WSL v2

  • Run Powershell as Administrator.
  • Type this command on Powershell:
# Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Restart the Powershell
  • Now, turn off 3rd party Antivirus & Update the Windows
  • Turn off all applications & Restart Windows.
  • Install the Kali Linux from Microsoft Store:
  • Open the WSL Kali Linux & enter the user, password. Close it by typing ‘exit’.
  • Run again the Powershell as Administrator. Type this following command:

# dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

# dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart

  • And run this command also:

# dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

  • Restart the PowerShell.
  • Download Linux Kernel  and run the setup file.
  • After setup Click finish.
  • Check the WSL2 version by this command ‘wsl –list –verbose’.
  • If all previous steps have been done, now ready to install the GUI
  • Open the Kali Linux by Administrator. Run the following command:

# sudo apt update && sudo apt upgrade -y

  • Now this following command for the Linux desktop environment:
sudo apt install kali-desktop-xfce -y
  • Run the following command:
# sudo apt install xrdp -y
  • After then, run the xrdp service:

# sudo service xrdp start

  • Check the Linux Server IP address:

# ip add

  • Copy from Internet interface. My interface shows 4: eth0 and ip is Copy or noted your interface ip

Now, run mstsc on windows for open Remote Desktop. Pest that Linux IP and click connect and OK button.

  • That’s it. Now login to your Linux GUI by using Username & Password.
  • Click OK to enjoy the Kali GUI on Windows.

Thanks to all.