Many thanks for this recipe.
For the moment, though, I am going to stick with my
   cp  /sys/lib/kbmap/uk   /dev/kbmap   in my profile

Unless there is a good reason why I shouldn't....?

Bob

erik quanstrom wrote:
In which case, this doesn't seem to be a very practical mechanism. Wouldn't it be beter to attach to the server and then do the kbmap() stuff ??

that's a good chicken-and-egg question.  at the stage of boot
where kbmap is run, factotum has not been run and there is no
fileserver.  the advantage to doing the mapping here is that
passwords can be entered normally.  the disadvantage is that
you can't get the file from the fileserver --- you can't authenticate
to it.

if you wait until you have auth set up, you could use files from
the fs, but you'd have one convention for entering passwords
and another for entering everything else.  (assuming all the
chars in your password are typable with your keyboard and
the standard layout interpretation.)

so the only solution is to build the kbmap into the kernel.

i'm not going to try this, so i might mess a few details up,
but this is close to what you want to do.

1. use "kbmap=/boot/uk"

2. edit your terminal configuration.  generally this is /sys/src/9/pc/pc.
in the bootdir section add "/sys/lib/kbmap/uk"

3. make your kernel "mk 'CONF=pc' install"

4. copy /386/9pc to wherever you boot from.  if you're
changing the name of your kernel, then be sure to edit
your plan9.ini, too.

5. reboot.  after booting, you can verify that you've got
it right by
        mount /srv/boot /n/boot
        lc /boot
you should see a file named "uk" in /boot.  (and your
keyboard should work correctly.)

- erik





Reply via email to