Customizing NAND images/lang-es

From OLPC
< Customizing NAND images
Revision as of 22:44, 1 September 2007 by RafaelOrtiz (talk | contribs) (Helix (Real) Media Player)
Jump to: navigation, search

Este documento describe como crear una imagen jffs2 desde la NAND interna de la laptop, produciendo una imagen que puede ser nsatlada en un XO diferente. El laptop que esta siendo backed up es el laptop "huesped", y el laptop que recibe los contenidos del laptop huesped es el laptop "objetivo".

Procedimiento Basico

Pasos:

  • Haga las modificaciones que desee en el laptop huesped para que queden en la imagen generada. Si usted se ha logeado en Sugar y quiere el usuario vea el prompt welcome/login de nuevo, vea la seccion #Forcing Sugar to reprompt for name and colors. Si usted planea usar la imagen en laptops con diferentes lenguajes y mapas de teclado, usted debe borrar tambien el archivo /.olpc-configured. Esto forzara al sistema a correr el script olpc-configure en el proximo booteo.
  • Inserte un disco USB con el formato Windows (VFAT) en la laptop huesped y rebootee.
  • En el "Type any key to interrupt automatic startup", presione una tecla. En el prompt "ok", tipee "save-nand disk:\nand.img" y presione enter. Los contenidos de la NAND seran guardados en el archivo nand.img file en el disco USB . El prompt "ok" regresara cuando al copia halla acabado, y luego usted puede apagar el laptop con el boton de apagado.
  • Desde el build 406, necesitara un archivo checksum para hacer un upgrade exitoso del sistema. Para crear el archivo CRC vea la seccion #Creating CRC file.
  • Muevase hacia el laptop "objetivo", e inserte el disco USB. De nuevo, interrumpa en el ok prompt y tipee "copy-nand disk:\nand.img". Esto copiara desde la nand.img hasta ka NAND interna. Cuando vuelva al ok prompt, apague, remueva el disco USB y prenda de nuevo para cargar desde una nueva imagen NAND.

Adaptaciones de ejemplo

Lenguage

Algunas veces usted puede querer definir el lenguague por defecto del sistema, ya sea por uso o mientras se esta haciendo la localizacion.

  • El archivo /etc/sysconfig/i18n define la variable LANG que sugar usara.

Timezone

La informacion de la zona horaria es guardada en el archivo /etc/timezone. Por ejemplo, la costa este de US es "America/New_York". Este nombre referencia los archivos encontrados en /usr/share/zoneinfo, esto controla la zona horaria y daylight savings time behavior.

Instalando Fuentes TrueType o OpenType

Either install as root prepackaged font package(s) from the Fedora repository as outlined below, or install the fonts in a subdirectory of /usr/share/fonts/ttf and run the fc-cache -f command afterwards.

Teclado

If the manufacturing data does not match the keyboard you need, you can set the keyboard type.

To change the symbol mapping of the keyboard, follow the following steps:

  1. After the system has booted, press ctrl+alt+f1 (f1 is the same as the "mesh-view" key);
  2. Login in as root (no password required);
  3. Open the file /etc/X11/xorg.conf for editing (use vi or any editor you are comfortable with);
  4. In the first InputDevice Section do the following modifications:
    • To change the default language, e.g., from English to Spanish:
      • Modify XkbLayout Setting from "us" to "es" (use "pt" for Portuguese, "ng" for Nigerian language support, etc.);
      • Add an XkbOptions Option with the value "olpc";
    • To add a second language, e.g., English and Arabic:
      • Modify XkbLayout Setting from "us" to "us,ara" (use "ru" for Cyrillic, "ur" for Urdu, "th" for Thai, etc.);
      • Add an XkbOptions Option with the value "olpc2,olpc";
  5. Save and close the file;
  6. Either reboot the machine or restart X by issuing a "/sbin/telinit 3" command, followed by the "/sbin/telinit 5" command.

After you make the modifications, the two lines in xorg.conf should be similar to one of the following:

Option    "XkbLayout"   "es"
Option    "XkbOptions"  "olpc"

After X is restarted, the default language will be Spanish.

Option    "XkbLayout"   "us,ara"
Option    "XkbOptions"  "olpc2,olpc"

After X is restarted, the default language will be English; you will be able to switch to Arabic using the AB/اب key.

Instalando paquetes desde los repositorios de fedora usando yum

Sugar is based off of Fedora and as such has a large amount of packages available to add to the base system. The tool used to do this is called yum. Because of memory constraints it is best to drop into run mode 3 which stops X. To do this log in as root either in the developer console or one of the virtual terminals and type this command:

init 3

X should exit and you should find yourself either at a login prompt or in the same virtual terminal. Log in as root if you are not already. To install or upgrade a package you simply use this command:

yum upgrade <package name>

To search for available packages you can use this command:

yum search <keyword>

More information about using yum with fedora can be found here.

Instalando Flash, Java, MP3 codecs, MPEG4, codecs patentados

These Restricted Formats have problems that makes it difficult or impossible for OLPC to preinstall, but you may be able and interested in deploying systems with these preinstalled.

(Note that the Adobe Flash plugin 9.0.31.0 is known to work and 9.0.60.120 is known not to work.)

Helix (Real) Media Player

La pagina Helix media activity cubre la instalacion de esta actividad y sus codecs asociados.

Forzando a Sugar a volver a visualizar el prompt para nombres y colores

Usted puede siempre editar:

/home/olpc/.sugar/defaults/config

Sin embargo, pueden haber ocasiones en las cuales usted pueda querer forzar a sugar a salir con un nuevo nombre y color como con una maquina nueva. Usted puede hacer eso borrando el archivo de configracion ylas claves SHH en el directorio ./sugar/default.

rm /home/olpc/.sugar/defaults/config
rm /home/olpc/.sugar/defaults/owner.key
rm /home/olpc/.sugar/defaults/owner.key.pub

Note que:

  • El anterior proceso no limpia el repositorio de datos del diario— el paso adicional par aborrar el directorio del diario es: /home/olpc/.sugar/defaults/datastore will empty the Journal;
rm -r /home/olpc/.sugar/defaults/datastore
  • Este proceso si fuerza la creacion de nuevas claves, que potencialmente tendran un impacto adverso en el acceso a los archivos de resguardo en el schoolserver.

Creando el archivo CRC

Primero usted necesita bajar y compilar pilgrim

git clone git://git.fedoraproject.org/git/pilgrim
cd pilgrim/crcimg
make

Despues, usted puede desde la prompt de comandos crear el crc para su imagen personalizada:

./crcimg myfile.img

La salida es en myfile.crc