Differences between revisions 41 and 42
Revision 41 as of 2009-04-18 13:32:02
Size: 2266
Editor: FranklinPiat
Comment: fix links
Revision 42 as of 2009-04-24 16:59:16
Size: 3805
Editor: GregWooledge
Comment: bring things up to date... at least partially
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
 * Edit the file /etc/locale.gen (i.e. open a terminal as [[root]],  and type nano /etc/locale.gen ) and add your locale settings (one set per line), e.g.:  * Edit the file `/etc/locale.gen` (i.e. open a terminal as [[root]], and type `nano /etc/locale.gen` ) and add your locale settings (one set per line), e.g.:
 {{{
 de_DE.UTF-8 UTF-8
 de_DE ISO-8859-1
 de_DE@euro ISO-8859-15
 }}}
Line 20: Line 25:
   * {{{de_DE ISO-8859-1}}}
   * {{{de_DE@euro ISO-8859-15}}}
You can see the supported locales by typing `less /usr/share/i18n/SUPPORTED` or in LocaleSupported .
Line 23: Line 27:
You can see the supported locales typing nano /usr/share/i18n/SUPPORTED or in LocaleSupported .  * Run the command `locale-gen`
 * Run the command `locale -a` to verify the list of available locales; note that the spellings change.
 * Optionally, add a default locale setting to the file `/etc/profile` (using one of the entries from `locale -a`):
 {{{
 : ${LANG:=de_DE.iso88591}; export LANG
 }}}
 This will only set `LANG` if it was not previously defined, for example by ssh. Doing this in `/etc/profile` means it only works for users who run DebPkg:bash, DebPkg:ksh, sh and so on -- not DebPkg:tcsh or csh. Also, it won't affect users who login with xdm, gdm, etc.
 * If you've upgraded to Lenny and you have leftover `LANG=...` content in `/etc/environment`, you should comment it out (type `nano /etc/environment` and put a `#` character in front of the line, and then save it).
 * To use the new settings with your programs, log out and back in. (Any already-running programs will not be affected.)
Line 25: Line 37:
 * Run the command "locale-gen"
 * Add the default language to the file /etc/profile (one of the entries you generated in /etc/locale.gen):{{{
   export LANG=de_DE
   export LC_ALL=de_DE
   export LC_CTYPE=de_DE
}}}
 * To use the new settings with all programs, not only the ones already running, reboot. That's it.
''TODO: how to configure things properly for xdm/gdm/etc. users.''

''TODO: SendEnv in ~/.ssh/config, personal locale settings in .bash_profile or similar.''
Line 34: Line 42:
Get root and type {{{dpkg-reconfigure}}} locales and select your locale. Get root and type {{{dpkg-reconfigure locales}}} and select your locale. If you have users who access the system through ssh, it is recommended that you choose '''None''' as your default locale in the final question.
Line 36: Line 44:
It changes /etc/environment and /etc/locale.gen This changes `/etc/default/locale` and `/etc/locale.gen` (in older versions of Debian, also `/etc/environment`). If you chose a default locale other than None above, it will be in `/etc/default/locale` and will override the `LANG` variable supplied by ssh.

If you've upgraded to Lenny and have leftover `LANG=...` content in `/etc/environment`, comment it out, as shown above.

Now, optionally, edit `/etc/profile` as shown in the previous section. (You don't need to do that if you chose a default locale other than None. But if you chose None, then you probably should.)
Line 47: Line 59:
''This section is way out of date. Package and file names have all changed.''

Translations

  • ?LocaleSpanish -- en español


This page indicates how to install / use Debian in your local language.

See :

Configuration

Text way

  • Edit the file /etc/locale.gen (i.e. open a terminal as root, and type nano /etc/locale.gen ) and add your locale settings (one set per line), e.g.:

     de_DE.UTF-8 UTF-8
     de_DE ISO-8859-1
     de_DE@euro ISO-8859-15

You can see the supported locales by typing less /usr/share/i18n/SUPPORTED or in ?LocaleSupported .

  • Run the command locale-gen

  • Run the command locale -a to verify the list of available locales; note that the spellings change.

  • Optionally, add a default locale setting to the file /etc/profile (using one of the entries from locale -a):

     : ${LANG:=de_DE.iso88591}; export LANG

    This will only set LANG if it was not previously defined, for example by ssh. Doing this in /etc/profile means it only works for users who run bash, ksh, sh and so on -- not tcsh or csh. Also, it won't affect users who login with xdm, gdm, etc.

  • If you've upgraded to Lenny and you have leftover LANG=... content in /etc/environment, you should comment it out (type nano /etc/environment and put a # character in front of the line, and then save it).

  • To use the new settings with your programs, log out and back in. (Any already-running programs will not be affected.)

TODO: how to configure things properly for xdm/gdm/etc. users.

TODO: ?SendEnv in ~/.ssh/config, personal locale settings in .bash_profile or similar.

Cursor way

Get root and type dpkg-reconfigure locales and select your locale. If you have users who access the system through ssh, it is recommended that you choose None as your default locale in the final question.

This changes /etc/default/locale and /etc/locale.gen (in older versions of Debian, also /etc/environment). If you chose a default locale other than None above, it will be in /etc/default/locale and will override the LANG variable supplied by ssh.

If you've upgraded to Lenny and have leftover LANG=... content in /etc/environment, comment it out, as shown above.

Now, optionally, edit /etc/profile as shown in the previous section. (You don't need to do that if you chose a default locale other than None. But if you chose None, then you probably should.)

Keyboard

Console

dpkg-reconfigure console-common

It over-writes /etc/console/boottime.kmap.gz.

XWindow

This section is way out of date. Package and file names have all changed.

dpkg-reconfigure xserver-xfree86

It changes /etc/X11/?XF86Config-4 , Section "?InputDevice"

Zones, languages and countries

See Also

?LocalePurge Reducing the number of installed locales


CategorySystemAdministration