Optimised OS for the Raspberry Pi for creating and running containers ๐. Based on Ubuntu, but not Ubuntu, includes "Just Enough OS", Docker Engine, DockerSlim and Dropbear.
This repository hosts downloadable images of Slim.AI OS and the script that builds Slim.AI OS images for Raspberry Pi devices.
- Optimized images for Raspberry Pi 2, 3, 4 and 400.
- Based on Ubuntu, Docker Engine and DockerSlim
- Supported Raspberry Pi models:
- Raspberry Pi Compute Module 3 Lite
- Raspberry Pi Compute Module 4 Lite
- Raspberry Pi 2 Model B
- Raspberry Pi 3 Model A+
- Raspberry Pi 3 Model B
- Raspberry Pi 3 Model B+
- Raspberry Pi 4 Model B (Recommended)
- Raspberry Pi 400
- Raspberry Pi Zero 2 W
- Boot from USB
- Automatic first boot file system expansion
Alpha images of Slim.AI OS are available for download from the GitHub releases.
- Download Slim.AI OS
- Use Raspberry Pi Imager to put the image on microSD card.
- Select Use custom from the Operating System drop down
- Select the target microSD card or USB drive.
- Click Write
- Clone the Slim.AI OS project
git clone https://github.com/flexiondotorg/slim-aios.git
It is best to run the slim-aios-image
on an Ubuntu 22.04 x86 64-bit
workstation, ideally running in a VM via Quickemu.
If using a fresh Quickemu VM you will need to set the disk_size
parameter large enough to complete the build (around 26G). This can be achieved by adding disk_size="32G"
to ubuntu-jammy.conf
before running quickemu
to create the VM. Alternatively you could mount external storage into the container for the build area. You'll also need to sudo apt install git
.
The following incantation will build a Slim.AI OS arm64 image for Raspberry Pi.
You can replace arm64
with armhf
to build an image for 32-bit ARM.
sudo ./slim-aios-image --arch arm64
You can tweak some variables towards the bottom of the slim-aios-image
script.
IMG_VER="22.04"
IMG_RELEASE="jammy"
This is the default username and password for logging into Slim.AI OS via SSH or the desktop.
- Username:
slimdevops
- Password:
slimai
If you need to build kernel modules you can install the kernel header for the Raspberry Pi kernel like so:
sudo apt-get install linux-headers-raspi
As of Linux kernel 5.11, the old methods of communicating with the header pins on the Raspberry Pi will no longer work. This means that packages such as RPi.GPIO will no longer function properly with newer kernels.
- The Pins They Are A-Changinโ
- The lg archive
- lg is an archive of programs for Linux Single Board Computers which allows control of the General Purpose Input Outputs.
- Raspberry Pi GPIO Tutorial