Setup Kali Linux Like A Pro

Setup Kali Linux Like A Pro

The Ever-Easiest and Safest way to Install Kali Linux on your Windows.

Nov 6, 2022·

4 min read

Play this article

Hey Developers! 👋 Hope you all are doing well.

In today's era, many folks are trying to get some basic knowledge of Hacking, and for that Kali Linux is a must OS to learn. It is more secure and it can also be customized (GUI) as per the need.

When someone tries to install it in their system, they get stuck. Today, I will show you how to install and set up Kali on your machine (Windows 10 / 11). We will be using WSL2 to get it done.

So, let's get started.

First, to run WSL on your machine you need a windows version 2004 or higher. To check this, open Run Dialog Box and enter the command winver in it, and hit enter. If the version of your system is older than 2004, go to settings and update your system from the update the system section.


In this guide, we will use **PowerShell ** as an administrator always. You can open it from the Start Menu by searching and after that open it as an administrator.

Points are the Steps 😊

Here The Process Begins.

• Open Powershell (as an administrator):

Enter the following command into it and hit enter:

enable-WindowsOptionalFeature -online -FeatureName Microsoft-Windows-Subsystem-Linux

After installing, it will ask for Restart. Do approve it and it will restart your machine automatically.

• Open Powershell (as an administrator):

Enter the following two commands one by one as given below:

  1. dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart After inserting this command, hit enter.

  2. Now insert this one and hit enter: dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Now, Restart your Machine on your own. It is necessary

• Click the link given beside to update the Kernel Package: wslstorestorage.blob.core.windows.net/wslbl..

Here (The Link given is for downloading the Installation Package directly) it will download the package automatically. Now after downloading, go to the Downloads section in File Explorer.

tt.png

Run the file as shown in the image. Go through the Set-up wizard, it is easy by approving it every time.

• Open Powershell (as an administrator):

Enter the following command and hit enter: wsl --set-default-version 2

• Open Microsft Store and download the Kali Linux App from there.

ssd.png

Now from here, you will not be able to paste the copied commands in the Kali Linux App as it doesn't allow that. You will have to type it manually.

• Open the Official Kali Linux App after it has been downloaded.

It will ask for a username and password for the setup. Simply do that.

• Enter the following two commands one by one as given below [In Kali Linux App]:

  1. sudo apt update && sudo apt upgrade -y After inserting, hit enter. It will ask for the password you setup already. Enter the password and hit enter.

  2. Now, insert this one and hit enter: sudo apt install kali-desktop-xfce -y

• This step is optional.

If you want to verify that WSL is running on your windows or not, open PowerShell as an administrator and insert this command: wsl --list --verbose

• Open Kali Linux App and enter the following command:

  1. sudo apt install xrdp -y After inserting hit enter and it will ask for yes/no, so press y and hit enter.

Now this command is very necessary, every time you want to use Kali Linux in WSL. Every time you boot your system and want to use Kali, you have to open The Kali App and run this command

• This is the command I am talking about [to be inserted in Kali App]: sudo service xrdp start

• Now in Kali App type: ip add to get the IP address of that Kali running in WSL.

You will get the IP address from the fifth line after running the above command in the app. Copy that [Like 172.27.183.200]

scd.jpg

• Now open Remote Desktop Connection from the Start Menu by searching it.

nsp.png

• After pasting the IP address copied from your Kali app, hit the connect button.

nsfw.png

• You will have a pop-up like the image given below 👇. Enter your username and password you already had set up after installing the Kali App.

ser.png

• After entering your username and password, click 'ok' and that's it. Kali will open and you will be able to use it.

The Process ends over here


If you have any issues or if you are stuck in the process, feel free to contact me on my social media accounts.

Connect with me on Twitter ✨

Connect with me on LinkedIn 🎊

My all Social Media Account Links

Take Care 😊👋

Did you find this article valuable?

Support Muzzammil by becoming a sponsor. Any amount is appreciated!