source: chapter06/kbd.xml@ 8edca0a

7.5-systemd 7.6-systemd 7.7-systemd 7.8-systemd 7.9-systemd
Last change on this file since 8edca0a was 8edca0a, checked in by Krejzi <krejzi@…>, 11 years ago

Rework D-Bus instructions, move user creation to createfiles.xml. Remove libdir switch from Xz and move libs manually as done in Zlib instructions. Modify Sysvinit instructions for few programs we need. Don't move find in findutils, it's not needed by Systemd.

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

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