Skip to content

Commit

Permalink
sugar-rpi-os v1
Browse files Browse the repository at this point in the history
- Generate an RPi OS with sugar shell insatlled
- Add some activities (default ones + tower-of-hanoi, number-guessing, flappy (by Vaibhav), turtleart-activity, and rpi_control_center)
- Temporary fix the browse-activity issue (remove v207 that comes from apt, install v208, install dependencies)
- Lacks the RPi sensor libraries for now. TODO: clone rpi-lib from my repo and paste it in python3.xx/site-packages (or as the readme directs).
  • Loading branch information
44yu5h authored and chimosky committed Oct 22, 2024
1 parent dca93d2 commit edeb772
Show file tree
Hide file tree
Showing 30 changed files with 70 additions and 576 deletions.
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
deploy/*
work/*
config
postrun.sh
SKIP
SKIP_IMAGES
.pc
*-pc
457 changes: 30 additions & 427 deletions README.md

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions config
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
IMG_NAME='sugarOS'
DEPLOY_COMPRESSION='zip'
2 changes: 2 additions & 0 deletions stage2/01-sys-tweaks/00-packages
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,5 @@ unzip zip p7zip-full
file
kms++-utils
python3-venv
python3-pip
gir1.2-webkit2-4.1
2 changes: 0 additions & 2 deletions stage3/00-install-packages/00-debconf

This file was deleted.

20 changes: 0 additions & 20 deletions stage3/00-install-packages/00-packages

This file was deleted.

8 changes: 0 additions & 8 deletions stage3/00-install-packages/00-packages-nr

This file was deleted.

9 changes: 0 additions & 9 deletions stage3/00-install-packages/01-run.sh

This file was deleted.

2 changes: 2 additions & 0 deletions stage3/00-setup-sugar/00-packages
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
i2c-tools
gir1.2-gtk-3.0 python3-pygame-sdl2
33 changes: 33 additions & 0 deletions stage3/00-setup-sugar/00-run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#!/bin/bash -e

on_chroot << EOF
sudo -u root apt install lightdm xserver-xorg sucrose -y
sudo -u root dpkg-reconfigure lightdm
sudo -u root raspi-config nonint do_boot_behaviour B3
sudo -u root apt remove sugar-browse-activity -y
EOF

# Temporary fix for browse-activity: installing gir1.2-webkit2-4.1 in stage2/01-sys-tweaks/00-packages L41

# Set the default session to Sugar
CONFIG_FILE=${ROOTFS_DIR}/etc/lightdm/lightdm.conf
if grep -q "\[Seat:\*\]" "$CONFIG_FILE"; then
sudo sed -i '/^\[Seat:\*\]/a user-session=sugar' "$CONFIG_FILE"
else
echo -e "[Seat:*]\nuser-session=sugar" | sudo tee -a "$CONFIG_FILE"
fi
echo "Default session set to Sugar."

mkdir ${ROOTFS_DIR}/home/pi/Activities
cd ${ROOTFS_DIR}/home/pi/Activities

# Cloning the Sugar activities
git clone https://github.com/44yu5h/rpi_control_center
git clone https://github.com/44yu5h/turtleart-activity
git clone https://github.com/sugarlabs/browse-activity # removed v207 above; added latest (v208 as of now)
git clone https://github.com/sugarlabs/flappy
git clone https://github.com/sugarlabs/number-guessing
git clone https://github.com/sugarlabs/tower-of-hanoi

echo "Sugar is successfully installed."

File renamed without changes.
1 change: 1 addition & 0 deletions stage3/prerun.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
if [ ! -d "${ROOTFS_DIR}" ]; then
copy_previous
fi

2 changes: 0 additions & 2 deletions stage4/00-install-packages/00-debconf

This file was deleted.

26 changes: 0 additions & 26 deletions stage4/00-install-packages/00-packages

This file was deleted.

2 changes: 0 additions & 2 deletions stage4/00-install-packages/00-packages-nr

This file was deleted.

4 changes: 0 additions & 4 deletions stage4/00-install-packages/02-packages

This file was deleted.

5 changes: 0 additions & 5 deletions stage4/01-console-autologin/00-run.sh

This file was deleted.

7 changes: 0 additions & 7 deletions stage4/02-extras/00-run.sh

This file was deleted.

15 changes: 0 additions & 15 deletions stage4/03-bookshelf/00-run.sh

This file was deleted.

1 change: 0 additions & 1 deletion stage4/03-bookshelf/files/.gitignore

This file was deleted.

5 changes: 0 additions & 5 deletions stage4/04-enable-xcompmgr/00-run.sh

This file was deleted.

2 changes: 0 additions & 2 deletions stage4/05-print-support/00-packages

This file was deleted.

5 changes: 0 additions & 5 deletions stage4/05-print-support/01-run.sh

This file was deleted.

5 changes: 0 additions & 5 deletions stage4/06-enable-wayland/00-run.sh

This file was deleted.

4 changes: 0 additions & 4 deletions stage4/EXPORT_IMAGE

This file was deleted.

5 changes: 0 additions & 5 deletions stage4/prerun.sh

This file was deleted.

7 changes: 0 additions & 7 deletions stage5/00-install-extras/00-packages

This file was deleted.

3 changes: 0 additions & 3 deletions stage5/00-install-libreoffice/00-packages

This file was deleted.

4 changes: 0 additions & 4 deletions stage5/EXPORT_IMAGE

This file was deleted.

5 changes: 0 additions & 5 deletions stage5/prerun.sh

This file was deleted.

0 comments on commit edeb772

Please sign in to comment.