<div>Hi all,</div><div>I&#39;m working on an update script which does things like Activities, Libraries, proxy etc in one hit.</div><div>It&#39;s been a lot of trial and error, but just sharing to see if anybody can suggest improvements.</div>

<div><br></div><div><div># Set up script for Ramingining XO machines September 2010 E.Barrows</div><div>#</div><div># change directory into this folder</div><div>cd /media/*/xo</div><div># Copy proxy settings</div><div>cp user.js /home/olpc/.sugar/default/org.laptop.WebActivity/data/gecko/user.js</div>

<div># check for fonts folder, make and copy in new fonts</div><div>if [ -n /home/olpc/.fonts ]; then mkdir -p /home/olpc/.fonts</div><div>fi</div><div>cp fonts/*.* /home/olpc/.fonts</div><div># Copy browse plugins like flash</div>

<div>cp -r plugins/ /usr/lib/mozilla/</div><div># remove old activity folders</div><div>rm -rf /home/olpc/Activities/Scratch.activity</div><div>rm -rf /home/olpc/Activities/Musicpainter.activity</div><div># install activities (as OLPC not root)</div>

<div>su olpc -c -m &quot;sugar-install-bundle bundles/Scratch-16.xo&quot; </div><div>su olpc -c -m &quot;sugar-install-bundle bundles/Musicpainter-1-2.xo&quot; </div><div># Copy any extra files</div><div>su olpc -c -m &quot;cp -r Projects/ /home/olpc/Activities/Scratch.activiy/&quot;</div>

<div># remove old libraries</div><div>-rm -rf /home/olpc/Library/games</div><div># install new libraries</div><div>cd /home/olpc/Library</div><div>su olpc -c -m &quot;unzip /media/*/xo/Library/games.xol&quot;</div><div># regenerate the index file</div>

<div>su olpc -c -m &quot;/usr/share/library-common/make_index.py&quot;</div><div>#shutdown -P now</div></div><br clear="all"><font class="Apple-style-span" face="arial, sans-serif"><br></font>
<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Sridhar Dhanapalan</b> <span dir="ltr">&lt;<a href="mailto:sridhar@laptop.org.au">sridhar@laptop.org.au</a>&gt;</span><br>

Date: 30 August 2010 12:55<br>Subject: Re: proxy settings<br>To: <a href="mailto:eric.barrows@gmail.com">eric.barrows@gmail.com</a><br>Cc: Ian Cunningham &lt;<a href="mailto:ian.cunningham@nt.gov.au">ian.cunningham@nt.gov.au</a>&gt;, Jason Banner &lt;<a href="mailto:Jason.Banner@nt.gov.au">Jason.Banner@nt.gov.au</a>&gt;<br>

