<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Other neat uses for the modified_livecd-iso-to-disk script:<br>
<br>
1-) Make second live USB from iso downloaded with wget to root of your
USB/SD:<br>
(I used Bernie's Blueberry-Direct ext3 non-live real file system,
expanded with gparted to fit a 8GB SD)<br>
<br>
&nbsp;<a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/bernie/soas-2-blueberry-direct-2GB.img.xz">http://people.sugarlabs.org/bernie/soas-2-blueberry-direct-2GB.img.xz</a><br>
<br>
&nbsp;<a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/Tgillard/soas-2-blueberry-direct-cleared-3GB.img.xz">http://people.sugarlabs.org/Tgillard/soas-2-blueberry-direct-cleared-3GB.img.xz</a>&nbsp;
(modified and expanded version)<br>
&nbsp;<br>
<br>
<br>
2-) Copy-paste an .iso to a 2GB soas-i386-20100405.17 live usb while it
was mounted in a&nbsp; Ubuntu 9.04 PC<br>
reboot with this USB and procede to write it to another 2GB USB:<br>
<br>
Terminal root in:<br>
<br>
/mnt/live/<br>
<br>
./modified_livecd-iso-to-disk soas-i386-20100405.17.iso /dev/sde1<br>
<br>
Works fine....<br>
<br>
It should work with any live cd.<br>
<br>
<br>
Tom Gilliard<br>
satellit<br>
<br>
<br>
-------------------------------------------------------<br>
<br>
1-) transcript:<br>
<br>
Downloaded to root:<br>
<br>
wget
<a class="moz-txt-link-freetext" href="http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/soas-i386-20100411.16.iso">http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/soas-i386-20100411.16.iso</a>&nbsp;
(latest)<br>
<br>
[root@localhost ~]# ./modified_livecd-iso-to-disk
soas-i386-20100411.16.iso /dev/sdd1* &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; * (my device label)<br>
Verifying image...<br>
/root/soas-i386-20100411.16.iso:&nbsp;&nbsp; ca444a0f44d7b49204cec4f3022c3c97<br>
Fragment sums:
5fba13ea314eeb4376b2d3a6411a4ae5aa95d38aea691e12fb86adfe88df<br>
Fragment count: 20<br>
Checking: 100.0%<br>
<br>
The media check is complete, the result is: PASS.<br>
<br>
It is OK to use this media.<br>
Already set up as live image.<br>
Deleting old OS in fifteen seconds...<br>
Copying live image to USB stick<br>
Updating boot config file<br>
Installing boot loader<br>
USB stick set up as live image!<br>
-----------------------------------------------------------<br>
<br>
<br>
========================<br>
<br>
Frederick Grose wrote:
<blockquote
 cite="mid:q2jf3383f811004122305zd2042919g61b16a75c6324ba8@mail.gmail.com"
 type="cite">
  <pre wrap="">Was: Duplicating SoaS with customization.

New work:

1. Reduced the 3 earlier scripts to 2 that provide a means to
   duplicate a running SoaS image together with its customizations in
   a persistent overlay or home folder.

   modified_livecd-iso-to-disk
   SugarClone

   These are available at <a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/">http://people.sugarlabs.org/fgrose/</a>.

2. Automated detection of attached USB storage devices and provide a
   selection menu if there are more than one.

3. Maintained a simple command line for the default case:

      /mnt/live/SugarClone

   (even as the default liveuser account).

4. Provided input auditing for advanced uses.

5. Embedded a much more complete usage document available as an option:

      /mnt/live/SugarClone --help

6. Tested and updated more code paths.

7. Adopted satellit's suggestion to update the boot menu Welcome title.
   And updated the 'About my Computer' Build information so this is
   available at run time.


Test Usage:

1. 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).
2. Boot the USB stick into SoaS and insert a second USB device into the
   computer running that SoaS image.
3. In the Terminal Activity of that running SoaS image, enter the command,

      /mnt/live/SugarClone

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:

1. In the Terminal Activity, change the working directory:

   cd /mnt/live

2. wget <a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/modified_livecd-iso-to-disk">http://people.sugarlabs.org/fgrose/modified_livecd-iso-to-disk</a>

   wget <a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/SugarClone">http://people.sugarlabs.org/fgrose/SugarClone</a>

3. chmod +x modified_livecd-iso-to-disk

   chmod +x SugarClone


Possible Use Case:

1. 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.
2. 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).
3. The teacher scrubs out any personal passwords or other history that
   should not be shared in the new copies.
4. Following customization, a fresh or recycled USB stick that is inserted
   into the computer running the customized SoaS image can become the
   SugarClone.

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

These scripts have been tested with SoaS-Mirabelle (available at
<a class="moz-txt-link-freetext" href="http://alt.pub/alt/nightly-composes/soas/">http://alt.pub/alt/nightly-composes/soas/</a><a class="moz-txt-link-rfc2396E" href="http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/">&lt;http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/&gt;</a>)
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 &lt;source&gt; options).


Needed:

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

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

    --Fred

  </pre>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
SoaS mailing list
<a class="moz-txt-link-abbreviated" href="mailto:SoaS@lists.sugarlabs.org">SoaS@lists.sugarlabs.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sugarlabs.org/listinfo/soas">http://lists.sugarlabs.org/listinfo/soas</a>
  </pre>
</blockquote>
</body>
</html>