Skip to content

Instantly share code, notes, and snippets.

@luu123
Forked from ChrisTitusTech/fixlocale.sh
Created June 17, 2022 23:39
Show Gist options
  • Save luu123/305c9f505fe01758fa3a232611157ef3 to your computer and use it in GitHub Desktop.
Save luu123/305c9f505fe01758fa3a232611157ef3 to your computer and use it in GitHub Desktop.

Revisions

  1. @ChrisTitusTech ChrisTitusTech created this gist Oct 27, 2020.
    6 changes: 6 additions & 0 deletions fixlocale.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/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