Afghanistan Setup

From OLPC
Revision as of 09:19, 15 June 2009 by Noutash (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Afghanistan Setup

This page is intended to act as a public reference to the current Afghan setup for OLPC. As of this writing we are getting ready for the second pilot deployment day Jun 21th - the details below are subject to change in accordance with requirements / pilot experience.

All info tested against build 802 (8.2.1)

Keyboard Setup

/etc/sysconfig/keyboard to contain:

KEYTABLE="us"
XKB_MODEL="olpc"
XKB_LAYOUT="af,us"
XKB_VARIANT="fa-olpc,olpc2"

Hit Ctrl+Alt+Erase to restart sugar and one should now be able to use the keyboard switching key (english only keyboards the times and divide key)

Localized Files (from Pootle)

Pashto files have just been updated according to the new glossary released by ACSA.

When changing the keyboard layout (the times divide key if required) then please note this bug that causes issues in the write activity:

http://dev.laptop.org/ticket/8892

Download the language pack for Pashto / Dari as per:

Localization/Testing#Using_the_Language_Packs

As translation is ongoing one might need to check for syntax errors in the files:

msgfmt --check <pathtopofiles>


Changing the Start Screen

The laptop has been changed to Bismallah Rahman Al Rahim (Meaning literally in the name of god, traditionally at the start of a book or speech in Afghanistan) and also Afghanistan flag as a progress bar - files will be uploaded for this - instructions / details from:

Tweaking_the_boot_animation

Making Sugar interface RTL for Dari and Pashto language

Note: This is no longer necessary as of build 802.

There are some key values in gtk20.mo and the locales file which control the direction of the interface. 8.2.0 as shipped does not recognize Dari and Pashto as RTL languages - to fix this:

  • Download Sayamindu's updated locales file and unpack:

wget http://dev.laptop.org/~sayamindu/locale-archive.bz2 bunzip2 locale-archive.bz2 mv locale-archive /usr/lib/locale

(This is only for 8.2.0 - this will be fixed in 8.2.1)

  • Copy gtk20.mo to /usr/share/locale/ps/LC_MESSAGES/

Then restart to check. gtk20.mo is currently attached to an email - will shortly find a place to upload it.

Custom Image

For the second pilot deployment the Image_builder is used to generate a custom image. All the school books, other library contents and custom activities are bundled with the image. Since some of the customization are not possible directly in the build environment, a startup script is included in the image which performs additional customizations and deletes itself when finished.

A developer key is obtained from OLPC and is injected to our XOs which let us install our custom image on them.