Skip to main content

Run Kali Linux on Windows 10

Posted March 2018 by Steve Sinchak

Attention security professionals and penetration testers, believe it or not, but Kali Linux is now available in the Microsoft App store for Windows 10.  The suite of security assessment and penetration tools can natively run on Windows 10 thanks to the work of the Windows system for Linux, also known as WSL. While there are some limitations, Kali Linux brings a lot of new command line utilities that will be very helpful to the right professional. In addition, it is possible to leverage the XFCE desktop manager for a more "native" Kali Linux experience.

In this guide, I will walk you through installing the Windows System for Linux (WSL), Kali Linux, and configuring the XFCE desktop manager.  Let's get started:

  1. We need to install the WSL so right click on the Start Button and select Windows PowerShell (Admin). If you already have WSL installed, skip steps 1-3.
  2. Copy and paste the following command and hit Enter to run it:

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

  1. Reboot your PC.
  2. Next, let's install Kali Linux.  Search for Kali Linux in the Microsoft App store app or click this link to open it directly.
  3. Click the Get button to begin the download and install.

  1. Once installed, click the Launch button. Alternatively, you can use the new Start menu shortcut or simply go to PowerShell or command prompt and type kali and hit Enter. On the first run, the install must complete. This will take a little while.

  1. Once installed, it is time to setup your WSL username and password.  This can be anything and does not need to match your Windows username and password. Keep note of this information, you will need it to elevate your rights with sudo later and log into the desktop manager.

  1. Now we need to setup the XFCE desktop manager but need to install some utilities first. Run the following command to install wget which is a utility that can download files over HTTP. Enter your password you created in the previous step when prompted and hit Y to proceed with the download and install.

sudo apt-get install wget

  1. Run the following command to download the install script.


  1. Execute the script downloaded by running the following.  This step will take a very long time to execute and you will need to answer some questions about keyboard layout right in the middle.

sudo sh

  1. Now it is time to start up the xrdp server so that we can connect to the XFCE desktop manager using Remote Desktop. Run the following command and note the port number listed in the output.

sudo /etc/init.d/xrdp start

  1. Once the xrdp server has started, open up Remote Desktop (mstsc) on your PC and connect to where 3390 is the port displayed in step 11.

  1. Log in with the Unix credentials setup in step 7.

  1. Click Use default config, and you are done.

When you are done using Kali Linux it is best to shut down the xrdp server by running sudo /etc/init.d/xrdp stop at the Kali Linux prompt. Enjoy!

Related Posts

I recently upgraded my home network from gigabit to 10G so I could take advantage of faster transfers between my Synology NAS, Proxmox server, and workstations. But while editing family video clips stored on my NAS, something did not feel right. Every device was connected at 10GbE, but file copy speeds were slower than expected. This made me wonder, are there bottlenecks in my network?

Read More

With remote work the new standard, having a fast and quality Internet connection and WiFi has become as important as reliable electricity. And if you work in IT support, confirming an end user's home internet, internal network, and WiFi is healthy without errors is the first step of troubleshooting any slowness or video conferencing issue with Zoom, Webex or Teams.

Read More

Microsoft Edge on Windows 10 includes the Windows Defender SmartScreen service for years that prevents users from accidentally browsing to known malicious and fake phishing websites. While Microsoft Edge is a great browser and has many very strong security features, Microsoft understands that many people choose to use Google Chrome.  As such, Microsoft still cares about the security of the web browser...

Read More

If you are among the millions of “cord cutters” that are saying goodbye to cable and satellite, or if you just want to gain access to the dozens of free channels broadcast over-the-air then this article is for you.  Similar to tuning in over-the-air channels on a TV you will need an antenna and a tuner to receive local TV channels. In order to watch TV on Windows 10 I like to use HD Homerun network...

Read More