Testing localization: Difference between revisions

From OLPC
Jump to navigation Jump to search
(+Category:XO_localization)
(cleanup, caution may be out-of-date, Category:Preparing for testing)
 
Line 1: Line 1:
''' Resetting olpc-configured file'''
== Resetting olpc-configured file ==


The Linux script /etc/rc.d/init.d/olpc-configure sets the language for X.
The Linux script <tt>/etc/rc.d/init.d/olpc-configure</tt> sets the language for X.


The first time that olpc-configure runs, the flag file /.olpc-configured
The first time that olpc-configure runs,
the flag file /.olpc-configured does not exist,
does not exist, so olpc-configure get the language from CMOS RAM. It
so olpc-configure get the language from CMOS RAM.
writes the language into /etc/X11/xorg.conf and /etc/sysconfig/i18n . It
It writes the language into /etc/X11/xorg.conf and /etc/sysconfig/i18n .
then creates (with "touch") the file /.olpc-configured . On subsequent
''(This may work differently in more recent releases such as 8.2.0.)''
reboots, olpc-configure will see that /.olpc-configured already exists,
It then creates (with "touch") the file /.olpc-configured .
On subsequent reboots, olpc-configure will see that /.olpc-configured already exists,
so it will not change xorg.conf and i18n .
so it will not change xorg.conf and i18n .


Line 15: Line 17:
information would be ignored because the system has already been configured.
information would be ignored because the system has already been configured.


If that is what happened, the solution is:
If that is what happened, the solution is to enter the following at a [[root]] prompt in [[Terminal Activity]]:
rm /.olpc-configured
and [[reboot]]


-bash-3.2# rm /.olpc-configured
Removing /.olpc-configured
will force /etc/rc.d/init.d/olpc-configure
-bash-3.2# reboot
to recreate /etc/X11/xorg.conf and /etc/sysconfig/i18n

with values determined from CMOS RAM.
Removing /.olpc-configured will force /etc/rc.d/init.d/olpc-configure to
recreate /etc/X11/xorg.conf and /etc/sysconfig/i18n with values
determined from CMOS RAM.


[[Category:Preparing for testing]]
[[Category:XO localization]]
[[Category:XO localization]]

Latest revision as of 05:09, 17 November 2008

Resetting olpc-configured file

The Linux script /etc/rc.d/init.d/olpc-configure sets the language for X.

The first time that olpc-configure runs, the flag file /.olpc-configured does not exist, so olpc-configure get the language from CMOS RAM. It writes the language into /etc/X11/xorg.conf and /etc/sysconfig/i18n . (This may work differently in more recent releases such as 8.2.0.) It then creates (with "touch") the file /.olpc-configured . On subsequent reboots, olpc-configure will see that /.olpc-configured already exists, so it will not change xorg.conf and i18n .

If the machines were booted into Linux before the P# mfg tag was created, olpc-configure would have set xorg.conf and i18n for the US keyboard. In later boots, the P# information would be ignored because the system has already been configured.

If that is what happened, the solution is to enter the following at a root prompt in Terminal Activity:

rm /.olpc-configured

and reboot

Removing /.olpc-configured will force /etc/rc.d/init.d/olpc-configure to recreate /etc/X11/xorg.conf and /etc/sysconfig/i18n with values determined from CMOS RAM.