Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 04-09-2004, 08:28 AM   #1
Registered: Apr 2004
Posts: 32

Rep: Reputation: 15
how to change keymap for x


im using slackware 9.1 i set the keymap during installation but this only works in the command line as soon as i start x it goes to american style

i need it set for uk keyboards

how do i change it thanks
Old 04-09-2004, 08:51 AM   #2
Registered: Feb 2004
Location: Stockholm, Sweden.
Distribution: Gentoo Linux
Posts: 30

Rep: Reputation: 15
Open a text editor and open the file /etc/X11/XF86Config. In the section "Core keyboard's InputDevice section" you will find a line that looks like this:

Option "XkbLayout" "us"

All you have to do is change the "us" to whatever keyboard layout you want. In your case you should replace it with the string "uk".

Last edited by nalg0rath; 04-09-2004 at 08:55 AM.
Old 04-09-2004, 08:53 AM   #3
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
Hi DrGnome!!!

You've to edit your XF86Config file located at /etc/X11. Find the section "Input Devices" and keyboard there. When you find that section, include the following line:

Option "XkbLayout" "se"

The last two characters ("se") changes your Keybord for a swedish layout. Find the correct characters for your keyboard. Linux is case sensitive, so make sure to type upper(lower) cases correctly. Make a backup of your XF86Config, just in case .

When done, restart X..

Good luck!
Old 04-09-2004, 08:54 AM   #4
Mega Man X
LQ Guru
Registered: Apr 2003
Location: ~
Distribution: Ubuntu, FreeBSD, Solaris, DSL
Posts: 5,339

Rep: Reputation: 64
oops nalg0rath beat me . But I bet he uses the same keyboard layout as me, lol


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to change keymap ? intmail Slackware 4 10-05-2005 03:22 PM
Keymap with ,, ulfob Slackware 1 02-04-2004 11:40 AM
how to change keymap? andrewlkho Linux - General 4 07-09-2003 12:00 PM
dvorak keymap seingoku Slackware 1 05-22-2003 10:14 PM
change keymap in x-win (slackware) niehls Linux - Software 3 11-25-2002 06:12 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration