Keyboard layout

Message
Author
User avatar
pastone
Forum Regular
Forum Regular
Posts: 261
Joined: Mon Sep 15, 2008 10:04 am

Keyboard layout

#1 Postby pastone » Thu Nov 03, 2011 7:40 pm

Scenario:
AntiX X1 as a virtualbox guest on a Mepis 11 host.
KDE 4.6 installed and active in AntiX (installed by means of the AntiX command provided).
AntiX fully updated from the debian testing repository.

Problem:
I cannot get the keyboard in AntiX to adopt the uk layout.

I have set the locale and the language (having installed the kde gb addition). But I still get keys like "@#\
in the wrong place.

What am I doing wrong?

Otherwise AntiX is working well, and enabling me to explore kde 4.6.

Best wishes,
Peter Stone

User avatar
BitJam
Forum Guide
Forum Guide
Posts: 1739
Joined: Sat Aug 22, 2009 11:36 pm

Re: Keyboard layout

#2 Postby BitJam » Thu Nov 03, 2011 9:47 pm

There are three approaches. The first is to use the "lang=uk" boot options when you first boot the antiX LiveCD. Three other boot options are also available for fine tuning:

Code: Select all

kbd= kbvar= kbopt=


If you don't want to go that route then you can trying editing /etc/default/keyboard and change KBLAYOUT. You will at least have to restart X and you may need to reboot for this to take effect.

Finally, you could edit your /etc/X11/xorg.conf directly and add a section like this:

Code: Select all

Section "InputClass"
   Identifier "keyboard-all"
   Driver "evdev"
   Option "XkbLayout" "uk"
   #Option "XkbModel" "pc105"
   MatchIsKeyboard "on"
EndSection

You then have to restart X which you can do by logging out and then logging in again through the Slim login manager. I have not tested this. It may need some (hopefully) slight modification.

User avatar
pastone
Forum Regular
Forum Regular
Posts: 261
Joined: Mon Sep 15, 2008 10:04 am

Re: Keyboard layout

#3 Postby pastone » Fri Nov 04, 2011 8:28 pm

Thanks, BitJam.

Success was achieved by changing a line in /etc/default/keyboard to:

XKBLAYOUT="gb"

Best wishes,
Peter Stone


Return to “antiX”

Who is online

Users browsing this forum: No registered users and 2 guests