top of page

How to install Kali Linux on windows 10 subsystem (Step by step guide)

Thinking about run Linux distro on Windows PC? Ya, it’s possible with the latest Windows 10 Microsoft has introduced Windows Subsystem for Linux, or WSL, where users run their favorite Linux distributions directly from Windows 10 without dual-booting or using a virtual machine. It’s worth noting that there are some limitations. Such as not all the inherent Linux commands work, you won’t be able to run a desktop environment from within the app. You can still install the desktop environment, such as Xfce, and then install a remote desktop service that allows you to connect to the Linux-driven desktop environment from within the app and all from Windows 10. Interested? here, we have steps to install kali Linux (one of the best distros for security) on windows 10.

Contents

Install WSL on Windows 10

With Windows 10 creators update Microsoft introduced Windows Subsystem for Linux (WSL) as an optional feature that provides a compatibility layer for running Linux binary executables natively on Windows 10 PC. That means Enable WSL service provides a Linux compatible kernel for running different Linux distros, such as Ubuntu, OpenSUSE, Debian and Kali on Windows 10.

  1. Let’s navigate the control panel.

  2. Go to apps and features, then select programs and features.

  3. Click ‘Turn Windows features on or off’ from the left menu.

  4. Now Select WSL and click ok to allow download and install required files from the Microsoft server.

  5. Restart your PC to apply the changes

Windows subsystem for linux

Alternatively, you can run the command Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux on the administrative PowerShell window to install WSL on Windows 10.

Enable the Virtual Machine Platform

Next, we need to enable virtualization in the computer’s BIOS Setup by following the steps below.

  1. Power on the machine and open the BIOS (Press Del key).

  2. Move to system configuration using arrow keys on the keyboard,

  3. Enable Intel Virtualization Technology (also known as Intel VT) or AMD-V, depending on the processor’s brand.

  4. Press F10 to make save changes and let Windows start normally.

Enable Virtualization technology BIOS
  1. Now Open PowerShell as an administrator, and perform the following command.

Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform

  1. Once done, restart your PC to apply the changes.

Download Kali Linux app

  1. Open Microsoft Store, and click on the Search option.

  2. Here type Linux and select the option Run Linux on Windows.

  3. This will present with the Store’s Linux frontend displaying the currently available Linux distros that you can run from within the app.

  4. We’re going to install kali Linux on windows 10, then pick Kali Linux from this list,

Download Kali Linux app

Once the installation is complete, you get a notification and the option to Launch, which you should do.

The rest of the Kali Linux installation then continues from within the app and eventually, you are asked to create a new user account and password. When you’ve created your account, you are presented with the familiar Linux command line setup.

Create username for unix

The next thing you have to ensure that the core Kali Linux system is up to date. To do so, go to the command line and enter sudo apt-get update && sudo apt-get upgrade.

Command to update Kali Linux system

Install Xfce Desktop Environment


Now, let’s set up the XFCE desktop manager. It’s fast, lightweight, and doesn’t take much to get it installed and working.

Run sudo apt-get install xfce4 to Install xfce.

Note: It will take some time to download and install xfce4 it depends on PC hardware configuration and Internet speed.

Install Xfce Desktop Environment

Next, run sudo apt-get install xrdp then sudo apt install kali-desktop-xfce xorg xrdp to install xrdp.

Once the install is complete, you will need to start xrdp by running sudo service xrdp start.

We recommend to refer this video to change the port number from 3389 to 3390


Once the xrdp server has started its time to connect to Kali,

Open up Remote Desktop (mstsc) on your PC

As the machine is running on localhost, so the IP to connect to is localhost:3390 (with port 3390), or you can use 127.0.0.1:3390.

You should now see a new login window. Ensure the Session is set to Xorg and enter your Kali Linux username and password, then click the OK button.

login to Kali Linux

That’s all your Kali is ready. You’re using a Desktop Environment installed in Kali Linux, which is in itself an app installed on Windows 10.

For more, you can read the Kali Linux site’s documentation, found at https://www.kali.org/


Also read:

Comments


Featured Posts
Recent Posts
Archive
Search By Tags
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page