Skip to content

Commit

Permalink
Add GSOC 2017 Sugar
Browse files Browse the repository at this point in the history
Changes between upstream fork and Sugar Labs.
  • Loading branch information
quozl committed Feb 21, 2018
1 parent 95ed69a commit f350e56
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
## Introduction
`rpi23-gen-image.sh` is an advanced Debian Linux bootstrapping shell script for generating Debian OS images for Raspberry Pi 2 (RPi2) and Raspberry Pi 3 (RPi3) computers. The script at this time supports the bootstrapping of the Debian (armhf) releases `jessie`, `stretch` and `buster`. Raspberry Pi 3 images are generated for 32-bit mode only. Raspberry Pi 3 64-bit images can be generated using custom configuration parameters (```templates/rpi3-stretch-arm64-4.11.y```).

Note: This fork of the image builder is used to generate custom Sugar Debian images. Please refer to the templates section to run the build process

## Build dependencies
The following list of Debian packages must be installed on the build system because they are essentially required for the bootstrapping process. The script will check if all required packages are installed and missing packages will be installed automatically if confirmed by the user.

Expand Down
60 changes: 60 additions & 0 deletions bootstrap.d/11-mod.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#
# Add config for auto login, activities and delte Write.activity
#

# Load utility functions
. ./functions.sh

# Copying lightdm config

cp files/lightdm.conf ${BUILDDIR}/chroot/etc/lightdm

# Deleting Write.activity

rm -rf ${BUILDDIR}/chroot/usr/share/sugar/activities/Write.activity

# Downloading new activities

wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29070/cedit-3.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29202/abacus-59.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/27834/countries-33.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28731/dimensions-53.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29284/fototoon-23.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29285/get_books-17.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29208/infoslicer-25.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28672/labyrinth-16.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29115/moon-17.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29277/paint-66.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29221/portfolio-49.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28963/ruler-33.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28734/sliderule-35.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28974/spirolaterals-26.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29226/story-17.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29043/typing_turtle-31.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/28989/words-21.xo -P files/Sugar-activities
wget https://activities.sugarlabs.org/en-US/sugar/downloads/file/29282/stopwatch-19.xo -P files/Sugar-activities
wget https://people.sugarlabs.org/rishabh/Physics-32.1.xo -P files/Sugar-activities
wget https://people.sugarlabs.org/rishabh/TurtleBlocks-216.xo -P files/Sugar-activities

# installing new activities

unzip files/Sugar-activities/cedit-3.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/TurtleBlocks-216.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/Physics-32.1.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/abacus-59.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/countries-33.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/dimensions-53.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/fototoon-23.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/get_books-17.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/infoslicer-25.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/labyrinth-16.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/moon-17.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/paint-66.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/portfolio-49.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/ruler-33.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/sliderule-35.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/spirolaterals-26.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/story-17.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/typing_turtle-31.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/words-21.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
unzip files/Sugar-activities/stopwatch-19.xo -d ${BUILDDIR}/chroot/usr/share/sugar/activities
2 changes: 1 addition & 1 deletion files/apt/04norecommends
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
APT::Install-Suggests "0";
APT::Install-Recommends "0";
APT::Install-Recommends "1";
1 change: 1 addition & 0 deletions files/etc/skel/.xsession
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
sugar
23 changes: 23 additions & 0 deletions files/lightdm.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#
# General configuration

[LightDM]

user-session = sugar
autologin-session = sugar

[Seat:*]

pam-service=lightdm
pam-autologin-service=lightdm-autologin
autologin-user=pi
autologin-password=raspberry
autologin-user-timeout=0
session-wrapper=/etc/X11/Xsession
greeter-session=lightdm-greeter
user-session=sugar


[XDMCPServer]

[VNCServer]
10 changes: 10 additions & 0 deletions templates/rpi2stretch-sugar
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RPI_MODEL=2
RELEASE=stretch
ENABLE_DM=${ENABLE_DM:="lightdm"}
ENABLE_WM=${ENABLE_WM:="sucrose"}
BUILD_KERNEL=true
ENABLE_WIRELESS=false
ENABLE_XORG=true
ENABLE_MINBASE=true
ENABLE_SSHD=false
APT_INCLUDES="sucrose,lightdm,network-manager,telepathy-mission-control-5,unzip,openssh-client,telepathy-salut,telepathy-gabble,upower,pulseaudio,gstreamer1.0-pulseaudio,gstreamer1.0-espeak,gstreamer1.0-plugins-good,python-sugar-toolkit,python-sugar"
10 changes: 10 additions & 0 deletions templates/rpi3stretch-sugar
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
RPI_MODEL=3
RELEASE=stretch
ENABLE_DM=${ENABLE_DM:="lightdm"}
ENABLE_WM=${ENABLE_WM:="sucrose"}
BUILD_KERNEL=true
ENABLE_WIRELESS=true
ENABLE_XORG=true
ENABLE_MINBASE=true
ENABLE_SSHD=false
APT_INCLUDES="sucrose,lightdm,network-manager,telepathy-mission-control-5,unzip,openssh-client,telepathy-salut,telepathy-gabble,upower,pulseaudio,gstreamer1.0-pulseaudio,gstreamer1.0-espeak,gstreamer1.0-plugins-good,python-sugar-toolkit,python-sugar"

0 comments on commit f350e56

Please sign in to comment.