1 |
* Alan Mackenzie (acm@×××.de) [18.07.08 23:00]: |
2 |
> Hi, Gentoo, |
3 |
> |
4 |
Hi, |
5 |
|
6 |
> I'm having a great time installing Gentoo, and everything's going |
7 |
> swimmingly, including having compiled a kernel, got networking working, I |
8 |
> can use a USB stick, ..... |
9 |
> |
10 |
fine, |
11 |
|
12 |
> Except I've hit a brick wall. I want to set up my console keyboard, so I |
13 |
> go to edit /etc/conf.d/keymaps, as described in the "x86 Handbook". |
14 |
> |
15 |
Maybe you have just what the Germans call "Ein Brett vorm Kopf" |
16 |
|
17 |
> That file says, after a temporary previous edit: |
18 |
> |
19 |
> ######################################################################### |
20 |
> # Use KEYMAP to specify the default console keymap. There is a complete tree |
21 |
> # of keymaps in /usr/share/keymaps to choose from. |
22 |
> |
23 |
> KEYMAP="uk" |
24 |
> ######################################################################### |
25 |
> |
26 |
> This is aggravatingly vague. I cannot find anything to tell me _HOW_ to |
27 |
> "Use KEYMAP to specify ...". Somehow, my current setting of "uk" seems |
28 |
> to find and load an appropriate keymap, perhaps |
29 |
> /usr/share/keymaps/i386/qwerty/uk.map.gz. |
30 |
> |
31 |
KEYMAP is just a env var which holds the arguments for loadkeys. And for |
32 |
sure it finds this keymap. And this is by far not vague. See below. |
33 |
|
34 |
If you need uk keyboard layout: your done :-) |
35 |
|
36 |
> So the question is how do I get the system to load up my own special |
37 |
> keymap, currently called boottime.keymap.gz on my Debian system? Where |
38 |
> must I write this file so that it gets loaded? Where do I find the |
39 |
> documentation telling where to write this file? |
40 |
> |
41 |
> I've delved into /etc/init.d/keymaps (a "runscript" shell), but it |
42 |
> appears merely to use ${KEYMAP}. I cannot see how this script manages to |
43 |
> find a filename out of "uk". Presumably the interpreter /sbin/runscript |
44 |
> runs the find command, somehow. But I can't find any documentation for |
45 |
> runscript. |
46 |
> |
47 |
|
48 |
Keymaps are loaded with loadkeys. man loadkeys gives the glory details. |
49 |
(there is also a hint how to set this as kernel keymap ;-)) |
50 |
|
51 |
It searches in /usr/share/keymaps for the string. |
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 my-own-nifty.map.gz. |
56 |
|
57 |
Test it with |
58 |
# loadkeys my-own-nifty |
59 |
|
60 |
> So I'm stymied. It's a real jar after so much of the installation has |
61 |
> gone so smoothly, with otherwise excellent documentation, well above |
62 |
> average for a Linux distro. |
63 |
> |
64 |
> How do I set my keyboard layout? |
65 |
> |
66 |
|
67 |
loadkeys |
68 |
|
69 |
> Thanks in advance for the help! |
70 |
> |
71 |
HTH |
72 |
|
73 |
Sebastian |
74 |
|
75 |
-- |
76 |
" Religion ist das Opium des Volkes. " Karl Marx |
77 |
|
78 |
SEB@STI@N GÜNTHER mailto:samson@××××××××××××××××.de |