From charlesreid1


This is a guide to installing Kali Linux on an SD card for a Raspberry Pi. General info about running Kali on the Pi here: Kali Raspberry Pi

More info about all-things Kali Linux: Kali

Installing Kali 2017.1 on Raspberry Pi

As with prior versions of Kali Linux, there are several ARM images provided at the Offensive Security website:

For old Raspberry Pis (2 usb ports, regular SD card slot), get the image labeled "RaspberryPi".

For newer Raspberry Pis (4 usb ports, mini SD card slot), get the image labeled "RaspberryPi 2/3".

Installing Kali 2.0.1 on Raspberry Pi

Download and verify the "Raspberry Pi" image (if you have a Raspberry Pi model B) or the "Raspberry Pi 2" image (if you have a Raspberry Pi model B+) from Offensive Security's web page:

To install Kali Linux on the Pi, you'll download the image, decompress it, and flash an SD card with that image. You will need an 8 GB or larger SD card to run Kali 2.0.

Step 0: Download image from Kali

Kali provides custom images for Raspberry Pis, so download the compressed img file for your Pi:

Download the image, which is an xz file.

Decompress the xz file with tar xz kali-2.0.1-rpi.img.xz.

You will flash the SD card with the resulting .img file.

Step 1: Find SD Card

When you run this command, you should be able to spot the SD card from its size. If you can't figure out which one it is, run it before and after you plug in the SD card.

$ diskutil list

Mine's at /dev/disk1.

Step 2: Unmount Disk

$ diskutil unmountDisk /dev/disk1

Step 3: Format Disk

WARNING: You can screw up your disks with the dd command. Be careful.

$ dd bs=1m if=kali-2.0.1-rpi.img of=/dev/disk1
3000+0 records in
3000+0 records out
3145728000 bytes transferred in 1535.984002 secs (2048021 bytes/sec)

This should take about 20 minutes.

Step 4: Modify Startup Command

Before you eject the SD card, you'll want to modify the startup command. Edit the file /Volumes/NO NAME/cmdline.txt and add a static IP address ip= to the end:

dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 elevator=deadline root=/dev/mmcblk0p2 rootfstype=ext4 rootwait ip=

For more details on this procedure, see Kali Raspberry Pi/Headless or RaspberryPi/Headless

For more details on how the SD card works, see below.

(Outdated) Instructions for Kali Version 1 on Pi

For instructions installing the older version of Kali, version 1.0, on the Pi, see Kali Raspberry Pi/Installing Version 1

Kali Linux SD Card

see Kali Raspberry Pi/SD Card