PDA

View Full Version : [SOLVED] Change keyboard layout (Lubuntu)



Paddy Landau
January 4th, 2011, 03:42 PM
The keyboard on my Lubuntu machine broke, so I replaced it with a new keyboard.

However, the old keyboard was UK and the new one US.

How do I change the keyboard layout on Lubuntu?

cavalier911
January 4th, 2011, 06:02 PM
This is a new gui for setting your keymap/keyboard for i386 only.
Installed and works on Lubuntu 10.04 LTS
https://launchpad.net/~lubuntu-desktop/+archive/ppa/+build/2081504/+files/lxkeymap_0.3%7Eppa3_all.deb

menu/preferences/lxkeymap

Console keymap configuration:
Ctrl+alt F1

sudo nano -B /etc/default/console-setupConfigure XKBMODEL= XKBLAYOUT= and save

sudo setupconLogin and test your keyboard setup.
To change repeat the above steps in the same order.
To autoconfigure the setting on boot.

sudo nano /etc/rc.localAdd whats in bold



#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.
setupcon
exit 0Ctrl+alt F7 returns you to X

Paddy Landau
January 4th, 2011, 07:32 PM
EDIT: cancel this post

Paddy Landau
January 4th, 2011, 07:59 PM
Thank you for your post.

I already have the PPA listed in my repositories, and I did not find lxkeymap in Synaptic, so that did not work.

I used your terminal method. setupcon complained about the variant, so I commented out the XKBVARIANT line and now it works.

Thank you!