Kali-WSL2

 Install Kali Linux on Windows 11 using WSL2 by running


 wsl --install -d kali-linux


 in PowerShell,


 creating a user,


 then installing the Win-KeX graphical desktop via


 sudo apt update && sudo apt install -y kali-win-kex


 Launch the GUI desktop environment using


 kex --win -s 


in the Kali terminal for a seamless Windows experience. 


Step-by-Step Installation Guide

Enable WSL2: Open PowerShell as Administrator and run 


wsl --install


 Restart your computer if prompted.


Install Kali Linux: 


Run


 wsl --install -d kali-linux


 in PowerShell.


Initial Setup: 

 

A new window will appear to complete installation; 


create a new Unix username and password.

______________________

Update Kali: 

----------------------------------

Run 


sudo apt update && sudo apt full-upgrade -y 


to ensure all tools are current.

(update the OS and also update all apps and software in OS)

-------------------------------------------------

Install Win-KeX (GUI):


 Install the Kali Desktop Experience using:


sudo apt install -y kali-win-kex


Open as Desktop:


Window Mode: 


 Run


 kex --win -s 


in the terminal for a windowed desktop.


Seamless Mode:


 Run 


kex --sl -s 


for a seamless desktop with a panel.

------------

Exit: 

------------

 Close the Win-KeX window


 or


 run


 kex --exit 


in the terminal. 


------------------------------------

Key Commands

-------------------------------------

Launch GUI:


 kex



Launch GUI (Fullscreen):


 kex --win -s



Stop GUI:


 kex --exit


Check running distros: 


wsl -l --running 


Ensure your Windows 11 system is fully updated to support GUI apps (WSLg). 

Comments

Popular Posts