/[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.123 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.123 2013/12/17 09:34:53 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>29</version> 17<version>32</version>
18<date>2013-12-17</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>
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>
233nis_domain_lo="<i>my-nisdomain</i>" 243nis_domain_lo="<i>my-nisdomain</i>"
234</pre> 244</pre>
235 245
236<note> 246<note>
237For more information on configuring DNS and NIS, please read the examples 247For more information on configuring DNS and NIS, please read the examples
238provided in <path>/usr/share/doc/openrc-*/net.example.bz2</path> which 248provided in <path>/usr/share/doc/netifrc-*/net.example.bz2</path> which
239can 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>
240to help manage your DNS/NIS setup. 250to help manage your DNS/NIS setup.
241</note> 251</note>
242 252
243</body> 253</body>
262<p> 272<p>
263All 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
264a 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
265networking manually. But don't fear, we'll explain everything. A fully 275networking manually. But don't fear, we'll explain everything. A fully
266commented example that covers many different configurations is available in 276commented example that covers many different configurations is available in
267<path>/usr/share/doc/openrc-*/net.example.bz2</path>. 277<path>/usr/share/doc/netifrc-*/net.example.bz2</path>.
268</p> 278</p>
269 279
270<p> 280<p>
271DHCP 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
272client. This is described later in <uri 282client. This is described later in <uri
290</p> 300</p>
291 301
292<pre caption="Default /etc/conf.d/net"> 302<pre caption="Default /etc/conf.d/net">
293# This blank configuration will automatically use DHCP for any net.* 303# This blank configuration will automatically use DHCP for any net.*
294# scripts in /etc/init.d. To create a more complete configuration, 304# scripts in /etc/init.d. To create a more complete configuration,
295# please review /usr/share/doc/openrc-*/net.example.bz2 and save 305# please review /usr/share/doc/netifrc-*/net.example.bz2 and save
296# your configuration in /etc/conf.d/net (this file :]!). 306# your configuration in /etc/conf.d/net (this file :]!).
297</pre> 307</pre>
298 308
299<p> 309<p>
300To enter your own IP address, netmask and gateway, you need 310To enter your own IP address, netmask and gateway, you need
321<pre caption="Automatically obtaining an IP address for eth0"> 331<pre caption="Automatically obtaining an IP address for eth0">
322config_eth0="dhcp" 332config_eth0="dhcp"
323</pre> 333</pre>
324 334
325<p> 335<p>
326Please 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
327list 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
328you need to set specific DHCP options. 338you need to set specific DHCP options.
329</p> 339</p>
330 340
331<p> 341<p>
560<pre caption="Running locale-gen"> 570<pre caption="Running locale-gen">
561# <i>locale-gen</i> 571# <i>locale-gen</i>
562</pre> 572</pre>
563 573
564<p> 574<p>
575You can verify that your selected locales are available by running <c>locale -a</c>.
576</p>
577
578<p>
565Once 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
566in the <path>/etc/env.d/02locale</path> file: 608<path>/etc/env.d/02locale</path> file:
567</p> 609</p>
568 610
569<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">
570LANG="de_DE.UTF-8" 612LANG="de_DE.UTF-8"
571LC_COLLATE="C" 613LC_COLLATE="C"
572</pre> 614</pre>
573 615
574<p> 616<p>
575And reload your environment: 617Don't forget to reload your environment:
576</p> 618</p>
577 619
578<pre caption="Reload shell environment"> 620<pre caption="Reload shell environment">
579# env-update &amp;&amp; source /etc/profile 621# <i>env-update &amp;&amp; source /etc/profile</i>
580</pre> 622</pre>
581 623
582<p> 624<p>
583We 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
584Guide</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.123  
changed lines
  Added in v.1.126

  ViewVC Help
Powered by ViewVC 1.1.20