Skip to content

Instantly share code, notes, and snippets.

@martinandersen3d
Forked from ChrisTitusTech/fixlocale.sh
Created July 2, 2021 03:28
Show Gist options
  • Save martinandersen3d/5bdc1ee29c4170f7d9afaf3fba4f24e1 to your computer and use it in GitHub Desktop.
Save martinandersen3d/5bdc1ee29c4170f7d9afaf3fba4f24e1 to your computer and use it in GitHub Desktop.
Fix Locales in any distro
#!/bin/bash
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 -a /etc/locale.conf
sudo locale-gen en_US.UTF-8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment