my language & locale settings on a fresh ubuntu-install

29 Apr

the following steps are required to adjust a fresh ubuntu to my personal language-preferences, including the default character encoding for gnome-terminal set to UTF-8

# install the required packages to generate the appropriate locales:
sudo aptitude install language-pack-de-base language-pack-de
 
# set the default environment variables:
echo '
# locale stuff
LANG=
LC_ALL=
# Character classification and case conversion:
LC_CTYPE="de_DE.utf8"
# Date and time formats:
LC_TIME="de_DE.utf8"
# Non-monetary numeric formats:
LC_NUMERIC="de_DE.utf8"
# Collation order:
LC_COLLATE="POSIX"
LC_MONETARY="de_DE.utf8"
LC_MESSAGES="POSIX"
LC_PAPER="de_DE.utf8"
LC_NAME="de_DE.utf8"
LC_ADDRESS="de_DE.utf8"
LC_TELEPHONE="de_DE.utf8"
LC_MEASUREMENT="de_DE.utf8"
LC_IDENTIFICATION="de_DE.utf8"
' | sudo tee -a /etc/environment

IMPORTANT: you have to log out after these changes to make them work!!