Get your server issues fixed by our experts for a price starting at just 25 USD/Hour. Click here to register and open a ticket with us now!

Author Topic: How to change system language in centos-7 and to change keyboard keymap layout  (Read 14212 times)

0 Members and 1 Guest are viewing this topic.

jamesj

  • Guest
How to change system language in centos-7 and to change keyboard keymap layout

To change system language in CentOS-7

  • Check the current status of language

# localectl

You will get result like

System Locale: LANG=nb_NO.UTF-8
    VC Keymap: no
    X11 Layout: no

  • Check the list of locales

# localectl list-locales

You will get output like

aa_DJ
aa_DJ.iso88591
aa_DJ.utf8

  • To set locale to english US

# localectl set-locale LANG=en_US.UTF-8


To change keyboard keymap layout

"loadkeys" helps to swap between keymaps and thus temporarily set keys to different language (until reboot)

For an example the following command will temporarily change system's keymap to "us" from any other keymap

#loadkeys us

  • To know available keymaps

#tree /lib/kbd/keymaps/

On CentOS 7 to permanently change keymap run the "localectl set-keymap"command
Example:

# localectl set-keymap us

To check changes have been updated execute the "localectl" command without any arguments

#localectl
System Locale: LANG=en_US.UTF-8
    VC Keymap: us
   X11 Layout: us