ARM Build Scripts

These are the same build scripts that we use to generate the pre-generated official Kali Linux ARM images, found here: https://www.kali.org/get-kali/

There are additional scripts included in the repository, supporting more devices, that we do not release images for, as well as archived scripts for historical purposes.

For more information, please see: https://www.kali.org/docs/arm/


Building

  • These scripts are tested on Kali Linux arm64, x64 and x86 installations only (We recommend x64)

  • Make sure you run the ./common.d/build_deps.sh script before trying to build an image, as this installs all required dependencies

  • You will need at least 8GB of RAM or use a SWAP file

An example workflow to build a Raspberry Pi 4 Kali Linux image would look like:

$ cd ~/
$ git clone https://gitlab.com/kalilinux/build-scripts/kali-arm
$ cd ~/kali-arm/
$ sudo ./common.d/build_deps.sh
$ sudo ./raspberry-pi.sh
  • Depending on your system hardware & network connectivity, will depend on how long it will take to build (4 core CPU, 8GB RAM, SSD inside a VM takes using a local repo about 100 minutes per script)

  • On x64 or arm64 systems, after the script finishes running, you will have an image files located in ~/kali-arm/images/ called kali-linux-2022.4-raspberry-pi-xfce-armhf.img.xz

  • On x86 systems, as they do not have enough RAM to compress the image, after the script finishes running, you will have an image file located in ~/kali-arm/images/ called kali-linux-2022.4-raspberry-pi-xfce-armhf.img

    • Should you want to try and shrink the file to make it easier to distribute, you will need to use your own preferred compression.


Help

On any build script, add --help. Example:


Custom Values

Editing builder.txt, will allow for custom values, such as using a local LAN mirror:

A full list of values you can set:

Last updated

Was this helpful?