Skip to content

Instantly share code, notes, and snippets.

@BhautikChudasama
Created May 14, 2022 09:06
Show Gist options
  • Select an option

  • Save BhautikChudasama/206569e7661d2fb5484026c97ca8a1f4 to your computer and use it in GitHub Desktop.

Select an option

Save BhautikChudasama/206569e7661d2fb5484026c97ca8a1f4 to your computer and use it in GitHub Desktop.

Change locale

apt-get update

# Install locales package
apt-get install -y locales

# Uncomment en_US.UTF-8 for inclusion in generation
sed -i 's/^# *\(en_US.UTF-8\)/\1/' /etc/locale.gen

# Generate locale
locale-gen

# Export env vars
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc

Verification

locale
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment