source: chapter06/kbd.xml@ 4982b582

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since 4982b582 was 4982b582, checked in by Bruce Dubbs <bdubbs@…>, 15 years ago

Remove obsolete instructions about installing
man pages for optional programs.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@8957 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 13.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
6]>
7
8<sect1 id="ch-system-kbd" role="wrap">
9 <?dbhtml filename="kbd.html"?>
10
11 <sect1info condition="script">
12 <productname>kbd</productname>
13 <productnumber>&kbd-version;</productnumber>
14 <address>&kbd-url;</address>
15 </sect1info>
16
17 <title>Kbd-&kbd-version;</title>
18
19 <indexterm zone="ch-system-kbd">
20 <primary sortas="a-Kbd">Kbd</primary>
21 </indexterm>
22
23 <sect2 role="package">
24 <title/>
25
26 <para>The Kbd package contains key-table files and keyboard utilities.</para>
27
28 <segmentedlist>
29 <segtitle>&buildtime;</segtitle>
30 <segtitle>&diskspace;</segtitle>
31
32 <seglistitem>
33 <seg>&kbd-ch6-sbu;</seg>
34 <seg>&kbd-ch6-du;</seg>
35 </seglistitem>
36 </segmentedlist>
37
38 </sect2>
39
40 <sect2 role="installation">
41 <title>Installation of Kbd</title>
42
43 <para>The behaviour of the Backspace and Delete keys is not consistent
44 across the keymaps in the Kbd package. The following patch fixes this
45 issue for i386 keymaps:</para>
46
47<screen><userinput remap="pre">patch -Np1 -i ../&kbd-backspace-patch;</userinput></screen>
48
49 <para>After patching, the Backspace key generates the character with code 127,
50 and the Delete key generates a well-known escape sequence.</para>
51
52 <para>In this version of Kbd the instructions to build
53 <filename>getkeycodes</filename>, <filename>setkeycodes</filename> and
54 <filename>resizecons</filename> do not get passed over to the generated
55 <filename>Makefile</filename> as they should. So that these programs
56 are built and installed add two lines to the top of
57 <filename>src/Makefile.in</filename>:
58 </para>
59
60<screen><userinput remap="pre">sed -i -e '1i KEYCODES_PROGS = @KEYCODES_PROGS@' \
61 -e '1i RESIZECONS_PROGS = @RESIZECONS_PROGS@' src/Makefile.in</userinput></screen>
62
63 <para>Prepare Kbd for compilation:</para>
64
65<screen><userinput remap="configure">./configure --prefix=/usr --datadir=/lib/kbd</userinput></screen>
66
67 <variablelist>
68 <title>The meaning of the configure options:</title>
69
70 <varlistentry>
71 <term><parameter>--datadir=/lib/kbd</parameter></term>
72 <listitem>
73 <para>This option puts keyboard layout data in a directory that will
74 always be on the root partition instead of the default <filename
75 class="directory">/usr/share/kbd</filename>.</para>
76 </listitem>
77 </varlistentry>
78
79 </variablelist>
80
81 <para>Compile the package:</para>
82
83<screen><userinput remap="make">make</userinput></screen>
84
85 <para>This package does not come with a test suite.</para>
86
87 <para>Install the package:</para>
88
89<screen><userinput remap="install">make install</userinput></screen>
90
91 <note>
92 <para>For some languages (e.g., Belarusian) the Kbd package doesn't
93 provide a useful keymap where the stock <quote>by</quote> keymap assumes
94 the ISO-8859-5 encoding, and the CP1251 keymap is normally used. Users of
95 such languages have to download working keymaps separately.</para>
96 </note>
97
98 <para>Some of the scripts in the LFS-Bootscripts package depend on
99 <command>kbd_mode</command>, <command>loadkeys</command>,
100 <command>openvt</command>, and
101 <command>setfont</command>. As <filename class="directory">/usr</filename>
102 may not be available during the early stages of booting, those binaries
103 need to be on the root partition:</para>
104
105<screen><userinput remap="install">mv -v /usr/bin/{kbd_mode,loadkeys,openvt,setfont} /bin</userinput></screen>
106
107 <para>If desired, install the documentation:</para>
108
109<screen><userinput remap="install">mkdir -v /usr/share/doc/kbd-&kbd-version;
110cp -R -v doc/* \
111 /usr/share/doc/kbd-&kbd-version;</userinput></screen>
112
113 </sect2>
114
115 <sect2 id="contents-kbd" role="content">
116 <title>Contents of Kbd</title>
117
118 <segmentedlist>
119 <segtitle>Installed programs</segtitle>
120
121 <seglistitem>
122 <seg>chvt, deallocvt, dumpkeys, fgconsole, getkeycodes, kbd_mode,
123 kbdrate, loadkeys, loadunimap,
124 mapscrn, openvt, psfaddtable (link to psfxtable), psfgettable (link to
125 psfxtable), psfstriptable (link to psfxtable), psfxtable, resizecons,
126 setfont, setkeycodes, setleds, setmetamode,
127 showconsolefont, showkey, unicode_start, and unicode_stop</seg>
128 </seglistitem>
129 </segmentedlist>
130
131 <variablelist>
132 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
133 <?dbfo list-presentation="list"?>
134 <?dbhtml list-presentation="table"?>
135
136 <varlistentry id="chvt">
137 <term><command>chvt</command></term>
138 <listitem>
139 <para>Changes the foreground virtual terminal</para>
140 <indexterm zone="ch-system-kbd chvt">
141 <primary sortas="b-chvt">chvt</primary>
142 </indexterm>
143 </listitem>
144 </varlistentry>
145
146 <varlistentry id="deallocvt">
147 <term><command>deallocvt</command></term>
148 <listitem>
149 <para>Deallocates unused virtual terminals</para>
150 <indexterm zone="ch-system-kbd deallocvt">
151 <primary sortas="b-deallocvt">deallocvt</primary>
152 </indexterm>
153 </listitem>
154 </varlistentry>
155
156 <varlistentry id="dumpkeys">
157 <term><command>dumpkeys</command></term>
158 <listitem>
159 <para>Dumps the keyboard translation tables</para>
160 <indexterm zone="ch-system-kbd dumpkeys">
161 <primary sortas="b-dumpkeys">dumpkeys</primary>
162 </indexterm>
163 </listitem>
164 </varlistentry>
165
166 <varlistentry id="fgconsole">
167 <term><command>fgconsole</command></term>
168 <listitem>
169 <para>Prints the number of the active virtual terminal</para>
170 <indexterm zone="ch-system-kbd fgconsole">
171 <primary sortas="b-fgconsole">fgconsole</primary>
172 </indexterm>
173 </listitem>
174 </varlistentry>
175
176 <varlistentry id="getkeycodes">
177 <term><command>getkeycodes</command></term>
178 <listitem>
179 <para>Prints the kernel scancode-to-keycode mapping table</para>
180 <indexterm zone="ch-system-kbd getkeycodes">
181 <primary sortas="b-getkeycodes">getkeycodes</primary>
182 </indexterm>
183 </listitem>
184 </varlistentry>
185
186 <varlistentry id="kbd_mode">
187 <term><command>kbd_mode</command></term>
188 <listitem>
189 <para>Reports or sets the keyboard mode</para>
190 <indexterm zone="ch-system-kbd kbd_mode">
191 <primary sortas="b-kbd_mode">kbd_mode</primary>
192 </indexterm>
193 </listitem>
194 </varlistentry>
195
196 <varlistentry id="kbdrate">
197 <term><command>kbdrate</command></term>
198 <listitem>
199 <para>Sets the keyboard repeat and delay rates</para>
200 <indexterm zone="ch-system-kbd kbdrate">
201 <primary sortas="b-kbdrate">kbdrate</primary>
202 </indexterm>
203 </listitem>
204 </varlistentry>
205
206 <varlistentry id="loadkeys">
207 <term><command>loadkeys</command></term>
208 <listitem>
209 <para>Loads the keyboard translation tables</para>
210 <indexterm zone="ch-system-kbd loadkeys">
211 <primary sortas="b-loadkeys">loadkeys</primary>
212 </indexterm>
213 </listitem>
214 </varlistentry>
215
216 <varlistentry id="loadunimap">
217 <term><command>loadunimap</command></term>
218 <listitem>
219 <para>Loads the kernel unicode-to-font mapping table</para>
220 <indexterm zone="ch-system-kbd loadunimap">
221 <primary sortas="b-loadunimap">loadunimap</primary>
222 </indexterm>
223 </listitem>
224 </varlistentry>
225
226 <varlistentry id="mapscrn">
227 <term><command>mapscrn</command></term>
228 <listitem>
229 <para>An obsolete program that used to load a user-defined output
230 character mapping table into the console driver; this is now done
231 by <command>setfont</command></para>
232 <indexterm zone="ch-system-kbd mapscrn">
233 <primary sortas="b-mapscrn">mapscrn</primary>
234 </indexterm>
235 </listitem>
236 </varlistentry>
237
238 <varlistentry id="openvt">
239 <term><command>openvt</command></term>
240 <listitem>
241 <para>Starts a program on a new virtual terminal (VT)</para>
242 <indexterm zone="ch-system-kbd openvt">
243 <primary sortas="b-openvt">openvt</primary>
244 </indexterm>
245 </listitem>
246 </varlistentry>
247
248 <varlistentry id="psfaddtable">
249 <term><command>psfaddtable</command></term>
250 <listitem>
251 <para>A link to <command>psfxtable</command></para>
252 <indexterm zone="ch-system-kbd psfaddtable">
253 <primary sortas="b-psfaddtable">psfaddtable</primary>
254 </indexterm>
255 </listitem>
256 </varlistentry>
257
258 <varlistentry id="psfgettable">
259 <term><command>psfgettable</command></term>
260 <listitem>
261 <para>A link to <command>psfxtable</command></para>
262 <indexterm zone="ch-system-kbd psfgettable">
263 <primary sortas="b-psfgettable">psfgettable</primary>
264 </indexterm>
265 </listitem>
266 </varlistentry>
267
268 <varlistentry id="psfstriptable">
269 <term><command>psfstriptable</command></term>
270 <listitem>
271 <para>A link to <command>psfxtable</command></para>
272 <indexterm zone="ch-system-kbd psfstriptable">
273 <primary sortas="b-psfstriptable">psfstriptable</primary>
274 </indexterm>
275 </listitem>
276 </varlistentry>
277
278 <varlistentry id="psfxtable">
279 <term><command>psfxtable</command></term>
280 <listitem>
281 <para>Handle Unicode character tables for console fonts</para>
282 <indexterm zone="ch-system-kbd psfxtable">
283 <primary sortas="b-psfxtable">psfxtable</primary>
284 </indexterm>
285 </listitem>
286 </varlistentry>
287
288 <varlistentry id="resizecons">
289 <term><command>resizecons</command></term>
290 <listitem>
291 <para>Changes the kernel idea of the console size</para>
292 <indexterm zone="ch-system-kbd resizecons">
293 <primary sortas="b-resizecons">resizecons</primary>
294 </indexterm>
295 </listitem>
296 </varlistentry>
297
298 <varlistentry id="setfont">
299 <term><command>setfont</command></term>
300 <listitem>
301 <para>Changes the Enhanced Graphic Adapter (EGA) and Video Graphics
302 Array (VGA) fonts on the console</para>
303 <indexterm zone="ch-system-kbd setfont">
304 <primary sortas="b-setfont">setfont</primary>
305 </indexterm>
306 </listitem>
307 </varlistentry>
308
309 <varlistentry id="setkeycodes">
310 <term><command>setkeycodes</command></term>
311 <listitem>
312 <para>Loads kernel scancode-to-keycode mapping table entries; this is
313 useful if there are unusual keys on the keyboard</para>
314 <indexterm zone="ch-system-kbd setkeycodes">
315 <primary sortas="b-setkeycodes">setkeycodes</primary>
316 </indexterm>
317 </listitem>
318 </varlistentry>
319
320 <varlistentry id="setleds">
321 <term><command>setleds</command></term>
322 <listitem>
323 <para>Sets the keyboard flags and Light Emitting Diodes (LEDs)</para>
324 <indexterm zone="ch-system-kbd setleds">
325 <primary sortas="b-setleds">setleds</primary>
326 </indexterm>
327 </listitem>
328 </varlistentry>
329
330 <varlistentry id="setmetamode">
331 <term><command>setmetamode</command></term>
332 <listitem>
333 <para>Defines the keyboard meta-key handling</para>
334 <indexterm zone="ch-system-kbd setmetamode">
335 <primary sortas="b-setmetamode">setmetamode</primary>
336 </indexterm>
337 </listitem>
338 </varlistentry>
339
340 <varlistentry id="showconsolefont">
341 <term><command>showconsolefont</command></term>
342 <listitem>
343 <para>Shows the current EGA/VGA console screen font</para>
344 <indexterm zone="ch-system-kbd showconsolefont">
345 <primary sortas="b-showconsolefont">showconsolefont</primary>
346 </indexterm>
347 </listitem>
348 </varlistentry>
349
350 <varlistentry id="showkey">
351 <term><command>showkey</command></term>
352 <listitem>
353 <para>Reports the scancodes, keycodes, and ASCII codes of the keys
354 pressed on the keyboard</para>
355 <indexterm zone="ch-system-kbd showkey">
356 <primary sortas="b-showkey">showkey</primary>
357 </indexterm>
358 </listitem>
359 </varlistentry>
360
361 <varlistentry id="unicode_start">
362 <term><command>unicode_start</command></term>
363 <listitem>
364 <para>Puts the keyboard and console in UNICODE mode. Don't use this
365 program unless your keymap file is in the ISO-8859-1 encoding. For
366 other encodings, this utility produces incorrect results.</para>
367 <indexterm zone="ch-system-kbd unicode_start">
368 <primary sortas="b-unicode_start">unicode_start</primary>
369 </indexterm>
370 </listitem>
371 </varlistentry>
372
373 <varlistentry id="unicode_stop">
374 <term><command>unicode_stop</command></term>
375 <listitem>
376 <para>Reverts keyboard and console from UNICODE mode</para>
377 <indexterm zone="ch-system-kbd unicode_stop">
378 <primary sortas="b-unicode_stop">unicode_stop</primary>
379 </indexterm>
380 </listitem>
381 </varlistentry>
382
383 </variablelist>
384
385 </sect2>
386
387</sect1>
Note: See TracBrowser for help on using the repository browser.