Skip to content

Instantly share code, notes, and snippets.

@thecodermehedi
Forked from ChrisTitusTech/fixlocale.sh
Created May 16, 2023 12:38
Show Gist options
  • Save thecodermehedi/53327f4c19388705d778c3ee2b1151f9 to your computer and use it in GitHub Desktop.
Save thecodermehedi/53327f4c19388705d778c3ee2b1151f9 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