Ethiopian Setup: Difference between revisions

From OLPC
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:
* Update your OS image if it's older than 571
* Update your OS image if it's older than 571


* Boot, switch to the console (<code>alt-F1</code>) and login as root.
* Edit <tt>/etc/rpm/macros.pilgrim</tt> and add <tt>am_ET</tt> to the list of <tt>%_install_langs</tt>

* Edit <code>/etc/rpm/macros.pilgrim</code> and add <code>am_ET</code> to the list of <code>%_install_langs</code>.


* Install the Amharic font locally:
* Install the Amharic font locally:

cd /home/olpc
cd /home/olpc
mkdir .fonts
mkdir .fonts
Line 13: Line 16:


* Add the olpc-bernie yum repository:
* Add the olpc-bernie yum repository:

cd /etc/yum.repos.d
cd /etc/yum.repos.d
wget http://www.codewiz.org/pub/olpc-bernie/olpc-bernie.repo
wget http://www.codewiz.org/pub/olpc-bernie/olpc-bernie.repo


* Install a few updates from olpc-bernie:
* Install a few updates from olpc-bernie:
yum update glibc libX11 xkeyboard-config


yum update libX11 xkeyboard-config
* Set the LANG environment variable in <tt>/etc/sysconfig/i18n</tt>

* For glibc, yum will not work because we install the <code>i686</code> package even though <code>uname -m</code> says <code>i586</code>. Additionally, a glibc utility ran by the post install scriptlet breaks on JFFS2 because it depends on an unsupported filesystem feature. So we need to play a few dirty tricks around the package installation:

cd /
wget http://www.codewiz.org/pub/olpc-bernie/os/i386/glibc-2.6.90-13.i686.rpm
wget http://www.codewiz.org/pub/olpc-bernie/os/i386/glibc-common-2.6.90-13.i386.rpm
mount -t ramfs none /usr/lib/locale
rpm -U --ignorearch glibc-2.6.90-13.i686.rpm glibc-common-2.6.90-13.i386.rpm
mv /usr/lib/locale/locale-archive /
umount /usr/lib/locale
mv /locale-archive /usr/lib/locale

* Set the LANG environment variable in <code>/etc/sysconfig/i18n</code>

LANG=am_ET.UTF-8
LANG=am_ET.UTF-8

Revision as of 00:07, 13 September 2007

Development is being tracked here: http://www.codewiz.org/wiki/EthiopianLocale

  • Update your OS image if it's older than 571
  • Boot, switch to the console (alt-F1) and login as root.
  • Edit /etc/rpm/macros.pilgrim and add am_ET to the list of %_install_langs.
  • Install the Amharic font locally:
cd /home/olpc
mkdir .fonts
cd .fonts
wget http://www.codewiz.org/pub/Abyssinica_SIL.ttf
fc-cache
  • Add the olpc-bernie yum repository:
cd /etc/yum.repos.d
wget http://www.codewiz.org/pub/olpc-bernie/olpc-bernie.repo
  • Install a few updates from olpc-bernie:
yum update libX11 xkeyboard-config
  • For glibc, yum will not work because we install the i686 package even though uname -m says i586. Additionally, a glibc utility ran by the post install scriptlet breaks on JFFS2 because it depends on an unsupported filesystem feature. So we need to play a few dirty tricks around the package installation:
cd /
wget http://www.codewiz.org/pub/olpc-bernie/os/i386/glibc-2.6.90-13.i686.rpm
wget http://www.codewiz.org/pub/olpc-bernie/os/i386/glibc-common-2.6.90-13.i386.rpm
mount -t ramfs none /usr/lib/locale
rpm -U --ignorearch glibc-2.6.90-13.i686.rpm glibc-common-2.6.90-13.i386.rpm
mv /usr/lib/locale/locale-archive /
umount /usr/lib/locale
mv /locale-archive /usr/lib/locale
  • Set the LANG environment variable in /etc/sysconfig/i18n
LANG=am_ET.UTF-8