(14) Locales

Next we need to decide on the locales, and generate the ones we choose. You MUST have at least one UTF-8.

These are minimal instructions, for more details see the Gentoo Localization Guide.


(chroot) raspberrypi / #   nano -w /etc/locale.gen

Edit to configure as required, try and choose at least one UTF-8, I choose en_GB ISO-8859-1 and en_GB.UTF-8 UTF-8 and then run the update like so


(chroot) raspberrypi / #   locale-gen

 *  Generating locale-archive: forcing # of jobs to 1
 *  Generating 2 locales (this might take a while) with 1 jobs
 *    (1/2) Generating en_GB.ISO-8859-1 ...                                                                                                                                                                                                                                [ ok ]
 *    (2/2) Generating en_GB.UTF-8 ...                                                                                                                                                                                                                                     [ ok ]
 * Generation complete
(chroot) raspberrypi / #   

Next we need to list the choices


(chroot) raspberrypi / #   eselect locale list

Available targets for the LANG variable:
  [1]   C
  [2]   en_GB
  [3]   en_GB.iso88591
  [4]   en_GB.utf8
  [5]   POSIX
  [ ]   (free form)


and set the default


(chroot) raspberrypi / #   eselect locale set 2

Setting LANG to en_GB ...
Run ". /etc/profile" to update the variable in your shell.


To edit the keyboard map so as not to end up with an alien american foreign keyboard . . . .

Of course if you plan on only ever SSH into your headless pi, you could skip this step.


(chroot) raspberrypi / #   ls /usr/share/keymaps
(chroot) raspberrypi / #   ls /usr/share/keymaps/i386/qwerty/

bashkir.map.gz          by-cp1251.map.gz       dk.map.gz             gr-pc.map.gz         mk-utf.map.gz     ru.map.gz                  ruwin_ctrl-UTF-8.map.gz    sk-qwerty.map.gz         ttwin_ct_sh-UTF-8.map.gz
bg_bds-cp1251.map.gz    by.map.gz              emacs2.map.gz         hu101.map.gz         pt-latin1.map.gz  ru-ms.map.gz               ruwin_ct_sh-CP1251.map.gz  sr-cy.map.gz             ua-cp1251.map.gz
bg_bds-utf8.map.gz      bywin-cp1251.map.gz    emacs.map.gz          hypermap.m4          pt-latin9.map.gz  ruwin_alt-CP1251.map.gz    ruwin_ct_sh-KOI8-R.map.gz  sv-latin1.map.gz         ua.map.gz
bg-cp1251.map.gz        cf.map.gz              es-cp850.map.gz       il-heb.map.gz        ro.map.gz         ruwin_alt-KOI8-R.map.gz    ruwin_ct_sh-UTF-8.map.gz   tj_alt-UTF8.map.gz       ua-utf.map.gz
bg-cp855.map.gz         cz-cp1250.map.gz       es.map.gz             il.map.gz            ro_std.map.gz     ruwin_alt_sh-UTF-8.map.gz  ru_win.map.gz              tralt.map.gz             ua-utf-ws.map.gz
bg_pho-cp1251.map.gz    cz-lat2.map.gz         et.map.gz             il-phonetic.map.gz   ro_win.map.gz     ruwin_alt-UTF-8.map.gz     ru-yawerty.map.gz          trf.map.gz               ua-ws.map.gz
bg_pho-utf8.map.gz      cz-lat2-prog.map.gz    et-nodeadkeys.map.gz  is-latin1.map.gz     ru1.map.gz        ruwin_cplk-CP1251.map.gz   se-fi-ir209.map.gz         tr_q-latin5.map.gz       uk.map.gz
br-abnt2.map.gz         cz-qwerty.map.gz       fi-latin1.map.gz      is-latin1-us.map.gz  ru2.map.gz        ruwin_cplk-KOI8-R.map.gz   se-fi-lat6.map.gz          trq.map.gz               us-acentos.map.gz
br-abnt.map.gz          defkeymap.map.gz       fi-latin9.map.gz      it2.map.gz           ru3.map.gz        ruwin_cplk-UTF-8.map.gz    se-ir209.map.gz            ttwin_alt-UTF-8.map.gz   us.map.gz
br-latin1-abnt2.map.gz  defkeymap_V1.0.map.gz  fi.map.gz             it-ibm.map.gz        ru4.map.gz        ruwin_ctrl-CP1251.map.gz   se-lat6.map.gz             ttwin_cplk-UTF-8.map.gz
br-latin1-us.map.gz     dk-latin1.map.gz       gr.map.gz             it.map.gz            ru-cp1251.map.gz  ruwin_ctrl-KOI8-R.map.gz   sk-prog-qwerty.map.gz      ttwin_ctrl-UTF-8.map.gz

Having found the correct keyboard layout ( qwerty ) and the correct country ( uk ) edit one line in the config file


(chroot) raspberrypi / #   nano -w /etc/conf.d/keymaps


# Use keymap to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.
keymap="uk"


We now MUST re-load the environment


(chroot) raspberrypi / #   env-update && source /etc/profile && export PS1="(chroot) $PS1"
>>> Regenerating /etc/ld.so.cache...
(chroot) raspberrypi / #


Next : Edit /etc/fstab (USB Drive Partitions)

PREVIOUS INDEX NEXT