Abhishek Singh of OLE Nepal published a wish list for the OLPC XS School Server project, reproduced here with light copy editing. Please comment on the Wiki page, so that developers can see all of the suggestions together.
OLPC XS: My wishlist
By Abhishek Singh ⋅ May 27, 2011
The XO school Server, or XS, is one of the products of the OLPC project, designed to complement the XO laptop. It is a Linux-based OS (a Fedora-based distribution) engineered to be installed on generic low-end servers. (Source: http://wiki.laptop.org/go/School_server) The School Server has always been an integral part of OLPC deployments. School Server acts as a central hub and provides various services to XO laptops. It also hosts additional contents that could not be fit onto the XOs (It would be worth noting that the XO-1.0 has 1GB of storage space).
Despite being given such a prominent position, the development of XS software has stuck somewhat and has lost focus, with the last release on 7 October 2009. The most recent release of OLPC XS (version 0.6) is based upon Fedora 9. The upstream Linux distribution (i.e. Fedora) has made a lot of changes since its version 9 release, and has just released Fedora 15 hosting a lot of new and interesting features.
My work at Open Learning Exchange (OLE) Nepal revolves around building customized images for OLPC XS, XO and bundling the content. I had always wanted to have XS maintained to keep up with the innovations going on at the upstream distribution, as well as to get the benefits of new services and infrastructure supported by the newer releases of the upstream distribution. We at OLE Nepal had been making some changes to the OLPC XS image to suit our needs, and adding required services, but I strongly believe the the worldwide OLPC community can benefit through collaboration, and hence building a general XS image to fit all (it would always be open for local customizations).
Below is a list of changes that I wish to have in the OLPC XS (some of which comes from our own list of customizations):
Porting XS to new version of Fedora
Fedora Project has come to the release of version 15 of their Linux distribution, which hosts a lot of interesting features, but OLPC XS is still stuck with Fedora 9 (which itself has moved to “End of Life”). This state hinders us from using more stable software components, access to bug-fixes, and improved infrastructure. This also forces packagers to package software for Fedora 9. Porting XS to Fedora 15 will bring us up to all the current awesomeness, but again it will be a lot of work porting the patches and packages (developed by OLPC community) to Fedora 15.
Support for multiple architecture
Though XS is targeted to be run on generic low-end servers (mostly i386 architecture), with the recent trend of hardware price declines, deployers will tend to use more advanced hardware (which might support x86_64 architecture). Current XS effort is targeted at i386 (32 bit) builds, but adding x86_64 (64 bit) builds would not be that cumbersome, and would definitely attract deployers eying 64bit hardware.
Basic Self Tests
It would be great to have basic self tests embedded into the XS, which will help the school side to diagnose and fix the problem easily. Individuals at the school looking after the school server might not be proficient with GNU/Linux and would have a hard time to diagnose and fix a problem with XS; this is a case with the Nepalese deployments. Adding to this, for a fix, either the support team needs to be dispatched to the school (which might be located in a remote place), or the ask the school to bring back the school server to the support centre. Given the scenario in Nepal, with just a single support centre, this fix can cost a lot of time, effort, and money. Basic self tests, with mechanism to provide instructions on now to fix simple problems is greatly going to ease the hassle. The self tests can contain testing services, network status and such.
Inclusion of new packages
- systemd: a replacement for SysVinit and Upstart that acts as a system and session manager.
- usb-modeswitch: a library/utility for handling Mode-Switching USB Devices on Linux. This package is required to access internet through 3G cards (e.g. Mobile broadband).
- ipcheck: a Dyndns.org client to register your dynamic IP address. It helps to configure the server with dynamic dns and with port forwarding enabled on the Internet gateway, eases accessing the school server from anywhere on the Internet.
- MySQL: a relational database server, and a de-facto backend for many services. Also it would be good to ditch PostgreSQL for Moodle. MySQL management is easy than PostgreSQL and there is more documentation, community support and human resource for MySQL.
- PHP with required extensions: a powerful server-side HTML embedded scripting language. OLE Nepal’s digital library “E-Pustakalaya” runs on PHP and MySQL. Also we might need some PHP extensions like php-mysql, php-gd, php-xml.
- Python 2.x and Python 3.x: an interpreted, interactive, object-oriented, extensible programming language. Python 2.x should be included for backward compatibility as many python scripts and applications still use the 2.x version. Python 3.x should be included for forward compatibility — more apps would be coded in 3.x version in coming days.
- Expect: a Unix automation and testing tool and used to automate interactive applications such as telnet, ftp, passwd, fsck, rlogin, tip, etc. E-Pustakalaya uses Fedora Commons which has a interactive setup; we use expect to automate the installation by providing all answers to the setup program. Expect is useful to create headless installers, and it also has a python wrapper.
- libicu and Unicode support: Adding Unicode support in XS will help to have localized web applications hosted on the XS (using gettext framework).
- Java: Adding a Java Runtime Environment (JRE) would add support for running java based applications (e.g. Tomcat, Fedora Commons, etc.)
- tzdata and extensions: Adding timezone data and its wrapper libraries in various languages will help the support for timezone data in applications hosted on XS (e.g. SchoolTool needs pytz).
- SchoolTool: a free administrative software for schools around the world. It provides a good administrative interface and facilities. I’ve already packaged SchoolTool for Fedora and tested it on XS. OLE Nepal is also in transition to pilot SchoolTool to a few schools. Also, integration of Moodle and SchoolTool is being worked out.
- Moodle 2.x: a Course Management System (CMS), also known as a Learning Management System (LMS) or a Virtual Learning Environment (VLE). The moodle on current XS is outdated. Moodle 2.x hosts improved interface and additional features than its previous versions. With Moodle, a few other features would be interesting:
- Using MySQL instead of PostgreSQL
- Integration with SchoolTool: See http://docs.moodle.org/en/Development:SchoolTool_Integration for details.
- A mechanism to consolidate Moodle data. The scenario would be like XS would be shipped with some sample data, teachers and students at the school would create some data, and additional data would be pushed periodically through content updates. So there should be a mechanism to consolidate all the data and retain it, without losing the previous data while doing content update.
XO laptops with a limited storage can not hold much content, so heavy content (e.g. E-Pustakalaya) is offloaded to the school server. Also that the XS hosts sugar activity updates. In Nepalese deployment, we generate content bundles including E-Pustakalaya and E-Paath along with new releases of sugar activities every three month, and the deployment team would generally visit each schools and update the content. Nepalese XS is equipped with scripts to handle headless content updates.
Additionally we are also doing content update through network/Internet wherever feasible. Content update through network can be really troublesome with deployment scenario of schools having limited connectivity to Internet and/or having only LAN level access among schools. Devising content update would involve creating a unified format for content bundles and devising a way to deploy content updates easily through network with a minimal payload on the content server. I would suggest a torrent based mechanism to handle content deployment – it will offload content through local peers and handle data checksums and all. Meanwhile a mechanism to support loading content on a USB hard disk would be great as it will help to deliver the content to the XS with no Internet connectivity.
Web content filtering
XS with Internet access are configured as Internet gateways for XO laptops and other devices connecting to the network. This poses one problem – children can be subjected to websites related with vandalism and pornography. A content filtering mechanism for web browsing would solve this problem. Additionally some file extensions and websites can be blocked, so as to help traffic shaping. I would suggest Dansguardian as a tool for this purpose. We have been using Dansguardian on NE-XS (the Nepalese clone of OLPC XS), and has been successfully using it. Dansguardian supports message/information templates in case a extension or a website is blocked. Also it supports Unicode messages. Hence using a Dansguardian with customized message templates in local languages would help a great deal for content filtering, meanwhile displaying appropriate messages in cases of site blocks.
Journal Backup on a shared model distribution
I am aware that the OLPC project emphasizes the laptop distribution model having 1:1 child-laptop ratio, that is to say each kid owns a laptop, but sharing a laptops among few kids (say one laptop to be shared among 3 kids) can be beneficial sometimes. For developing countries like Nepal, it might take some time to arrange funds for mass OLPC deployments. In such a scenario, where mass deployments might take time, continuing on with available resources (XOs) would seem more appropriate than to wait to gather enough resources for mass deployments. This focuses on having the XOs shared and utilized rather than keeping them unused. Having said that, physically sharing a laptop among few kids might seem no-brainer, but the complexity lies in how the XS interacts with the school server and how services are provided/consumed.
One important aspect of this is Journal backup. XS has a service call id-manager (idmgr) which registers a laptop with school server. The registration uses the XO serial number as a unique key to maintain the list and various service like ds-backup is provided based upon the key. In the laptop-sharing scenario, the journal created on a laptop might actually belong to more than one user, and managing journal backups and restore can be troublesome. Meanwhile, multiple users using one laptop means that more journal entries would be created and hence the frequency for journal backup would increase inherently.
To solve this problem, the idmgr and the ds-backup service somehow needs to recognize the user creating the journal entry rather than just based upon the XO serial. Unfortunately, I do not know how to force user logins on sugar; and forcing user logins consequently is going to confuse the kids. Another way might be to use one folder per user per XO serial. But then we need to tell idmgr and ds-backup on which journal entry should go into which folder. I don’t yet have a clear idea on how to implement this, but I would definitely like to have this feature included with the XS.
I have always been looking forward to implementing a socializing and communication platform on the XS that will help users to socialize and communicate. By this I mean inter-school and intra-school communication. Also that this framework can be used to send messages and notifications to users (teachers, administrators, and students). Implementing an offline mail queue which keeps mail lined up and sends them when it has Internet connectivity would be a great feature. Schools in Nepal have sparse Internet connectivity, and such a mail queue might help inter-school communication. I’m looking forward to use Open Atrium as a tool for this purpose. Also a multi-node system of Open Atrium, if it can be implemented, with a inter-node communication, would ease the task a lot.
These were some of the customizations I envision would help a great deal with the XS. I’m not even sure if items on my wishlist are feasible at this time. What is your XS wishlist?
- Fedora 9–>15 +1
- x86_64 +1
- Self tests +1 We should write a tutorial and FAQ on testing,maintenance, and simple admin tasks. I have done such work as a Senior Technical Writer, and would be happy to take part, and to coordinate the project. We will need subject-matter experts, a photographer, an artist, at least one copy editor. Anyone else can contribute, also. If you know nothing about the subject, you can test whether our explanations explain. We can use the collaborative booki software on the Sugarlabs Replacing Textbooks server, booki.treehouse.su, to write and publish this. All of this is an issue in Uruguay, where school servers are kept in locked cages, and Plan Ceibal rigorously limits what can be done with them. For example, they cannot be used for printing.
- Moodle upgrade +1 I will talk to FLOSS Manuals about creating a Moodle manual. Can you get some Nepali translators for us?
- “Content update through network can be really troublesome withdeployment scenario of schools having limited connectivity to internet and/or having only LAN level access among schools.” Have you considered FidoNet? I can get Tim Pozar, one of the original FidoNet implementors, into this discussion. He is currently working on free wide-area wireless networks. Would you like to talk to him about that, too? Or Clif Cox, who designed the wireless network for all of Bhutan?
- Dansguardian for Internet filtering, with customizable Unicode messages for blocked sites. +1 Unless someone knows of a better alternative.
- Socializing and communication platform, with provision for forwarding messages when Internet connectivity is available. +1 I, too, have been looking forward to such a function. I consider linking all of the children of a country to be as important as any educational content we can provide. Actual contact with the widest possible variety of people is essential for overcoming prejudice. Regular contact promotes friendship, language learning, cultural and geographic learning, and forming alliances for later development of civil society and founding of businesses.–Mokurai 18:40, 27 May 2011 (UTC)