Changeset 46945af for BOOK/bootscripts/common
- Timestamp:
- Feb 7, 2009, 2:29:06 PM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 35cce5c
- Parents:
- 06fb515
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
BOOK/bootscripts/common/console.xml
r06fb515 r46945af 14 14 <secondary>configuring</secondary></indexterm> 15 15 16 <para>This section discusses how to configure the <command> console</command>16 <para>This section discusses how to configure the <command>i18n</command> 17 17 bootscript that sets up the keyboard map and the console font. If non-ASCII 18 18 characters (e.g., the British pound sign and Euro character) will not be … … 21 21 nothing.</para> 22 22 23 <para>The <command> console</command> script reads the24 <filename>/etc/sysconfig/ console</filename> file for configuration23 <para>The <command>i18n</command> script reads the 24 <filename>/etc/sysconfig/i18n</filename> file for configuration 25 25 information. Decide which keymap and screen font will be used. Various 26 26 language-specific HOWTO's can also help with this (see <ulink 27 27 url="http://www.tldp.org/HOWTO/HOWTO-INDEX/other-lang.html"/>. A pre-made 28 <filename>/etc/sysconfig/ console</filename> file with known settings for28 <filename>/etc/sysconfig/i18n</filename> file with known settings for 29 29 several countries was installed with the CLFS-Bootscripts package, so the 30 30 relevant section can be uncommented if the country is supported. If still 31 in doubt, look in the <filename class="directory">/lib/kbd</filename> 32 directory for valid keymaps and screen fonts. Read 33 <filename>loadkeys(1)</filename> and <filename>setfont(8)</filename> to 34 determine the correct arguments for these programs. Once decided, create 35 the configuration file with the following command:</para> 31 in doubt, look in the <filename class="directory">/usr/share/consolefonts</filename> 32 for valid screen fonts and <filename class="directory">/usr/share/keymaps</filename> 33 for valid keymaps.</para> 36 34 37 <screen><userinput>cat >/etc/sysconfig/console <<"EOF" 38 <literal>KEYMAP="<replaceable>[arguments for loadkeys]</replaceable>" 39 FONT="<replaceable>[arguments for setfont]</replaceable>"</literal> 40 EOF</userinput></screen> 41 42 <para>For example, for Spanish users who also want to use the Euro 43 character (accessible by pressing AltGr+E), the following settings are 44 correct:</para> 45 46 <screen><userinput>cat >/etc/sysconfig/console <<"EOF" 47 <literal>KEYMAP="es euro2" 48 FONT="lat9-16 -u iso01"</literal> 49 EOF</userinput></screen> 50 51 <note> 52 <para>The <envar>FONT</envar> line above is correct only for the ISO 53 8859-15 character set. If using ISO 8859-1 and, therefore, a pound sign 54 instead of Euro, the correct <envar>FONT</envar> line would be:</para> 55 56 <screen><userinput>FONT="lat1-16"</userinput></screen> 57 58 </note> 59 60 <para>If the <envar>KEYMAP</envar> or <envar>FONT</envar> variable is not 61 set, the <command>console</command> initscript will not run the 62 corresponding program.</para> 63 64 <para>In some keymaps, the Backspace and Delete keys send characters 65 different from ones in the default keymap built into the kernel. This 66 confuses some applications. For example, Emacs displays its help (instead 67 of erasing the character before the cursor) when Backspace is pressed. 68 To check if the keymap in use is affected (this works only for i386 69 keymaps):</para> 70 71 <screen><userinput>zgrep '\W14\W' <replaceable>[/path/to/your/keymap]</replaceable></userinput></screen> 72 73 <para>If the keycode 14 is Backspace instead of Delete, create the 74 following keymap snippet to fix this issue:</para> 75 76 <screen><userinput>mkdir -pv /etc/kbd && cat > /etc/kbd/bs-sends-del <<"EOF" 77 <literal> keycode 14 = Delete Delete Delete Delete 78 alt keycode 14 = Meta_Delete 79 altgr alt keycode 14 = Meta_Delete 80 keycode 111 = Remove 81 altgr control keycode 111 = Boot 82 control alt keycode 111 = Boot 83 altgr control alt keycode 111 = Boot</literal> 84 EOF</userinput></screen> 85 86 <para>Tell the <command>console</command> script to load this 87 snippet after the main keymap:</para> 88 89 <screen><userinput>cat >>/etc/sysconfig/console <<"EOF" 90 <literal>KEYMAP_CORRECTIONS="/etc/kbd/bs-sends-del"</literal> 91 EOF</userinput></screen> 35 <para>The default <filename>/etc/sysconfig/i18n</filename> is set up for UTF-8 36 using the us keymap. You will need to edit the file to your specific needs. 37 The <filename>/etc/sysconfig/i18n</filename> has additional information it to 38 help you to assist in configuring.</para> 92 39 93 40 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.