Re: [Server-devel] Nepal XS customizations

2009-10-23 Thread Daniel Drake
2009/10/23 Martin Langhoff martin.langh...@gmail.com:
  - a script to simplify eth0 configuration

 How does that work?

http://hg.olenepal.org/NEXS_scripts/file/tip/netsetup.sh

 Notes on self test:
  - 32 tests performed, to check that: hostname has been set, both
 ethernet interfaces present, all the regular XS services running

 How does that work? Without the Nepal specific bits, that might be a
 nice addition to the XS...

A bash test wrapper and a series of tests:
http://hg.olenepal.org/NEXS_scripts/file/tip/tests

  - a clone of http://en.wiktionary.org  - an English definition dictionary
  - a clone of www.nepalisabdakos.com - a Nepali definition dictionary

 How do you mirror those?

Sabdakos: our personal contacts with the site sent us their db and source
Wiktionary: blog entry coming up whenever I have time, there were a
few challenges...

Daniel
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Nepal XS customizations

2009-10-22 Thread Daniel Drake
Here are the customizations we're making on top of XS-0.6 here in
Nepal. This version will start being distributed to the field on
Monday.

Kickstart file modifications:
 - no GUI, just use text mode
 - auto reboot at the end of installation
 - no interactivity during installation
 - timezone and root password hardcoded
 - packages added: dansguardian, dependencies for nepal's E-library
system (www.pustakalaya.org) e.g. mysql, some php modules,
ImageMagick, java
 - added a nepal-specific nexs-custom customization package, and a
script from that package to run on firstboot (details below)
 - nepal-specific XS build number written to /etc/motd and /etc/issue

Build scripts including the customization file can be found at
http://hg.olenepal.org/NEXS-image-builder/

The customizations from nexs-custom:
 - udev rules to make sure that onboard LAN is eth1, and USB ethernet
adapter (for WAN) is eth0
 - apache configs to set up aliases for our various content components
and E-library
 - mysql config file to enable storage in /library and
1-file-per-table innodb setting
 - a script to simplify eth0 configuration
 - a self test system (details below)
 - various usbmount scripts to enable automatic content installation from USB

The firstboot script from nexs-custom:
 - configure and enable dansguardian
 - setup admin user account, with a predetermined SSH public key and password
 - configure and enable mysql
 - enable moodle admin account and set a predetermined password
 - beep and print some instructions to the screen

Notes on self test:
 - 32 tests performed, to check that: hostname has been set, both
ethernet interfaces present, all the regular XS services running,
Nepal content has been installed
 - it runs on every boot, logging the test results and info into
/var/log (max 500 logs kept)
 - it can also be run from a usbmount script which is triggered by a
file named nexs-run-self-test on the USB disk. In this mode it will
use aural beep codes to indicate test success and failure, in addition
to logging the test results and info back to the USB disk.

nexs-custom code is found at http://hg.olenepal.org/NEXS_scripts/

The content that we add:
 - Fedora Commons (www.fedora.info) and Fez frontend, and huge content
collection -- a clone of pustakalaya.org
 - a clone of http://en.wiktionary.org  - an English definition dictionary
 - a clone of www.nepalisabdakos.com - a Nepali definition dictionary
 - wikipedia for schools (http://schools-wikipedia.org/)
 - latest full version of OLE Nepal's huge educational content
activity, including the whole years worth of lessons (this is also
present on the XOs but only for a certain time period at a time -- the
overall activity is split into 6 different XO activities which are
distributed at different times through the year, the full version is
too big to store on XO)
 - some world maps, an atlas, and educational videos

some scripts we use for supporting the above content installation can
be found at http://hg.olenepal.org/NEXC-maint/

Daniel
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Nepal XS

2008-10-05 Thread Bryan Berry
On Mon, 2008-10-06 at 09:18 +0545, Martin Langhoff Wrote wrote:
For example, use two XOs to verify ejabberd
functionality. Use browse to verify that the schoolserver link delivers
the Moodle (site) home page. Use browse to verify internet 
 connectivity.
Try to access a 'forbidden' site to verify Dansguardian is working. In
short, a checklist of simple tests to verify server functions.
 
 Worthtwhile idea, right now we have too many things changing, but
 that'd be something for a 0.9/1.0 release.

I respectfully disagree, I think these tests would be more useful since
many things are changing. Simple tests would save us a lot of testing
time in our own lab. The tests should just be generic enough to
accommodate changes in the underlying systems.

Such tests would save Tony a ton of time testing a new XS install,
whether it be 0.4, 0.5-0.9 I suspect they would save time for others as well.

-- 
Bryan W. Berry
Technology Director
OLE Nepal, http://www.olenepal.org

___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


Re: [Server-devel] Nepal XS

2008-10-05 Thread Martin Langhoff
On Mon, Oct 6, 2008 at 4:47 PM, Bryan Berry [EMAIL PROTECTED] wrote:
 Such tests would save Tony a ton of time testing a new XS install,
 whether it be 0.4, 0.5-0.9 I suspect they would save time for others as well.

We are working with a core team of 2, soon to shink to 1 1/2. There is
a *very* small set of pilots currently in place, but this number is
about to explode -- I need to focus on moving forward as fast as
possible.

On the other hand, if others can help with documentation and polish
stuff, I'm all for it.

cheers,



m
-- 
 [EMAIL PROTECTED]
 [EMAIL PROTECTED] -- School Server Architect
 - ask interesting questions
 - don't get distracted with shiny stuff  - working code first
 - http://wiki.laptop.org/go/User:Martinlanghoff
___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel


[Server-devel] Nepal XS deployment

2008-10-03 Thread Tony Anderson
Hi,

I am currently working to build a local version of XS 0.4. The goal is 
to be able to install XS from a USB drive requiring the installer only 
to provide the name of the school and the ip address of the server.

Yesterday I was able to install XS 0.4 from a USB drive with help from 
Jeremy Katz.

Most USB drives are not bootable. This requires:

parted /dev/sdb
toggle 1 boot
quit

after which livecd-iso-to-disk should accept it.

The rabbit-hole is to attempt the obvious:

parted /dev/sdb1
toggle 1 boot

which does not work.

The three remaining (big) steps are:

1. Add Dansguardian
2. Add Moodle
3. Develop custom install script which accepts the school name and the 
server ip address and completes the configuration of the server 
automatically.

Naturally, I would like to work in collaboration with the XS development 
team so as not to duplicate too much of this effort. For example, it 
would be easy to add the Dansguardian and Moodle files to the USB drive.
If the XS release install script executed a file (script) with a 
well-known name on the USB drive, it would be possible for local 
deployments to use this file for a configuration script. This would also 
make it easy for us to develop our script and then make it available to 
you to see what should be included in the standard release and what 
should be left local.

Another area that deserves some attention is how to test a server 
installation in the field. For example, use two XOs to verify ejabberd 
functionality. Use browse to verify that the schoolserver link delivers 
the Moodle (site) home page. Use browse to verify internet connectivity.
Try to access a 'forbidden' site to verify Dansguardian is working. In 
short, a checklist of simple tests to verify server functions.

Tony


___
Server-devel mailing list
Server-devel@lists.laptop.org
http://lists.laptop.org/listinfo/server-devel