diff options
author | Alex Gronenwoud <alex@linuxfromscratch.org> | 2004-02-09 22:45:54 +0000 |
---|---|---|
committer | Alex Gronenwoud <alex@linuxfromscratch.org> | 2004-02-09 22:45:54 +0000 |
commit | 342b176cf9ee3261933eedc36e4d010fd62b36c9 (patch) | |
tree | 6e01b566503b95ca78e69c784879d85ea11c0fba /chapter06/kbd.xml | |
parent | c76accc624f1e3f31072f7645f5faa19ccd697b6 (diff) |
Merging configaration subsections into their corresponding sections.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3245 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/kbd.xml')
-rw-r--r-- | chapter06/kbd.xml | 32 |
1 files changed, 31 insertions, 1 deletions
diff --git a/chapter06/kbd.xml b/chapter06/kbd.xml index 34cea17fc..854be7e1a 100644 --- a/chapter06/kbd.xml +++ b/chapter06/kbd.xml @@ -35,7 +35,37 @@ not installed. First enable the compilation of these utilities:</para> </sect2> -&c6-cf-keyboard; +<sect2><title>Configuring your keyboard</title> + +<para>Few things are more annoying than using Linux while a wrong keymap +for your keyboard is loaded. If you have a standard US keyboard, however, you +can skip this section, as the US keymap is the default as long as you don't +change it.</para> + +<para>To change the default keymap, create the +<filename class="symlink">/usr/share/kbd/keymaps/defkeymap.map.gz</filename> +symlink by running the following command:</para> + +<screen><userinput>ln -s path/to/keymap /usr/share/kbd/keymaps/defkeymap.map.gz</userinput></screen> + +<para>Of course, replace <filename>path/to/keymap</filename> with the path and +name of your keyboard's map file. For example, if you have a Dutch keyboard, +you would use <filename>i386/qwerty/nl.map.gz</filename>.</para> + +<para>Another way to set your keyboard's layout is to compile the keymap +into the kernel. This ensures that your keyboard will always work as expected, +even when you boot into maintenance mode (by passing `init=/bin/sh' to the +kernel), as then the bootscript that normally sets up your keymap isn't run.</para> + +<para>When in <xref linkend="chapter-mixture"/> you're ready to compile the +kernel, run the following command to patch the current default keymap into the +source (you will have to repeat this command whenever you unpack a new +kernel):</para> + +<screen><userinput>loadkeys -m /usr/share/kbd/keymaps/defkeymap.map.gz > \ + /usr/src/linux-&kernel-version;/drivers/char/defkeymap.c</userinput></screen> + +</sect2> &aa-kbd-shortdesc; &aa-kbd-desc; |