Install Kali Linux GUI in windows WSL 2

Dr. Gupta
2 min readOct 11, 2021

what is Kali Linux GUI?

GUI stands for Graphical user interface, after the release of Windows WSL 2, now it has been possible to use Kali Linux as in GUI.

Sometimes, the command line interface doesn’t fulfill all our work criteria and we miss the graphical interface of Kali Linux especially if you are using Kali Linux inside windows WSL.

Today, I am going to show you how it can be possible to run Kali Linux as we used to run it in dual mode or as a primary host OS.

What is Win-KeX ?

Win-KeX provides a full Kali Desktop Experience for Windows WSL 2. Applications started via Kali’s panel will share the desktop with Microsoft Windows applications.

Steps to Install:

  • Open Kali Linux in windows and run below commands:
sudo apt update
sudo apt install -y kali-win-kex

Run Win-KeX — 3 modes :

  1. Window Mode:

Window Mode will run a Kali Linux desktop session in a separate window. It helps keeping the Windows and Kali environments visually apart. Win-KeX utilises TigerVNC for its client and server components. To start Win-KeX in Window mode with sound support, runkex --win -s

  • To close the Win-KeX client, press “F8” and select “Exit viewer”

2. Enhanced Session Mode:

To start Win-KeX in Enhanced Session Mode with sound support and arm workaround, run

kex --esm --ip -s

3. Seamless mode:

To start Win-KeX in Seamless mode with sound support, run

kex --sl -s

To stop win-KeX server:

  • Press “F8” and select “Exit viewer” and

kex --stop in kali linux terminal.

I personally love to use ‘windows mode ‘ and ‘seamless mode’.

Thanks for reading.

--

--

Dr. Gupta

ll Insomniac Doctor loves Terminal || #Security_Researcher #DayTrader || Learn and Earn || #Web3_Doctor || Rookie Smart Contract Dev & Security Researcher ||