/[gentoo]/xml/htdocs/doc/en/handbook/hb-install-config.xml
Gentoo

Diff of /xml/htdocs/doc/en/handbook/hb-install-config.xml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.128 Revision 1.129
2<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> 2<!DOCTYPE sections SYSTEM "/dtd/book.dtd">
3 3
4<!-- The content of this document is licensed under the CC-BY-SA license --> 4<!-- The content of this document is licensed under the CC-BY-SA license -->
5<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> 5<!-- See http://creativecommons.org/licenses/by-sa/2.5 -->
6 6
7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.128 2013/12/18 10:13:54 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.129 2013/12/19 10:48:20 swift Exp $ -->
8 8
9<sections> 9<sections>
10 10
11<abstract> 11<abstract>
12You need to edit some important configuration files. In this chapter 12You need to edit some important configuration files. In this chapter
13you receive an overview of these files and an explanation on how to 13you receive an overview of these files and an explanation on how to
14proceed. 14proceed.
15</abstract> 15</abstract>
16 16
17<version>34</version> 17<version>35</version>
18<date>2013-12-18</date> 18<date>2013-12-19</date>
19 19
20<section> 20<section>
21<title>Filesystem Information</title> 21<title>Filesystem Information</title>
22<subsection> 22<subsection>
23<title>What is fstab?</title> 23<title>What is fstab?</title>
520</p> 520</p>
521 521
522</body> 522</body>
523</subsection> 523</subsection>
524 524
525<subsection>
526<title>Configure locales</title>
527<body>
528
529<p>
530You will probably only use one or maybe two locales on your system. You have to
531specify locales you will need in <path>/etc/locale.gen</path>.
532</p>
533
534<pre caption="Opening /etc/locale.gen">
535# <i>nano -w /etc/locale.gen</i>
536</pre>
537
538<p>
539The following locales are an example to get both English (United States) and
540German (Germany) with the accompanying character formats (like UTF-8).
541</p>
542
543<pre caption="Specify your locales">
544en_US ISO-8859-1
545en_US.UTF-8 UTF-8
546de_DE ISO-8859-1
547de_DE@euro ISO-8859-15
548</pre>
549
550<note>
551You can select your desired locales in the list given by running <c>locale -a</c>.
552</note>
553
554<warn>
555We strongly suggest that you should use at least one UTF-8 locale because some
556applications may require it.
557</warn>
558
559<p>
560The next step is to run <c>locale-gen</c>. It will generates all the locales you
561have specified in the <path>/etc/locale.gen</path> file.
562</p>
563
564<pre caption="Running locale-gen">
565# <i>locale-gen</i>
566</pre>
567
568<p>
569You can verify that your selected locales are available by running <c>locale -a</c>.
570</p>
571
572<p>
573Once done, you now have the possibility to set the system-wide locale settings.
574With <c>eselect locale list</c>, the available targets are displayed:
575</p>
576
577<pre caption="Displaying the available LANG settings">
578# <i>eselect locale list</i>
579Available targets for the LANG variable:
580 [1] C
581 [2] POSIX
582 [3] en_US
583 [4] en_US.iso88591
584 [5] en_US.utf8
585 [6] de_DE
586 [7] de_DE.iso88591
587 [8] de_DE.iso885915
588 [9] de_DE.utf8
589 [ ] (free form)
590</pre>
591
592<p>
593With <c>eselect locale set &lt;value&gt;</c> the correct locale can be set:
594</p>
595
596<pre caption="Setting the LANG variable">
597# <i>eselect locale set 9</i>
598</pre>
599
600<p>
601Manually, this can still be accomplished through the
602<path>/etc/env.d/02locale</path> file:
603</p>
604
605<pre caption="Setting the default system locale in /etc/env.d/02locale">
606LANG="de_DE.UTF-8"
607LC_COLLATE="C"
608</pre>
609
610<p>
611Don't forget to reload your environment:
612</p>
613
614<pre caption="Reload shell environment">
615# <i>env-update &amp;&amp; source /etc/profile</i>
616</pre>
617
618<p>
619We made a full <uri link="https://wiki.gentoo.org/wiki/Localization/HOWTO">Localization
620Guide</uri> to help you through this process. You can also read the detailed
621<uri link="https://wiki.gentoo.org/wiki/UTF-8">UTF-8 article</uri> for very specific
622informations to enable UTF-8 on your system.
623</p>
624
625<p test="not(func:keyval('arch')='PPC64')">
626Please continue with <uri link="?part=1&amp;chap=9">Installing Necessary System
627Tools</uri>.
628</p>
629
630</body>
631</subsection>
632<subsection test="func:keyval('arch')='PPC64'"> 525<subsection test="func:keyval('arch')='PPC64'">
633<title>Configuring the Console</title> 526<title>Configuring the Console</title>
634<body> 527<body>
635 528
636<p> 529<p>

Legend:
Removed from v.1.128  
changed lines
  Added in v.1.129

  ViewVC Help
Powered by ViewVC 1.1.20