Change console keyboard layout in debian

I’ve been using Parallels Workstation virtualization a lot recently for testing databases and it works amazingly well.

However I did come across a weird problem. I’d installed Debian linux and the console keyboard layout wasn’t correct for my Apple USB keyboard.
The solution was to use this command

dpkg-reconfigure console-data

Which walked me through selecting the right keyboard layout.

[link]

[Edited to correct a typo]

19 Responses to “Change console keyboard layout in debian”

  1. Kris says:

    Thank you; downloaded ISPConfig VM which is based on debian and the german keyboard mapping was driving me nuts!

  2. Gemballa says:

    FINALLY someone who gives an answer that works.. Thank you..

  3. Gary says:

    Thanks! I had the same situation as Kris. Nice to get a fix on the first try.

  4. lprofil says:

    Another “Thank you!”.
    It did the trick on my debootstraped xen-installation.

  5. urza says:

    Thanks a lot !

  6. Marcos says:

    Thank you very much!

  7. Casey says:

    Ditto what Kris said!

  8. Marian says:

    Thanks!
    I’m usually a Fedora guy and I couldn’t find an answer for Debian.
    You’re a life saver!

  9. Jason says:

    Thanks!!!! ISPConfig was not configured for US American layout. It was causing some headaches for me. After running the command works great, didn’t even have to reboot.

  10. Renatus says:

    Finally!

    A working answer for the keybaord layout problem!!!

    Thank you so much :)

  11. Eldeeb says:

    Thanks a lot, really helped me

  12. acer says:

    Thanks!!!! ISPConfig was not configured for US American layout. It was causing some headaches for me. After running the command works great, didn’t even have to reboot.

  13. Anonymous says:

    Thank you! This finally solved my problem!

  14. Carl says:

    Thank you very much.

  15. tony says:

    I’ ve tried setting my keyboard layout to US-Intl (or US-alt with deadkeys..same thing) via this method, but nothing seems to change.
    This is on Debian Lenny stable.

  16. Wayne says:

    just what I needed, many thanks

    Wayne

  17. soliman says:

    Thank you Angus, this has really saved my life!
    I’ve just installed Debian Squeeze and I recall that my very old French keyboard layout– I insist
    on just using it because it doesn’t have the Windows logos on it– went just fine during the installation. But after rebooting to gnome it was in US. And as I still had many configs to do that was a huge
    problem, especially as I have given a very long and complex password. It took me a along long time to get the right keys in order to type my pass word to do your command.But then
    bash told me “command not found” but it was also so kind to tell me that the package “console-data” was not installed. And aptitude said sure no problem.So that’s it,

    Thanks a lot Angus
    Soliman

  18. [...] Change console keyboard layout in debian (en inglés) [...]

  19. Lucio says:

    Gracias, esta información sí que ha sido de mucha ayuda!

Leave a Reply