Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 2.22 KB

README.md

File metadata and controls

64 lines (42 loc) · 2.22 KB


Sugar OS for Raspberry Pi

This repository lets you generate a Raspberry Pi OS equipped with Sugar shell and add some additional activities.

Activities that are pre-installed:

  • Flappy
  • RPI Control Center
  • Number Guessing
  • Tower of Hanoi
  • Turtle Art
  • Default activities (Calculate, Chat, Image Viewer, Pippy, Read, Terminal, Write and Browse)

Generating OS

You must have "Raspberry Pi Lite OS 32-bit OS" installed on your Raspberry Pi to generate an OS. Yes, you need a Raspberry Pi to build an OS.

Once you have that, you can proceed to generate OS by following these steps:

  • Clone this repo on your Raspberry Pi
  • cd sugar-rpi-os
  • Install the dependencies (from below)
  • Run sudo ./build.sh

If build process finishes successfully, you will find your sugar OS under sugar-rpi-os/deploy folder

If you wish to use docker, you can do so by sudo ./build-docker.sh
(reference for docker usage).

Dependencies

To run the script one must install the required dependencies by running:

sudo apt-get install coreutils quilt parted qemu-user-static debootstrap zerofree zip \
dosfstools libarchive-tools libcap2-bin grep rsync xz-utils file git curl bc \
gpg pigz xxd arch-test

Installation of the sugar OS

After the zip image is built under deploy folder. The image can then be flashed onto a microSD card using rpi-imager.

In rpi-imager, under "Operating System" select "Use custom" option and then select the generated OS to flash. Username and password is also required to be set under Advanced option in the rpi-imager when prompted.

Development

Check pi-gen to understand the structure and function of each step.

Stage0 to Stage2 builds the Raspberry Pi Lite OS
Stage3 is concerned with the setup of Sugar on top of it and then export the image.

Edit Stage3 to add features/improvements