/[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.122 Revision 1.126
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.122 2013/07/24 20:40:40 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.126 2013/12/17 11:48:58 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>28</version> 17<version>32</version>
18<date>2013-07-24</date> 18<date>2013-12-17</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>
79</impo> 79</impo>
80 80
81<pre caption="Opening /etc/fstab"> 81<pre caption="Opening /etc/fstab">
82# <i>nano -w /etc/fstab</i> 82# <i>nano -w /etc/fstab</i>
83</pre> 83</pre>
84
85<p>
86In the remainder of the text, we use the default <path>/dev/sd*</path> block
87device files as partition. You can also opt to use the symbolic links in the
88<path>/dev/disk/byid</path> or <path>/dev/disk/by-uuid</path>. These names are
89not likely to change, whereas the default block device files naming depends on
90a number of factors (such as how and in what order the disks are attached to
91your system). However, if you do not intend to fiddle with the disk ordering,
92you can continue with the default block device files safely.
93</p>
84 94
85</body> 95</body>
86<body test="func:keyval('/boot')"> 96<body test="func:keyval('/boot')">
87 97
88<p> 98<p>
165</p> 175</p>
166 176
167<p> 177<p>
168To improve performance, most users would want to add the <c>noatime</c> 178To improve performance, most users would want to add the <c>noatime</c>
169mount option, which results in a faster system since access times 179mount option, which results in a faster system since access times
170aren't registered (you don't need those generally anyway). 180aren't registered (you don't need those generally anyway). This is also
181recommended for solid state drive (SSD) users, who should also enable
182the <c>discard</c> mount option (ext4 and btrfs only for now) which
183makes the TRIM command work.
171</p> 184</p>
172 185
173<p> 186<p>
174Double-check your <path>/etc/fstab</path>, save and quit to continue. 187Double-check your <path>/etc/fstab</path>, save and quit to continue.
175</p> 188</p>
230nis_domain_lo="<i>my-nisdomain</i>" 243nis_domain_lo="<i>my-nisdomain</i>"
231</pre> 244</pre>
232 245
233<note> 246<note>
234For more information on configuring DNS and NIS, please read the examples 247For more information on configuring DNS and NIS, please read the examples
235provided in <path>/usr/share/doc/openrc-*/net.example.bz2</path> which 248provided in <path>/usr/share/doc/netifrc-*/net.example.bz2</path> which
236can be read using <c>bzless</c>. Also, you may want to emerge <c>openresolv</c> 249can be read using <c>bzless</c>. Also, you may want to emerge <c>openresolv</c>
237to help manage your DNS/NIS setup. 250to help manage your DNS/NIS setup.
238</note> 251</note>
239 252
240</body> 253</body>
259<p> 272<p>
260All networking information is gathered in <path>/etc/conf.d/net</path>. It uses 273All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
261a straightforward yet not intuitive syntax if you don't know how to set up 274a straightforward yet not intuitive syntax if you don't know how to set up
262networking manually. But don't fear, we'll explain everything. A fully 275networking manually. But don't fear, we'll explain everything. A fully
263commented example that covers many different configurations is available in 276commented example that covers many different configurations is available in
264<path>/usr/share/doc/openrc-*/net.example.bz2</path>. 277<path>/usr/share/doc/netifrc-*/net.example.bz2</path>.
265</p> 278</p>
266 279
267<p> 280<p>
268DHCP is used by default. For DHCP to work, you will need to install a DHCP 281DHCP is used by default. For DHCP to work, you will need to install a DHCP
269client. This is described later in <uri 282client. This is described later in <uri
287</p> 300</p>
288 301
289<pre caption="Default /etc/conf.d/net"> 302<pre caption="Default /etc/conf.d/net">
290# This blank configuration will automatically use DHCP for any net.* 303# This blank configuration will automatically use DHCP for any net.*
291# scripts in /etc/init.d. To create a more complete configuration, 304# scripts in /etc/init.d. To create a more complete configuration,
292# please review /usr/share/doc/openrc-*/net.example.bz2 and save 305# please review /usr/share/doc/netifrc-*/net.example.bz2 and save
293# your configuration in /etc/conf.d/net (this file :]!). 306# your configuration in /etc/conf.d/net (this file :]!).
294</pre> 307</pre>
295 308
296<p> 309<p>
297To enter your own IP address, netmask and gateway, you need 310To enter your own IP address, netmask and gateway, you need
318<pre caption="Automatically obtaining an IP address for eth0"> 331<pre caption="Automatically obtaining an IP address for eth0">
319config_eth0="dhcp" 332config_eth0="dhcp"
320</pre> 333</pre>
321 334
322<p> 335<p>
323Please read <path>/usr/share/doc/openrc-*/net.example.bz2</path> for a 336Please read <path>/usr/share/doc/netifrc-*/net.example.bz2</path> for a
324list of all available options. Be sure to also read your DHCP client manpage if 337list of all available options. Be sure to also read your DHCP client manpage if
325you need to set specific DHCP options. 338you need to set specific DHCP options.
326</p> 339</p>
327 340
328<p> 341<p>
557<pre caption="Running locale-gen"> 570<pre caption="Running locale-gen">
558# <i>locale-gen</i> 571# <i>locale-gen</i>
559</pre> 572</pre>
560 573
561<p> 574<p>
575You can verify that your selected locales are available by running <c>locale -a</c>.
576</p>
577
578<p>
562Once done, you now have the possibility to set the system-wide locale settings 579Once done, you now have the possibility to set the system-wide locale settings.
580With <c>eselect locale list</c>, the available targets are displayed:
581</p>
582
583<pre caption="Displaying the available LANG settings">
584# <i>eselect locale list</i>
585Available targets for the LANG variable:
586 [1] C
587 [2] POSIX
588 [3] en_US
589 [4] en_US.iso88591
590 [5] en_US.utf8
591 [6] de_DE
592 [7] de_DE.iso88591
593 [8] de_DE.iso885915
594 [9] de_DE.utf8
595 [ ] (free form)
596</pre>
597
598<p>
599With <c>eselect locale set &lt;value&gt;</c> the correct locale can be set:
600</p>
601
602<pre caption="Setting the LANG variable">
603# <i>eselect locale set 9</i>
604</pre>
605
606<p>
607Manually, this can still be accomplished through the
563in the <path>/etc/env.d/02locale</path> file: 608<path>/etc/env.d/02locale</path> file:
564</p> 609</p>
565 610
566<pre caption="Setting the default system locale in /etc/env.d/02locale"> 611<pre caption="Setting the default system locale in /etc/env.d/02locale">
567LANG="de_DE.UTF-8" 612LANG="de_DE.UTF-8"
568LC_COLLATE="C" 613LC_COLLATE="C"
569</pre> 614</pre>
570 615
571<p> 616<p>
572And reload your environment: 617Don't forget to reload your environment:
573</p> 618</p>
574 619
575<pre caption="Reload shell environment"> 620<pre caption="Reload shell environment">
576# env-update &amp;&amp; source /etc/profile 621# <i>env-update &amp;&amp; source /etc/profile</i>
577</pre> 622</pre>
578 623
579<p> 624<p>
580We made a full <uri link="https://wiki.gentoo.org/wiki/Localization/HOWTO">Localization 625We made a full <uri link="https://wiki.gentoo.org/wiki/Localization/HOWTO">Localization
581Guide</uri> to help you through this process. You can also read the detailed 626Guide</uri> to help you through this process. You can also read the detailed

Legend:
Removed from v.1.122  
changed lines
  Added in v.1.126

  ViewVC Help
Powered by ViewVC 1.1.20