public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Installation: help me set up my keyboard, please.
@ 2008-07-18 20:58 Alan Mackenzie
  2008-07-18 21:39 ` Sebastian Günther
  0 siblings, 1 reply; 4+ messages in thread
From: Alan Mackenzie @ 2008-07-18 20:58 UTC (permalink / raw
  To: gentoo-user

Hi, Gentoo,

I'm having a great time installing Gentoo, and everything's going
swimmingly, including having compiled a kernel, got networking working, I
can use a USB stick, .....

Except I've hit a brick wall.  I want to set up my console keyboard, so I
go to edit /etc/conf.d/keymaps, as described in the "x86 Handbook".

That file says, after a temporary previous edit:

#########################################################################
# Use KEYMAP to specify the default console keymap.  There is a complete tree
# of keymaps in /usr/share/keymaps to choose from.

KEYMAP="uk"
#########################################################################

This is aggravatingly vague.  I cannot find anything to tell me _HOW_ to
"Use KEYMAP to specify ...".  Somehow, my current setting of "uk" seems
to find and load an appropriate keymap, perhaps
/usr/share/keymaps/i386/qwerty/uk.map.gz.

So the question is how do I get the system to load up my own special
keymap, currently called boottime.keymap.gz on my Debian system?  Where
must I write this file so that it gets loaded?  Where do I find the
documentation telling where to write this file?

I've delved into /etc/init.d/keymaps (a "runscript" shell), but it
appears merely to use ${KEYMAP}.  I cannot see how this script manages to
find a filename out of "uk".  Presumably the interpreter /sbin/runscript
runs the find command, somehow.  But I can't find any documentation for
runscript.

So I'm stymied.  It's a real jar after so much of the installation has
gone so smoothly, with otherwise excellent documentation, well above
average for a Linux distro.

How do I set my keyboard layout?

Thanks in advance for the help!

-- 
Alan Mackenzie (Nuremberg, Germany).
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Installation: help me set up my keyboard, please.
  2008-07-18 20:58 [gentoo-user] Installation: help me set up my keyboard, please Alan Mackenzie
@ 2008-07-18 21:39 ` Sebastian Günther
  2008-07-19  9:23   ` Alan Mackenzie
  2008-07-20 11:43   ` Iain Buchanan
  0 siblings, 2 replies; 4+ messages in thread
From: Sebastian Günther @ 2008-07-18 21:39 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2761 bytes --]

* Alan Mackenzie (acm@muc.de) [18.07.08 23:00]:
> Hi, Gentoo,
> 
Hi,

> I'm having a great time installing Gentoo, and everything's going
> swimmingly, including having compiled a kernel, got networking working, I
> can use a USB stick, .....
> 
fine,

> Except I've hit a brick wall.  I want to set up my console keyboard, so I
> go to edit /etc/conf.d/keymaps, as described in the "x86 Handbook".
> 
Maybe you have just what the Germans call "Ein Brett vorm Kopf"

> That file says, after a temporary previous edit:
> 
> #########################################################################
> # Use KEYMAP to specify the default console keymap.  There is a complete tree
> # of keymaps in /usr/share/keymaps to choose from.
> 
> KEYMAP="uk"
> #########################################################################
> 
> This is aggravatingly vague.  I cannot find anything to tell me _HOW_ to
> "Use KEYMAP to specify ...".  Somehow, my current setting of "uk" seems
> to find and load an appropriate keymap, perhaps
> /usr/share/keymaps/i386/qwerty/uk.map.gz.
> 
KEYMAP is just a env var which holds the arguments for loadkeys. And for 
sure it finds this keymap. And this is by far not vague. See below.

If you need uk keyboard layout: your done :-)

> So the question is how do I get the system to load up my own special
> keymap, currently called boottime.keymap.gz on my Debian system?  Where
> must I write this file so that it gets loaded?  Where do I find the
> documentation telling where to write this file?
> 
> I've delved into /etc/init.d/keymaps (a "runscript" shell), but it
> appears merely to use ${KEYMAP}.  I cannot see how this script manages to
> find a filename out of "uk".  Presumably the interpreter /sbin/runscript
> runs the find command, somehow.  But I can't find any documentation for
> runscript.
> 

Keymaps are loaded with loadkeys. man loadkeys gives the glory details.
(there is also a hint how to set this as kernel keymap ;-))

It searches in /usr/share/keymaps for the string.

As you may have noticed all keymaps differ before the .map.gz. So it 
should go smoothly, if you put your keymap in any folder, an appropiate 
for sanity, and rename it to something unique, a la my-own-nifty.map.gz. 

