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