public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Installation: help me set up my keyboard, please.
Date: Sat, 19 Jul 2008 09:23:43 +0000	[thread overview]
Message-ID: <20080719092343.GA2968@muc.de> (raw)
In-Reply-To: <20080718213930.GB4601@marvin.heimnetz.local>

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



  reply	other threads:[~2008-07-19  9:24 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2008-07-20 11:43   ` Iain Buchanan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080719092343.GA2968@muc.de \
    --to=acm@muc.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox