Lightweight distributions for the Raspberry Pi
New Cards
The Raspberry Pi is a Linux machine, and its default distribution is Raspberry Pi OS. But Linux is all about choices….
The default operating system for the Raspberry Pi is the 32-bit version of Raspberry Pi OS [1], formerly known as Raspbian, which was short for Rasp(berry-Pi-De)bian: The distribution is based on Debian GNU/Linux. 2022 saw the official release of a 64-bit version, but the 32-bit edition remains the standard.
Many of the other big Linux distributions have released ARM versions that run on the Rasp Pi, for example Ubuntu, openSUSE, Fedora, Manjaro, Gentoo, Arch Linux, Slackware, and Pop!_OS – some of which will only run on the Rasp Pi 4 and Rasp Pi 400. Kali Linux and Recalbox, which I mention elsewhere in this issue, are also available for the Rasp Pi. Rather than enumerating these Rasp Pi versions of everyday Linux, this article highlights some alternative distros you might not know about.
Finding Distributions
If you want to get an overview of Linux distributions for the Raspberry Pi, you can check the RPi Distributions page in the Embedded Linux Wiki [2]. However, many of the entries on that page are outdated. You can also use your favorite search engine to find distributions, or you can simply download the official Raspberry Pi Imager from the same web page that hosts Raspberry Pi OS [1]: The imager lets you download various distro images and write them to an SD card (Figure 1).
You can also use the tool to write other images (that you've found on the web) to an SD card, and alternatively, any other tool that writes image files to SD cards and USB sticks will do fine, for example balenaEtcher [3] – these tools are basically pretty front ends for the dd
command.
Most distributions resize the filesystem so that it fills the whole SD card when you run the system for the first time: That way, the images will fit on SD cards of all sizes, and you won't waste any space.
LibreELEC (KODI)
"Just enough OS for KODI" is the claim that's prominently displayed on the LibreELEC [4] homepage. KODI turns any computer into a powerful multimedia player that you can extend with various add-ons so that you can access TV station media libraries (Figure 2), tune in to live Internet radio stations, or watch videos on YouTube, DailyMotion, Twitch, and similar sites. Some of these services require an API key that you need to generate on the website and then import in the add-on.
In Raspberry Pi Imager, you will find LibreELEC under Media player OS | LibreELEC; the image size is 128MB. Initially there are no video or audio sources and no add-ons; take your time to find some interesting content.
An alternative distribution with similar features is XBian [5], which follows the rolling release model, so you can frequently get software updates and don't have to wait for the next distro version.
RetroPie
Recalbox, which I described in an earlier article, lets you play old home computer and arcade games with EmulationStation. Instead of the Rasp Pi version of Recalbox, you can also try RetroPie [6] which – again – uses EmulationStation. In Raspberry Pi Imager, you will find RetroPie under Emulation and game OS | RetroPie; the compressed image size is 860MB. RetroPie lacks ROMs, so you will need to manually install game ROMs.
After booting for the first time, you can connect a joystick or controller and configure its buttons. If you don't want to map a function to a button (because your controller doesn't have it), simply keep an already taken button pressed until the configurator skips this item. (You cannot skip entries with the keyboard's cursor keys.) When you reach the line OK at the end, press whatever button you have assigned to X.
RetroPie starts a Samba server that you can use to copy game roms to the system. Mount the file share, then go to roms and the correct subfolder for your machine, for example amstradcpc for the Amstrad CPC computers.
Note that there is no Commodore C64 emulator – you need to go into the RetroPie settings and run the Update RetroPie-Setup script. Then select Manage packages | Manage optional packages | vice | Install from pre-compiled binary. (It's also possible to compile the package from the sources, but that process can take half an hour.) When the installation is done, exit out of the menu layers by pressing Escape several times.
After adding games, you need to restart EmulationStation from the main menu (Quit | Restart EmulationStation), and then the new games should show up.
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
New Slimbook EVO with Raw AMD Ryzen Power
If you're looking for serious power in a 14" ultrabook that is powered by Linux, Slimbook has just the thing for you.
-
The Gnome Foundation Struggling to Stay Afloat
The foundation behind the Gnome desktop environment is having to go through some serious belt-tightening due to continued financial problems.
-
Thousands of Linux Servers Infected with Stealth Malware Since 2021
Perfctl is capable of remaining undetected, which makes it dangerous and hard to mitigate.
-
Halcyon Creates Anti-Ransomware Protection for Linux
As more Linux systems are targeted by ransomware, Halcyon is stepping up its protection.
-
Valve and Arch Linux Announce Collaboration
Valve and Arch have come together for two projects that will have a serious impact on the Linux distribution.
-
Hacker Successfully Runs Linux on a CPU from the Early ‘70s
From the office of "Look what I can do," Dmitry Grinberg was able to get Linux running on a processor that was created in 1971.
-
OSI and LPI Form Strategic Alliance
With a goal of strengthening Linux and open source communities, this new alliance aims to nurture the growth of more highly skilled professionals.
-
Fedora 41 Beta Available with Some Interesting Additions
If you're a Fedora fan, you'll be excited to hear the beta version of the latest release is now available for testing and includes plenty of updates.
-
AlmaLinux Unveils New Hardware Certification Process
The AlmaLinux Hardware Certification Program run by the Certification Special Interest Group (SIG) aims to ensure seamless compatibility between AlmaLinux and a wide range of hardware configurations.
-
Wind River Introduces eLxr Pro Linux Solution
eLxr Pro offers an end-to-end Linux solution backed by expert commercial support.