Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter09/usage.xml

    r909f284 r39b5bb6  
    1 <?xml version="1.0" encoding="ISO-8859-1"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
    33  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
     
    3333    uses a run levels scheme. There are seven run levels, numbered 0 to 6.
    3434    (Actually, there are more run levels, but the others are for special cases and are
    35     generally not used. See <filename>init(8)</filename> for more details.)
     35    generally not used. See <ulink role='man'
     36    url='&man;init.8'>init(8)</ulink> for more details.)
    3637    Each one of the seven corresponds to actions the computer is supposed to
    3738    perform when it starts up or shuts down. The default run level is 3. Here are the
     
    4849    <note>
    4950       <para>
    50           Classically, run level 2 above was defined as
    51           "multi-user mode without networking", but this was only the case
    52           many years ago when multiple users could connect to a system via
    53           serial ports.  In today's environment it makes no sense, and
    54           we now say it is "reserved".
     51         Classically, run level 2 above was defined as <quote>multi-user
     52         mode without networking,</quote> but this was only the case
     53         many years ago when multiple users could connect to a system via
     54         serial ports.  In today's environment it makes no sense, and
     55         we now say it is <quote>reserved.</quote>
    5556       </para>
    5657    </note>
     
    342343  doubt, look in the <filename class="directory">/usr/share/keymaps</filename>
    343344  and <filename class="directory">/usr/share/consolefonts</filename> directories
    344   for valid keymaps and screen fonts. Read the <filename>loadkeys(1)</filename> and
    345   <filename>setfont(8)</filename> manual pages to determine the correct
    346   arguments for these programs.</para>
     345  for valid keymaps and screen fonts. Read the <ulink role='man'
     346  url='&man;loadkeys.1'>loadkeys(1)</ulink> and <ulink role='man'
     347  url='&man;setfont.8'>setfont(8)</ulink> manual pages to determine the
     348  correct arguments for these programs.</para>
    347349
    348350  <para>The <filename>/etc/sysconfig/console</filename> file should contain lines
    349   of the form: VARIABLE="value". The following variables are recognized:</para>
     351  of the form: <envar>VARIABLE=value</envar>. The following variables are recognized:</para>
    350352  <variablelist>
    351353
     
    355357        <para>This variable specifies the log level for kernel messages sent
    356358        to the console as set by <command>dmesg -n</command>. Valid levels are
    357         from "1" (no messages) to "8". The default level is "7".</para>
     359        from <literal>1</literal> (no messages) to <literal>8</literal>. The default level is <literal>7</literal>, which is quite verbose.</para>
    358360      </listitem>
    359361    </varlistentry>
     
    364366        <para>This variable specifies the arguments for the
    365367        <command>loadkeys</command> program, typically, the name of the keymap
    366         to load, e.g., <quote>it</quote>. If this variable is not set, the
     368        to load, e.g., <literal>it</literal>. If this variable is not set, the
    367369        bootscript will not run the <command>loadkeys</command> program,
    368370        and the default kernel keymap will be used.  Note that a few keymaps
     
    383385        is not completely satisfactory and a small adjustment has to be made. E.g.,
    384386        to include the Euro sign into a keymap that normally doesn't have it,
    385         set this variable to <quote>euro2</quote>.</para>
     387        set this variable to <literal>euro2</literal>.</para>
    386388      </listitem>
    387389    </varlistentry>
     
    392394        <para>This variable specifies the arguments for the
    393395        <command>setfont</command> program. Typically, this includes the font
    394         name, <quote>-m</quote>, and the name of the application character
     396        name, <literal>-m</literal>, and the name of the application character
    395397        map to load. E.g., in order to load the <quote>lat1-16</quote> font
    396398        together with the <quote>8859-1</quote> application character map
    397399        (appropriate in the USA),
    398400        <!-- because of the copyright sign -->
    399         set this variable to <quote>lat1-16 -m 8859-1</quote>.
     401        set this variable to <literal>lat1-16 -m 8859-1</literal>.
    400402        In UTF-8 mode, the kernel uses the application character map to
    401403        convert 8-bit key codes to UTF-8. Therefore
     
    409411      <term>UNICODE</term>
    410412      <listitem>
    411         <para>Set this variable to <quote>1</quote>, <quote>yes</quote>, or
    412         <quote>true</quote> in order to put the
     413        <para>Set this variable to <literal>1</literal>, <literal>yes</literal>, or
     414        <literal>true</literal> in order to put the
    413415        console into UTF-8 mode. This is useful in UTF-8 based locales and
    414416        harmful otherwise.</para>
     
    431433
    432434  <itemizedlist>
     435    <listitem>
     436      <para>
     437        We'll use <literal>C.UTF-8</literal> as the locale for interactive
     438        sessions in the Linux console in <xref role=','
     439        linkend='ch-config-locale'/> so we should set
     440        <literal>UNICODE</literal> to <literal>1</literal>.  And the console
     441        fonts shipped by the <application>Kbd</application> package
     442        containing the glyphs for all characters from the program messages
     443        in the <literal>C.UTF-8</literal> locale are
     444        <filename>LatArCyrHeb*.psfu.gz</filename>,
     445        <filename>LatGrkCyr*.psfu.gz</filename>,
     446        <filename>Lat2-Terminus16.psfu.gz</filename>, and
     447        <filename>pancyrillic.f16.psfu.gz</filename> in
     448        <filename class='directory'>/usr/share/consolefonts</filename> (the
     449        other shipped console fonts lack glyphs of some characters like the
     450        Unicode left/right quotation marks and the Unicode English dash).
     451        So set one of them, for example
     452        <filename>Lat2-Terminus16.psfu.gz</filename> as the default console
     453        font:
     454      </para>
     455
     456      <!-- We are using 'nodump' for the generic setting, but not for an
     457           example (see below).  This is deliberate to keep the
     458           compatibility with jhalfs.  -->
     459<screen role='nodump'><userinput>cat &gt; /etc/sysconfig/console &lt;&lt; "EOF"
     460<literal># Begin /etc/sysconfig/console
     461
     462UNICODE="1"
     463FONT="Lat2-Terminus16"
     464
     465# End /etc/sysconfig/console</literal>
     466EOF</userinput></screen>
     467
     468    </listitem>
    433469
    434470    <listitem>
     
    525561      characters, or two ASCII characters are composed together. However, in
    526562      UTF-8 mode it is a problem; e.g., for the Greek language, where one
    527       sometimes needs to put an accent on the letter <quote>alpha</quote>.
     563      sometimes needs to put an accent on the letter α.
    528564      The solution is either to avoid the use of UTF-8, or to install the
    529565      X window system, which doesn't have this limitation, in its input
Note: See TracChangeset for help on using the changeset viewer.