/[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.13
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.13 2003/12/07 12:15:17 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>
195one), you need to define that one too: 208one), you need to define that one too:
196</p> 209</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>
213</pre>
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>
200</pre> 221</pre>
201 222
202</body> 223</body>
203</subsection> 224</subsection>
204<subsection> 225<subsection>
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 tux.homenetwork localhost
321192.168.0.5 jenny 342192.168.0.5 jenny
322192.168.0.56 benny 343192.168.0.56 benny
323</pre> 344</pre>
324 345
325<p> 346<p>
350<p> 371<p>
351PCMCIA-users should first install the <c>pcmcia-cs</c> package: 372PCMCIA-users should first install the <c>pcmcia-cs</c> package:
352</p> 373</p>
353 374
354<pre caption="Installing pcmcia-cs"> 375<pre caption="Installing pcmcia-cs">
355# <i>emerge -k pcmcia-cs</i> 376# <i>emerge --usepkg pcmcia-cs</i>
356</pre> 377</pre>
357 378
358<p> 379<p>
359When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>boot</e> 380When <c>pcmcia-cs</c> is installed, add <c>pcmcia</c> to the <e>boot</e>
360runlevel: 381runlevel:
361</p> 382</p>
362 383
363<pre caption="Adding pcmcia to the default runlevel"> 384<pre caption="Adding pcmcia to the boot runlevel">
364# <i>rc-update add pcmcia boot</i> 385# <i>rc-update add pcmcia boot</i>
365</pre> 386</pre>
366 387
367</body> 388</body>
368</subsection> 389</subsection>

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

  ViewVC Help
Powered by ViewVC 1.1.20