Keyboard layout change in Ubuntu

I’ve had this problem a couple of times in my Ubuntu machine. I installed it with US keyboard layout, and then changed it to UK later (for my user). Even when I select the correct keyboard model (Generic 105-key (Intl) PC), and layout (United Kingdom International) some keys still act weirdly (e.g. pressing ” does nothing, and if I press it twice I get a strange “-like symbol). I fixed it by running:

sudo xmodmap /usr/share/xmodmap/xmodmap.uk

24 Responses to “Keyboard layout change in Ubuntu”

  1. Pox Says:

    the ¨¨ thing is caused by the International layout – pressing ‘ and then a will make á.

  2. Michael Says:

    thanks Andy :-) that solved a few issues

    cheers Mate

  3. Sean Says:

    Thanks. This has been a big help!

  4. Andy Balaam Says:

    Glad to be of service!

  5. Andre Says:

    Thanks Andy! Lost my swedish ÅåÄäÖö, and found them here ;-)

  6. Andy Balaam Says:

    Great news Andre – wouldn’t want you to have to survive without them…

  7. Andreas Zieritz Says:

    Seems to fix a problem i had on my Norwegian PC as well.
    øøøææææÆÆÆ back again.

  8. Vince Says:

    Great! Works fine with a UK Keyboard stuck in French mode for historical reasons…

  9. Tony Says:

    I have a Compaq Presario R3000 lap top. I can not seem to get the layout right no matter what. I purchased it in Canada. I guess the layout is the same as US. Non of my SHIFT characters are correct and i am missing @ from the keyboard entirely. Any suggestions?

  10. Ozbo Says:

    Thanks, this solved my problem when nothing else could. By the way I needed my slovenian configuration by changing last two letters into si. THANKS REALLLLY

  11. arun Says:

    thanx dude it ran

  12. Peter Says:

    I’d like to use ubuntu with at least 3 language layouts without having to write scripts if possible. Is there any option like in windows where you can change with alt-tab?

  13. Andy Balaam Says:

    Hi Peter, the “Keyboard Indicator” applet might help, but I’ve no idea really I’m afraid. You can install that by right-clicking on the Panel, choosing “Add to Panel…” and then clicking “Keyboard Indicator”, then “Add”. Good luck!

  14. Peter Says:

    Muchas gracias :) That’s what i’ve been looking for. If i find a hotkey for the function, i’ll post it here. thx again :)

  15. Andy Balaam Says:

    Glad to be of help :)

  16. jess Says:

    thanks andy!!:)got really scared for a min!!thank you sooo much

  17. gowtham Says:

    Hi andy and others, i have installed ubuntu in my DELL INSPIRON-1525, my keys are not working inside terminals.. Backspace is not functioning and many more strange symbols.. i have a layout of USA and DELL in my settings.. help me out.. thank you..

  18. Chris Says:

    Cheers mate, another problem solved ;)

  19. Malgosia Says:

    Thanks, that solved my problem of not having all this bountiful polish characters as well!

  20. random guy Says:

    Thank You very much !!!!!

  21. chris lanz Says:

    I was so glad to get your message about sudo xmodmap

    Now at least I can do ‘ and ` and ~ and ^ but now ” and @ are reversed. I’ll try some other layouts. . . .I guess I can learn to substitute shift-2 for shift-

    I’m on a Dell Inspiron

  22. chris lanz Says:

    Actually, it seems I’ll have to run the sudo xmodmap every time I boot. Is there any way I can get it into a config.sys or autoexec.bat, to use a couple of ancient terms?

  23. ulkas Says:

    2chris lanz:
    just put it into automatic sessions:
    menu-system-preferences-sessions

  24. miki Says:

    andy balaam, yes!, this was a great help indeed, should be more widely known one, I am using Linux for 10 years and never got to it…Thanks! Croatian and Polish, with mandarin (zhujin), really good.

Leave a Reply