Skip to content

Instantly share code, notes, and snippets.

@natesubra
Created March 12, 2018 00:14
Show Gist options
  • Select an option

  • Save natesubra/d3105506eee5cc64538c3ce8b3f2d2d0 to your computer and use it in GitHub Desktop.

Select an option

Save natesubra/d3105506eee5cc64538c3ce8b3f2d2d0 to your computer and use it in GitHub Desktop.
Fix raspian locale
sudo sed -i "s/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/g" -i /etc/locale.gen
sudo locale-gen en_US.UTF-8
sudo update-locale en_US.UTF-8
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
export LC_ALL=en_US.UTF-8
echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment
echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen
echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment