<!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">
<br>
<br>
Frederick Grose wrote:
<blockquote
cite="mid:z2nf3383f811004060950q4d7a81e6ha4bbeaf5d7a0efae@mail.gmail.com"
type="cite">
<pre wrap="">As requested in <a class="moz-txt-link-freetext" href="http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/TODO">http://wiki.sugarlabs.org/go/Sugar_on_a_Stick/TODO</a>,
<a class="moz-txt-link-freetext" href="https://bugzilla.redhat.com/show_bug.cgi?id=448030">https://bugzilla.redhat.com/show_bug.cgi?id=448030</a>, and
<a class="moz-txt-link-freetext" href="http://bugs.sugarlabs.org/ticket/74">http://bugs.sugarlabs.org/ticket/74</a>, the following 3 scripts provide a
testable
means to duplicate a running SoaS image that may have been customized
(in its persistent overlay or home folder):
modified_livecd-iso-to-disk
transferSugarImage
newSugarStick
These are available at <a class="moz-txt-link-freetext" href="http://people.sugarlabs.org/fgrose/">http://people.sugarlabs.org/fgrose/</a>.
Test Usage:
1. Copy the script files above to the root '/' folder at the base of the
filesystem on a SoaS USB stick known to run Sugar.
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/newSugarStick
</pre>
</blockquote>
I tried this:<br>
<br>
used liveusb-creator ( yum installed on a soas-i386-20100329 2GB USB
stick)<br>
to write a 2GB Firefly USB with 900 persistence file with
soas-i386-20100405.17.iso<br>
Rebooted new stick<br>
copied 3 scripts to /root of running 405 USB from another inserted USB
stick<br>
yum install yum remove sugar-xoirc<br>
yum install gedit<br>
DL IRC.xo from ASLO<br>
<br>
inserted a 2nd USB Target<br>
<br>
I entered "mount"<br>
(my 2nd USB was /dev/sde1)<br>
I used gedit to edit script :transferSugarImage <br>
Changed to: TARGETDEV=/dev/sde1<br>
saved it<br>
<br>
in root terminal:<br>
<pre wrap="">/mnt/live/newSugarStick</pre>
I tried this and get <br>
"No such file or directory"<br>
<br>
all three scripts are located in / root<br>
I tried chmod 077 on them with same result<br>
Then tried ./newSugarStick:<br>
<br>
+ su --session-command=/mnt/live/transferSugarImage root<br>
bash: /mnt/live/transferSugarImage: No such file or directory.<br>
<br>
Help<br>
<br>
Tom Gilliard<br>
satellit<br>
<br>
<blockquote
cite="mid:z2nf3383f811004060950q4d7a81e6ha4bbeaf5d7a0efae@mail.gmail.com"
type="cite">
<pre wrap=""> (At this point in development, the transferSugarImage script assumes
that
the second device is mounted and recognized as /dev/sdc1. You may
confirm this by executing the command,
mount
and checking for the lines that return your second device's name and
device partition, such as /dev/sdc1.)
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,
but
the customized Journal and operating system will be present.
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 bookmarks in Browse instances
that are named for specific sets of web destinations.
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 is inserted into
the
computer running the customized SoaS image.
5. The Sugar Terminal Activity is opened and this command is entered:
/mnt/live/newSugarStick
Step 5 assumes that Usage step 1 has been performed either directly or by
the SoaS packagers.
Presently, the transferSugarImage script is hard-coded to run the
modified_livecd-iso-to-disk installation script with these options:
--noverify To avoid the need for verification software--a running
image
is its own form of verification.
--copy-overlay This duplicates the customizations on the source image
operating system, including those in the home folder if
there was no separate, persistent home.
--delete-home This is required to confirm deletion of a persistent home
folder, if it exists on the target device.
--copy-home This duplicates the customizations on the source image
home folder, if it exists.
The modified_livecd-iso-to-disk script has a new option, --help, which
displays
its usage instructions.
These scripts have been tested with SoaS-Mirabelle (available at
<a class="moz-txt-link-freetext" href="http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/">http://alt.fedoraproject.org/pub/alt/nightly-composes/soas/</a>).
The scripts have have the /bin/bash shell specified with the -x (xtrace)
option set
to aid in testing. That means they will show a lot of output on the screen
as they
run.
The scripts are copied to new SoaS devices prepared with these scripts so
that they can propagate themselves.
Needed:
1. Review and testing.
3. Submission of modified_livecd-iso-to-disk upstream
2. A way to determine the name of the secondary USB device partition
automatically
in the transferSugarImage script.
3. A Sugar Activity that calls the scripts.
These steps should help us 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>