Skip to content

Instantly share code, notes, and snippets.

@rosswd
Created November 15, 2020 16:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosswd/ba992701b33fdc2bac489d00f48b7c35 to your computer and use it in GitHub Desktop.
Save rosswd/ba992701b33fdc2bac489d00f48b7c35 to your computer and use it in GitHub Desktop.
Setting locales on raspberry pi
# raspberry pi locales
#
# dynamically set locales
#
# check current locale settings
locale
# reconfigure locale settings (option 1)
sudo raspi-config
# reconfigure locale settings (option 2)
sudo dpkg-reconfigure locales
#
# manually set locales
#
# setting individual settings
export LANGUAGE="en_US.UTF-8"
export LANG="en_US.UTF-8"
export LC_ALL="en_US.UTF-8"
# apply config
sudo locale-gen "en_US.UTF8"
# check settings again
locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment