May 4, 2009

NSLU2 + UTF8 ♥

NSLU2 aka ”slug” is a small consumer-grade embedded ARM device. It is not very fast but quite handy and completely silent. It consumes only ~5 W with an USB flash drive attached. However the Debian image I use does not come with all the needed locales but it's easy to generate them.

Include whatever locales you like to /etc/locale.gen and generate them:

 # locale-gen
Generating locales (this might take a while)...
  en_GB.ISO-8859-1... done
  en_GB.ISO-8859-15... done
  en_GB.UTF-8... done
...
Generation complete.
The next step is to configure the proper keyboard layout.
 # apt-get install console-data console-tools debconf
 # dpkg-reconfigure console-data
Finally, define the default system-wide locale:
 # echo 'LC_ALL="en_GB.UTF-8"' > /etc/default/locale

No comments: