-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
- 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
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
deploy/* | ||
work/* | ||
config | ||
postrun.sh | ||
SKIP | ||
SKIP_IMAGES | ||
.pc | ||
*-pc |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
IMG_NAME='sugarOS' | ||
DEPLOY_COMPRESSION='zip' |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,3 +37,5 @@ unzip zip p7zip-full | |
file | ||
kms++-utils | ||
python3-venv | ||
python3-pip | ||
gir1.2-webkit2-4.1 |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
i2c-tools | ||
gir1.2-gtk-3.0 python3-pygame-sdl2 |
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." | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,4 @@ | |
if [ ! -d "${ROOTFS_DIR}" ]; then | ||
copy_previous | ||
fi | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.