armbian + pyGame = pyGameOS
A lightweight build of Armbian with Pygame-CE built in for SDL2 (no X-win bloat) display.
- 🐧 Debian 13 trixie based.
- ❤️ Built with Armbian userpatches framework.
- 👾 Pygame-CE pre-installed with SDL2 support
- 🍓 Raspberry Pi Support
- 🦾 Armbian Supports over 400 SBC from 90 vendors!
- 💻 SDL (Simple DirectMedia Layer) acts as a universal abstraction layer for graphics, audio, and input. Because Pygame relies on SDL, code written for a lightweight Linux device (like a Raspberry Pi Zero or an embedded ARM board) can run natively without additional dependencies like X11
- Flash the latest image using balenaEtcher or a similar tool
- Log in with default credentials. You will be prompted to change them on first login
- Run
sudo armbian-config - Test the display and Pygame with
python -m pygame.examples.aliens - Install your Pygame project
sudo systemctl enable --now systemd-timesyncd.servicesudo hostnamectl set-hostname <new-hostname>sudo timedatectl set-timezone Region/Citysudo timedatectl set-ntp true
- ~8GB RAM, 10GB Disk, 3-5GB Download
- Hour or so of time
To create an image to flash to an SD card, follow these directions. This example uses Ubuntu 24.04 LTS (a virtual machine works fine).
Clone the Armbian build repository and enter the directory:
git clone https://github.com/armbian/build.git
cd build
Clone this repository as "userpatches":
git clone https://github.com/SpudGunMan/pyGameOS userpatchesRun the build script:
./userpatches/run-build.sh buildWhen prompted, choose these options:
- Skip kernel configuration (not needed for most use cases)
rpi4b- the standard board option for most Raspberry Pi variantsConsole interface (server)- minimal server installMinimal Image with Console- lightweight footprint
The compiled image will be located in build/output/images/