/[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.107 Revision 1.108
1<?xml version='1.0' encoding='UTF-8'?> 1<?xml version='1.0' encoding='UTF-8'?>
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.107 2011/09/11 08:53:34 swift Exp $ --> 7<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.108 2011/10/30 11:56:08 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>14</version> 17<version>15</version>
18<date>2011-09-11</date> 18<date>2011-10-30</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>
24<body> 24<body>
25 25
26<p> 26<p>
27Under Linux, all partitions used by the system must be listed in 27Under Linux, all partitions used by the system must be listed in
28<path>/etc/fstab</path>. This file contains the mount points of those partitions 28<path>/etc/fstab</path>. This file contains the mount points of those partitions
29(where they are seen in the file system structure), how they should be mounted 29(where they are seen in the file system structure), how they should be mounted
30and with what special options (automatically or not, whether users can mount 30and with what special options (automatically or not, whether users can mount
31them or not, etc.) 31them or not, etc.)
32</p> 32</p>
33 33
232 232
233<p> 233<p>
234If you have a NIS domain (if you don't know what that is, then you don't have 234If you have a NIS domain (if you don't know what that is, then you don't have
235one), you need to define that one too: 235one), you need to define that one too:
236</p> 236</p>
237 237
238<pre caption="Setting the NIS domainname"> 238<pre caption="Setting the NIS domainname">
239# <i>nano -w /etc/conf.d/net</i> 239# <i>nano -w /etc/conf.d/net</i>
240 240
241<comment>(Set the nis_domain variable to your NIS domain name)</comment> 241<comment>(Set the nis_domain variable to your NIS domain name)</comment>
242nis_domain_lo="<i>my-nisdomain</i>" 242nis_domain_lo="<i>my-nisdomain</i>"
243</pre> 243</pre>
244 244
245<note> 245<note>
246For more information on configuring DNS and NIS, please read the examples 246For more information on configuring DNS and NIS, please read the examples
247provided in <path>/etc/conf.d/net.example</path>. Also, you may want to emerge 247provided in <path>/usr/share/doc/openrc-*/net.example.bz2</path> which
248can be read using <c>bzless</c>. Also, you may want to emerge <c>openresolv</c>
248<c>openresolv</c> to help manage your DNS/NIS setup. 249to help manage your DNS/NIS setup.
249</note> 250</note>
250 251
251</body> 252</body>
252</subsection> 253</subsection>
253<subsection> 254<subsection>
254<title>Configuring your Network</title> 255<title>Configuring your Network</title>
255<body> 256<body>
256 257
257<p> 258<p>
258Before you get that "Hey, we've had that already"-feeling, you should remember 259Before you get that "Hey, we've had that already"-feeling, you should remember
259that the networking you set up in the beginning of the Gentoo installation was 260that the networking you set up in the beginning of the Gentoo installation was
260just for the installation. Right now you are going to configure networking for 261just for the installation. Right now you are going to configure networking for
261your Gentoo system permanently. 262your Gentoo system permanently.
262</p> 263</p>
263 264
264<note> 265<note>
265More detailed information about networking, including advanced topics like 266More detailed information about networking, including advanced topics like
266bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri 267bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri
267link="?part=4">Gentoo Network Configuration</uri> section. 268link="?part=4">Gentoo Network Configuration</uri> section.
268</note> 269</note>
269 270
270<p> 271<p>
271All networking information is gathered in <path>/etc/conf.d/net</path>. It uses 272All networking information is gathered in <path>/etc/conf.d/net</path>. It uses
272a straightforward yet not intuitive syntax if you don't know how to set up 273a straightforward yet not intuitive syntax if you don't know how to set up
273networking manually. But don't fear, we'll explain everything. A fully 274networking manually. But don't fear, we'll explain everything. A fully
274commented example that covers many different configurations is available in 275commented example that covers many different configurations is available in
275<path>/etc/conf.d/net.example</path>. 276<path>/usr/share/doc/openrc-*/net.example.bz2</path>.
276</p> 277</p>
277 278
278<p> 279<p>
279DHCP is used by default. For DHCP to work, you will need to install a DHCP 280DHCP is used by default. For DHCP to work, you will need to install a DHCP
280client. This is described later in <uri 281client. This is described later in <uri
281link="?part=1&amp;chap=9#networking-tools">Installing Necessary System 282link="?part=1&amp;chap=9#networking-tools">Installing Necessary System
282Tools</uri>. Do not forget to install a DHCP client. 283Tools</uri>. Do not forget to install a DHCP client.
283</p> 284</p>
284 285
285<p> 286<p>
286If you need to configure your network connection either because you need 287If you need to configure your network connection either because you need
287specific DHCP options or because you do not use DHCP at all, open 288specific DHCP options or because you do not use DHCP at all, open
288<path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in 289<path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in
289this example): 290this example):
290</p> 291</p>
291 292
292<pre caption="Opening /etc/conf.d/net for editing"> 293<pre caption="Opening /etc/conf.d/net for editing">
293# <i>nano -w /etc/conf.d/net</i> 294# <i>nano -w /etc/conf.d/net</i>
294</pre> 295</pre>
295 296
296<p> 297<p>
297You will see the following file: 298You will see the following file:
298</p> 299</p>
299 300
300<pre caption="Default /etc/conf.d/net"> 301<pre caption="Default /etc/conf.d/net">
301# This blank configuration will automatically use DHCP for any net.* 302# This blank configuration will automatically use DHCP for any net.*
302# scripts in /etc/init.d. To create a more complete configuration, 303# scripts in /etc/init.d. To create a more complete configuration,
303# please review /etc/conf.d/net.example and save your configuration 304# please review /usr/share/doc/openrc-*/net.example.bz2 and save
304# in /etc/conf.d/net (this file :]!). 305# your configuration in /etc/conf.d/net (this file :]!).
305</pre> 306</pre>
306 307
307<p> 308<p>
308To enter your own IP address, netmask and gateway, you need 309To enter your own IP address, netmask and gateway, you need
309to set both <c>config_eth0</c> and <c>routes_eth0</c>: 310to set both <c>config_eth0</c> and <c>routes_eth0</c>:
310</p> 311</p>
311 312
312<pre caption="Manually setting IP information for eth0"> 313<pre caption="Manually setting IP information for eth0">
313config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" 314config_eth0="192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255"
314routes_eth0="default via 192.168.0.1" 315routes_eth0="default via 192.168.0.1"
315</pre> 316</pre>
316 317
317<p> 318<p>
318To use DHCP, define <c>config_eth0</c>: 319To use DHCP, define <c>config_eth0</c>:
319</p> 320</p>
320 321
321<pre caption="Automatically obtaining an IP address for eth0"> 322<pre caption="Automatically obtaining an IP address for eth0">
322config_eth0="dhcp" 323config_eth0="dhcp"
323</pre> 324</pre>
324 325
325<p> 326<p>
326Please read <path>/etc/conf.d/net.example</path> for a list of all available 327Please read <path>/usr/share/doc/openrc-*/net.example.bz2</path> for a
327options. Be sure to also read your DHCP client manpage if you need to set 328list of all available options. Be sure to also read your DHCP client manpage if
328specific DHCP options. 329you need to set specific DHCP options.
329</p> 330</p>
330 331
331<p> 332<p>
332If you have several network interfaces repeat the above steps for 333If you have several network interfaces repeat the above steps for
333<c>config_eth1</c>, <c>config_eth2</c>, etc. 334<c>config_eth1</c>, <c>config_eth2</c>, etc.
334</p> 335</p>
335 336
336<p> 337<p>
337Now save the configuration and exit to continue. 338Now save the configuration and exit to continue.
338</p> 339</p>
339 340
340</body> 341</body>
341</subsection> 342</subsection>
342<subsection> 343<subsection>
343<title>Automatically Start Networking at Boot</title> 344<title>Automatically Start Networking at Boot</title>

Legend:
Removed from v.1.107  
changed lines
  Added in v.1.108

  ViewVC Help
Powered by ViewVC 1.1.20