26 C
Guru Unix /Linux and GNU supporter

Run Kali Linux on Windows 10

Windows 10 is the latest and by far, the best Windows edition of all. It comes up with built-in support for Linux as a subsystem. Very recently, Kali Linux is also available to run from Windows 10. Let’s take a look how to get your hand on Kali.

Install Prerequisites

The first and top priority is to update your Windows. Run Windows Update and make sure that everything’s up-to-date. Then, the very first tools we need to install Kali Linux on Windows are Python and Git. These are the important tools. Download Python and Git. After the download is complete, install them. Then, make sure that the tools are available in the system’s PATH. Run the following commands to ensure:

python -V [Check Python installation]
git       [Check Git installation]

Python command will show up the following result:

- Advertisement -

Git command will show you the following result:

Enabling Windows Subsystem for Linux (WSL)

In order to use Linux on Windows 10, you have to enable the WSL feature first. Take a look at this step-by-step guide on how to enable WSL on Windows 10.

Alternatively, you can enable the feature via command line in PowerShell. Here’s how to do it.

  • Press “Win + X” to open the WinX menu.
  • Click “Windows PowerShell (Admin)”.

  • From the opened console, run the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  • Restart your computer.

Install Kali Linux

Now, we have to install the Ubuntu first. Open an elevated Command Prompt and run the following command:

lxrun /install

The above command will install the foundation of Kali Linux. Now begins the critical part. We have to download & install the WSL Switcher, download a Kali base, extract & install it. Continue running the following commands continuously. Make sure that you run the commands after the previous one completes successfully.

git clone https://github.com/RoliSoft/WSL-Distribution-Switcher.git
cd WSL-Distribution-Switcher
python get-prebuilt.py kalilinux/kali-linux-docker
python install.py rootfs_kalilinux_kali-linux-docker_latest.tar.gz
lxrun /setdefaultuser root

Running Kali Linux

After the installation is complete, you have to start setting up Kali. Let’s get started.

  • Open an elevated Command Prompt.
  • Run the following command:
  • Run these commands to update Kali Linux to the latest version.
export LANG=C
apt-get update
apt-get dist-upgrade

There are also other works to do. In this official tutorial from Kali, the workflow is explained very easily.

Easy method

After enabling WSL on your Windows, go to Microsoft Store and install Kali Linux. Then, start using Kali from the Command Prompt using the following command:


Here’s another official Kali tutorial on installing Xfce4 on Kali.

- Advertisement -
Everything Linux, A.I, IT News, DataOps, Open Source and more delivered right to you.
"The best Linux newsletter on the web"


Please enter your comment!
Please enter your name here

Latest article