Skip to content

Instantly share code, notes, and snippets.

View baltpeter's full-sized avatar

Benjamin Altpeter baltpeter

View GitHub Profile
@baltpeter
baltpeter / script.sh
Last active July 5, 2016 11:00
Setting up locale correctly on new Ubuntu/Debian servers
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