How to know the keymap,font,etc. variables' values used by my current linux system?
-
29-05-2021 - |
Question
I'm using Linux Mint. I'm unable to find the /etc/sysconfig/console
file that would tell me the values of the keymap,font,utf-8 mode support,etc. values for my system. Is there a way I could do it? I tried echo $UNICODE
and echo $FONT
but they don't return anything. Pretty much a newbie to Linux. Kindly help or guide. :-)
La solution
The GB locale is not installed by default in the LFS implementation. You can see this if you run
locale -a
You need to install the locale definition for GB using
localedef
exec the following:
localedef -c -f UTF-8 -i en_GB en_GB.UTF-8
localedef -c -f ISO-8859-1 -i en_GB en_GB.ISO-8859-1
This give you the two main standards. Then all you need to do for console and profile is insert the locale code for GB using the process as is described in the book. (I have used the ISO standard in the code below.)
cat > /etc/sysconfig/console << "EOF"
# Begin /etc/sysconfig/console
KEYMAP="uk"
FONT="lat1-16 -m 8859-1"
# End /etc/sysconfig/console
EOF
and
cat > /etc/profile << "EOF"
# Begin /etc/profile
# export LANG=<ll>_<CC>.<charmap><@modifiers> translates to:
export LANG=en_GB.ISO-8859-1
# End /etc/profile
EOF
simples! ;-)
hope this helps Bick