🌑

Linhost.info

Change the Keyboard Layout for CentOS / Scientific Linux

Yes, for some reason one of my VMs was configured with a different keyboard layout:

[root@system7]# cat /etc/sysconfig/keyboard

KEYTABLE=”it”
MODEL=”pc105”
LAYOUT=”it”
KEYBOARDTYPE=”pc”

The solution is quite simple all you have to do is edit /etc/sysconfig/keyboard with your favorite editor to make the keyboard layout US friendly. I am using VI as an example you can use whatever text editor you prefer.

[root@system7]# vi /etc/sysconfig/keyboard

KEYTABLE=”us”
MODEL=”pc105+inet”
LAYOUT=”us”
KEYBOARDTYPE=”pc”

Save and Exit the text editor. Restart the system so the changes can take effect, now you should have a keyboard layout that you are familiar with.

— Sep 26, 2012