Kali Linux Raspberry Pi 4 Setup
I have tested Kali Linux on the new Raspberry Pi 4 8 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 8 GB is addressable in Kali Linux and the storage upgrades in the Pi 4 make usage feel really smooth.
The Raspberry Pi 4 is available in different memory configurations all the way up to 8 GB. It’s about the size of a credit card and uses an extremely low amount of power making it ideal for all sorts of projects and ideas!
Links: AliExpress.com*, Amazon.ae*, Amazon.ca*, Amazon.com*, Amazon.com.au*, Amazon.com.mx*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.in*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.sa*, Amazon.se*, Amazon.sg*
The SanDisk Extreme A1-A2 SD card has the best scoring SD card on pibenchmarks.com for years and is second in popularity only to the SanDisk Ultra (often included in combo kits). The application class (A1) means random I/O speeds (very important when running an OS) have to meet a higher standard. There’s no benefit on the Pi for A2 right now so get whichever is cheaper/available.
Links: AliExpress.com*, Amazon.ae*, Amazon.ca*, Amazon.com*, Amazon.com.au*, Amazon.com.mx*, Amazon.co.jp*, Amazon.co.uk*, Amazon.de*, Amazon.es*, Amazon.fr*, Amazon.in*, Amazon.it*, Amazon.nl*, Amazon.pl*, Amazon.sa*, Amazon.se*
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 Raspberry Pi 2, 3 and 4 32 bit”.
I recommend using the official Raspberry Pi Imaging tool to write the image to your Pi’s SD card. It’s available for Windows, Mac and Linux! Once you’ve downloaded the image you can write it to the Pi’s SD card with this utility and it will take care of a lot of problems that can come up when you try to image it with dd or Etcher or other utilities.
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 update && sudo apt 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