Headless Kali Linux Setup on Raspberry Pi 4

Kali Linux Logo
Kali Linux

Kali Linux Raspberry Pi 4 Setup

I have tested Kali Linux on the new Raspberry Pi 4 2 GB model and everything works really well. The bootloader for Kali works despite the changes made in the Pi 4’s boot process.

Performance feels really great. The full 2 GB is addressable in Kali Linux and the storage upgrades in the Pi 4 make usage feel really smooth.

Hardware

Raspberry Pi 4 Model B 2GB

Headless Kali Linux Setup on Raspberry Pi 4

SanDisk Extreme A1 Application Class 64GB Micro SD card

Headless Kali Linux Setup on Raspberry Pi 4

Instructions

Download Image

Head to Kali’s official ARM images page at: https://www.offensive-security.com/kali-linux-arm-images/. Make sure you download one that specifically states that it supports Raspberry Pi 4. At time of writing that is “Kali Linux RaspberryPi 2, 3 and 4 32 bit”.

Prepare Hardware

Write the image to a SD card as you normally would. When finished connect the Pi’s ethernet port and insert the SD card into the Raspberry Pi 4.

Now power everything up.

Connect to Pi using SSH

Since this is a headless setup we will connect to the Pi using SSH to avoid having to connect a keyboard/monitor.

Once your Pi boots up and gets an IP address open PuTTY or any other SSH program and SSH into your Pi’s IP address. The default credentials are login “root” and password “toor”.

Update Kali

The first thing we should do is update our Kali distribution. Type

sudo apt-get update && sudo apt-get dist-upgrade -y

Once everything has finished reboot your Raspberry Pi to fully apply all of the latest updates.

(Optional) Install Kali Linux Full

By default the image only comes with a subset of everything available in the Kali distribution. Installing all of these can take some bandwidth/time so make sure you have a decent size/quality SD card and a good internet connection before upgrading to the full version.

If you want to install all tools and achieve a “Kali Linux Full” installation type now type:

sudo apt-get install kali-linux-full

(Optional) Benchmark Storage

If you feel like performance is slower than it should be it’s very possible that your Micro SD card isn’t performing well. For Kali usage it’s highly recommended you have a high quality A1 application class card.

To benchmark your own storage and see how it is performing (as well as see other storage setups and their performance) check out Raspberry Pi Storage Benchmarks

3 thoughts on “Headless Kali Linux Setup on Raspberry Pi 4”

  1. Avatar for Magnus

    Just tried the 64-bit version. Disappointed I couldn’t get a 64-bit mongo version working 🙁 Will wait around for ubuntu-server.

Leave a Comment

Your email address will not be published. Required fields are marked *

Type here..