Difference between revisions of "Raspbian"

From Sugar Labs
Jump to navigation Jump to search
Line 1: Line 1:
 
Raspbian is a version of [[Debian]] for the Raspberry Pi.
 
Raspbian is a version of [[Debian]] for the Raspberry Pi.
  
== Using Sugar on Raspbian ==
+
== Using Sugar 0.106 on Raspbian ==
  
There are no pre-built Raspbian images for Sugar.  To use Sugar in Raspbian is a long and difficult process, but is similar to the process for [[Debian]]:
+
To use Sugar in Raspbian is almost the same as using it in [[Debian]]:
  
* install Raspbian ''Wheezy'' in the usual way,
+
* install Raspbian ''Jessie'' in the usual way,
* change <tt>/etc/apt/sources.list</tt> to use the ''Jessie'' testing release,
 
sudo sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
 
* update the package lists,
 
sudo apt update
 
* apply the updates,
 
sudo apt dist-upgrade
 
 
* change <tt>/etc/apt/sources.list</tt> to use the ''Stretch'' testing release,
 
* change <tt>/etc/apt/sources.list</tt> to use the ''Stretch'' testing release,
 
  sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
 
  sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
Line 17: Line 11:
 
  sudo apt update
 
  sudo apt update
 
* install Sugar,
 
* install Sugar,
  sudo apt install sucrose-0.104
+
  sudo apt install sucrose
 
* select Sugar for your session,
 
* select Sugar for your session,
 
  echo sugar > .Xsession
 
  echo sugar > .Xsession
 
* reboot.
 
* reboot.
  
== Turtle Art/Blocks ==
+
== Pre-built Images ==
 +
 
 +
There are no pre-built Raspbian images for Sugar. 
  
You can download [[Activities/Turtle Art]] and access it through the LXDE interface.  You can either download it through the package manager (and get an old version):
+
== Using Sugar Activities without Sugar Desktop ==
 +
 
 +
=== Turtle Art/Blocks ===
 +
 
 +
You can download [[Activities/Turtle Art]] and use it on the normal desktop.  You can either download it through the package manager (and get version 98):
  
 
     sudo apt-get install sugar-turtleart-activity
 
     sudo apt-get install sugar-turtleart-activity
Line 32: Line 32:
 
Or you could get the latest version using git:
 
Or you could get the latest version using git:
  
     git clone github.com/walterbender/turtleart
+
     git clone https://github.com/sugarlabs/activity-turtleart-gtk2.git turtleart
 
     cd turtleart
 
     cd turtleart
  
Line 52: Line 52:
  
 
Alternatively, you can download the [http://sugarizer.org/org.olpc-france.sugarizer.zip Sugarizer client zip] and have it locally on your pi.
 
Alternatively, you can download the [http://sugarizer.org/org.olpc-france.sugarizer.zip Sugarizer client zip] and have it locally on your pi.
 
== Using APT-GET ==
 
 
{{warning|Activities do not seem to function.  They seem to timeout before starting.  Do you really want to run an old version of sugar on your pi?}}
 
 
A old version of Sugar ([[0.96/Notes|Sugar 0.96]]) can be found in the Raspbian repositories.  You can install it with:
 
 
    sudo apt-get install sucrose-0.96
 
 
Then set sugar as your desktop environment by opening/creating ''~/.xinitrc''.  Set this file to:
 
 
    sugar-emulator -f
 
 
Now whenever you ''startx'' you will have the delights of Sugar 0.96.
 
 
If you want to use activities other than Turtle Blocks or Pippy, you will need Browse to access the ASLO.  You can install Browse by running:
 
 
    wget http://download.sugarlabs.org/activities/4024/browse-129.1.xo
 
    sugar-install-bundle browse-129.1.xo
 

Revision as of 03:44, 20 December 2016

Raspbian is a version of Debian for the Raspberry Pi.

Using Sugar 0.106 on Raspbian

To use Sugar in Raspbian is almost the same as using it in Debian:

  • install Raspbian Jessie in the usual way,
  • change /etc/apt/sources.list to use the Stretch testing release,
sudo sed -i 's/jessie/stretch/g' /etc/apt/sources.list
  • update the package lists,
sudo apt update
  • install Sugar,
sudo apt install sucrose
  • select Sugar for your session,
echo sugar > .Xsession
  • reboot.

Pre-built Images

There are no pre-built Raspbian images for Sugar.

Using Sugar Activities without Sugar Desktop

Turtle Art/Blocks

You can download Activities/Turtle Art and use it on the normal desktop. You can either download it through the package manager (and get version 98):

   sudo apt-get install sugar-turtleart-activity

Turtle art will be added to the Education section of the apps menu.

Or you could get the latest version using git:

   git clone https://github.com/sugarlabs/activity-turtleart-gtk2.git turtleart
   cd turtleart

And use the following to start Turtle Art:

   python turtleblocks.py

NOTE: you may encounter an error related to the summary field in the activity.info. If so, open the activity/activity.info file and move the summary field from the bottom of the file, to being the line below the title field

Sugarizer

Sugarizer is a HTML5 version of Sugar. It has a basic journal and full web activity support.

You can configure Sugarizer to auto-start by setting your ~/.xinitrc to:

   epiphany server.sugarizer.org

(Note: there are a few issues with the browser icons... but sugarizer works well)

Alternatively, you can download the Sugarizer client zip and have it locally on your pi.