Replies: 3 comments 5 replies
-
|
Emmmm... The biggest issue is: How can the Formats settings to be China? There is no place that I hard coded China as special. Which language option did you select in the Grub menu? Which language option did you select in the ubiquity first page? Those two options will affect the system's region. |
Beta Was this translation helpful? Give feedback.
-
|
Based on your question, I have prepared two examples for your reference. The main script is as follows:
##
## ## make sure /etc/default/locale: symbolic link to /etc/locale.conf
##
sudo rm -f /etc/default/locale
sudo ln -sf ../locale.conf /etc/default/locale
##
## ## locale-gen
##
sudo locale-gen --lang en_AU
##
## ## config /etc/locale.conf
##
cat << __EOF__ | sudo tee /etc/locale.conf > /dev/null 2>&1
LANG=en_AU.UTF-8
__EOF__
Please logout and login, then run localeshow Link |
Beta Was this translation helpful? Give feedback.
-
|
If you need to set the time zone, please refer to the steps below. Listrun ls /usr/share/zoneinfo/Australia/ -1show Set
run ##
## ## set timezone
##
sudo rm -f /etc/localtime
sudo ln -sf /usr/share/zoneinfo/Australia/Perth /etc/localtime
Checkrun file /etc/localtimeshow |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am making a script to do some tasks automatically for a fresh installed AnduinOS 2.0. One task is to set Region & Language -> Formats -> Australia. I uses this block. However after reboot the Formats setting is still China. How can I change it in script?
sudo bash -c 'cat >/etc/default/locale <<EOF
LANG=en_US.UTF-8
LC_NUMERIC=en_AU.UTF-8
LC_TIME=en_AU.UTF-8
LC_MONETARY=en_AU.UTF-8
LC_MEASUREMENT=en_AU.UTF-8
LC_PAPER=en_AU.UTF-8
EOF'
sudo localectl set-locale LANG=en_US.UTF-8
Beta Was this translation helpful? Give feedback.
All reactions