<br><br>Nice work, Eric!<br>
<br>
I&#39;m currently exploring our options with Flash playback, as part of<br>
creating a standard software build for all XOs. Adobe Flash has<br>
traditionally been slower than the included Gnash player. The XOs do<br>
not have graphics acceleration at this point, which affects things<br>
like full screen views.<br>
<br>
I suggest that we take the discussion to the olpc-au mailing list, and<br>
to EdNA if you feel that teachers will benefit also.<br>
<div class="im"><br>
Regards,<br>
Sridhar<br>
<br>
<br>
Sridhar Dhanapalan<br>
Technical Manager<br>
One Laptop per Child (OLPC) Australia<br>
p: +61 425 239 701<br>
w: <a href="http://laptop.org.au" target="_blank">http://laptop.org.au</a><br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">On 28 August 2010 12:03, Eric Barrows &lt;<a href="mailto:eric.barrows@gmail.com">eric.barrows@gmail.com</a>&gt; wrote:<br>
&gt;&gt;Flash?<br>
&gt; Just installing the latest player from Adobe (thanks to Ian for the easy way<br>
&gt; to do it.)<br>
&gt; It&#39;s mainly for the AL content Allan Skien had been developing, which he is<br>
&gt; now formatting to go in as a content bundle.<br>
&gt; But also for functionality (you tube, etc).<br>
&gt; Some things run a bit slow, like my spelling game<br>
&gt; <a href="http://www.schools.nt.edu.au/ramingining/files/flash/zero/ZERO.swf" target="_blank">http://www.schools.nt.edu.au/ramingining/files/flash/zero/ZERO.swf</a><br>
&gt; but most things are fine, and lots of games work too, which makes the kids<br>
&gt; REALY keen to get to use the machines.<br>
&gt; I even made a collection for them to use off<br>
&gt; line; <a href="http://www.schools.nt.edu.au/ramingining/xo/games.xol" target="_blank">http://www.schools.nt.edu.au/ramingining/xo/games.xol</a><br>
&gt; You tube, is ok too as long as we didn&#39;t maximise the view.<br>
&gt; Thanks for the help, we are having a fantastic time out here, these machines<br>
&gt; are simply beautiful.<br>
&gt; Human beings are the only creatures that allow their children to come back<br>
&gt; home.<br>
&gt;   - Bill Cosby<br>
&gt;<br>
&gt;<br>
&gt; On 27 August 2010 13:30, Sridhar Dhanapalan &lt;<a href="mailto:sridhar@laptop.org.au">sridhar@laptop.org.au</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Hi Eric,<br>
&gt;&gt;<br>
&gt;&gt; I have just checked the proxy configuration on an XO-1.5 with os201,<br>
&gt;&gt; i.e. of the type that we have supplied to your school. You are<br>
&gt;&gt; correct: proxy settings must be made in the user.js file or by<br>
&gt;&gt; visiting about:config in Browse. In os202 or later, this has been<br>
&gt;&gt; changed to take settings from gconf, the configuration system used by<br>
&gt;&gt; GNOME (meaning that both GNOME and Sugar will share the same proxy<br>
&gt;&gt; settings).<br>
&gt;&gt;<br>
&gt;&gt; I also noticed that you are installing Adobe Flash. We are currently<br>
&gt;&gt; evaluating using it in our standard builds, so I would be interested<br>
&gt;&gt; in hearing your experiences with it. Which version are you using? How<br>
&gt;&gt; well does it work, in terms of performance and so on? What Flash<br>
&gt;&gt; content do you use most?<br>
&gt;&gt;<br>
&gt;&gt; The /home/olpc/.library_pages/index.html file is generated<br>
&gt;&gt; automatically via a script. As XOL content bundles are added, they<br>
&gt;&gt; will appear as items in the sidebar on the left. XOL bundles are<br>
&gt;&gt; relatively easy to create - they are just HTML pages in a ZIP archive.<br>
&gt;&gt; Here are some instructions:<br>
&gt;&gt; <a href="http://wiki.laptop.org/go/Creating_a_content_bundle" target="_blank">http://wiki.laptop.org/go/Creating_a_content_bundle</a><br>
&gt;&gt;<br>
&gt;&gt; There is an activity called Info Slicer which is designed to make this<br>
&gt;&gt; easier: <a href="http://wiki.sugarlabs.org/go/Activities/Info_Slicer" target="_blank">http://wiki.sugarlabs.org/go/Activities/Info_Slicer</a><br>
&gt;&gt;<br>
&gt;&gt; The XO image file we are using is available at<br>
&gt;&gt; <a href="http://build.laptop.org/10.1.1/os201/" target="_blank">http://build.laptop.org/10.1.1/os201/</a><br>
&gt;&gt;<br>
&gt;&gt; A means of more easily imaging XOs and applying activity (XO) and<br>
&gt;&gt; content (XOL) bundles is a customisation stick:<br>
&gt;&gt; <a href="http://wiki.laptop.org/go/Customization_stick" target="_blank">http://wiki.laptop.org/go/Customization_stick</a><br>
&gt;&gt;<br>
&gt;&gt; If you are interested in participating in our technical development<br>
&gt;&gt; and testing, we have a mailing list:<br>
&gt;&gt; <a href="http://lists.laptop.org/listinfo/olpc-au" target="_blank">http://lists.laptop.org/listinfo/olpc-au</a><br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt; Sridhar<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Sridhar Dhanapalan<br>
&gt;&gt; Technical Manager<br>
&gt;&gt; One Laptop per Child (OLPC) Australia<br>
&gt;&gt; p: +61 425 239 701<br>
&gt;&gt; w: <a href="http://laptop.org.au" target="_blank">http://laptop.org.au</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On 26 August 2010 20:11, Eric Barrows &lt;<a href="mailto:eric.barrows@gmail.com">eric.barrows@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Thanks Ian, Sridhar, Jason<br>
&gt;&gt; &gt; I see the issue with the library page. I&#39;ll make our web resources into<br>
&gt;&gt; &gt; a<br>
&gt;&gt; &gt; collection that can be added to the machine propperly, which is a much<br>
&gt;&gt; &gt; better solution.<br>
&gt;&gt; &gt; Also I&#39;ve got one brick XO which comes up with a file error when<br>
&gt;&gt; &gt; booting,<br>
&gt;&gt; &gt; but I can&#39;t seem to get re-imaging via USB to work.<br>
&gt;&gt; &gt; Do you have the correct image files on the FTP site of yours?<br>
&gt;&gt; &gt; I didn&#39;t have any luck trying to get Browse to use the system proxy, but<br>
&gt;&gt; &gt; that would be the best solution if we can do so.<br>
&gt;&gt; &gt; Regards<br>
&gt;&gt; &gt; e<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Human beings are the only creatures that allow their children to come<br>
&gt;&gt; &gt; back<br>
&gt;&gt; &gt; home.<br>
&gt;&gt; &gt;   - Bill Cosby<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; On 26 August 2010 13:42, Ian Cunningham &lt;<a href="mailto:ian.cunningham@nt.gov.au">ian.cunningham@nt.gov.au</a>&gt;<br>
&gt;&gt; &gt; wrote:<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Thanks Eric,<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Ian<br>
&gt;&gt; &gt;&gt; -------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt; Ian Paul Cunningham<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Information Technology Project Officer<br>
&gt;&gt; &gt;&gt; Information Services<br>
&gt;&gt; &gt;&gt; NT Department of Education and Training<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Mobile: 0401115026<br>
&gt;&gt; &gt;&gt; -------------------------------------------------------------------<br>
&gt;&gt; &gt;&gt; ________________________________________<br>
&gt;&gt; &gt;&gt; From: Eric Barrows [<a href="mailto:eric.barrows@gmail.com">eric.barrows@gmail.com</a>]<br>
&gt;&gt; &gt;&gt; Sent: Wednesday, 25 August 2010 5:52 PM<br>
&gt;&gt; &gt;&gt; To: Ian Cunningham<br>
&gt;&gt; &gt;&gt; Subject: proxy settings<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; Hi Ian,<br>
&gt;&gt; &gt;&gt; Thanks for your help so far, I&#39;m sure you are way beyond what I have<br>
&gt;&gt; &gt;&gt; below, but just in case I thought I&#39;d share.<br>
&gt;&gt; &gt;&gt; I had a break through this afternoon in trying to automate some<br>
&gt;&gt; &gt;&gt; configuration.<br>
&gt;&gt; &gt;&gt; As below, I&#39;ve a usb called USB with the libflashplayer on it, but also<br>
&gt;&gt; &gt;&gt; a<br>
&gt;&gt; &gt;&gt; homepage with a link to the school page and a prefs file for &#39;Browse&#39;.<br>
&gt;&gt; &gt;&gt; It seems I can&#39;t make the folder .sugar before a user signs in or the<br>
&gt;&gt; &gt;&gt; sugar ui will not load and if I make the org.laptop.WebActivity folder<br>
&gt;&gt; &gt;&gt; before the user has run &#39;Browse&#39; it won&#39;t start either.<br>
&gt;&gt; &gt;&gt; But I can just run the script from the usb and fix flash and proxy<br>
&gt;&gt; &gt;&gt; almost<br>
&gt;&gt; &gt;&gt; instantly once the user has started the XO.<br>
&gt;&gt; &gt;&gt; (the breakthrough was finding the right folder for user.js)<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; # setup.sh<br>
&gt;&gt; &gt;&gt; cd /media/USB/<br>
&gt;&gt; &gt;&gt; cp user.js<br>
&gt;&gt; &gt;&gt; /home/olpc/.sugar/default/org.laptop.WebActivity/data/gecko/user.js<br>
&gt;&gt; &gt;&gt; cp index.html /home/olpc/.library_pages/index.html<br>
&gt;&gt; &gt;&gt; cp libflashplayer.so /usr/lib/mozilla/plugins/<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; #user.js<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.http&quot;, &quot;10.55.14.99&quot;);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.http_port&quot;, 8080);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.ssl&quot;, &quot;10.55.14.99&quot;);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.ssl_port&quot;, 8080);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.ftp&quot;, &quot;10.55.14.99&quot;);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.ftp_port&quot;, 8080);<br>
&gt;&gt; &gt;&gt; user_pref(&quot;network.proxy.type&quot;, 1);<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt;<br>
&gt;&gt; &gt;&gt; If you are not the intended recipient of this message, any use,<br>
&gt;&gt; &gt;&gt; disclosure<br>
&gt;&gt; &gt;&gt; or copying of the message or any attachments is unauthorised.<br>
&gt;&gt; &gt;&gt; If you have received this message in error, please advise the sender.<br>
&gt;&gt; &gt;&gt; No representation is given that attached files are free from viruses or<br>
&gt;&gt; &gt;&gt; other defects.  Scanning for viruses is recommended.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;<br>
&gt;<br>
</div></div></div><br>