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.
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”.
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”.
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