Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to change layout of keyboard while working in console in Linux. I need to setup English layout as default for console. How to do it?

share|improve this question
    
What distro are you using? –  emzero Mar 24 '12 at 23:31
    
Ubuntu, logged under root –  RCola Mar 24 '12 at 23:37
1  
"loadkeys us" worked! How to make it default layout? –  RCola Mar 24 '12 at 23:42
add comment

3 Answers

up vote 6 down vote accepted

To change the system-wide keyboard layout, run

sudo dpkg-reconfigure keyboard-configuration

or edit the XKBLAYOUT line in /etc/default/keyboard.

share|improve this answer
add comment

Put it in /etc/profile.d/bashrc

share|improve this answer
add comment

another way, but I understand it wont last for next boot:

sudo loadkeys /usr/share/keymaps/i386/qwerty/us.kmap.gz

check /usr/share/keymaps/i386/ for you keyboard layout and keymaps to what suits you better

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.