Easy way to IT Job

How to Install Kali Linux on Windows 11

Published On: December 5, 2022

How to Install Kali Linux on Windows 11

Microsoft is simplifying the installation of the Windows Subsystem for Linux 2 (WSL) on Windows 11 by requiring only one command to download and install all essential components, along with the virtual machine platform and Linux GUI programs. Furthermore, by default, the script installs the most recent Ubuntu distribution. Sharpen your abilities with Softlogic Systems’ Linux Training in Chennai with IBM Certification.

Overview of Kali Linux (Win-Kex)

Win-KeX delivers the following Kali Desktop Experience for Windows Subsystem for Linux (WSL 2):

  • Window mode: launch the Kali Linux desktop in a separate window.
  • Seamless Mode: Share the Windows desktop between Windows and Kali apps and menus in seamless mode.
  • Unprivileged and Root session
  • Support for sound
  • Kali Linux and Windows apps use a clipboard for cut-and-paste capability.
  • Support for multiple sessions: root window, non-priv window, and seamless sessions can all run concurrently.
  • WSLg is fully compatible.

Overview Of Kali Linux

Prerequisites for Installing Kali Linux on Windows 11

  • Windows 10 or Above
  • Windows Terminal

Install Kali Linux in WSL2

  • Open PowerShell as Administrator and execute the below code:

Enable-WindowsOptionalFeature -Onlline -FeatureName Microsoft-Windows-Subsystem-Linux

  • Restart
  • Open PowerShell as administrator and execute the below code

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

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

Install Win-Kex

kali@kali:~$ sudo apt update

kali@kali:~$

kali@kali:~$ sudo apt install -y kali-win-kex

Run with Kex

Following three modes will be supported by Win-Kex

Window Mode :

Window Mode

Run to launch Win-KeX in Window mode with sound support

kex –win -s

 Enhanced Session Mode :

Enhanced Session Mode

Run the following command to launch Win-KeX in Enhanced Session Mode with sound support and an arm workaround.

kex –esm –ip -s

Seamless Mode:

Seamless Mode

Execute this command to launch Win-KeX in seamless mode with sound support.

kex –sl -s

Optional Steps

Why not install “Kali with the lot” if you have the room?

sudo apt install -y kali-linux-large

Sudo Apt Install

  • Create a

Shortcut Window Terminals

Select one from the below options

Basic Win-KeX in Window Mode with Sound

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ececc031d2}”,

“hidden”: false,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –wtstart -s”,

},

Win-KeX Advanced in Window Mode with Sound – Kali Icon and Start in Kali Home Directory :

After copying the kali-menu.png file to your Windows picture directory, add the icon and start directory to your WT configuration:

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ececc031d2}”,

“hidden”: false,

“icon”: “file:///c:/users/<windows user>/pictures/icons/kali-menu.png”,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –wtstart -s”,

“startingDirectory” : “//wsl$/kali-linux/home/<kali user>”

},

Basic Win-KeX in Seamless Mode with Sound

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ececc031d2}”,

“hidden”: false,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –sl –wtstart -s”,

},

Advanced Win-KeX in Seamless Mode with Sound – Kali icon and launch from the Kali home directory :

After copying the kali-menu.png icon and start directory to your Windows picture directory, add them to your WT configuration:

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ececc031d2}”,

“hidden”: false,

“icon”: “file:///c:/users/<windows user>/pictures/icons/kali-menu.png”,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –sl –wtstart -s”,

“startingDirectory” : “//wsl$/kali-linux/home/<kali user>”

},

Basic Win-KeX in ESM mode with Sound

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ecedc031d2}”,

“hidden”: false,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –esm –wtstart -s”,

},

Advanced Win-KeX in ESM Mode with Sound – Kali Icon and Begin in Kali Home Directory

Now, copy the kali-menu.png icon to your Windows picture directory, then add the icon and start directory to your WT configuration:

{

“guid”: “{55ca431a-3a87-5fb3-83cd-11ecedd031d2}”,

“hidden”: false,

“icon”: “file:///c:/users/<windows user>/pictures/icons/kali-menu.png”,

“name”: “Win-KeX”,

“commandline”: “wsl -d kali-linux kex –esm –wtstart -s”,

“startingDirectory” : “//wsl$/kali-linux/home/<kali user>”

},

Win Kex
Win Kex Session Active
Win Kex Session
Help

For more info, please contact:

kex –help

on check the manpage through:

man kex

User Commands

Conclusion

There are advantages to installing Kali Linux alongside a Windows system. However, you must be cautious during the setting process. First, ensure that any vital data on your Windows system has been backed up. Because you will be updating your hard drive, you should save this backup on external storage. Learn how to work efficiently Linux OS on Windows through our Linux Training in Chennai with Placement Assistance at Softlogic Systems.

Just a minute!

If you have any questions that you did not find answers for, our counsellors are here to answer them. You can get all your queries answered before deciding to join SLA and move your career forward.

We are excited to get started with you

Give us your information and we will arange for a free call (at your convenience) with one of our counsellors. You can get all your queries answered before deciding to join SLA and move your career forward.