1 |
Hi, Sebastian! |
2 |
|
3 |
On Fri, Jul 18, 2008 at 11:39:32PM +0200, Sebastian Günther wrote: |
4 |
> * Alan Mackenzie (acm@×××.de) [18.07.08 23:00]: |
5 |
|
6 |
[ .... ] |
7 |
|
8 |
> > Except I've hit a brick wall. I want to set up my console keyboard, |
9 |
> > so I go to edit /etc/conf.d/keymaps, as described in the "x86 |
10 |
> > Handbook". |
11 |
|
12 |
> Maybe you have just what the Germans call "Ein Brett vorm Kopf" |
13 |
|
14 |
Hah! That reminds me of a Monty Python sketch involving monks. :-) |
15 |
|
16 |
> > ######################################################################### |
17 |
> > # Use KEYMAP to specify the default console keymap. There is a complete tree |
18 |
> > # of keymaps in /usr/share/keymaps to choose from. |
19 |
|
20 |
> > KEYMAP="uk" |
21 |
> > ######################################################################### |
22 |
|
23 |
> > This is aggravatingly vague. I cannot find anything to tell me _HOW_ to |
24 |
> > "Use KEYMAP to specify ...". Somehow, my current setting of "uk" seems |
25 |
> > to find and load an appropriate keymap, perhaps |
26 |
> > /usr/share/keymaps/i386/qwerty/uk.map.gz. |
27 |
|
28 |
> KEYMAP is just a env var which holds the arguments for loadkeys. And for |
29 |
> sure it finds this keymap. And this is by far not vague. See below. |
30 |
|
31 |
> > So the question is how do I get the system to load up my own special |
32 |
> > keymap, currently called boottime.keymap.gz on my Debian system? |
33 |
> > Where must I write this file so that it gets loaded? Where do I find |
34 |
> > the documentation telling where to write this file? |
35 |
|
36 |
> > I've delved into /etc/init.d/keymaps (a "runscript" shell), but it |
37 |
> > appears merely to use ${KEYMAP}. I cannot see how this script manages to |
38 |
> > find a filename out of "uk". Presumably the interpreter /sbin/runscript |
39 |
> > runs the find command, somehow. But I can't find any documentation for |
40 |
> > runscript. |
41 |
|
42 |
> Keymaps are loaded with loadkeys. man loadkeys gives the glory details. |
43 |
> (there is also a hint how to set this as kernel keymap ;-)) |
44 |
|
45 |
Ah, loadkeys, my old friend! I confess I'd not looked at man loadkeys |
46 |
for around 5 years. It's changed. |
47 |
|
48 |
> It searches in /usr/share/keymaps for the string. |
49 |
|
50 |
Ah! I've not seen this in *nix before, giving a filename fragment and |
51 |
having the system DWIM. I'm not sure I like it. |
52 |
|
53 |
> As you may have noticed all keymaps differ before the .map.gz. So it |
54 |
> should go smoothly, if you put your keymap in any folder, an appropiate |
55 |
> for sanity, and rename it to something unique, a la |
56 |
> my-own-nifty.map.gz. |
57 |
|
58 |
> Test it with |
59 |
> # loadkeys my-own-nifty |
60 |
|
61 |
Yes, it works. I should have just tried it. |
62 |
|
63 |
> > How do I set my keyboard layout? |
64 |
|
65 |
> loadkeys |
66 |
|
67 |
Thanks! It now works. |
68 |
|
69 |
> Sebastian |
70 |
|
71 |
-- |
72 |
Alan Mackenzie (Nuremberg, Germany). |
73 |
-- |
74 |
gentoo-user@l.g.o mailing list |