Test it with 
# loadkeys my-own-nifty 

> So I'm stymied.  It's a real jar after so much of the installation has
> gone so smoothly, with otherwise excellent documentation, well above
> average for a Linux distro.
> 
> How do I set my keyboard layout?
> 

loadkeys

> Thanks in advance for the help!
> 
HTH

Sebastian

-- 
 " Religion ist das Opium des Volkes. "      Karl Marx

 SEB@STI@N GÜNTHER         mailto:samson@guenther-roetgen.de

[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Installation: help me set up my keyboard, please.
  2008-07-18 21:39 ` Sebastian Günther
@ 2008-07-19  9:23   ` Alan Mackenzie
  2008-07-20 11:43   ` Iain Buchanan
  1 sibling, 0 replies; 4+ messages in thread
From: Alan Mackenzie @ 2008-07-19  9:23 UTC (permalink / raw
  To: gentoo-user

Hi, Sebastian!

On Fri, Jul 18, 2008 at 11:39:32PM +0200, Sebastian Günther wrote:
> * Alan Mackenzie (acm@muc.de) [18.07.08 23:00]:

[ .... ]

> > Except I've hit a brick wall.  I want to set up my console keyboard,
> > so I go to edit /etc/conf.d/keymaps, as described in the "x86
> > Handbook".

> Maybe you have just what the Germans call "Ein Brett vorm Kopf"

Hah!  That reminds me of a Monty Python sketch involving monks.  :-)

> > #########################################################################
> > # Use KEYMAP to specify the default console keymap.  There is a complete tree
> > # of keymaps in /usr/share/keymaps to choose from.

> > KEYMAP="uk"
> > #########################################################################

> > This is aggravatingly vague.  I cannot find anything to tell me _HOW_ to
> > "Use KEYMAP to specify ...".  Somehow, my current setting of "uk" seems
> > to find and load an appropriate keymap, perhaps
> > /usr/share/keymaps/i386/qwerty/uk.map.gz.

> KEYMAP is just a env var which holds the arguments for loadkeys. And for 
> sure it finds this keymap. And this is by far not vague. See below.

> > So the question is how do I get the system to load up my own special
> > keymap, currently called boottime.keymap.gz on my Debian system?
> > Where must I write this file so that it gets loaded?  Where do I find
> > the documentation telling where to write this file?

> > I've delved into /etc/init.d/keymaps (a "runscript" shell), but it
> > appears merely to use ${KEYMAP}.  I cannot see how this script manages to
> > find a filename out of "uk".  Presumably the interpreter /sbin/runscript
> > runs the find command, somehow.  But I can't find any documentation for
> > runscript.

> Keymaps are loaded with loadkeys. man loadkeys gives the glory details.
> (there is also a hint how to set this as kernel keymap ;-))

Ah, loadkeys, my old friend!  I confess I'd not looked at man loadkeys
for around 5 years.  It's changed.

> It searches in /usr/share/keymaps for the string.

Ah!  I've not seen this in *nix before, giving a filename fragment and
having the system DWIM.  I'm not sure I like it.

> As you may have noticed all keymaps differ before the .map.gz. So it
> should go smoothly, if you put your keymap in any folder, an appropiate
> for sanity, and rename it to something unique, a la
> my-own-nifty.map.gz. 

> Test it with 
> # loadkeys my-own-nifty 

Yes, it works.  I should have just tried it.  

> > How do I set my keyboard layout?

> loadkeys

Thanks!  It now works.

> Sebastian

-- 
Alan Mackenzie (Nuremberg, Germany).
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-user] Installation: help me set up my keyboard, please.
  2008-07-18 21:39 ` Sebastian Günther
  2008-07-19  9:23   ` Alan Mackenzie
@ 2008-07-20 11:43   ` Iain Buchanan
  1 sibling, 0 replies; 4+ messages in thread
From: Iain Buchanan @ 2008-07-20 11:43 UTC (permalink / raw
  To: gentoo-user

On Fri, 2008-07-18 at 23:39 +0200, Sebastian Günther wrote:

> Maybe you have just what the Germans call "Ein Brett vorm Kopf"

Brett is a worm head?  What have you got against Brett?

;)
-- 
Iain Buchanan <iaindb at netspace dot net dot au>

What is the robbing of a bank compared to the founding of a bank?
		-- Bertold Brecht




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-07-20 11:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-18 20:58 [gentoo-user] Installation: help me set up my keyboard, please Alan Mackenzie
2008-07-18 21:39 ` Sebastian Günther
2008-07-19  9:23   ` Alan Mackenzie
2008-07-20 11:43   ` Iain Buchanan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox