Changes

Jump to navigation Jump to search
Created page with '<noinclude>{{TOCright}} Category:Live USB </noinclude> Sugar Clone is, at this point in time (April 2010), a bash script that aids in the copying of a LiveOS live image, suc…'
<noinclude>{{TOCright}}
[[Category:Live USB]]
</noinclude>

Sugar Clone is, at this point in time (April 2010), a bash script that aids in the copying of a LiveOS live image, such as Sugar on a Stick, to a secondary device. It is intended to support the Sugar image customization kit projects.

See this announcement post, [http://www.mail-archive.com/soas@lists.sugarlabs.org/msg01018.html You scream, I scream, we all scream for Mirabelle ice cream in a Sugar Clone].
==Introduction==
* See the embedded help documentation in the script [[#Source|displayed below]].
===Test Usage:===

# Before booting the SoaS device that will be the source of the new SugarClone, copy the script files above to the root '/' folder at the base of the filesystem (not the /root folder).
# Boot the USB stick into SoaS and insert a second USB device into the computer running that SoaS image.
# In the Terminal Activity of that running SoaS image, enter the command,
#: <code>/mnt/live/SugarClone</code>

The scripts will copy the currently running image to the second device. When the second device is booted, a new Sugar Learner sign in will be triggered, and the customized Journal and operating system will be present.

Step 1 above, from the perspective of the learner inside a currently running SoaS image, would be different: The root folder of the USB device would be reached through the /mnt/live mount point. The scripts could be obtained (assuming Internet connectivity) as follows:

In the Terminal Activity, change the working directory, get the files, & make them executable:<big>
: <code>cd /mnt/live</code>
: <code>wget http://people.sugarlabs.org/fgrose/modified_livecd-iso-to-disk</code>
: <code>wget http://people.sugarlabs.org/fgrose/SugarClone</code>
: <code>chmod +x modified_livecd-iso-to-disk</code>
: <code>chmod +x SugarClone</code>
</big>
===Possible Use Case:===

# A teacher wants to prepare a SoaS image with a custom set of installed Activity bundles or a Journal of Activity instances for an upcoming class term.
# The teacher modifies their current working image by adding or deleting Activity bundles from their Home view and adding or removing Journal entries with specific content, even saving distributable ebooks, or bookmarks in Browse instances that are named for specific sets of local web destinations (a class portal perhaps for deployments lacking Internet connectivity).
# The teacher scrubs out any personal passwords or other history that should not be shared in the new copies.
# Following customization, a fresh or recycled USB stick that is inserted into the computer running the customized SoaS image can become the SugarClone.

Step 4 assumes that Usage step 1 has been performed either directly or by the SoaS packagers.

===Notes===
These scripts have been tested with SoaS-Mirabelle (available at http://alt.pub/alt/nightly-composes/soas/)
but should work with other versions of SoaS.

The current version of the scripts have the /bin/bash shell specified without the -x (xtrace) option. Set this option, #!/bin/bash -x in the first line of the script to aid testing. When set, they will show a lot of output on the screen as they run.

The scripts are copied to the new SugarClone devices prepared with these scripts so that they can easily propagate themselves. This also applies to all new SoaS installations that are prepared with these scripts (using --image <source> options).

==Needed:==

# More review and testing.
# Submission of the modified_livecd-iso-to-disk script upstream.
# Modifications for XOs.
# Modifications for Intel Macintosh computers.
# A way to automatically identify extra partitions on devices with more than one available partition.
# A way to automatically identify live media images on secondary devices and partitions that could be used as sources for a Sugar Clone.
# Bundling of the scripts for convenience until they are included in SoaS.
# A Sugar Activity that calls or controls the scripts.

These all should help us better prepare a SoaS customization kit.

==Source==
The script is available at http://people.sugarlabs.org/fgrose/SugarClone and is displayed from there below.<br>
The script begins (just after the stock header) with the embedded help functions that describe the script and its usage.
{{#widget:Iframe
|url=http://people.sugarlabs.org/fgrose/SugarClone
|width=800
|height=342
|border=1
}}

Navigation menu