Keyboard configuration (kbd)
- This document covers the compilation, installation and configuration of the kbd utilities, which are used to change key associations for international users. More advanced uses of the utilities are covered in many online documents. A good place to start is the The Linux Documentation Project website.
- It is possible to change the system-wide default keyboard mappings by using command line options when compiling the kernel. However this software allows different users (potentially in different countries, or just with different keyboards, to use the same Linux system with only a couple of lines of bash commands.
- If you spot any major errors on this page, please e-mail me using the link above.
- It is assumed that this installation takes place on a computer on which Core Linux has been successfully installed.
- No software other than the packages bundled with Core Linux have been installed.
- As described in the installation guide, it is assumed that any downloaded application source code is stored in a directory called
/appson the CD-R. - It is assumed that in addition to the Core Linux computer, there is at least one other machine with internet access and a CD burner.
Preparation
- Download the kdb source code from www.kernel.org.
- Burn the file
kbd-1.08.tar.gzto a CD. This page assumes that the subdirectory/appsis used for the.tar.gzfile. The CD-ROM can be a multi-session disk.
Booting
- Boot your Core Linux PC.
- Login as
root. You will need to enter the password at the prompt.
Extract the source
- Place the CD-R in the CD-ROM drive. Mount the CD-ROM drive under
/mnt/cdrom. - Change to the
/appsdirectory on the CD-R. - Copy the
kbd-1.08.tar.gzfile to the directory/usr/src. - Change to the
/usr/srcdirectory and extract the source from the.tar.gzfile.
Configure and compile
- Change to the
/usr/src/kbd-1.08directory. - Run the
./configurescript. - Run the
makeprogram. - Run the
makeprogram with the argumentinstall.
Choosing and starting a new key map
- Select the new key map which you want to use. This example uses the UK key map, settings for which are held in the file
uk.map. Other keymaps are held in the directory/usr/src/kdb-1.08/data/keymapsand are sorted by system architecture, keyboard type and country. - Create the directory
/etc/kbd. - Copy the new key map to the
/etc/kbddirectory. The key map used in this example is/usr/src/kbd-1.08/data/keymaps/i386/qwerty/uk.map - It may be necessary to add some lines to your .inputrc file. For example, the extra keys on a Danish keyboard require the following lines to be added to .inputrc:
- Run the program
loadkeyswith the argument/etc/kbd/uk.map. - Test your new key associations.
Automating loadkeys
- Insert the following line at the beginning of the
/etc/rc.d/rc.muscript:You can also add comments and echoes for your own information.loadkeys /etc/kbd/uk.map - Reboot the system and check that the keyboard mapping is correct.

The text of this page is licensed under a Creative Commons License.
