Giter Club home page Giter Club logo

sugar-live-build's Introduction

Sugar Live Build

Introduction

Sugar Live Build is a complete bootable image containing Debian Linux, Sugar, the Sugar toolkits, and the demonstration activities.

  • it can be booted from hard drive, flash drive, and optical media, automatically starting Sugar without persistence;

  • it can be installed as a virtual machine, with persistence and password protection,

  • it contains all build dependencies, configured source trees (git clones in /usr/src), and binaries (make install) for Sugar modules and the demonstration activity set.

For a pre-built ISO-9660 file see Downloads.

How to rebuild

Rebuilding Sugar Live Build is not necessary if you just want to use it. You only need to rebuild if you plan to release a new image for others.

  1. Install Debian 10 Buster;

  2. Clone this repository;

git clone https://github.com/sugarlabs/sugar-live-build.git
  1. Run the build script.
./build

When this is finished, look for a new file ending with .hybrid.iso, which is a bootable ISO-9660 file.

How to add activities

  1. Open the build script with a text editor,

  2. Look for the section that clones activities,

  3. Clone each activity;

    clone https://github.com/username/repository.git ActivityName.activity

Above is a template. Use the URL of the repository. Replace ActivityName with the bundle name. Use .activity as the directory suffix.

Then rebuild.

Debian Live Build

Debian Live Build has documentation for more details.

Caching

A cache of packages is maintained by Live Build, so that repeated builds will avoid downloading what has already been downloaded. The cache is about 1.4 GB after our build of Debian Buster.

However, the cache is distribution version specific. For development of multiple distribution versions, you may use an instance of the approx package. This may be on a different system, or the same system as Live Build.

This is optional.

How to set up Live Build and approx together:

  • install the approx package:
		sudo apt install approx
  • edit the approx configuration file:
		sudo editor /etc/approx/approx.conf
  • add entries for Debian:
		debian          http://ftp.debian.org/debian
		security        http://security.debian.org/
  • edit your build file to switch to using approx,
		lb config \
		    --mirror-bootstrap http://approx:9999/debian \
		    --mirror-chroot-security http://approx:9999/security \
  • clear the Live Build disk cache,
		sudo rm -rf cache
  • run Live Build again.

sugar-live-build's People

Contributors

quozl avatar dipanshkhandelwal avatar walterbender avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.