John Peacock wrote:
I need to use a different keymap for my LTSP clients, which will be running telnet only.
Just to add this to the archive, since I figured it out.

1) Create a new keyboard map. In my case, I just copied an existing map

cd /usr/lib/kbd/keymaps/i386/qwerty/
cp us.kmap.gz mymap.kmap.gz

and edited the line(s) I needed to change (RTFM/STFW for help here ;~)

2) Copy that file to the ltsp directories, e.g.

/opt/ltsp/i386/usr/lib/kbd/keymaps/i386/qwerty/mymap.kmap.gz

also copy the entire contents of the include directory to

/opt/ltsp/i386/usr/lib/kbd/keymaps/i386/include/*

(these files are needed to completely define the keymap). Theoretically, you could just redefine the keys you are changing (since the keymaps are cumulative) but I thought it was safer to just do the whole thing.

3) Copy /bin/loadkeys to /opt/ltsp/i386/bin/loadkeys (only if your O/S kernel is roughly equivalent to your ltsp kernel).

4) Create the file /opt/ltsp/i386/etc/rc.d/keyboard:

#!/bin/bash
echo "Redefining keyboard"
loadkeys /usr/lib/kbd/keymaps/i386/qwerty/mykey.kmap.gz

5) Add the following line to lts.conf:

RCFILE_01 = keyboard

(in my case, I put this in the default section).

6) Boot the workstation at runlevel 3 and confirm that the keymap is active.

7) Switch the workstation to runlevel 4 and telnet; the keyboard mapping should still be active.

HTH someone...

John


--
John Peacock
Director of Information Research and Technology
Rowman & Littlefield Publishing Group
4720 Boston Way
Lanham, MD 20706
301-459-3366 x.5010
fax 301-429-5747



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_____________________________________________________________________
Ltsp-discuss mailing list. To un-subscribe, or change prefs, goto:
https://lists.sourceforge.net/lists/listinfo/ltsp-discuss
For additional LTSP help, try #ltsp channel on irc.openprojects.net


Reply via email to