Lubuntu 12.04 change default keyboard-layout after installation

39,042

Solution 1

Running the following in the Terminal will change the keyboard setting to US for example:

setxkbmap -layout us

And then you can make bash aliases such as keybaord_layout us, etc.

Solution 2

To make a permanent change of the language of the keyboard, write this in the terminal:

 echo '@setxkbmap -option grp:alt_shift_toggle "es, us"' | sudo tee -a /etc/xdg/lxsession/Lubuntu/autostart

This sets the keyboard language to Spanish. This works for Lubuntu 12.04 too.

To just change the keyboard layout for the session, write this in the terminal (this example is for the english language):

setxkbmap -layout us

Solution 3

I have faced the same problem. After instalation of Lubuntu, keybord layout became US. The following command helpd me to change it back to UK. Thanks for those who started this thread.

setxkbmap -layout gb
Share:
39,042

Related videos on Youtube

john-jones
Author by

john-jones

Updated on September 18, 2022

Comments

  • john-jones
    john-jones over 1 year

    I accidentally set the keyboard to the wrong language when I was installing the system, and now I have to change that keyboard setting every time i start the computer.

    How do I change the default keyboard language in Lubuntu 12.04?

    • Admin
      Admin about 11 years
      preferences->lxkeymap->select the language. click apply.
    • Admin
      Admin about 11 years
      (at)lxpanel --profile (at)xscreensaver -no-splash (at)xfce4-power-manager (at)pcmanfm --desktop --profile lubuntu (at)/usr/lib/policykit-1-gnome/polkit-gnome-authentication-a‌​gent-1
    • Admin
      Admin about 11 years
      i replaced the at symbol with (at) due to some website setting problem.
    • Admin
      Admin about 11 years
      and setback query returns: rules: evdev model: pc105 layout: us
    • Admin
      Admin about 11 years
      I want US, but the computer keeps starting up with Icelandic because that's what I clicked when installing.
    • Admin
      Admin about 11 years