修正 Raspberry Pi setlocale 警告訊息
When I login my Raspberry Pi and always found this warning in my screen:
-bash: warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8)
I found a solution from Gist and just note it:
$ echo "LC_ALL=en_US.UTF-8" | sudo tee -a /etc/environment > /dev/null$ echo "en_US.UTF-8 UTF-8" | sudo tee -a /etc/locale.gen > /dev/null$ echo "LANG=en_US.UTF-8" | sudo tee /etc/locale.conf > /dev/null$ sudo locale-gen en_US.UTF-8
That's all.
Reference
- 🔗 Gist