LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   keyboard layout (https://www.linuxquestions.org/questions/slackware-14/keyboard-layout-292921/)

acidjuice 02-21-2005 06:12 AM

keyboard layout
 
hello all,

this should be rather simple: how do you configure keyboard layout? i'm not talking under X11 (which i guess is under xorg.conf), instead i'm talking when you do a login in init:2: mode (i.e. when you have to manually startx to enter the gui).

everything is fine if i'm into X, however before starting X i still have the classic US keyboard.

any ideas?

thank you,

aj.

reddazz 02-21-2005 06:55 AM

You need to setup the correct keymap in /etc/rc.d/rc.keymap.

acidjuice 02-21-2005 09:00 AM

thank you i'll try this!

acidjuice 02-21-2005 11:23 AM

hem sorry but no rc.keymap file on my system...

gbonvehi 02-21-2005 11:36 AM

Check this post: http://www.linuxquestions.org/questi...hreadid=249005

If you don't have the /etc/rc.d/rc.keymap file just create it with root as owner and group, and set it to executable (it'll be loaded by rc.M).
My rc.keymap looks like:
Code:

#!/bin/sh
# Load the keyboard map. More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys es.map
fi

Also be sure that you've the kbd package installed.

PD: es.map is the Spanish layout ;)

Oholiab 02-21-2005 03:54 PM

Funny, I've got mine set to uk.map, but it types in american format! HELP!

gbonvehi 02-22-2005 12:03 AM

What do you mean it types in american format? Maybe you need to change that layout in X which was explained in the post I linked to.

reddazz 02-22-2005 02:24 AM

You need to make sure that the keymap in /etc/rc.d/rc.keymap is the same as that in you xorg.conf. So in your case what you need to do is edit xorg.config and change the following line

Option "XkbLayout" "us"
to
Option "XkbLayout" "gb"

acidjuice 02-22-2005 06:47 AM

hi again,

problem is i don't have the /etc/rc.d/rc.keymap file. i created one that looks like gbonvehi's one of the post here above, however i don't think this is executed at boot.

you know how i can execute this at boot? and why in any case this file wasn't generated on my install (slack 10.1)?

thank you,

aj

reddazz 02-22-2005 08:28 AM

As root, just do "chmod +x /etc/rc.d/rc.keymap. When you restart your PC, it should use the selected keymap. There is mine below using the UK keymap.

Code:

#!/bin/sh
# Load the keyboard map.  More maps are in /usr/share/kbd/keymaps.
if [ -x /usr/bin/loadkeys ]; then
 /usr/bin/loadkeys uk.map
fi


WilliamS 02-22-2005 08:51 AM

Whoops. Answered an un-asked question.


All times are GMT -5. The time now is 10:59 AM.