/[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.3 Revision 1.16
1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 -->
3
4<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.16 2004/01/04 17:33:58 swift Exp $ -->
5
1<sections> 6<sections>
2<section> 7<section>
3<title>Timezone</title> 8<title>Timezone</title>
4<body> 9<body>
5 10
9symlink to <path>/etc/localtime</path> using <c>ln</c>: 14symlink to <path>/etc/localtime</path> using <c>ln</c>:
10</p> 15</p>
11 16
12<pre caption="Setting the timezone information"> 17<pre caption="Setting the timezone information">
13# <i>ls /usr/share/zoneinfo</i> 18# <i>ls /usr/share/zoneinfo</i>
14<comment>(Suppose you want to use GTM:)</comment> 19<comment>(Suppose you want to use GMT:)</comment>
15# <i>ln -s /usr/share/zoneinfo/GMT /etc/localtime</i> 20# <i>ln -sf /usr/share/zoneinfo/GMT /etc/localtime</i>
16</pre> 21</pre>
17 22
18</body> 23</body>
19</section> 24</section>
20<section> 25<section>
37<title>Creating /etc/fstab</title> 42<title>Creating /etc/fstab</title>
38<body> 43<body>
39 44
40<p> 45<p>
41<path>/etc/fstab</path> uses a special syntaxis. Every line consists of six 46<path>/etc/fstab</path> uses a special syntaxis. Every line consists of six
42fields, seperated by whitespace (space(s), tabs or a mixture). Each field has 47fields, separated by whitespace (space(s), tabs or a mixture). Each field has
43its own meaning: 48its own meaning:
44</p> 49</p>
45 50
46<ul> 51<ul>
47<li> 52<li>
57</li> 62</li>
58<li> 63<li>
59 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it 64 The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it
60 wants to mount the partition. As every filesystem has its own mountoptions, 65 wants to mount the partition. As every filesystem has its own mountoptions,
61 you are encouraged to read the mount manpage (<c>man mount</c>) for a full 66 you are encouraged to read the mount manpage (<c>man mount</c>) for a full
62 listing. Multiple mountoptions are comma-seperated. 67 listing. Multiple mountoptions are comma-separated.
63</li> 68</li>
64<li> 69<li>
65 The fifth field is used by <c>dump</c> to determine if the partition needs to 70 The fifth field is used by <c>dump</c> to determine if the partition needs to
66 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). 71 be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero).
67</li> 72</li>
120/dev/hda3 / ext3 noatime 0 1 125/dev/hda3 / ext3 noatime 0 1
121</pre> 126</pre>
122 127
123<p> 128<p>
124To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c> 129To finish up, you should add a rule for <path>/proc</path>, <c>tmpfs</c>
125(required) and for your CD-ROM drive (and ofcourse, if you have other 130(required) and for your CD-ROM drive (and of course, if you have other
126partitions or drives, for those too): 131partitions or drives, for those too):
127</p> 132</p>
128 133
129<pre caption="A full /etc/fstab example"> 134<pre caption="A full /etc/fstab example">
130/dev/hda1 /boot ext2 noauto,noatime 1 2 135/dev/hda1 /boot ext2 noauto,noatime 1 2
148SPARC-user, you should add the following line to your <path>/etc/fstab</path> 153SPARC-user, you should add the following line to your <path>/etc/fstab</path>
149too: 154too:
150</p> 155</p>
151 156
152<pre caption="Adding openprom filesystem to /etc/fstab"> 157<pre caption="Adding openprom filesystem to /etc/fstab">
153none /proc/openprom openpromfs defaults 0 0 158none /proc/openprom openpromfs defaults 0 0
159</pre>
160
161<p>
162If you need <c>usbfs</c>, add the following line to <path>/etc/fstab</path>:
163</p>
164
165<pre caption="Adding usbfs filesystem to /etc/fstab">
166none /proc/bus/usb usbfs defaults 0 0
154</pre> 167</pre>
155 168
156<p> 169<p>
157Reread your <path>/etc/fstab</path>, save and quit to continue. 170Reread your <path>/etc/fstab</path>, save and quit to continue.
158</p> 171</p>
197 210
198<pre caption="Setting the NIS domainname"> 211<pre caption="Setting the NIS domainname">
199# <i>echo nis.homenetwork &gt; /etc/nisdomainname</i> 212# <i>echo nis.homenetwork &gt; /etc/nisdomainname</i>
200</pre> 213</pre>
201 214
215<p>
216Now add the <c>domainname</c> script to the default runlevel:
217</p>
218
219<pre caption="Adding domainname to the default runlevel">
220# <i>rc-update add domainname default</i>
221</pre>
222
202</body> 223</body>
203</subsection> 224</subsection>
204<subsection> 225<subsection>
205<title>Configuring your Network</title> 226<title>Configuring your Network</title>
206<body> 227<body>
306<p> 327<p>
307You now need to inform Linux about your network. This is defined in 328You now need to inform Linux about your network. This is defined in
308<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses 329<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses
309for hosts that aren't resolved by your nameserver. For instance, if your 330for hosts that aren't resolved by your nameserver. For instance, if your
310internal network consists of three PCs called <c>jenny</c> (192.168.0.5), 331internal network consists of three PCs called <c>jenny</c> (192.168.0.5),
311<c>benny</c> (192.168.0.6) and <c>tux</c> (this system) you would 332<c>benny</c> (192.168.0.6) and <c>tux</c> (192.168.0.7 - this system) you would
312open <path>/etc/hosts</path> and fill in the values: 333open <path>/etc/hosts</path> and fill in the values:
313</p> 334</p>
314 335
315<pre caption="Opening /etc/hosts"> 336<pre caption="Opening /etc/hosts">
316# <i>nano -w /etc/hosts</i> 337# <i>nano -w /etc/hosts</i>
317</pre> 338</pre>
318 339
319<pre caption="Filling in the networking information"> 340<pre caption="Filling in the networking information">
320127.0.0.1 localhost tux 341127.0.0.1 localhost
321192.168.0.5 jenny 342192.168.0.5 jenny
322192.168.0.56 benny 343192.168.0.6 benny
344192.168.0.7 tux
323</pre> 345</pre>
324 346
325<p> 347<p>
326If your system is the only system (or the nameservers handle all name 348If your system is the only system (or the nameservers handle all name
327resolution) a single line is sufficient: 349resolution) a single line is sufficient:
350<p> 372<p>
351PCMCIA-users should first install the <c>pcmcia-cs</c> package: 373PCMCIA-users should first install the <c>pcmcia-cs</c> package:
352</p> 374</p>
353 375
354<pre caption="Installing pcmcia-cs"> 376<pre caption="Installing pcmcia-cs">
355# <i>emerge -k pcmcia-cs</i> 377# <i>emerge --usepkg pcmcia-cs</i>
356</pre> 378</pre>
357 379
358<p> 380<p>
359When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>boot</e> 381When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>boot</e>
360runlevel: 382runlevel:
361</p> 383</p>
362 384
363<pre caption="Adding pcmcia to the default runlevel"> 385<pre caption="Adding pcmcia to the boot runlevel">
364# <i>rc-update add pcmcia boot</i> 386# <i>rc-update add pcmcia boot</i>
365</pre> 387</pre>
366 388
367</body> 389</body>
368</subsection> 390</subsection>
380# <i>nano -w /etc/rc.conf</i> 402# <i>nano -w /etc/rc.conf</i>
381</pre> 403</pre>
382 404
383<p> 405<p>
384As you can see, this file is well commented to help you set up the necessary 406As you can see, this file is well commented to help you set up the necessary
385configuration variables. When you're finished configuring 407configuration variables. Take special care with the <c>KEYMAP</c> setting: if
386<path>/etc/rc.conf</path>, save and exit to continue. 408you select the wrong <c>KEYMAP</c> you will get weird results when typing on
409your keyboard.
410</p>
411
412<note>
413Users of USB-based SPARC systems and SPARC clones might need to select an i386
414keymap (such as "us") instead of "sunkeymap".
415</note>
416
417<p>
418When you're finished configuring <path>/etc/rc.conf</path>, save and exit, then
419continue with <uri link="?part=1&amp;chap=9">Configuring the Bootloader</uri>.
387</p> 420</p>
388 421
389</body> 422</body>
390</section> 423</section>
391</sections> 424</sections>

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.20