How to install Linux on your Raspberry Pi

Kali Linux running on a Raspberry Pi 4 Model B

Kali Linux running on a Raspberry Pi 4 Model B.

Adrian Kingsley-Hughes/ZDNET

While the default operating system for the Raspberry Pi is the Raspberry Pi OS, it's capable of running a variety of different operating systems. In fact, that tiny single-board computer (SBC) can run a variety of Linux distributions.

I'm going to show you how to install two different Linux distributions, Kali and Parrot OS, on your Raspberry Pi. 

To do this, we're going to use the Raspberry Pi Imager software to copy the operating system onto the Raspberry Pi's microSD card. 

As a Raspberry Pi user, you're probably already familiar with this tool. If you want a refresher on how to install and use this software, you can check out this primer on how to set up a Raspberry Pi)

Requirements:

You'll need a computer with an SD card reader slot or external SD card reader, a Raspberry Pi, and the Raspberry Pi Imager software on a microSD card.

Also: How to install Kali Linux on Apple Silicon Macs

Ready? Let's go!

How to install Kali Linux

The first operating system we're going to install is Kali Linux. This one is easy to install because it's one of the options in Raspberry Pi Imager.

To find it, run Raspberry Pi Imager on your main computer, click on Choose OS, and scroll down to Other specific-purpose OS, and in there you'll find Kali Linux.

Finding Kali Linux in Raspberry Pi Imager

Finding Kali Linux in Raspberry Pi Imager.

Adrian Kingsley-Hughes/ZDNET

Click on this and you'll see several options. I'm going to choose the 64-bit version.

Different available versions of Kali Linux

Different versions of Kali Linux are on offer.

Adrian Kingsley-Hughes/ZDNET

From here, the process is the same as for putting Raspberry Pi OS on the microSD card. You choose your microSD card to write to, and click Write.

When Raspberry Pi Imager is done, take the card out of the card reader on your computer and pop it into the Raspberry Pi. Plug the Pi into power, and boot the system up.

Kali Linux booting up on a Raspberry Pi

Kali Linux booting up on a Raspberry Pi.

Adrian Kingsley-Hughes/ZDNET

Easy!

How to install Parrot OS

For this, we're going to again use Raspberry Pi Imager, but Parrot OS isn't included in the list of alternative operating systems, so you'll have to download it from the ParrotSec website. You'll find all sorts of different flavors of Parrot OS on the website, and among them there are versions for the Raspberry Pi.

Also: How to choose the right Linux distribution

Here I'll be using the 64-bit Security Edition version for the Raspberry Pi.

1. Download Parrot OS

Download the operating system onto your computer. Because it's compressed you'll need an unzip tool to expand it (if you don't have one, here are options for Windows and Mac).

2. Run Raspberry Pi Imager and select the OS

Run Raspberry Pi Imager, click on Choose OS, and scroll down to Use custom. Find the Parrot OS version you downloaded and select it.

Using Raspberry Pi Imager to put a custom operating system on a microSD card

Using Raspberry Pi Imager to put a custom operating system on a microSD card.

Adrian Kingsley-Hughes/ZDNET

3. Install Parrot OS

Now the process is as with any other installation. You choose your microSD card to write to, click Write, and then wait.

Parrot OS booting up on a Raspberry Pi

Parrot OS booting up on a Raspberry Pi.

Adrian Kingsley-Hughes/ZDNET

FAQ

Is it safe to install Linux on a Raspberry Pi?

Yes. 

While you might have to play around to get things working properly, the worst that can happen is that your Raspberry Pi won't boot, in which case remove the microSD card and boot using a different operating system.

Also: Where to buy the latest Raspberry Pi model and alternatives

Why install different Linux distros on your Raspberry Pi?

Because different distros have different capabilities. Some, such as the two featured here, are focused on security and penetration testing. It also allows existing Linux users to use a distro that they are already familiar with.

Does doing this void your Raspberry Pi's warranty?

No. It's supported by the official Raspberry Pi Imager software.

Source