Is building an .xol bundle/collection/file (containing all the PDF's) the easiest way? What's the easiest way to build up an .xol of PDF's if so?
Presumably by then installing the .xol in Sugar -> Terminal Activity as follows?
sugar-install-bundle /run/media/olpc/<USB DEVICE LABEL>/<BUNDLE.xo>Or is there much better ways to "permanently" install a large number of PDF's onto Sugar across a large number of XO laptops? Or should we use Gnome instead of Sugar, if there's a much better way? Sugar's Browse Activity is preferred (faster, lightweight) but Firefox 26.0 is also installed if absolutely necessary, in case either are needed instead of Sugar's Read Activity.
CLARIF: The job will be done using USB memory sticks, walking from one XO laptop to the next, to install all these PDF's.
CLARIF: We want the PDF's to remain on the XO laptops even after the teacher types in "rm -rf /home/olpc/.sugar" to clean out personal files from Sugar on each laptop, which typically happens at the beginning of each semester.CLARIF: A Sugar icon within the Sugar wheel would be a bonus, but any other method of finding this content within 3-to-5 clicks from Sugar's Home View can work Ok!CLARIF: these books need to be on the XO laptops themselves, as servers like IIAB are *not* always present.
Apologies there are serious electrical problems in Haiti where we're working, so it's very tough to fully research this online!
--Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !
%post --nochroot
# Mel's Example starts (thanks to Mel Chua)
# pull and include sample content
WD=$PWD
CACHE_DIR=$WD/../cache/books
CONTENT_DIR=$INSTALL_ROOT/home/liveuser/Desktop/books
mkdir -p $CACHE_DIR
mkdir -p $CONTENT_DIR
cd $CONTENT_DIR
PDF="$PDF http://people.sugarlabs.org/Tgillard/ReadMeFirst-How-to-build-a-remix.pdf"
PDF="$PDF http://wiki.sugarlabs.org/go/Sugar_Creation_Kit"
PDF="$PDF http://people.sugarlabs.org/sdz/ForwardPages5-6.pdf"
PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Creation_Kit-en-US.pdf"
PDF="$PDF http://people.sugarlabs.org/sdz/Sugar_on_a_Stick-3-Customization_Guide-en-US.pdf"
PDF="$PDF http://en.flossmanuals.net/ActivitiesGuideSugar/FM_25Apr10.pdf"
PDF="$PDF http://en.flossmanuals.net/Sugar/FM_Sugar_28Oct08.pdf"
for pdf in $PDF ; do
remote_file=$(basename $(curl -4 -s -L -w %{url_effective} -I $pdf | tail -1))
file=$CACHE_DIR/$remote_file
if [ ! -f $file ] ; then
curl -s -4 -L $pdf > $file
fi
cp -p $file $CONTENT_DIR
done
%end
---
You received this message because you are subscribed to the Google Groups "Unleash Kids" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
As Bryan Berry once said: Don't use .xol. It is not implemented and will never be supported.
The XO has very limited storage capacity. Last year, I implemented a 'roomserver'. Essentially this is a usb stick mounted on one XO in range of an ad hoc network. It uses SimpleHTTPServer to serve the content to XOs connected by an ad hoc network. This server works like an 'ls' command showing a list of files in the base directory -e.g. pdfs. If an index.html file is in the main folder, it is shown instead of the list. The url of an XO is shown in the frame. This can be used by other xo on that network using Browse. Enter: http://192.168.1.11:8008 where 8008 is the SimpleHTMLServer port.
Currently Sugar provides /home/olpc/Library as the place to store this kind of document. It would be simple to prepare an index.html page with links to the pdfs. This html would be accessible by the file protocol: file:///home/olpc/Library/index.html. Alternatively the standard homepage for Browse is at /home/olpc/.library-pages so the links could be added to that page.
Once a pdf is shown by Browse it can be downloaded to the Journal. From the Journal it can be resumed either by Read or by Browse. This assumes the pdf is downloaded from a server, not the XO. Otherwise, a second copy is made doubling the storage cost.
A teacher should never 'rm -rf /home/olpc/.sugar'. If the intent is to remove the Journal because of space considerations, 'rm -rf /home/olpc/sugar/datastore' is sufficient. After this command the XO needs to be rebooted to create a new empty datastore.
Note: the current 'Journal is full' message is triggered when the unused space is less than 50MB and has nothing to do with the size of the Journal.
Sadly, Sugar provides no way for the user to determine what should be removed (activities, content in folders such as Library, activity storage ('instance', 'data', 'tmp') or the datastore). Hence the standard technique of reflashing the XO. Another example of our developers with their terabyte Ubuntu machines who have no idea of the realities on the ground.
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !
---
You received this message because you are subscribed to the Google Groups "Unleash Kids" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids...@googlegroups.com.
-----------------------------------------
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
Unsung Heroes of OLPC, interviewed live @ http://unleashkids.org !
---
You received this message because you are subscribed to the Google Groups "Unleash Kids" group.
To unsubscribe from this group and stop receiving emails from it, send an email to unleashkids...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
A teacher should never 'rm -rf /home/olpc/.sugar'. If the intent is to remove the Journal because of space considerations, 'rm -rf /home/olpc/sugar/datastore' is sufficient. After this command the XO needs to be rebooted to create a new empty datastore.
-----------------------------------------
From: "Adam Holt"