<div dir="ltr">On Mon, Apr 9, 2018 at 11:54 PM, Tony Anderson <span dir="ltr"><<a href="mailto:tony_anderson@usa.net" target="_blank">tony_anderson@usa.net</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<div class="gmail-m_-4809376383424045548moz-cite-prefix">As Bryan Berry once said: Don't use
.xol. It is not implemented and will never be supported.<br>
<br>
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: <a class="gmail-m_-4809376383424045548moz-txt-link-freetext" href="http://192.168.1.11:8008" target="_blank">http://192.168.1.11:8008</a> where 8008 is the SimpleHTMLServer
port.<br>
<br>
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: <a class="gmail-m_-4809376383424045548moz-txt-link-freetext">file:///home/olpc/Library/<wbr>index.html</a>. Alternatively
the standard homepage for Browse is at /home/olpc/.library-pages
so the links could be added to that page.<br>
<br>
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.<br>
<br>
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.<br></div></div></blockquote><div><br></div><div>I assume you mean 'rm -rf /home/olpc/.sugar/default/datastore' ?<br>Compare <a href="http://wiki.laptop.org/go/Imaging/Side_effects">http://wiki.laptop.org/go/Imaging/Side_effects</a> mentioned by James Cameron's on Feb 19 @ <a href="http://lists.laptop.org/pipermail/devel/2018-February/038999.html">http://lists.laptop.org/pipermail/devel/2018-February/038999.html</a><br><br>
Thanks much Tony: this approach looks very promising.<br><br>We'll look at Tom Gilliard's approach too: <a href="https://groups.google.com/d/msg/unleashkids/22cKusokstU/UTa49BEiAgAJ">https://groups.google.com/d/msg/unleashkids/22cKusokstU/UTa49BEiAgAJ</a><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><div class="gmail-m_-4809376383424045548moz-cite-prefix">
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. <br>
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.<br></div></div></blockquote><div><br>;)<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><div class="gmail-m_-4809376383424045548moz-cite-prefix">
The easiest and most straightforward approach is to use a bash
script: pdf.sh<br>
<br>
cp first.pdf /home/olpc/Library<br>
cp second.pdf /home/olpc/Library<br>
cp index.html /home/olpc/Library <br>
poweroff<br>
<br>
with the Terminal activity:<br>
<br>
cd /run/media/olpc/usbstick<br>
bash pdf.sh<br>
<br>
This approach works with a set of usb sticks in factory mode since
each XO shuts down allowing the stick to be moved to a waiting XO
already booted.<br>
<br>
Some typing can be saved by using a bash function:<br>
<br>
function cpy(title) {<br>
cp title /home/olpc/Library<br>
}<br>
<br>
with the script:<br>
<br>
cpy first.pdf<br>
cpy second.pdf<br>
cpy index.html<br>
poweroff<span class="gmail-HOEnZb"><font color="#888888"><br>
<br>
<br>
Tony</font></span><div><div class="gmail-h5"><br>
<br>
On Tuesday, 10 April, 2018 10:08 AM, Adam Holt wrote:<br>
</div></div></div>
<blockquote type="cite"><div><div class="gmail-h5">
<div dir="ltr">
<div>
<div>
<div>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?<br>
</div>
</div>
<br>
</div>
Presumably by then installing the .xol in Sugar -> Terminal
Activity as follows?<br>
<div>
<div>
<div><br>
sugar-install-bundle /run/media/olpc/<USB DEVICE
LABEL>/<BUNDLE.xo><br>
</div>
<div><br>
</div>
<div>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.<br>
<br>
CLARIF: The job will be done using USB memory sticks,
walking from one XO laptop to the next, to install all
these PDF's.<br>
</div>
<div>
<br>
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.<br>
<br>
</div>
<div>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!<br>
</div>
<div>
<br>
</div>
<div>CLARIF: these books need to be on the XO laptops
themselves, as servers like IIAB are *not* always present.<br>
</div>
<div><br>
</div>
<div><i>Apologies there are serious electrical problems in
Haiti where we're working, so it's very tough to fully
research this online!</i><br>
</div>
</div>
</div>
</div></div></div><span class="gmail-">
-- <br>
Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a>
!<br>
--- <br>
You received this message because you are subscribed to the Google
Groups "Unleash Kids" group.<br>
To unsubscribe from this group and stop receiving emails from it,
send an email to <a href="mailto:unleashkids+unsubscribe@googlegroups.com" target="_blank">unleashkids+unsubscribe@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br>
</span></blockquote>
<p><br>
</p>
</div><div class="gmail-HOEnZb"><div class="gmail-h5">
<p></p>
-- <br>
Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !<br>
--- <br>
You received this message because you are subscribed to the Google Groups "Unleash Kids" group.<br>
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="mailto:unleashkids+unsubscribe@googlegroups.com" target="_blank">unleashkids+unsubscribe@<wbr>googlegroups.com</a>.<br>
For more options, visit <a href="https://groups.google.com/d/optout" target="_blank">https://groups.google.com/d/<wbr>optout</a>.<br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">Unsung Heroes of OLPC, interviewed live @ <a href="http://unleashkids.org" target="_blank">http://unleashkids.org</a> !</div></div>
</div></div>
</blockquote></div></div></div>