Debian/Raspberry Pi

From Sugar Labs
< Debian
Revision as of 05:40, 7 July 2017 by Rishabh42 (talk | contribs) (Removed the broken link and added my sunjammer account's link)
Jump to navigation Jump to search


Rishabh Thaney has made a build for Raspberry Pi using Debian;

On around 4th July there was mention on IRC of two later builds which add automatic login, but no information yet as to what else they include, and there have been no new commits. Contact Rishabh if more information needed. --Quozl (talk) 20:05, 4 July 2017 (EDT)

See also: GSoC 2017 Project Ideas by Sugar Labs, GSoC 2017 Proposal by Rishabh, and GSoC 2017 Blog by Rishabh.


Report issues to

On images dated before 2017-07-04, select "sugar" in top right bar at login.


Home View (F3 key).



Please also compare against the Fedora 26 SoaS image, as it has many more working activities.

Fedora SoaS does not include wireless firmware, see the FAQ for a fix.


Home View (F3 key).

Screenshot of Home .png

Neighborhood View (F1 key).

Screenshot of Mesh .png

My Settings, Network, Collaboration Server was set to before this screenshot. The default in Sugar 0.110 is not to use unless configured.

Rishabh used Etcher but his rpi3 did not boot. James and Rishabh confirmed four partitions on the card of the correct size. James suggested checking for write corruption by reading back the exact number of blocks written and comparing md5sum.

Suggested Installation

Thomas suggested writing to microSD card using Fedora Media Writer (FMW), which is available for Mac OS X, Microsoft Windows, Fedora Linux, and Ubuntu Linux. Here are his test steps;

  • download Fedora-SoaS-armhfp-26-1.3-sda.raw.xz
  • select and extract
  • start FMW
  • select "Custom"
  • select Fedora-SoaS-armhfp-26-1.3-sda.raw
  • Choose rpi3 from drop-down in FMW
  • Insert micro SD in Mini Card Reader and insert in USB port
  • Choose rpi3 from drop-down in FMW
  • Write micro SD
  • Insert in rpi3 slot and power up


This was reproduced on Debian stretch platform which was set up in an schroot shell on Ubuntu.

Setup Schroot

Set up a schroot environment like this:

  • Install the schroot and debootstrap packages,
sudo apt install schroot debootstrap
  • Create the stretch filesystem,
sudo mkdir -p /srv/chroot/stretch
sudo debootstrap stretch /srv/chroot/stretch
  • Make a file /etc/schroot/chroot.d/stretch,
  • Log into your schroot shell from the terminal,
sudo schroot -c stretch

See for alternate methods.

Setup Builder

Setup the builder within the schroot shell like this;

  • Clone the repository
git clone
  • Install dependencies by going through the file and executing the commands described,

Run Builder

  • Change your directory to the cloned repo and run this command to start the building process:

This takes some time as the scripts start downloading and configuring packages to build an image.

  • Once the process is complete in the terminal, navigate to this directory:

to find the image that was built.

Some changes have been made to the original repo: which can be viewed in the commit history.

Adding the automatic login feature

  • While the image is building, navigate to the following directory:

and depending on the stage of the build process wait for a folder named 'lightdm' to appear.

  • Then open this file with nano/gedit and with root priviledges:
  • Add/uncomment the following lines and configure them as shown below:
autologin-session = sugar
autologin-user=pi #(change this if you have configured a different user)
autologin-password=raspberry #(change this if you have configured a different password)
  • Save the file and wait for the build process to complete.
  • Boot into your image with this configuration and autologin should work fine.