Monday, 2 September 2013

Centos 6/RHEL change keymap command loadkeys

You might need to change the keymap on your Centos 6/RHEL, maybe because you are using it in a Virtual device or similar setup. This can be done directly with a simple command, or by using either the console, graphical or text mode. Here I am using the Centos Live CD as because my usual minimal Fluxbox setup is unavailable at present

The straightforward way is to issue a direct command from the console, so first open up a terminal and switch to root user.

$ sudo su

Issue the loadkeys command suffixed with the keymap you wish to use. Here we try both the France and the UK maps.

# [root@livecd centoslive]# loadkeys fr
Loading /lib/kbd/keymaps/i386/azerty/
assuming iso-8859-1 cedilla
assuming iso-8859-1 acute
assuming iso-8859-1 diaeresis
assuming iso-8859-1 brokenbar
assuming iso-8859-1 threequarters
assuming iso-8859-1 currency
assuming iso-8859-1 onehalf
assuming iso-8859-1 onequarter
[root@livecd centoslive]# loadkeys uk
Loading /lib/kbd/keymaps/i386/qwerty/

Alternatively you can use the graphical or the text mode interfaces with the system-config-keyboard command.

# system-config-keyboard

Brings up the graphical editor

# system-config-keyboard text

Brings up the  text mode screen.

So easy ways to change the keymap in your Centos 6/RHEL box.

No comments:

Post a Comment