How to install Kali Linux on a Raspberry Pi 3

The much-awaited tutorial. Here, you will learn step by step how to download and install the Kali Limux OS on a Raspberry Pi 3. Let's get started.

First, make sure that you have everything necessary by checking this list:

  • Raspberry Pi 3 Model B or B+
  • A computer
  • A microSD card
  • An HDMI cable
  • A micro USB power adapter
  • A USB keyboard
  • A monitor
  • A stable and decent Internet connection
Note regarding the post: you can click on any image to enlarge it.

I- Downloading Kali Linux


Head to www.kali.org, go to Downloads and click on Kali ARM Images as follows:
Then scroll down until you find the Raspberry Foundation section and download the first file in the table:
Download the file and don't open it. Leave it as it is.

II- Flashing Kali to the microSD card

Head to www.etcher.io and download the software. Once done, run it:
Click on Select image and choose the file you downloaded in step 1 (the Kali image). You should find it in the Downloads folder. Next, insert your microSD card and click on Select drive, then choose the SD card. Finally, flash the image to the card. It can take a few minutes to complete.

III- Booting and updating Kali

[Note: sorry for the inconvenience but couldn't capture screenshot for this part.]
Insert your microSD into the Raspberry Pi, then connect it to a monitor (using an HDMI cable) and to a USB keyboard. Power up the Pi by plugging in the adapter. You should be prompted for a username then a password. These are "root" and "toor" respectively. Once you successfully logged in, you need to update Kali.

To do that, you first need to "resize the partition" in order to avoid problems related to storage. This is done using the following command (without the quotation marks):
apt-get install gparted
Now that gparted is installed, run it by just typing "gparted" and pressing Enter. In the window that opens, select "/dev/mmcblk0p2" (its size should be around 6 GB). Click on Resize and use all of the available space by moving the slider that appears. Finally, click Apply.

Go back to the terminal and download the update using this command:
apt-get update
Once done, install this update by typing:
apt-get upgrade
While the system is upgrading, it should prompt you for various permissions. When prompted, type Y and click Enter.

The system should reboot once or twice. And that's it! You have installed Kali Linux on your Raspberry Pi 3. But being forced to use a monitor and a USB keyboard to use it is very annoying, right? Don't worry, I got another tutorial in the works for controlling the Pi remotely with a PC.

Questions or problems? Just leave a comment and I'll get back to you in no time. You can also follow me on Twitter to stay tuned.

Bonus: it's always a good thing to change the default password. To do so, simply run the following command on your Pi:
passwd
You can now choose a new password that will be used for logging in with the user "root".

Comments

Popular posts from this blog

Getting started in scripting

How to capture a WPA handshake

Pixie-Dust Wifi Attack: Theory & Practice