/[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.4 Revision 1.12
1<!-- The content of this document is licensed under the CC-BY-SA license --> 1<!-- The content of this document is licensed under the CC-BY-SA license -->
2<!-- See http://creativecommons.org/licenses/by-sa/1.0 --> 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.12 2003/11/30 12:06:53 swift Exp $ -->
3 5
4<sections> 6<sections>
5<section> 7<section>
6<title>Timezone</title> 8<title>Timezone</title>
7<body> 9<body>
12symlink to <path>/etc/localtime</path> using <c>ln</c>: 14symlink to <path>/etc/localtime</path> using <c>ln</c>:
13</p> 15</p>
14 16
15<pre caption="Setting the timezone information"> 17<pre caption="Setting the timezone information">
16# <i>ls /usr/share/zoneinfo</i> 18# <i>ls /usr/share/zoneinfo</i>
17<comment>(Suppose you want to use GTM:)</comment> 19<comment>(Suppose you want to use GMT:)</comment>
18# <i>ln -s /usr/share/zoneinfo/GMT /etc/localtime</i> 20# <i>ln -sf /usr/share/zoneinfo/GMT /etc/localtime</i>
19</pre> 21</pre>
20 22
21</body> 23</body>
22</section> 24</section>
23<section> 25<section>
40<title>Creating /etc/fstab</title> 42<title>Creating /etc/fstab</title>
41<body> 43<body>
42 44
43<p> 45<p>
44<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
45fields, 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
46its own meaning: 48its own meaning:
47</p> 49</p>
48 50
49<ul> 51<ul>
50<li> 52<li>
60</li> 62</li>
61<li> 63<li>
62 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
63 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,
64 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
65 listing. Multiple mountoptions are comma-seperated. 67 listing. Multiple mountoptions are comma-separated.
66</li> 68</li>
67<li> 69<li>
68 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
69 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).
70</li> 72</li>
123/dev/hda3 / ext3 noatime 0 1 125/dev/hda3 / ext3 noatime 0 1
124</pre> 126</pre>
125 127
126<p> 128<p>
127To 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>
128(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
129partitions or drives, for those too): 131partitions or drives, for those too):
130</p> 132</p>
131 133
132<pre caption="A full /etc/fstab example"> 134<pre caption="A full /etc/fstab example">
133/dev/hda1 /boot ext2 noauto,noatime 1 2 135/dev/hda1 /boot ext2 noauto,noatime 1 2
151SPARC-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>
152too: 154too:
153</p> 155</p>
154 156
155<pre caption="Adding openprom filesystem to /etc/fstab"> 157<pre caption="Adding openprom filesystem to /etc/fstab">
156none /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
157</pre> 167</pre>
158 168
159<p> 169<p>
160Reread your <path>/etc/fstab</path>, save and quit to continue. 170Reread your <path>/etc/fstab</path>, save and quit to continue.
161</p> 171</p>
198one), you need to define that one too: 208one), you need to define that one too:
199</p> 209</p>
200 210
201<pre caption="Setting the NIS domainname"> 211<pre caption="Setting the NIS domainname">
202# <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>
203</pre> 221</pre>
204 222
205</body> 223</body>
206</subsection> 224</subsection>
207<subsection> 225<subsection>
318<pre caption="Opening /etc/hosts"> 336<pre caption="Opening /etc/hosts">
319# <i>nano -w /etc/hosts</i> 337# <i>nano -w /etc/hosts</i>
320</pre> 338</pre>
321 339
322<pre caption="Filling in the networking information"> 340<pre caption="Filling in the networking information">
323127.0.0.1 localhost tux 341127.0.0.1 tux.homenetwork localhost
324192.168.0.5 jenny 342192.168.0.5 jenny
325192.168.0.56 benny 343192.168.0.56 benny
326</pre> 344</pre>
327 345
328<p> 346<p>
353<p> 371<p>
354PCMCIA-users should first install the <c>pcmcia-cs</c> package: 372PCMCIA-users should first install the <c>pcmcia-cs</c> package:
355</p> 373</p>
356 374
357<pre caption="Installing pcmcia-cs"> 375<pre caption="Installing pcmcia-cs">
358# <i>emerge -k pcmcia-cs</i> 376# <i>emerge --usepkg pcmcia-cs</i>
359</pre> 377</pre>
360 378
361<p> 379<p>
362When <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>
363runlevel: 381runlevel:

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.12

  ViewVC Help
Powered by ViewVC 1.1.20