Last active
July 5, 2016 11:00
-
-
Save baltpeter/a08ee88849441453f212 to your computer and use it in GitHub Desktop.
Setting up locale correctly on new Ubuntu/Debian servers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get update # if this is the first boot on e.g. OpenVZ containers | |
apt-get install language-pack-en | |
update-locale LANG=en_US.UTF-8 | |
shutdown -rf 0 # reboot to ensure new locale is applied | |
# when lang is "(undefinded)"; also preferred anyway | |
export LANGUAGE=en_US.UTF-8 | |
export LANG=en_US.UTF-8 | |
export LC_ALL=en_US.UTF-8 | |
locale-gen en_US.UTF-8 | |
dpkg-reconfigure locales |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment