source: chapter06/kbd.xml@ 5cf455a

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 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 5cf455a was fe05b08, checked in by Bruce Dubbs <bdubbs@…>, 14 years ago

Add installed directories information to
each package. Thanks to Chris Staub for the patch.

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

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