/[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.116 Revision 1.122
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.116 2012/10/06 20:16:10 swift Exp $ --> 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 $ -->
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>22</version> 17<version>28</version>
18<date>2012-10-06</date> 18<date>2013-07-24</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>
122</p> 122</p>
123 123
124<pre caption="A full /etc/fstab example" test="func:keyval('arch')='HPPA'"> 124<pre caption="A full /etc/fstab example" test="func:keyval('arch')='HPPA'">
125<keyval id="/boot"/> /boot ext2 defaults,noatime 0 2 125<keyval id="/boot"/> /boot ext2 defaults,noatime 0 2
126/dev/sda3 none swap sw 0 0 126/dev/sda3 none swap sw 0 0
127/dev/sda4 / ext3 noatime 0 1 127/dev/sda4 / ext4 noatime 0 1
128 128
129/dev/cdrom /mnt/cdrom auto noauto,user 0 0 129/dev/cdrom /mnt/cdrom auto noauto,user 0 0
130</pre> 130</pre>
131 131
132<pre caption="A full /etc/fstab example" test="func:keyval('arch')='Alpha' or func:keyval('arch')='MIPS' or func:keyval('arch')='x86' or func:keyval('arch')='AMD64'"> 132<pre caption="A full /etc/fstab example" test="func:keyval('arch')='Alpha' or func:keyval('arch')='MIPS' or func:keyval('arch')='x86' or func:keyval('arch')='AMD64'">
133<keyval id="/boot"/> /boot ext2 defaults,noatime 0 2 133<keyval id="/boot"/> /boot ext2 defaults,noatime 0 2
134/dev/sda2 none swap sw 0 0 134/dev/sda2 none swap sw 0 0
135/dev/sda3 / ext3 noatime 0 1 135/dev/sda3 / ext4 noatime 0 1
136 136
137/dev/cdrom /mnt/cdrom auto noauto,user 0 0 137/dev/cdrom /mnt/cdrom auto noauto,user 0 0
138</pre> 138</pre>
139 139
140<pre caption="A full /etc/fstab example" test="func:keyval('arch')='SPARC'"> 140<pre caption="A full /etc/fstab example" test="func:keyval('arch')='SPARC'">
141/dev/sda1 / ext3 noatime 0 1 141/dev/sda1 / ext4 noatime 0 1
142/dev/sda2 none swap sw 0 0 142/dev/sda2 none swap sw 0 0
143/dev/sda4 /usr ext3 noatime 0 2 143/dev/sda4 /usr ext4 noatime 0 2
144/dev/sda5 /var ext3 noatime 0 2 144/dev/sda5 /var ext4 noatime 0 2
145/dev/sda6 /home ext3 noatime 0 2 145/dev/sda6 /home ext4 noatime 0 2
146 146
147<comment># You must add the rules for openprom</comment> 147<comment># You must add the rules for openprom</comment>
148openprom /proc/openprom openpromfs defaults 0 0 148openprom /proc/openprom openpromfs defaults 0 0
149 149
150/dev/cdrom /mnt/cdrom auto noauto,user 0 0 150/dev/cdrom /mnt/cdrom auto noauto,user 0 0
151</pre> 151</pre>
152 152
153<pre caption="A full /etc/fstab example" test="func:keyval('arch')='PPC' or 153<pre caption="A full /etc/fstab example" test="func:keyval('arch')='PPC' or
154func:keyval('arch')='PPC64'"> 154func:keyval('arch')='PPC64'">
155/dev/sda4 / ext3 noatime 0 1 155/dev/sda4 / ext4 noatime 0 1
156/dev/sda3 none swap sw 0 0 156/dev/sda3 none swap sw 0 0
157 157
158/dev/cdrom /mnt/cdrom auto noauto,user 0 0 158/dev/cdrom /mnt/cdrom auto noauto,user 0 0
159</pre> 159</pre>
160 160
296<p> 296<p>
297To enter your own IP address, netmask and gateway, you need 297To enter your own IP address, netmask and gateway, you need
298to set both <c>config_eth0</c> and <c>routes_eth0</c>: 298to set both <c>config_eth0</c> and <c>routes_eth0</c>:
299</p> 299</p>
300 300
301<note>
302This assumes that your network interface will be called eth0. This is, however,
303very system dependent. It is recommended to assume that the interface is named
304the same as the interface name when booted from the installation media <e>if</e>
305the installation media is sufficiently recent. More information can be found in
306<uri link="?part=4&amp;chap=2#doc_chap4">Network Interface Naming</uri>.
307</note>
308
301<pre caption="Manually setting IP information for eth0"> 309<pre caption="Manually setting IP information for eth0">
302config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" 310config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
303routes_eth0="default via 192.168.0.1" 311routes_eth0="default via 192.168.0.1"
304</pre> 312</pre>
305 313
343# <i>rc-update add net.eth0 default</i> 351# <i>rc-update add net.eth0 default</i>
344</pre> 352</pre>
345 353
346<p> 354<p>
347If you have several network interfaces, you need to create the appropriate 355If you have several network interfaces, you need to create the appropriate
348<path>net.eth1</path>, <path>net.eth2</path> etc. just like you did with 356<path>net.*</path> files just like you did with <path>net.eth0</path>.
349<path>net.eth0</path>. 357</p>
358
350</p> 359<p>
360If you later find out the assumption about the network interface name (which we
361currently document as eth0) was wrong, then
362</p>
363
364<ol>
365<li>
366update the <path>/etc/conf.d/net</path> file with the correct interface name (like enp3s0
367instead of eth0),
368</li>
369<li>
370create new symbolic link (like <path>/etc/init.d/net.enp3s0</path>),
371</li>
372<li>
373remove the old symbolic link (<c>rm /etc/init.d/net.eth0</c>),
374</li>
375<li>
376add the new one to the default runlevel, and
377</li>
378<li>
379remove the old one using <c>rc-update del net.eth0 default</c>.
380</li>
381</ol>
351 382
352</body> 383</body>
353</subsection> 384</subsection>
354<subsection> 385<subsection>
355<title>Writing Down Network Information</title> 386<title>Writing Down Network Information</title>
479<p> 510<p>
480When you're finished configuring <path>/etc/conf.d/hwclock</path>, save and 511When you're finished configuring <path>/etc/conf.d/hwclock</path>, save and
481exit. 512exit.
482</p> 513</p>
483 514
484<p>
485You should define the timezone that you previously copied to
486<path>/etc/localtime</path> in the <path>/etc/timezone</path> file so that
487further upgrades of the <c>sys-libs/timezone-data</c> package can update
488<path>/etc/localtime</path> automatically. For instance, if you used the
489Europe/Brussels timezone, you would write <c>Europe/Brussels</c> in the
490<path>/etc/timezone</path> file.
491</p>
492
493</body> 515</body>
494</subsection> 516</subsection>
495 517
496<subsection> 518<subsection>
497<title>Configure locales</title> 519<title>Configure locales</title>
553<pre caption="Reload shell environment"> 575<pre caption="Reload shell environment">
554# env-update &amp;&amp; source /etc/profile 576# env-update &amp;&amp; source /etc/profile
555</pre> 577</pre>
556 578
557<p> 579<p>
558We made a full <uri link="../guide-localization.xml#doc_chap3">Localization 580We made a full <uri link="https://wiki.gentoo.org/wiki/Localization/HOWTO">Localization
559Guide</uri> to help you through this process. You can also read our detailed 581Guide</uri> to help you through this process. You can also read the detailed
560<uri link="../utf-8.xml#doc_chap2">UTF-8 Guide</uri> for very specific 582<uri link="https://wiki.gentoo.org/wiki/UTF-8">UTF-8 article</uri> for very specific
561informations to enable UTF-8 on your system. 583informations to enable UTF-8 on your system.
562</p> 584</p>
563 585
564<p test="not(func:keyval('arch')='PPC64')"> 586<p test="not(func:keyval('arch')='PPC64')">
565Please continue with <uri link="?part=1&amp;chap=9">Installing Necessary System 587Please continue with <uri link="?part=1&amp;chap=9">Installing Necessary System

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

  ViewVC Help
Powered by ViewVC 1.1.20