Changeset 4ecfc55
- Timestamp:
- 01/28/2024 05:47:41 PM (3 months ago)
- Branches:
- 12.1, 12.1-rc1, multilib, trunk, xry111/arm64, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
- Children:
- 40cd8a1
- Parents:
- 7c630340
- Location:
- chapter09
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter09/consoled.xml
r7c630340 r4ecfc55 75 75 </variablelist> 76 76 77 <para>We'll use <literal>C.UTF-8</literal> as the locale for interactive 78 sessions in the Linux console in <xref role='.' 79 linkend='ch-config-locale'/> The only console font shipped by 80 the <application>Kbd</application> package containing the glyphs for 81 all characters from the program messages in the <literal>C.UTF-8</literal> 82 locale is <filename>Lat2-Terminus16</filename> (the other shipped console 83 fonts lack glyphs of some characters like the Unicode left/right 84 quotation marks and the Unicode English dash). So set 85 <filename>Lat2-Terminus16</filename> as the default console font:</para> 86 87 <!-- We are using "nodump" for general settings, but not examples. This 88 is ironic, but needed for the compatibility with jhalfs! --> 89 <screen role='nodump'><userinput>echo <literal>FONT=Lat2-Terminus16</literal> > /etc/vconsole.conf</userinput></screen> 90 77 91 <para>An example for a German keyboard and console is given below:</para> 78 92 <!-- This is what is used by jhalfs for creating the vconsole.conf file. -
chapter09/locale.xml
r7c630340 r4ecfc55 132 132 revision='systemd'>to read the locale settings from 133 133 <filename>/etc/locale.conf</filename> and export them</phrase>, 134 but set the <literal>C </literal> locale instead if running in the Linux134 but set the <literal>C.UTF-8</literal> locale instead if running in the Linux 135 135 console (to prevent programs from outputting characters that the Linux 136 136 console is unable to render):</para> … … 144 144 145 145 if [[ "$TERM" = linux ]]; then 146 export LANG=C 146 export LANG=C.UTF-8 147 147 else 148 148 source /etc/locale.conf … … 167 167 168 168 if [[ "$TERM" = linux ]]; then 169 export LANG=C 169 export LANG=C.UTF-8 170 170 else 171 171 export LANG=<replaceable><ll>_<CC>.<charmap><@modifiers></replaceable> -
chapter09/usage.xml
r7c630340 r4ecfc55 433 433 434 434 <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 only 441 console font 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 is 444 <filename>Lat2-Terminus16</filename> (the other shipped console 445 fonts lack glyphs of some characters like the Unicode left/right 446 quotation marks and the Unicode English dash). So set 447 <filename>Lat2-Terminus16</filename> as the default console 448 font: 449 </para> 450 451 <!-- We are using 'nodump' for the generic setting, but not for an 452 example (see below). This is deliberate to keep the 453 compatibility with jhalfs. --> 454 <screen role='nodump'><userinput>cat > /etc/sysconfig/console << "EOF" 455 <literal># Begin /etc/sysconfig/console 456 457 UNICODE="1" 458 FONT="Lat2-Terminus16" 459 460 # End /etc/sysconfig/console</literal> 461 EOF</userinput></screen> 462 463 </listitem> 435 464 436 465 <listitem>
Note:
See TracChangeset
for help on using the changeset viewer.