1 |
neysx 08/01/01 21:32:30 |
2 |
|
3 |
Modified: gentoo-ppc-faq.xml gentoo-x86-quickinstall.xml |
4 |
gentoo-x86+raid+lvm2-quickinstall.xml |
5 |
Added: gentoo-x86-quickinstall-after-reboot.xml |
6 |
gentoo-x86-quickinstall-media.xml |
7 |
gentoo-x86-quickinstall-stage.xml |
8 |
gentoo-x86-quickinstall-system.xml |
9 |
Log: |
10 |
Use include feature |
11 |
|
12 |
Revision Changes Path |
13 |
1.63 xml/htdocs/doc/en/gentoo-ppc-faq.xml |
14 |
|
15 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml?rev=1.63&view=markup |
16 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml?rev=1.63&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml?r1=1.62&r2=1.63 |
18 |
|
19 |
Index: gentoo-ppc-faq.xml |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml,v |
22 |
retrieving revision 1.62 |
23 |
retrieving revision 1.63 |
24 |
diff -u -r1.62 -r1.63 |
25 |
--- gentoo-ppc-faq.xml 25 Aug 2007 09:49:21 -0000 1.62 |
26 |
+++ gentoo-ppc-faq.xml 1 Jan 2008 21:32:30 -0000 1.63 |
27 |
@@ -1,6 +1,6 @@ |
28 |
<?xml version='1.0' encoding="UTF-8"?> |
29 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
30 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml,v 1.62 2007/08/25 09:49:21 neysx Exp $ --> |
31 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-ppc-faq.xml,v 1.63 2008/01/01 21:32:30 neysx Exp $ --> |
32 |
|
33 |
<guide link="/doc/en/gentoo-ppc-faq.xml"> |
34 |
<title>Gentoo Linux/PowerPC Frequently Asked Questions</title> |
35 |
@@ -27,8 +27,8 @@ |
36 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
37 |
<license/> |
38 |
|
39 |
-<version>1.35</version> |
40 |
-<date>2007-05-17</date> |
41 |
+<version>1.36</version> |
42 |
+<date>2008-01-01</date> |
43 |
|
44 |
<faqindex> |
45 |
<title>Questions</title> |
46 |
@@ -165,7 +165,7 @@ |
47 |
<note> |
48 |
If yabootconfig does not detect your MacOS partitions, you can manually add |
49 |
them to your yaboot.config. See the example yaboot.conf in the <uri |
50 |
-link="/doc/en/handbook/handbook-ppc.xml?part=1&chap=10#doc_chap_pre6"> |
51 |
+link="/doc/en/handbook/handbook-ppc.xml?part=1&chap=10#doc_chap2_pre6"> |
52 |
handbook</uri> for details. |
53 |
</note> |
54 |
|
55 |
|
56 |
|
57 |
|
58 |
1.80 xml/htdocs/doc/en/gentoo-x86-quickinstall.xml |
59 |
|
60 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml?rev=1.80&view=markup |
61 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml?rev=1.80&content-type=text/plain |
62 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml?r1=1.79&r2=1.80 |
63 |
|
64 |
Index: gentoo-x86-quickinstall.xml |
65 |
=================================================================== |
66 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v |
67 |
retrieving revision 1.79 |
68 |
retrieving revision 1.80 |
69 |
diff -u -r1.79 -r1.80 |
70 |
--- gentoo-x86-quickinstall.xml 24 Sep 2007 07:51:53 -0000 1.79 |
71 |
+++ gentoo-x86-quickinstall.xml 1 Jan 2008 21:32:30 -0000 1.80 |
72 |
@@ -1,16 +1,21 @@ |
73 |
<?xml version='1.0' encoding="UTF-8"?> |
74 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.79 2007/09/24 07:51:53 jkt Exp $ --> |
75 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall.xml,v 1.80 2008/01/01 21:32:30 neysx Exp $ --> |
76 |
|
77 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
78 |
|
79 |
-<guide link="/doc/en/gentoo-x86-quickinstall.xml" lang="en"> |
80 |
+<guide lang="en"> |
81 |
<title>Gentoo Linux x86 Quick Install Guide</title> |
82 |
|
83 |
+<values> |
84 |
+ <key id="raid+lvm">no</key> |
85 |
+ <key id="root">/dev/sda3</key> |
86 |
+</values> |
87 |
+ |
88 |
<author title="Author"> |
89 |
- <mail link="neysx@g.o">Xavier Neys</mail> |
90 |
+ <mail link="neysx"/> |
91 |
</author> |
92 |
<author title="Author"> |
93 |
- <mail link="swift@g.o">Sven Vermeulen</mail> |
94 |
+ <mail link="swift"/> |
95 |
</author> |
96 |
<author title="Author">Steven Wagner</author> |
97 |
|
98 |
@@ -25,8 +30,8 @@ |
99 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
100 |
<license/> |
101 |
|
102 |
-<version>20</version> |
103 |
-<date>2007-09-24</date> |
104 |
+<version>21</version> |
105 |
+<date>2008-01-01</date> |
106 |
|
107 |
<chapter> |
108 |
<title>Introduction</title> |
109 |
@@ -41,7 +46,7 @@ |
110 |
|
111 |
<p> |
112 |
New users should read the <uri link="/doc/en/handbook/index.xml">Handbook</uri> |
113 |
-as it gives a better overview about the installation process. |
114 |
+as it gives a better overview about the installation process. |
115 |
</p> |
116 |
|
117 |
<p> |
118 |
@@ -72,175 +77,11 @@ |
119 |
|
120 |
<chapter> |
121 |
<title>Quick Install Guide</title> |
122 |
-<section> |
123 |
-<title>Installation Media</title> |
124 |
-<body> |
125 |
- |
126 |
-<p> |
127 |
-Download a CD from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>. |
128 |
-You can find the minimal CD ISO in |
129 |
-<path>releases/x86/<release>/installcd</path> or the LiveCD ISO in |
130 |
-<path>releases/x86/<release>/livecd</path>. The <e>minimal</e> |
131 |
-installation CD is only useful for Internet-based installations. You can use |
132 |
-the <e>LiveCD</e> to perform a networkless installation as documented in the |
133 |
-<uri link="/doc/en/handbook/2007.0/handbook-x86.xml">2007.0 x86 installation |
134 |
-handbook</uri>. The minimal CD is recommended. |
135 |
-</p> |
136 |
- |
137 |
-<p> |
138 |
-<uri link="/doc/en/faq.xml#isoburning">Burn</uri> the CD and boot it. |
139 |
-</p> |
140 |
|
141 |
-</body> |
142 |
-</section> |
143 |
<section> |
144 |
-<title>Booting the CD</title> |
145 |
-<body> |
146 |
- |
147 |
-<p> |
148 |
-Press |
149 |
-<c>F2</c> at the boot screen to find out what boot options exist. You can |
150 |
-either start <c>gentoo</c> or <c>gentoo-nofb</c>, the latter disables the |
151 |
-framebuffer. If you booted the LiveCD, don't forget to add the <c>nox</c> |
152 |
-option to prevent the X graphical environment from starting. Several options |
153 |
-allow to enable or disable some features. If all goes well, your hardware will |
154 |
-be detected and all modules will be loaded. If the kernel fails to boot |
155 |
-properly or if your computer hangs during the boot procedure, you may have to |
156 |
-experiment with different configurations. The safest way is probably to use the |
157 |
-<c>nodetect</c> option and then load required modules explicitly. |
158 |
-</p> |
159 |
- |
160 |
-<pre caption="Boot the minimal CD"> |
161 |
-Gentoo Linux Installation LiveCD http://www.gentoo.org |
162 |
-Enter to Boot; F1 for kernels F2 for options. |
163 |
-boot: <i>gentoo-nofb</i> |
164 |
- <comment>(or in case of problems)</comment> |
165 |
-boot: <i>gentoo-nofb nodetect</i> |
166 |
-</pre> |
167 |
- |
168 |
-</body> |
169 |
-</section> |
170 |
-<section> |
171 |
-<title>Optional: loading modules</title> |
172 |
-<body> |
173 |
- |
174 |
-<p> |
175 |
-If you used the <c>nodetect</c> option, once booted, load the required modules. |
176 |
-You need to enable networking and have access to your disks. The <c>lspci</c> |
177 |
-command can help you identify your hardware. |
178 |
-</p> |
179 |
- |
180 |
-<pre caption="Load required modules"> |
181 |
-livecd root # <i>lspci</i> |
182 |
-<comment>(Use lspci's output to identify required modules)</comment> |
183 |
- |
184 |
-<comment>(The following is an example, adapt it to your hardware)</comment> |
185 |
-livecd root # <i>modprobe 3w-9xxx</i> |
186 |
-livecd root # <i>modprobe r8169</i> |
187 |
-</pre> |
188 |
- |
189 |
-</body> |
190 |
+ <include href="gentoo-x86-quickinstall-media.xml"/> |
191 |
</section> |
192 |
-<section> |
193 |
-<title>Network Configuration</title> |
194 |
-<body> |
195 |
- |
196 |
-<p> |
197 |
-If your network does not work already, you can use <c>net-setup</c> to configure |
198 |
-your network. You might need to load support for your network card using |
199 |
-<c>modprobe</c> prior to the configuration. If you have ADSL, use |
200 |
-<c>pppoe-setup</c> and <c>pppoe-start</c>. For PPTP support, first edit |
201 |
-<path>/etc/ppp/chap-secrets</path> and <path>/etc/ppp/options.pptp</path> and |
202 |
-then use <c>pptp <server ip></c>. |
203 |
-</p> |
204 |
- |
205 |
-<p> |
206 |
-For wireless access, use <c>iwconfig</c> to set the wireless parameters and then |
207 |
-use either <c>net-setup</c> again or run <c>ifconfig</c>, <c>dhcpcd</c> and/or |
208 |
-<c>route</c> manually. |
209 |
-</p> |
210 |
- |
211 |
-<p> |
212 |
-If you are behind a proxy, do not forget to initialize your system using |
213 |
-<c>export http_proxy</c>, <c>ftp_proxy</c> and <c>RSYNC_PROXY</c>. |
214 |
-</p> |
215 |
- |
216 |
-<pre caption="Configure networking the guided way"> |
217 |
-livecd root # <i>net-setup eth0</i> |
218 |
-</pre> |
219 |
- |
220 |
-<p> |
221 |
-Alternatively, you can start networking manually. The following example assigns |
222 |
-the IP address 192.168.1.10 to your PC and defines 192.168.1.1 as your router |
223 |
-and name server. |
224 |
-</p> |
225 |
- |
226 |
-<pre caption="Configure networking the manual way"> |
227 |
-livecd root # <i>ifconfig eth0 192.168.1.10/24</i> |
228 |
-livecd root # <i>route add default gw 192.168.1.1</i> |
229 |
-livecd root # <i>echo nameserver 192.168.1.1 > /etc/resolv.conf</i> |
230 |
-</pre> |
231 |
- |
232 |
-<p> |
233 |
-The installation CD allows you to start an <c>sshd</c> server, add additional |
234 |
-users, run <c>irssi</c> (a command-line chat client) and surf the web using |
235 |
-<c>lynx</c> or <c>links</c>. |
236 |
-</p> |
237 |
|
238 |
-</body> |
239 |
-</section> |
240 |
-<section> |
241 |
-<title>Optional: connect to your new box over ssh</title> |
242 |
-<body> |
243 |
- |
244 |
-<p> |
245 |
-The most interesting feature is of course <c>sshd</c>. You can start it and |
246 |
-then connect from another machine and cut and paste commands from this guide. |
247 |
-</p> |
248 |
- |
249 |
-<pre caption="Start sshd"> |
250 |
-livecd root # <i>time /etc/init.d/sshd start</i> |
251 |
- * Generating hostkey ... |
252 |
-<comment>(sshd generates the key and displays more output)</comment> |
253 |
- * starting sshd ... [ok] |
254 |
- |
255 |
-real 0m13.688s |
256 |
-user 0m9.420s |
257 |
-sys 0m0.090s |
258 |
-</pre> |
259 |
- |
260 |
-<p> |
261 |
-Now, set the root password on the liveCD so that you can connect to it from |
262 |
-another PC. Please note that allowing root to connect over ssh is not |
263 |
-recommended under normal circumstances. If you can't trust your local network, |
264 |
-use a long and complex password, you should use it only once as it will |
265 |
-disappear after your first reboot. |
266 |
-</p> |
267 |
- |
268 |
-<pre caption="Set the root password"> |
269 |
-livecd root # <i>passwd</i> |
270 |
-New UNIX password: <comment>type_a_password</comment> |
271 |
-Retype new UNIX password: <comment>type_a_password</comment> |
272 |
-passwd: password updated successfully |
273 |
-</pre> |
274 |
- |
275 |
-<p> |
276 |
-Now, you can start a terminal on another PC and connect to your new box, follow |
277 |
-the rest of this guide in another window, and cut and paste commands. |
278 |
-</p> |
279 |
- |
280 |
-<pre caption="Connect to your new box from another PC"> |
281 |
-<comment>(Use the IP address of your new box)</comment> |
282 |
-$ <i>ssh root@192.168.1.10</i> |
283 |
-The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. |
284 |
-RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. |
285 |
-Are you sure you want to continue connecting (yes/no)? <i>yes</i> |
286 |
-Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. |
287 |
-Password: <comment>type_the_password</comment> |
288 |
-</pre> |
289 |
- |
290 |
-</body> |
291 |
-</section> |
292 |
<section> |
293 |
<title>Preparing the Disks</title> |
294 |
<body> |
295 |
@@ -297,144 +138,16 @@ |
296 |
livecd ~ # <i>mount /dev/sda3 /mnt/gentoo</i> |
297 |
livecd ~ # <i>mkdir /mnt/gentoo/boot</i> |
298 |
livecd ~ # <i>mount /dev/sda1 /mnt/gentoo/boot</i> |
299 |
-</pre> |
300 |
- |
301 |
-</body> |
302 |
-</section> |
303 |
-<section> |
304 |
-<title>Setting Up The Stage</title> |
305 |
-<body> |
306 |
- |
307 |
-<p> |
308 |
-First make sure your date and time is set correctly using <c>date |
309 |
-MMDDhhmmYYYY</c>. Use UTC time. |
310 |
-</p> |
311 |
- |
312 |
-<pre caption="Set the date and UTC time"> |
313 |
-<comment>(Check the clock)</comment> |
314 |
-livecd ~ # <i>date</i> |
315 |
-Mon Mar 6 00:14:13 UTC 2006 |
316 |
- |
317 |
-<comment>(Set the current date and time if required)</comment> |
318 |
-livecd ~ # <i>date 030600162006</i> <comment>(Format is MMDDhhmmYYYY)</comment> |
319 |
-Mon Mar 6 00:16:00 UTC 2006 |
320 |
-</pre> |
321 |
- |
322 |
-<p> |
323 |
-Next, download a stage from one of our <uri |
324 |
-link="/main/en/mirrors.xml">mirrors</uri>. Go to <path>/mnt/gentoo</path> and |
325 |
-unpack the stage using <c>tar xjpf <stage3 tarball></c>. |
326 |
-</p> |
327 |
- |
328 |
-<pre caption="Download a stage3 archive"> |
329 |
livecd ~ # <i>cd /mnt/gentoo</i> |
330 |
-livecd gentoo # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
331 |
-<comment>(Pick a mirror, move to the releases/x86/current/stages directory highlight the |
332 |
-stage3 of your choice, probably the i686 stage3 and press D to download it)</comment> |
333 |
- |
334 |
-<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
335 |
-livecd ~ # <i>cd /mnt/gentoo</i> |
336 |
-livecd gentoo # <i>wget ftp://gentoo.osuosl.org/pub/gentoo/releases/x86/current/stages/stage3-i686*tar.bz2</i> |
337 |
-</pre> |
338 |
- |
339 |
-<pre caption="Unpack the stage3 archive"> |
340 |
-livecd gentoo # <i>time tar xjpf stage3*</i> |
341 |
- |
342 |
-real 1m13.157s |
343 |
-user 1m2.920s |
344 |
-sys 0m7.230s |
345 |
-</pre> |
346 |
- |
347 |
-<p> |
348 |
-Install the latest Portage snapshot. Proceed as for the stage3 archive: choose |
349 |
-a nearby mirror from our <uri link="/main/en/mirrors.xml">list</uri>, download |
350 |
-the latest snapshot and unpack it. |
351 |
-</p> |
352 |
- |
353 |
-<pre caption="Download the latest Portage snapshot"> |
354 |
-livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
355 |
-livecd usr # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
356 |
-<comment>(Pick a mirror, move to the snapshots/ directory, |
357 |
-highlight <b>portage-latest.tar.bz2</b> and press D to download it)</comment> |
358 |
- |
359 |
-<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
360 |
-livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
361 |
-livecd usr # <i>wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2</i> |
362 |
-</pre> |
363 |
- |
364 |
-<pre caption="Unpack the Portage snapshot"> |
365 |
-livecd usr # <i>time tar xjf portage*</i> |
366 |
- |
367 |
-real 0m51.523s |
368 |
-user 0m28.680s |
369 |
-sys 0m12.840s |
370 |
</pre> |
371 |
|
372 |
</body> |
373 |
</section> |
374 |
-<section> |
375 |
-<title>Chrooting</title> |
376 |
-<body> |
377 |
- |
378 |
-<p> |
379 |
-Mount the <path>/proc</path> file system, copy over the |
380 |
-<path>/etc/resolv.conf</path> file, then chroot into your Gentoo environment. |
381 |
-</p> |
382 |
- |
383 |
-<pre caption="Chroot"> |
384 |
-livecd usr # <i>cd /</i> |
385 |
-livecd / # <i>mount -t proc proc /mnt/gentoo/proc</i> |
386 |
-livecd / # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/</i> |
387 |
-livecd / # <i>chroot /mnt/gentoo /bin/bash</i> |
388 |
-livecd / # <i>env-update && source /etc/profile</i> |
389 |
->>> Regenerating /etc/ld.so.cache... |
390 |
-</pre> |
391 |
|
392 |
-</body> |
393 |
-</section> |
394 |
<section> |
395 |
-<title>Set your time zone</title> |
396 |
-<body> |
397 |
- |
398 |
-<p> |
399 |
-Set your time zone information by using the correct listing in |
400 |
-<path>/usr/share/zoneinfo</path>. |
401 |
-</p> |
402 |
- |
403 |
-<pre caption="Setting your timezone"> |
404 |
-livecd / # <i>ls /usr/share/zoneinfo</i> |
405 |
-<comment>(Using Brussels as an example)</comment> |
406 |
-livecd / # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i> |
407 |
- |
408 |
-livecd / # <i>date</i> |
409 |
-Wed Mar 8 00:46:05 CET 2006 |
410 |
-</pre> |
411 |
- |
412 |
-</body> |
413 |
+ <include href="gentoo-x86-quickinstall-stage.xml"/> |
414 |
</section> |
415 |
-<section> |
416 |
-<title>Set your host and domain name</title> |
417 |
-<body> |
418 |
- |
419 |
-<p> |
420 |
-Set your host name in <path>/etc/conf.d/hostname</path> and |
421 |
-<path>/etc/hosts</path>. In the following example, we use <c>mybox</c> as host |
422 |
-name and <c>at.myplace</c> as domain name. You can either edit the config |
423 |
-files with <c>nano</c> or use the following commands: |
424 |
-</p> |
425 |
|
426 |
-<pre caption="Set host and domain name"> |
427 |
-livecd / # <i>cd /etc</i> |
428 |
-livecd etc # <i>echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts</i> |
429 |
-livecd etc # <i>sed -i -e 's/HOSTNAME.*/HOSTNAME="mybox"/' conf.d/hostname</i> |
430 |
-<comment>(Use defined host name and check)</comment> |
431 |
-livecd etc # <i>hostname mybox</i> |
432 |
-livecd etc # <i>hostname -f</i> |
433 |
-mybox.at.myplace |
434 |
-</pre> |
435 |
- |
436 |
-</body> |
437 |
-</section> |
438 |
<section> |
439 |
<title>Kernel Configuration</title> |
440 |
<body> |
441 |
@@ -466,213 +179,11 @@ |
442 |
|
443 |
</body> |
444 |
</section> |
445 |
-<section> |
446 |
-<title>Configure the system</title> |
447 |
-<body> |
448 |
|
449 |
-<p> |
450 |
-Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and |
451 |
-<c>SWAP</c> with the actual partition names. Don't forget to check that the |
452 |
-file systems match your installation. |
453 |
-</p> |
454 |
- |
455 |
-<pre caption="Example fstab"> |
456 |
-livecd linux # <i>cd /etc</i> |
457 |
-livecd etc # <i>nano -w fstab</i> |
458 |
-/dev/<i>sda1</i> /boot ext2 noauto,noatime 1 2 |
459 |
-/dev/<i>sda3</i> / ext3 noatime 0 1 |
460 |
-/dev/<i>sda2</i> none swap sw 0 0 |
461 |
-</pre> |
462 |
- |
463 |
-<p> |
464 |
-Configure your network in <path>/etc/conf.d/net</path>. Add the <c>net.eth0</c> |
465 |
-init script to the default run level. If you have multiple NICs, symlink them |
466 |
-to the <c>net.eth0</c> init script and add them to the default run level as |
467 |
-well. Either edit <path>/etc/conf.d/net</path> with <c>nano</c> or use the |
468 |
-following commands: |
469 |
-</p> |
470 |
- |
471 |
-<pre caption="Configure networking"> |
472 |
-livecd etc # <i>cd conf.d</i> |
473 |
-livecd conf.d # <i>echo 'config_eth0=( "192.168.1.10/24" )' >> net</i> |
474 |
-livecd conf.d # <i>echo 'routes_eth0=( "default via 192.168.1.1" )' >> net</i> |
475 |
-livecd conf.d # <i>rc-update add net.eth0 default</i> |
476 |
-<comment>(If you compiled your network card driver as a module, |
477 |
-add it to /etc/modules.autoload.d/kernel-2.6)</comment> |
478 |
-livecd conf.d # <i>echo r8169 >> /etc/modules.autoload.d/kernel-2.6</i> |
479 |
-<comment>(If you want to reconnect via ssh after you have rebooted your new box:)</comment> |
480 |
-livecd conf.d # <i>rc-update add sshd default</i> |
481 |
-</pre> |
482 |
- |
483 |
-<note> |
484 |
-Emerge <c>pcmciautils</c> if you need support for PCMCIA cards. |
485 |
-</note> |
486 |
- |
487 |
-<p> |
488 |
-Set the root password using <c>passwd</c>. |
489 |
-</p> |
490 |
- |
491 |
-<pre caption="Set the root password"> |
492 |
-livecd conf.d # <i>passwd</i> |
493 |
-New UNIX password: <comment>type_the_password</comment> |
494 |
-Retype new UNIX password: <comment>type_the_password_again</comment> |
495 |
-passwd: password updated successfully |
496 |
-</pre> |
497 |
- |
498 |
-<p> |
499 |
-Edit <path>/etc/conf.d/clock</path> to define the time zone you used |
500 |
-previously. |
501 |
-</p> |
502 |
- |
503 |
-<pre caption="Edit /etc/conf.d/clock"> |
504 |
-livecd conf.d # <i>nano -w /etc/conf.d/clock</i> |
505 |
-TIMEZONE="Europe/Brussels" |
506 |
-</pre> |
507 |
- |
508 |
-<p> |
509 |
-Check the system configuration in <path>/etc/rc.conf</path>, |
510 |
-<path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path> and edit any of |
511 |
-those files if required. |
512 |
-</p> |
513 |
- |
514 |
-<pre caption="Optional: edit some config files"> |
515 |
-livecd conf.d # <i>nano -w /etc/rc.conf</i> |
516 |
-livecd conf.d # <i>nano -w /etc/conf.d/rc</i> |
517 |
-livecd conf.d # <i>nano -w /etc/conf.d/keymaps</i> |
518 |
-</pre> |
519 |
- |
520 |
-</body> |
521 |
-</section> |
522 |
<section> |
523 |
-<title>Installing System Tools</title> |
524 |
-<body> |
525 |
- |
526 |
-<p> |
527 |
-Install a system logger like <c>syslog-ng</c> and a cron daemon like |
528 |
-<c>vixie-cron</c>, and add them to the default run level. |
529 |
-</p> |
530 |
- |
531 |
-<note> |
532 |
-Cron daemons depend on an MTA. <c>mail-mta/ssmtp</c> will be pulled in as a |
533 |
-dependency. If you want to use a more advanced MTA, you might want to install |
534 |
-it now. If you are in a hurry, let ssmtp be installed and remove it later when |
535 |
-you install the MTA of your choice. |
536 |
-</note> |
537 |
- |
538 |
-<pre caption="Install a syslogger and a cron daemon"> |
539 |
-livecd conf.d # <i>time emerge syslog-ng vixie-cron</i> |
540 |
- |
541 |
-real 1m52.699s |
542 |
-user 1m1.630s |
543 |
-sys 0m35.220s |
544 |
-livecd conf.d # <i>rc-update add syslog-ng default</i> |
545 |
-livecd conf.d # <i>rc-update add vixie-cron default</i> |
546 |
-</pre> |
547 |
- |
548 |
-<p> |
549 |
-Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c> |
550 |
-or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>ppp</c>) if you |
551 |
-need any. |
552 |
-</p> |
553 |
- |
554 |
-<pre caption="Install extra tools if required"> |
555 |
-livecd conf.d # <i>emerge xfsprogs</i> <comment>(If you use the XFS file system)</comment> |
556 |
-livecd conf.d # <i>emerge jfsutils</i> <comment>(If you use the JFS file system)</comment> |
557 |
-livecd conf.d # <i>emerge reiserfsprogs</i> <comment>(If you use the Reiser file system)</comment> |
558 |
-livecd conf.d # <i>emerge dhcpcd</i> <comment>(If you need a DHCP client)</comment> |
559 |
-livecd conf.d # <i>emerge ppp</i> <comment>(If you need PPPoE ADSL connectivity)</comment> |
560 |
-</pre> |
561 |
- |
562 |
-</body> |
563 |
+ <include href="gentoo-x86-quickinstall-system.xml"/> |
564 |
</section> |
565 |
-<section> |
566 |
-<title>Configuring the Bootloader</title> |
567 |
-<body> |
568 |
- |
569 |
-<p> |
570 |
-Emerge <c>grub</c> or <c>lilo</c>. Configure either |
571 |
-<path>/boot/grub/grub.conf</path> or <path>/etc/lilo.conf</path> and install |
572 |
-the bootloader you have emerged. |
573 |
-</p> |
574 |
- |
575 |
-<p> |
576 |
-<b>1. Using grub</b> |
577 |
-</p> |
578 |
- |
579 |
-<pre caption="Emerge grub and edit its configuration file"> |
580 |
-livecd conf.d # <i>time emerge grub</i> |
581 |
- |
582 |
-real 1m8.634s |
583 |
-user 0m39.460s |
584 |
-sys 0m15.280s |
585 |
-livecd conf.d # <i>nano -w /boot/grub/grub.conf</i> |
586 |
-</pre> |
587 |
- |
588 |
-<pre caption="Example grub.conf"> |
589 |
-default 0 |
590 |
-timeout 10 |
591 |
- |
592 |
-title=Gentoo |
593 |
-root (hd0,0) |
594 |
-kernel /boot/kernel root=/dev/sda3 |
595 |
-</pre> |
596 |
- |
597 |
-<pre caption="Install grub"> |
598 |
-livecd conf.d # <i>grub</i> |
599 |
-Probing devices to guess BIOS drives. This may take a long time. |
600 |
- |
601 |
-grub> <i>root (hd0,0)</i> |
602 |
- Filesystem type is ext2fs, partition type 0x83 |
603 |
- |
604 |
-grub> <i>setup (hd0)</i> |
605 |
- Checking if "/boot/grub/stage1" exists... yes |
606 |
- Checking if "/boot/grub/stage2" exists... yes |
607 |
- Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
608 |
- Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
609 |
-succeeded |
610 |
- Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
611 |
-grub/menu.lst"... succeeded |
612 |
-Done. |
613 |
- |
614 |
-grub> <i>quit</i> |
615 |
-</pre> |
616 |
- |
617 |
-<p> |
618 |
-Now, proceed with the <uri link="#reboot">rebooting section</uri>. |
619 |
-</p> |
620 |
- |
621 |
-<p> |
622 |
-<b>2. Using lilo</b> |
623 |
-</p> |
624 |
- |
625 |
-<pre caption="Emerge lilo and edit its configuration file"> |
626 |
-livecd conf.d # <i>time emerge lilo</i> |
627 |
- |
628 |
-real 0m47.016s |
629 |
-user 0m22.770s |
630 |
-sys 0m5.980s |
631 |
-livecd conf.d # <i>nano -w /etc/lilo.conf</i> |
632 |
-</pre> |
633 |
- |
634 |
-<pre caption="Example lilo.conf"> |
635 |
-boot=/dev/sda |
636 |
-prompt |
637 |
-timeout=50 |
638 |
-default=gentoo |
639 |
- |
640 |
-image=/boot/kernel |
641 |
- label=Gentoo |
642 |
- read-only |
643 |
- root=/dev/sda3 |
644 |
-</pre> |
645 |
- |
646 |
-<pre caption="Install lilo"> |
647 |
-livecd conf.d # <i>lilo</i> |
648 |
-Added Gentoo * |
649 |
-</pre> |
650 |
|
651 |
-</body> |
652 |
-</section> |
653 |
<section id="reboot"> |
654 |
<title>Reboot</title> |
655 |
<body> |
656 |
@@ -690,226 +201,10 @@ |
657 |
|
658 |
</body> |
659 |
</section> |
660 |
-<section id="after-reboot"> |
661 |
-<title>Finalizing the Installation</title> |
662 |
-<body> |
663 |
- |
664 |
-<note> |
665 |
-The <b>total</b> elapsed time between the display of the boot prompt on the |
666 |
-minimal CD and the display of the login prompt after the reboot was |
667 |
-<b>00:42:31</b> on our test box. Yes, less than one hour! Note that this time |
668 |
-also includes the stage3, Portage snapshot and several packages download time |
669 |
-and the time spent configuring the kernel. |
670 |
-</note> |
671 |
|
672 |
-<p> |
673 |
-Log in as <c>root</c>, then add one or more users for daily use with |
674 |
-<c>useradd</c>. |
675 |
-</p> |
676 |
- |
677 |
-<pre caption="Connect to your new box from another PC"> |
678 |
-<comment>(Clean up your known_hosts file because your new box |
679 |
-has generated a new definitive hostkey)</comment> |
680 |
-$ <i>nano -w ~/.ssh/known_hosts</i> |
681 |
-<comment>(Look for the IP of your new PC and delete the line, |
682 |
-then save the file and exit nano)</comment> |
683 |
- |
684 |
-<comment>(Use the IP address of your new box)</comment> |
685 |
-$ <i>ssh root@192.168.1.10</i> |
686 |
-The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. |
687 |
-RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. |
688 |
-Are you sure you want to continue connecting (yes/no)? <i>yes</i> |
689 |
-Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. |
690 |
-Password: <comment>type_the_password</comment> |
691 |
-</pre> |
692 |
- |
693 |
-<pre caption="Add a new user"> |
694 |
-mybox ~ # <i>adduser -g users -G lp,wheel,audio,cdrom,portage,cron -m john</i> |
695 |
-mybox ~ # <i>passwd john</i> |
696 |
-New UNIX password: <comment>Set John's password</comment> |
697 |
-Retype new UNIX password: <comment>Type John's password again</comment> |
698 |
-passwd: password updated successfully |
699 |
-</pre> |
700 |
- |
701 |
-</body> |
702 |
-</section> |
703 |
<section> |
704 |
-<title>Last configuration touches</title> |
705 |
-<body> |
706 |
- |
707 |
-<p> |
708 |
-Start by selecting nearby mirrors either by defining the <c>SYNC</c> and |
709 |
-<c>GENTOO_MIRRORS</c> variables in <path>/etc/make.conf</path> or by using |
710 |
-<c>mirrorselect</c>. You can also define the number of concurrent compilation |
711 |
-processes at this point. |
712 |
-</p> |
713 |
- |
714 |
-<pre caption="Use mirrorselect and set MAKEOPTS"> |
715 |
-mybox ~ # <i>emerge mirrorselect</i> |
716 |
-mybox ~ # <i>mirrorselect -i -o >> /etc/make.conf</i> |
717 |
-mybox ~ # <i>mirrorselect -i -r -o >> /etc/make.conf</i> |
718 |
-<comment>(Usually, (the number of processors + 1) is a good value)</comment> |
719 |
-mybox ~ # <i>echo 'MAKEOPTS="-j2"' >> /etc/make.conf</i> |
720 |
-</pre> |
721 |
- |
722 |
-<p> |
723 |
-Now is a good time to enable or disable some USE flags. Run <c>emerge -vpe |
724 |
-world</c> to list all currently installed packages and their enabled and |
725 |
-disabled USE flags. Either edit <path>/etc/make.conf</path> or use the |
726 |
-following command to define the USE variable: |
727 |
-</p> |
728 |
- |
729 |
-<pre caption="View USE flags in use and enable or disable some"> |
730 |
-mybox ~ # <i>emerge -vpe world</i> |
731 |
-<comment>(Portage displays the packages and their USE flags, as an example, let's |
732 |
-disable ipv6 and fortran, and enable unicode)</comment> |
733 |
-mybox ~ # <i>echo 'USE="nptl nptlonly -ipv6 -fortran unicode"' >> /etc/make.conf</i> |
734 |
-</pre> |
735 |
- |
736 |
-<p> |
737 |
-Recent versions of glibc use <path>/etc/locale.gen</path> to define locale |
738 |
-settings. |
739 |
-</p> |
740 |
- |
741 |
-<pre caption="Define locales"> |
742 |
-mybox ~ # <i>cd /etc</i> |
743 |
-mybox etc # <i>nano -w locale.gen</i> |
744 |
-</pre> |
745 |
- |
746 |
-<p> |
747 |
-Last but not least, you may want to alter the <c>CFLAGS</c> variable in your |
748 |
-<path>/etc/make.conf</path> to optimise the code to your specific needs. Please |
749 |
-note that using a long list of flags is rarely needed and can even lead to a |
750 |
-broken system. It is recommended to specify the processor type in the |
751 |
-<c>march</c> option and stick to <c>-O2 -pipe</c>. |
752 |
-</p> |
753 |
- |
754 |
-<p> |
755 |
-You may also want to switch to <b>~x86</b>. You should only do this if you can |
756 |
-deal with the odd broken ebuild or package. If you'd rather keep your system |
757 |
-stable, don't add the <c>ACCEPT_KEYWORDS</c> variable. Adding |
758 |
-<c>FEATURES="parallel-fetch ccache"</c> is also a good idea. |
759 |
-</p> |
760 |
- |
761 |
-<pre caption="Last edit of make.conf"> |
762 |
-mybox etc # <i>nano -w make.conf</i> |
763 |
-<comment>(Set -march to your CPU type in CFLAGS)</comment> |
764 |
-CFLAGS="-O2 -march=<i>athlon-xp</i> -pipe" |
765 |
-<comment>(Add the following line)</comment> |
766 |
-FEATURES="parallel-fetch ccache" |
767 |
-<comment>(Only add the following if you know what you're doing)</comment> |
768 |
-ACCEPT_KEYWORDS="~x86" |
769 |
-</pre> |
770 |
- |
771 |
-<p> |
772 |
-You might want to recompile your whole system twice to make full use of your |
773 |
-latest configuration changes. It would take quite a long time to complete and |
774 |
-yield minimal speed benefits. You can let your system optimise itself gradually |
775 |
-over time when new versions of packages are released. However, recompiling is |
776 |
-a still good idea from the standpoint of maintaining system consistency. Please |
777 |
-see the <uri link="/doc/en/gcc-upgrading.xml">Gentoo GCC Upgrading Guide</uri> |
778 |
-for a discussion on the benefits of ensuring a consistently built system and |
779 |
-world. |
780 |
-</p> |
781 |
- |
782 |
-<p> |
783 |
-Recompiling only the packages that have already been updated since the release |
784 |
-or that are affected by your new USE flags will take enough time. You might |
785 |
-also have to remove packages that block your upgrade. Look for "[blocks |
786 |
-<brite>B</brite> ]" in the output of <c>emerge -vpuD --newuse world</c> and |
787 |
-use <c>emerge -C</c> to remove them. |
788 |
-</p> |
789 |
- |
790 |
-<pre caption="Update your packages"> |
791 |
-<comment>(Install ccache)</comment> |
792 |
-mybox etc # <i>emerge ccache</i> |
793 |
- |
794 |
-<comment>(Please note that the switch to ~x86 causes many packages to be upgraded)</comment> |
795 |
-mybox etc # <i>emerge -vpuD --newuse world</i> |
796 |
-<comment>(Take a good look at the package list and their USE flags, |
797 |
-remove blocking packages if any, and start the lengthy process)</comment> |
798 |
-mybox etc # <i>time emerge -vuD --newuse world</i> |
799 |
-<comment>(79 packages have been (re)compiled)</comment> |
800 |
- |
801 |
-real 180m13.276s |
802 |
-user 121m22.905s |
803 |
-sys 36m31.472s |
804 |
- |
805 |
-<comment>(Remerge libtool to avoid further potential problems)</comment> |
806 |
-mybox etc # <i>emerge libtool</i> |
807 |
- |
808 |
-<comment>(Update config files, make sure you <b>do not</b> let etc-update |
809 |
-update config files you have edited)</comment> |
810 |
-mybox etc # <i>etc-update</i> |
811 |
- |
812 |
-<comment>(If perl has been updated, you should run the perl-cleaner script)</comment> |
813 |
-mybox etc # <i>time perl-cleaner all</i> |
814 |
-real 1m6.495s |
815 |
-user 0m42.699s |
816 |
-sys 0m10.641s |
817 |
- |
818 |
-<comment>(In case of a major upgrade of python, you should run the python-updater script)</comment> |
819 |
-mybox etc # <i>python-updater</i> |
820 |
-</pre> |
821 |
- |
822 |
-</body> |
823 |
+ <include href="gentoo-x86-quickinstall-after-reboot.xml"/> |
824 |
</section> |
825 |
-<section> |
826 |
-<title>What to do next</title> |
827 |
-<body> |
828 |
- |
829 |
-<p> |
830 |
-Depending on what your new Gentoo machine is supposed to do, you will probably |
831 |
-want to install server applications or a desktop system. Just as an example, |
832 |
-<c>emerge gnome</c> and <c>emerge kde</c> have been timed on the ~x86 system |
833 |
-installed as describe above. Both have been installed from the same starting |
834 |
-point. |
835 |
-</p> |
836 |
- |
837 |
-<p> |
838 |
-You should check our <uri link="/doc/en/">documentation index</uri> to find out |
839 |
-how to install and configure the applications of your choice. |
840 |
-</p> |
841 |
- |
842 |
-<impo> |
843 |
-The following is only an example. It is in no way meant as a recommended setup. |
844 |
-</impo> |
845 |
- |
846 |
-<pre caption="Emerge GNOME"> |
847 |
-mybox etc # <i>emerge -vp gnome</i> |
848 |
-<comment>(Look at the list of packages and their USE flags, |
849 |
-then edit make.conf if required.</comment> |
850 |
-mybox etc # <i>nano -w /etc/make.conf</i> |
851 |
-<comment>(The following USE flags have been defined)</comment> |
852 |
-USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ |
853 |
- -kde -qt3 -qt4 -arts -eds -esd gnome gstreamer gtk firefox" |
854 |
- |
855 |
-mybox etc # <i>time emerge gnome</i> |
856 |
-<comment>(326 packages have been emerged)</comment> |
857 |
- |
858 |
-real 520m44.532s |
859 |
-user 339m21.144s |
860 |
-sys 146m22.337s |
861 |
-</pre> |
862 |
|
863 |
-<pre caption="Emerge KDE"> |
864 |
-mybox etc # <i>emerge -vp kde-meta</i> |
865 |
-<comment>(Look at the list of packages and their USE flags, |
866 |
-then edit make.conf if required.</comment> |
867 |
-mybox etc # <i>nano -w /etc/make.conf</i> |
868 |
-<comment>The following USE flags have been defined)</comment> |
869 |
-USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ |
870 |
- kde qt3 qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox" |
871 |
- |
872 |
-mybox etc # <i>time emerge kde-meta</i> |
873 |
-<comment>(391 packages have been emerged)</comment> |
874 |
- |
875 |
-real 1171m25.318s |
876 |
-user 851m26.393s |
877 |
-sys 281m45.629s |
878 |
-</pre> |
879 |
- |
880 |
-</body> |
881 |
-</section> |
882 |
</chapter> |
883 |
</guide> |
884 |
|
885 |
|
886 |
|
887 |
1.20 xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml |
888 |
|
889 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml?rev=1.20&view=markup |
890 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml?rev=1.20&content-type=text/plain |
891 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml?r1=1.19&r2=1.20 |
892 |
|
893 |
Index: gentoo-x86+raid+lvm2-quickinstall.xml |
894 |
=================================================================== |
895 |
RCS file: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml,v |
896 |
retrieving revision 1.19 |
897 |
retrieving revision 1.20 |
898 |
diff -u -r1.19 -r1.20 |
899 |
--- gentoo-x86+raid+lvm2-quickinstall.xml 11 Sep 2007 19:39:52 -0000 1.19 |
900 |
+++ gentoo-x86+raid+lvm2-quickinstall.xml 1 Jan 2008 21:32:30 -0000 1.20 |
901 |
@@ -1,16 +1,21 @@ |
902 |
<?xml version='1.0' encoding="UTF-8"?> |
903 |
-<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml,v 1.19 2007/09/11 19:39:52 nightmorph Exp $ --> |
904 |
+<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml,v 1.20 2008/01/01 21:32:30 neysx Exp $ --> |
905 |
|
906 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
907 |
|
908 |
-<guide link="/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml" lang="en"> |
909 |
+<guide lang="en"> |
910 |
<title>Gentoo Linux x86 with Software Raid and LVM2 Quick Install Guide</title> |
911 |
|
912 |
+<values> |
913 |
+ <key id="raid+lvm">yes</key> |
914 |
+ <key id="root">/dev/md3</key> |
915 |
+</values> |
916 |
+ |
917 |
<author title="Author"> |
918 |
- <mail link="neysx@g.o">Xavier Neys</mail> |
919 |
+ <mail link="neysx"/> |
920 |
</author> |
921 |
<author title="Author"> |
922 |
- <mail link="swift@g.o">Sven Vermeulen</mail> |
923 |
+ <mail link="swift"/> |
924 |
</author> |
925 |
<author title="Author">Steven Wagner</author> |
926 |
|
927 |
@@ -26,7 +31,7 @@ |
928 |
<license/> |
929 |
|
930 |
<version>12</version> |
931 |
-<date>2007-09-11</date> |
932 |
+<date>2008-01-01</date> |
933 |
|
934 |
<chapter> |
935 |
<title>Introduction</title> |
936 |
@@ -41,6 +46,11 @@ |
937 |
</p> |
938 |
|
939 |
<p> |
940 |
+New users should read the <uri link="/doc/en/handbook/index.xml">Handbook</uri> |
941 |
+as it gives a better overview about the installation process. |
942 |
+</p> |
943 |
+ |
944 |
+<p> |
945 |
Timing output follows all commands that take more than a couple of seconds to |
946 |
finish. Commands were timed on an AMD 2000 1.66 Ghz PC with 512 Mb of RAM and |
947 |
two SATA disks connected to a hardware controller configured as JBOD (i.e. two |
948 |
@@ -76,175 +86,7 @@ |
949 |
<chapter> |
950 |
<title>Quick Install Guide</title> |
951 |
<section> |
952 |
-<title>Installation Media</title> |
953 |
-<body> |
954 |
- |
955 |
-<p> |
956 |
-Download a CD from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>. |
957 |
-You can find the minimal CD ISO in |
958 |
-<path>releases/x86/<release>/installcd</path> or the LiveCD ISO in |
959 |
-<path>releases/x86/<release>/livecd</path>. The <e>minimal</e> |
960 |
-installation CD is only useful for Internet-based installations. You can use |
961 |
-the <e>LiveCD</e> to perform a networkless installation as documented in the |
962 |
-<uri link="/doc/en/handbook/2007.0/handbook-x86.xml">2007.0 x86 installation |
963 |
-handbook</uri>. The minimal CD is recommended. |
964 |
-</p> |
965 |
- |
966 |
-<p> |
967 |
-<uri link="/doc/en/faq.xml#isoburning">Burn</uri> the CD and boot it. |
968 |
-</p> |
969 |
- |
970 |
-</body> |
971 |
-</section> |
972 |
-<section> |
973 |
-<title>Booting the CD</title> |
974 |
-<body> |
975 |
- |
976 |
-<p> |
977 |
-Press |
978 |
-<c>F2</c> at the boot screen to find out what boot options exist. You can |
979 |
-either start <c>gentoo</c> or <c>gentoo-nofb</c>, the latter disables the |
980 |
-framebuffer. If you booted the LiveCD, don't forget to add the <c>nox</c> |
981 |
-option to prevent the X graphical environment from starting. Several options |
982 |
-allow to enable or disable some features. If all goes well, your hardware will |
983 |
-be detected and all modules will be loaded. If the kernel fails to boot |
984 |
-properly or if your computer hangs during the boot procedure, you may have to |
985 |
-experiment with different configurations. The safest way is probably to use the |
986 |
-<c>nodetect</c> option and then load required modules explicitly. |
987 |
-</p> |
988 |
- |
989 |
-<pre caption="Boot the minimal CD"> |
990 |
-Gentoo Linux Installation LiveCD http://www.gentoo.org |
991 |
-Enter to Boot; F1 for kernels F2 for options. |
992 |
-boot: <i>gentoo-nofb</i> |
993 |
- <comment>(or in case of problems)</comment> |
994 |
-boot: <i>gentoo-nofb nodetect</i> |
995 |
-</pre> |
996 |
- |
997 |
-</body> |
998 |
-</section> |
999 |
-<section> |
1000 |
-<title>Optional: loading modules</title> |
1001 |
-<body> |
1002 |
- |
1003 |
-<p> |
1004 |
-If you used the <c>nodetect</c> option, once booted, load the required modules. |
1005 |
-You need to enable networking and have access to your disks. The <c>lspci</c> |
1006 |
-command can help you identify your hardware. |
1007 |
-</p> |
1008 |
- |
1009 |
-<pre caption="Load required modules"> |
1010 |
-livecd root # <i>lspci</i> |
1011 |
-<comment>(Use lspci's output to identify required modules)</comment> |
1012 |
- |
1013 |
-<comment>(The following is an example, adapt it to your hardware)</comment> |
1014 |
-livecd root # <i>modprobe 3w-9xxx</i> |
1015 |
-livecd root # <i>modprobe r8169</i> |
1016 |
-</pre> |
1017 |
- |
1018 |
-</body> |
1019 |
-</section> |
1020 |
-<section> |
1021 |
-<title>Network Configuration</title> |
1022 |
-<body> |
1023 |
- |
1024 |
-<p> |
1025 |
-If your network does not work already, you can use <c>net-setup</c> to |
1026 |
-configure your network. You might need to load support for your network card |
1027 |
-using <c>modprobe</c> prior to the configuration. If you have ADSL, use |
1028 |
-<c>pppoe-setup</c> and <c>pppoe-start</c>. If you are using an ADSL router, it |
1029 |
-establishes the connection for you and you don't need to run those scripts. For |
1030 |
-PPTP support, first edit <path>/etc/ppp/chap-secrets</path> and |
1031 |
-<path>/etc/ppp/options.pptp</path> and then use <c>pptp |
1032 |
-<server ip></c>. |
1033 |
-</p> |
1034 |
- |
1035 |
-<p> |
1036 |
-For wireless access, use <c>iwconfig</c> to set the wireless parameters and then |
1037 |
-use either <c>net-setup</c> again or run <c>ifconfig</c>, <c>dhcpcd</c> and/or |
1038 |
-<c>route</c> manually. |
1039 |
-</p> |
1040 |
- |
1041 |
-<p> |
1042 |
-If you are behind a proxy, do not forget to initialize your system using |
1043 |
-<c>export http_proxy</c>, <c>ftp_proxy</c> and <c>RSYNC_PROXY</c>. |
1044 |
-</p> |
1045 |
- |
1046 |
-<pre caption="Configure networking the guided way"> |
1047 |
-livecd root # <i>net-setup eth0</i> |
1048 |
-</pre> |
1049 |
- |
1050 |
-<p> |
1051 |
-Alternatively, you can start networking manually. The following example assigns |
1052 |
-the IP address 192.168.1.10 to your PC and defines 192.168.1.1 as your router |
1053 |
-and name server. |
1054 |
-</p> |
1055 |
- |
1056 |
-<pre caption="Configure networking the manual way"> |
1057 |
-livecd root # <i>ifconfig eth0 192.168.1.10/24</i> |
1058 |
-livecd root # <i>route add default gw 192.168.1.1</i> |
1059 |
-livecd root # <i>echo nameserver 192.168.1.1 > /etc/resolv.conf</i> |
1060 |
-</pre> |
1061 |
- |
1062 |
-<p> |
1063 |
-The installation CD allows you to start an <c>sshd</c> server, add additional |
1064 |
-users, run <c>irssi</c> (a command-line chat client) and surf the web using |
1065 |
-<c>lynx</c> or <c>links</c>. |
1066 |
-</p> |
1067 |
- |
1068 |
-</body> |
1069 |
-</section> |
1070 |
-<section> |
1071 |
-<title>Optional: connect to your new box over ssh</title> |
1072 |
-<body> |
1073 |
- |
1074 |
-<p> |
1075 |
-The most interesting feature is of course <c>sshd</c>. You can start it and |
1076 |
-then connect from another machine and cut and paste commands from this guide. |
1077 |
-</p> |
1078 |
- |
1079 |
-<pre caption="Start sshd"> |
1080 |
-livecd root # <i>time /etc/init.d/sshd start</i> |
1081 |
- * Generating hostkey ... |
1082 |
-<comment>(sshd generates the key and displays more output)</comment> |
1083 |
- * starting sshd ... [ok] |
1084 |
- |
1085 |
-real 0m13.688s |
1086 |
-user 0m9.420s |
1087 |
-sys 0m0.090s |
1088 |
-</pre> |
1089 |
- |
1090 |
-<p> |
1091 |
-Now, set the root password on the liveCD so that you can connect to it from |
1092 |
-another PC. Please note that allowing root to connect over ssh is not |
1093 |
-recommended under normal circumstances. If you can't trust your local network, |
1094 |
-use a long and complex password, you should use it only once as it will |
1095 |
-disappear after your first reboot. |
1096 |
-</p> |
1097 |
- |
1098 |
-<pre caption="Set the root password"> |
1099 |
-livecd root # <i>passwd</i> |
1100 |
-New UNIX password: <comment>type_a_password</comment> |
1101 |
-Retype new UNIX password: <comment>type_a_password</comment> |
1102 |
-passwd: password updated successfully |
1103 |
-</pre> |
1104 |
- |
1105 |
-<p> |
1106 |
-Now, you can start a terminal on another PC and connect to your new box, follow |
1107 |
-the rest of this guide in another window, and cut and paste commands. |
1108 |
-</p> |
1109 |
- |
1110 |
-<pre caption="Connect to your new box from another PC"> |
1111 |
-<comment>(Use the IP address of your new box)</comment> |
1112 |
-$ <i>ssh root@192.168.1.10</i> |
1113 |
-The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. |
1114 |
-RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. |
1115 |
-Are you sure you want to continue connecting (yes/no)? <i>yes</i> |
1116 |
-Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. |
1117 |
-Password: <comment>type_the_password</comment> |
1118 |
-</pre> |
1119 |
- |
1120 |
-</body> |
1121 |
+ <include href="gentoo-x86-quickinstall-media.xml"/> |
1122 |
</section> |
1123 |
<section> |
1124 |
<title>Preparing the Disks</title> |
1125 |
@@ -520,138 +362,11 @@ |
1126 |
|
1127 |
</body> |
1128 |
</section> |
1129 |
-<section> |
1130 |
-<title>Setting Up The Stage</title> |
1131 |
-<body> |
1132 |
- |
1133 |
-<p> |
1134 |
-First make sure your date and time is set correctly using <c>date |
1135 |
-MMDDhhmmYYYY</c>. Use UTC time. |
1136 |
-</p> |
1137 |
- |
1138 |
-<pre caption="Set the date and UTC time"> |
1139 |
-<comment>(Check the clock)</comment> |
1140 |
-livecd gentoo # <i>date</i> |
1141 |
-Mon Mar 6 00:14:13 UTC 2006 |
1142 |
- |
1143 |
-<comment>(Set the current date and time if required)</comment> |
1144 |
-livecd gentoo # <i>date 030600162006</i> <comment>(Format is MMDDhhmmYYYY)</comment> |
1145 |
-Mon Mar 6 00:16:00 UTC 2006 |
1146 |
-</pre> |
1147 |
- |
1148 |
-<p> |
1149 |
-Next, download a stage from one of our <uri |
1150 |
-link="/main/en/mirrors.xml">mirrors</uri>. Go to <path>/mnt/gentoo</path> and |
1151 |
-unpack the stage using <c>tar xjpf <stage3 tarball></c>. |
1152 |
-</p> |
1153 |
- |
1154 |
-<pre caption="Download a stage3 archive"> |
1155 |
-livecd gentoo # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
1156 |
-<comment>(Pick a mirror, move to the releases/x86/current/stages directory highlight the |
1157 |
-stage3 of your choice, probably the i686 stage3 and press D to download it)</comment> |
1158 |
- |
1159 |
-<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
1160 |
-livecd gentoo # <i>wget ftp://gentoo.osuosl.org/pub/gentoo/releases/x86/current/stages/stage3-i686*tar.bz2</i> |
1161 |
-</pre> |
1162 |
- |
1163 |
-<pre caption="Unpack the stage3 archive"> |
1164 |
-livecd gentoo # <i>time tar xjpf stage3*</i> |
1165 |
- |
1166 |
-real 1m14.157s |
1167 |
-user 1m2.920s |
1168 |
-sys 0m7.530s |
1169 |
-</pre> |
1170 |
- |
1171 |
-<p> |
1172 |
-Install the latest Portage snapshot. Proceed as for the stage3 archive: choose |
1173 |
-a nearby mirror from our <uri link="/main/en/mirrors.xml">list</uri>, download |
1174 |
-the latest snapshot and unpack it. |
1175 |
-</p> |
1176 |
- |
1177 |
-<pre caption="Download the latest Portage snapshot"> |
1178 |
-livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
1179 |
-livecd usr # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
1180 |
-<comment>(Pick a mirror, move to the snapshots/ directory, |
1181 |
-highlight <b>portage-latest.tar.bz2</b> and press D to download it)</comment> |
1182 |
- |
1183 |
-<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
1184 |
-livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
1185 |
-livecd usr # <i>wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2</i> |
1186 |
-</pre> |
1187 |
- |
1188 |
-<pre caption="Unpack the Portage snapshot"> |
1189 |
-livecd usr # <i>time tar xjf portage-lat*</i> |
1190 |
- |
1191 |
-real 0m40.523s |
1192 |
-user 0m28.280s |
1193 |
-sys 0m8.240s |
1194 |
-</pre> |
1195 |
- |
1196 |
-</body> |
1197 |
-</section> |
1198 |
-<section> |
1199 |
-<title>Chrooting</title> |
1200 |
-<body> |
1201 |
- |
1202 |
-<p> |
1203 |
-Mount the <path>/proc</path> file system, copy over the |
1204 |
-<path>/etc/resolv.conf</path> file, then chroot into your Gentoo environment. |
1205 |
-</p> |
1206 |
- |
1207 |
-<pre caption="Chroot"> |
1208 |
-livecd usr # <i>cd /</i> |
1209 |
-livecd / # <i>mount -t proc proc /mnt/gentoo/proc</i> |
1210 |
-livecd / # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/</i> |
1211 |
-livecd / # <i>chroot /mnt/gentoo /bin/bash</i> |
1212 |
-livecd / # <i>env-update && source /etc/profile</i> |
1213 |
->>> Regenerating /etc/ld.so.cache... |
1214 |
-</pre> |
1215 |
|
1216 |
-</body> |
1217 |
-</section> |
1218 |
<section> |
1219 |
-<title>Set your time zone</title> |
1220 |
-<body> |
1221 |
- |
1222 |
-<p> |
1223 |
-Set your time zone information by using the correct listing in |
1224 |
-<path>/usr/share/zoneinfo</path>. |
1225 |
-</p> |
1226 |
- |
1227 |
-<pre caption="Setting your timezone"> |
1228 |
-livecd / # <i>ls /usr/share/zoneinfo</i> |
1229 |
-<comment>(Using Brussels as an example)</comment> |
1230 |
-livecd / # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i> |
1231 |
- |
1232 |
-livecd / # <i>date</i> |
1233 |
-Wed Mar 8 00:46:05 CET 2006 |
1234 |
-</pre> |
1235 |
- |
1236 |
-</body> |
1237 |
+ <include href="gentoo-x86-quickinstall-stage.xml"/> |
1238 |
</section> |
1239 |
-<section> |
1240 |
-<title>Set your host name and domain name</title> |
1241 |
-<body> |
1242 |
|
1243 |
-<p> |
1244 |
-Set your host name in <path>/etc/conf.d/hostname</path> and |
1245 |
-<path>/etc/hosts</path>. In the following example, we use |
1246 |
-<c>mybox</c> as host name and <c>at.myplace</c> as domain name. You can either |
1247 |
-edit the config files with <c>nano</c> or use the following commands: |
1248 |
-</p> |
1249 |
- |
1250 |
-<pre caption="Set host and domain name"> |
1251 |
-livecd / # <i>cd /etc</i> |
1252 |
-livecd etc # <i>echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts</i> |
1253 |
-livecd etc # <i>sed -i -e 's/HOSTNAME.*/HOSTNAME="mybox"/' conf.d/hostname</i> |
1254 |
-<comment>(Use defined host name and check)</comment> |
1255 |
-livecd etc # <i>hostname mybox</i> |
1256 |
-livecd etc # <i>hostname -f</i> |
1257 |
-mybox.at.myplace |
1258 |
-</pre> |
1259 |
- |
1260 |
-</body> |
1261 |
-</section> |
1262 |
<section> |
1263 |
<title>Kernel Configuration</title> |
1264 |
<body> |
1265 |
@@ -704,196 +419,12 @@ |
1266 |
|
1267 |
</body> |
1268 |
</section> |
1269 |
-<section> |
1270 |
-<title>Configure the system</title> |
1271 |
-<body> |
1272 |
- |
1273 |
-<p> |
1274 |
-Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and |
1275 |
-<c>SWAP</c> with the actual partition names and add your logical volumes. Don't |
1276 |
-forget to check that the file systems match your installation. |
1277 |
-</p> |
1278 |
- |
1279 |
-<pre caption="Example fstab"> |
1280 |
-livecd linux # <i>cd /etc</i> |
1281 |
-livecd etc # <i>nano -w fstab</i> |
1282 |
-/dev/<i>md1</i> /boot ext2 noauto,noatime 1 2 |
1283 |
-/dev/<i>md3</i> / ext3 noatime 0 1 |
1284 |
-/dev/<i>sda2</i> none swap sw,pri=1 0 0 |
1285 |
-/dev/<i>sdb2</i> none swap sw,pri=1 0 0 |
1286 |
-/dev/vg/usr /usr ext3 noatime 1 2 |
1287 |
-/dev/vg/portage /usr/portage ext2 noatime 1 2 |
1288 |
-/dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 |
1289 |
-/dev/vg/home /home ext3 noatime 1 2 |
1290 |
-/dev/vg/opt /opt ext3 noatime 1 2 |
1291 |
-/dev/vg/tmp /tmp ext2 noatime 1 2 |
1292 |
-/dev/vg/var /var ext3 noatime 1 2 |
1293 |
-/dev/vg/vartmp /var/tmp ext2 noatime 1 2 |
1294 |
-</pre> |
1295 |
- |
1296 |
-<p> |
1297 |
-Configure your network in <path>/etc/conf.d/net</path>. Add the <c>net.eth0</c> |
1298 |
-init script to the default run level. If you have multiple NICs, symlink them |
1299 |
-to the <c>net.eth0</c> init script and add them to the default run level as |
1300 |
-well. Either edit <path>/etc/conf.d/net</path> with <c>nano</c> or use the |
1301 |
-following commands: |
1302 |
-</p> |
1303 |
- |
1304 |
-<pre caption="Configure networking"> |
1305 |
-livecd etc # <i>cd conf.d</i> |
1306 |
-livecd conf.d # <i>echo 'config_eth0=( "192.168.1.10/24" )' >> net</i> |
1307 |
-livecd conf.d # <i>echo 'routes_eth0=( "default via 192.168.1.1" )' >> net</i> |
1308 |
-livecd conf.d # <i>rc-update add net.eth0 default</i> |
1309 |
-<comment>(If you compiled your network card driver as a module, |
1310 |
-add it to /etc/modules.autoload.d/kernel-2.6)</comment> |
1311 |
-livecd conf.d # <i>echo r8169 >> /etc/modules.autoload.d/kernel-2.6</i> |
1312 |
-<comment>(If you want to reconnect via ssh after you have rebooted your new box)</comment> |
1313 |
-livecd conf.d # <i>rc-update add sshd default</i> |
1314 |
-</pre> |
1315 |
- |
1316 |
-<note> |
1317 |
-Emerge <c>pcmciautils</c> if you need support for PCMCIA cards. |
1318 |
-</note> |
1319 |
- |
1320 |
-<p> |
1321 |
-Set the root password using <c>passwd</c>. |
1322 |
-</p> |
1323 |
- |
1324 |
-<pre caption="Set the root password"> |
1325 |
-livecd conf.d # <i>passwd</i> |
1326 |
-New UNIX password: <comment>type_the_password</comment> |
1327 |
-Retype new UNIX password: <comment>type_the_password_again</comment> |
1328 |
-passwd: password updated successfully |
1329 |
-</pre> |
1330 |
- |
1331 |
-<p> |
1332 |
-Edit <path>/etc/conf.d/clock</path> to define the time zone you used |
1333 |
-previously. |
1334 |
-</p> |
1335 |
- |
1336 |
-<pre caption="Edit /etc/conf.d/clock"> |
1337 |
-livecd conf.d # <i>nano -w /etc/conf.d/clock</i> |
1338 |
-TIMEZONE="Europe/Brussels" |
1339 |
-</pre> |
1340 |
- |
1341 |
-<p> |
1342 |
-Check the system configuration in <path>/etc/rc.conf</path>, |
1343 |
-<path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path> and edit any of |
1344 |
-those files if required. |
1345 |
-</p> |
1346 |
|
1347 |
-<pre caption="Optional: edit some config files"> |
1348 |
-livecd conf.d # <i>nano -w /etc/rc.conf</i> |
1349 |
-livecd conf.d # <i>nano -w /etc/conf.d/rc</i> |
1350 |
-livecd conf.d # <i>nano -w /etc/conf.d/keymaps</i> |
1351 |
-</pre> |
1352 |
- |
1353 |
-</body> |
1354 |
-</section> |
1355 |
<section> |
1356 |
-<title>Installing System Tools</title> |
1357 |
-<body> |
1358 |
- |
1359 |
-<p> |
1360 |
-Install RAID and LVM2 utilities. |
1361 |
-</p> |
1362 |
- |
1363 |
-<pre caption="Install RAID & LVM2 tools"> |
1364 |
-livecd conf.d # <i>emerge mdadm lvm2</i> |
1365 |
-</pre> |
1366 |
- |
1367 |
-<p> |
1368 |
-Install a system logger like <c>syslog-ng</c> and a cron daemon like |
1369 |
-<c>vixie-cron</c>, and add them to the default run level. |
1370 |
-</p> |
1371 |
- |
1372 |
-<note> |
1373 |
-Cron daemons depend on an MTA. <c>mail-mta/ssmtp</c> will be pulled in as a |
1374 |
-dependency. If you want to use a more advanced MTA, you might want to install |
1375 |
-it now. If you are in a hurry, let ssmtp be installed and remove it later when |
1376 |
-you install the MTA of your choice. |
1377 |
-</note> |
1378 |
- |
1379 |
-<pre caption="Install a syslogger and a cron daemon"> |
1380 |
-livecd conf.d # <i>time emerge syslog-ng vixie-cron</i> |
1381 |
- |
1382 |
-real 1m54.099s |
1383 |
-user 1m2.630s |
1384 |
-sys 0m34.620s |
1385 |
-livecd conf.d # <i>rc-update add syslog-ng default</i> |
1386 |
-livecd conf.d # <i>rc-update add vixie-cron default</i> |
1387 |
-</pre> |
1388 |
- |
1389 |
-<p> |
1390 |
-Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c> |
1391 |
-or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>ppp</c>) if you |
1392 |
-need any. |
1393 |
-</p> |
1394 |
- |
1395 |
-<pre caption="Install extra tools if required"> |
1396 |
-livecd conf.d # <i>emerge xfsprogs</i> <comment>(If you use the XFS file system)</comment> |
1397 |
-livecd conf.d # <i>emerge jfsutils</i> <comment>(If you use the JFS file system)</comment> |
1398 |
-livecd conf.d # <i>emerge reiserfsprogs</i> <comment>(If you use the Reiser file system)</comment> |
1399 |
-livecd conf.d # <i>emerge dhcpcd</i> <comment>(If you need a DHCP client)</comment> |
1400 |
-livecd conf.d # <i>emerge ppp</i> <comment>(If you need PPPoE ADSL connectivity)</comment> |
1401 |
-</pre> |
1402 |
- |
1403 |
-</body> |
1404 |
+ <include href="gentoo-x86-quickinstall-system.xml"/> |
1405 |
</section> |
1406 |
-<section> |
1407 |
-<title>Configuring the Bootloader</title> |
1408 |
-<body> |
1409 |
- |
1410 |
-<p> |
1411 |
-Emerge <c>grub</c> and configure it. |
1412 |
-</p> |
1413 |
- |
1414 |
-<pre caption="Emerge grub and edit its configuration file"> |
1415 |
-livecd conf.d # <i>time emerge grub</i> |
1416 |
- |
1417 |
-real 1m4.634s |
1418 |
-user 0m39.460s |
1419 |
-sys 0m15.280s |
1420 |
-livecd conf.d # <i>nano -w /boot/grub/grub.conf</i> |
1421 |
-</pre> |
1422 |
- |
1423 |
-<pre caption="Example grub.conf"> |
1424 |
-default 0 |
1425 |
-timeout 10 |
1426 |
- |
1427 |
-title=Gentoo |
1428 |
-root (hd0,0) |
1429 |
-kernel /boot/kernel root=/dev/md3 |
1430 |
-</pre> |
1431 |
- |
1432 |
-<pre caption="Install grub on both disks"> |
1433 |
-livecd conf.d # <i>grub</i> |
1434 |
-Probing devices to guess BIOS drives. This may take a long time. |
1435 |
- |
1436 |
-grub> <i>root (hd0,0)</i> |
1437 |
- Filesystem type is ext2fs, partition type 0xfd |
1438 |
- |
1439 |
-grub> <i>setup (hd0)</i> |
1440 |
- Checking if "/boot/grub/stage1" exists... yes |
1441 |
- Checking if "/boot/grub/stage2" exists... yes |
1442 |
- Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
1443 |
- Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
1444 |
-succeeded |
1445 |
- Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
1446 |
-grub/menu.lst"... succeeded |
1447 |
-Done. |
1448 |
- |
1449 |
-grub> <i>root (hd1,0)</i> |
1450 |
- Filesystem type is ext2fs, partition type 0x83 |
1451 |
- |
1452 |
-grub> <i>setup (hd1)</i> |
1453 |
|
1454 |
-grub> <i>quit</i> |
1455 |
-</pre> |
1456 |
- |
1457 |
-</body> |
1458 |
-</section> |
1459 |
-<section> |
1460 |
+<section id="reboot"> |
1461 |
<title>Reboot</title> |
1462 |
<body> |
1463 |
|
1464 |
@@ -910,14 +441,12 @@ |
1465 |
<comment>(Don't forget to remove the CD)</comment> |
1466 |
</pre> |
1467 |
|
1468 |
-<p> |
1469 |
-Please follow the <uri |
1470 |
-link="gentoo-x86-quickinstall.xml#after-reboot">Finalizing the |
1471 |
-Installation</uri> part of the regular x86 quick setup guide to complete your |
1472 |
-installation. |
1473 |
-</p> |
1474 |
- |
1475 |
</body> |
1476 |
</section> |
1477 |
+ |
1478 |
+<section> |
1479 |
+ <include href="gentoo-x86-quickinstall-after-reboot.xml"/> |
1480 |
+</section> |
1481 |
+ |
1482 |
</chapter> |
1483 |
</guide> |
1484 |
|
1485 |
|
1486 |
|
1487 |
1.1 xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml |
1488 |
|
1489 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml?rev=1.1&view=markup |
1490 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml?rev=1.1&content-type=text/plain |
1491 |
|
1492 |
Index: gentoo-x86-quickinstall-after-reboot.xml |
1493 |
=================================================================== |
1494 |
<?xml version='1.0' encoding="UTF-8"?> |
1495 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-after-reboot.xml,v 1.1 2008/01/01 21:32:30 neysx Exp $ --> |
1496 |
<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> |
1497 |
|
1498 |
<included> |
1499 |
|
1500 |
<version>1</version> |
1501 |
<date>2008-01-01</date> |
1502 |
|
1503 |
<section id="after-reboot"> |
1504 |
<title>Finalizing the Installation</title> |
1505 |
<body> |
1506 |
|
1507 |
<note> |
1508 |
The <b>total</b> elapsed time between the display of the boot prompt on the |
1509 |
minimal CD and the display of the login prompt after the reboot was |
1510 |
<b>00:42:31</b> on our test box. Yes, less than one hour! Note that this time |
1511 |
also includes the stage3, Portage snapshot and several packages download time |
1512 |
and the time spent configuring the kernel. |
1513 |
</note> |
1514 |
|
1515 |
<p> |
1516 |
Log in as <c>root</c>, then add one or more users for daily use with |
1517 |
<c>useradd</c>. |
1518 |
</p> |
1519 |
|
1520 |
<pre caption="Connect to your new box from another PC"> |
1521 |
<comment>(Clean up your known_hosts file because your new box |
1522 |
has generated a new definitive hostkey)</comment> |
1523 |
$ <i>nano -w ~/.ssh/known_hosts</i> |
1524 |
<comment>(Look for the IP of your new PC and delete the line, |
1525 |
then save the file and exit nano)</comment> |
1526 |
|
1527 |
<comment>(Use the IP address of your new box)</comment> |
1528 |
$ <i>ssh root@192.168.1.10</i> |
1529 |
The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. |
1530 |
RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. |
1531 |
Are you sure you want to continue connecting (yes/no)? <i>yes</i> |
1532 |
Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. |
1533 |
Password: <comment>type_the_password</comment> |
1534 |
</pre> |
1535 |
|
1536 |
<pre caption="Add a new user"> |
1537 |
mybox ~ # <i>adduser -g users -G lp,wheel,audio,cdrom,portage,cron -m john</i> |
1538 |
mybox ~ # <i>passwd john</i> |
1539 |
New UNIX password: <comment>Set John's password</comment> |
1540 |
Retype new UNIX password: <comment>Type John's password again</comment> |
1541 |
passwd: password updated successfully |
1542 |
</pre> |
1543 |
|
1544 |
</body> |
1545 |
</section> |
1546 |
<section> |
1547 |
<title>Last configuration touches</title> |
1548 |
<body> |
1549 |
|
1550 |
<p> |
1551 |
Start by selecting nearby mirrors either by defining the <c>SYNC</c> and |
1552 |
<c>GENTOO_MIRRORS</c> variables in <path>/etc/make.conf</path> or by using |
1553 |
<c>mirrorselect</c>. You can also define the number of concurrent compilation |
1554 |
processes at this point. |
1555 |
</p> |
1556 |
|
1557 |
<pre caption="Use mirrorselect and set MAKEOPTS"> |
1558 |
mybox ~ # <i>emerge mirrorselect</i> |
1559 |
mybox ~ # <i>mirrorselect -i -o >> /etc/make.conf</i> |
1560 |
mybox ~ # <i>mirrorselect -i -r -o >> /etc/make.conf</i> |
1561 |
<comment>(Usually, (the number of processors + 1) is a good value)</comment> |
1562 |
mybox ~ # <i>echo 'MAKEOPTS="-j2"' >> /etc/make.conf</i> |
1563 |
</pre> |
1564 |
|
1565 |
<p> |
1566 |
Now is a good time to enable or disable some USE flags. Run <c>emerge -vpe |
1567 |
world</c> to list all currently installed packages and their enabled and |
1568 |
disabled USE flags. Either edit <path>/etc/make.conf</path> or use the |
1569 |
following command to define the USE variable: |
1570 |
</p> |
1571 |
|
1572 |
<pre caption="View USE flags in use and enable or disable some"> |
1573 |
mybox ~ # <i>emerge -vpe world</i> |
1574 |
<comment>(Portage displays the packages and their USE flags, as an example, let's |
1575 |
disable ipv6 and fortran, and enable unicode)</comment> |
1576 |
mybox ~ # <i>echo 'USE="nptl nptlonly -ipv6 -fortran unicode"' >> /etc/make.conf</i> |
1577 |
</pre> |
1578 |
|
1579 |
<p> |
1580 |
Recent versions of glibc use <path>/etc/locale.gen</path> to define locale |
1581 |
settings. |
1582 |
</p> |
1583 |
|
1584 |
<pre caption="Define locales"> |
1585 |
mybox ~ # <i>cd /etc</i> |
1586 |
mybox etc # <i>nano -w locale.gen</i> |
1587 |
</pre> |
1588 |
|
1589 |
<p> |
1590 |
Last but not least, you may want to alter the <c>CFLAGS</c> variable in your |
1591 |
<path>/etc/make.conf</path> to optimise the code to your specific needs. Please |
1592 |
note that using a long list of flags is rarely needed and can even lead to a |
1593 |
broken system. It is recommended to specify the processor type in the |
1594 |
<c>march</c> option and stick to <c>-O2 -pipe</c>. |
1595 |
</p> |
1596 |
|
1597 |
<p> |
1598 |
You may also want to switch to <b>~x86</b>. You should only do this if you can |
1599 |
deal with the odd broken ebuild or package. If you'd rather keep your system |
1600 |
stable, don't add the <c>ACCEPT_KEYWORDS</c> variable. Adding |
1601 |
<c>FEATURES="parallel-fetch ccache"</c> is also a good idea. |
1602 |
</p> |
1603 |
|
1604 |
<pre caption="Last edit of make.conf"> |
1605 |
mybox etc # <i>nano -w make.conf</i> |
1606 |
<comment>(Set -march to your CPU type in CFLAGS)</comment> |
1607 |
CFLAGS="-O2 -march=<i>athlon-xp</i> -pipe" |
1608 |
<comment>(Add the following line)</comment> |
1609 |
FEATURES="parallel-fetch ccache" |
1610 |
<comment>(Only add the following if you know what you're doing)</comment> |
1611 |
ACCEPT_KEYWORDS="~x86" |
1612 |
</pre> |
1613 |
|
1614 |
<p> |
1615 |
You might want to recompile your whole system twice to make full use of your |
1616 |
latest configuration changes. It would take quite a long time to complete and |
1617 |
yield minimal speed benefits. You can let your system optimise itself gradually |
1618 |
over time when new versions of packages are released. However, recompiling is |
1619 |
a still good idea from the standpoint of maintaining system consistency. Please |
1620 |
see the <uri link="/doc/en/gcc-upgrading.xml">Gentoo GCC Upgrading Guide</uri> |
1621 |
for a discussion on the benefits of ensuring a consistently built system and |
1622 |
world. |
1623 |
</p> |
1624 |
|
1625 |
<p> |
1626 |
Recompiling only the packages that have already been updated since the release |
1627 |
or that are affected by your new USE flags will take enough time. You might |
1628 |
also have to remove packages that block your upgrade. Look for "[blocks |
1629 |
<brite>B</brite> ]" in the output of <c>emerge -vpuD --newuse world</c> and |
1630 |
use <c>emerge -C</c> to remove them. |
1631 |
</p> |
1632 |
|
1633 |
<pre caption="Update your packages"> |
1634 |
<comment>(Install ccache)</comment> |
1635 |
mybox etc # <i>emerge ccache</i> |
1636 |
|
1637 |
<comment>(Please note that the switch to ~x86 causes many packages to be upgraded)</comment> |
1638 |
mybox etc # <i>emerge -vpuD --newuse world</i> |
1639 |
<comment>(Take a good look at the package list and their USE flags, |
1640 |
remove blocking packages if any, and start the lengthy process)</comment> |
1641 |
mybox etc # <i>time emerge -vuD --newuse world</i> |
1642 |
<comment>(79 packages have been (re)compiled)</comment> |
1643 |
|
1644 |
real 180m13.276s |
1645 |
user 121m22.905s |
1646 |
sys 36m31.472s |
1647 |
|
1648 |
<comment>(Remerge libtool to avoid further potential problems)</comment> |
1649 |
mybox etc # <i>emerge libtool</i> |
1650 |
|
1651 |
<comment>(Update config files, make sure you <b>do not</b> let etc-update |
1652 |
update config files you have edited)</comment> |
1653 |
mybox etc # <i>etc-update</i> |
1654 |
|
1655 |
<comment>(If perl has been updated, you should run the perl-cleaner script)</comment> |
1656 |
mybox etc # <i>time perl-cleaner all</i> |
1657 |
real 1m6.495s |
1658 |
user 0m42.699s |
1659 |
sys 0m10.641s |
1660 |
|
1661 |
<comment>(In case of a major upgrade of python, you should run the python-updater script)</comment> |
1662 |
mybox etc # <i>python-updater</i> |
1663 |
</pre> |
1664 |
|
1665 |
</body> |
1666 |
</section> |
1667 |
<section> |
1668 |
<title>What to do next</title> |
1669 |
<body> |
1670 |
|
1671 |
<p> |
1672 |
Depending on what your new Gentoo machine is supposed to do, you will probably |
1673 |
want to install server applications or a desktop system. Just as an example, |
1674 |
<c>emerge gnome</c> and <c>emerge kde</c> have been timed on the ~x86 system |
1675 |
installed as describe above. Both have been installed from the same starting |
1676 |
point. |
1677 |
</p> |
1678 |
|
1679 |
<p> |
1680 |
You should check our <uri link="/doc/en/">documentation index</uri> to find out |
1681 |
how to install and configure the applications of your choice. |
1682 |
</p> |
1683 |
|
1684 |
<impo> |
1685 |
The following is only an example. It is in no way meant as a recommended setup. |
1686 |
</impo> |
1687 |
|
1688 |
<pre caption="Emerge GNOME"> |
1689 |
mybox etc # <i>emerge -vp gnome</i> |
1690 |
<comment>(Look at the list of packages and their USE flags, |
1691 |
then edit make.conf if required.</comment> |
1692 |
mybox etc # <i>nano -w /etc/make.conf</i> |
1693 |
<comment>(The following USE flags have been defined)</comment> |
1694 |
USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ |
1695 |
-kde -qt3 -qt4 -arts -eds -esd gnome gstreamer gtk firefox" |
1696 |
|
1697 |
mybox etc # <i>time emerge gnome</i> |
1698 |
<comment>(326 packages have been emerged)</comment> |
1699 |
|
1700 |
real 520m44.532s |
1701 |
user 339m21.144s |
1702 |
sys 146m22.337s |
1703 |
</pre> |
1704 |
|
1705 |
<pre caption="Emerge KDE"> |
1706 |
mybox etc # <i>emerge -vp kde-meta</i> |
1707 |
<comment>(Look at the list of packages and their USE flags, |
1708 |
then edit make.conf if required.</comment> |
1709 |
mybox etc # <i>nano -w /etc/make.conf</i> |
1710 |
<comment>The following USE flags have been defined)</comment> |
1711 |
USE="nptl nptlonly -ipv6 -fortran unicode svg hal dbus \ |
1712 |
kde qt3 qt4 -arts -eds -esd -gnome -gstreamer -gtk -firefox" |
1713 |
|
1714 |
mybox etc # <i>time emerge kde-meta</i> |
1715 |
<comment>(391 packages have been emerged)</comment> |
1716 |
|
1717 |
real 1171m25.318s |
1718 |
user 851m26.393s |
1719 |
sys 281m45.629s |
1720 |
</pre> |
1721 |
|
1722 |
</body> |
1723 |
</section> |
1724 |
|
1725 |
</included> |
1726 |
|
1727 |
|
1728 |
|
1729 |
1.1 xml/htdocs/doc/en/gentoo-x86-quickinstall-media.xml |
1730 |
|
1731 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-media.xml?rev=1.1&view=markup |
1732 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-media.xml?rev=1.1&content-type=text/plain |
1733 |
|
1734 |
Index: gentoo-x86-quickinstall-media.xml |
1735 |
=================================================================== |
1736 |
<?xml version='1.0' encoding="UTF-8"?> |
1737 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-media.xml,v 1.1 2008/01/01 21:32:30 neysx Exp $ --> |
1738 |
<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> |
1739 |
|
1740 |
<included> |
1741 |
|
1742 |
<version>1</version> |
1743 |
<date>2008-01-01</date> |
1744 |
|
1745 |
<section> |
1746 |
<title>Installation Media</title> |
1747 |
<body> |
1748 |
|
1749 |
<p> |
1750 |
Download a CD from one of our <uri link="/main/en/mirrors.xml">mirrors</uri>. |
1751 |
You can find the minimal CD ISO in |
1752 |
<path>releases/x86/<release>/installcd</path> or the LiveCD ISO in |
1753 |
<path>releases/x86/<release>/livecd</path>. The <e>minimal</e> |
1754 |
installation CD is only useful for Internet-based installations. You can use |
1755 |
the <e>LiveCD</e> to perform a networkless installation as documented in the |
1756 |
<uri link="/doc/en/handbook/2007.0/handbook-x86.xml">2007.0 x86 installation |
1757 |
handbook</uri>. The minimal CD is recommended. |
1758 |
</p> |
1759 |
|
1760 |
<p> |
1761 |
<uri link="/doc/en/faq.xml#isoburning">Burn</uri> the CD and boot it. |
1762 |
</p> |
1763 |
|
1764 |
</body> |
1765 |
</section> |
1766 |
<section> |
1767 |
<title>Booting the CD</title> |
1768 |
<body> |
1769 |
|
1770 |
<p> |
1771 |
Press |
1772 |
<c>F2</c> at the boot screen to find out what boot options exist. You can |
1773 |
either start <c>gentoo</c> or <c>gentoo-nofb</c>, the latter disables the |
1774 |
framebuffer. If you booted the LiveCD, don't forget to add the <c>nox</c> |
1775 |
option to prevent the X graphical environment from starting. Several options |
1776 |
allow to enable or disable some features. If all goes well, your hardware will |
1777 |
be detected and all modules will be loaded. If the kernel fails to boot |
1778 |
properly or if your computer hangs during the boot procedure, you may have to |
1779 |
experiment with different configurations. The safest way is probably to use the |
1780 |
<c>nodetect</c> option and then load required modules explicitly. |
1781 |
</p> |
1782 |
|
1783 |
<pre caption="Boot the minimal CD"> |
1784 |
Gentoo Linux Installation LiveCD http://www.gentoo.org |
1785 |
Enter to Boot; F1 for kernels F2 for options. |
1786 |
boot: <i>gentoo-nofb</i> |
1787 |
<comment>(or in case of problems)</comment> |
1788 |
boot: <i>gentoo-nofb nodetect</i> |
1789 |
</pre> |
1790 |
|
1791 |
</body> |
1792 |
</section> |
1793 |
<section> |
1794 |
<title>Optional: loading modules</title> |
1795 |
<body> |
1796 |
|
1797 |
<p> |
1798 |
If you used the <c>nodetect</c> option, once booted, load the required modules. |
1799 |
You need to enable networking and have access to your disks. The <c>lspci</c> |
1800 |
command can help you identify your hardware. |
1801 |
</p> |
1802 |
|
1803 |
<pre caption="Load required modules"> |
1804 |
livecd root # <i>lspci</i> |
1805 |
<comment>(Use lspci's output to identify required modules)</comment> |
1806 |
|
1807 |
<comment>(The following is an example, adapt it to your hardware)</comment> |
1808 |
livecd root # <i>modprobe 3w-9xxx</i> |
1809 |
livecd root # <i>modprobe r8169</i> |
1810 |
</pre> |
1811 |
|
1812 |
</body> |
1813 |
</section> |
1814 |
<section> |
1815 |
<title>Network Configuration</title> |
1816 |
<body> |
1817 |
|
1818 |
<p> |
1819 |
If your network does not work already, you can use <c>net-setup</c> to |
1820 |
configure your network. You might need to load support for your network card |
1821 |
using <c>modprobe</c> prior to the configuration. If you have ADSL, use |
1822 |
<c>pppoe-setup</c> and <c>pppoe-start</c>. For PPTP support, first edit |
1823 |
<path>/etc/ppp/chap-secrets</path> and <path>/etc/ppp/options.pptp</path> and |
1824 |
then use <c>pptp <server ip></c>. |
1825 |
</p> |
1826 |
|
1827 |
<p> |
1828 |
For wireless access, use <c>iwconfig</c> to set the wireless parameters and then |
1829 |
use either <c>net-setup</c> again or run <c>ifconfig</c>, <c>dhcpcd</c> and/or |
1830 |
<c>route</c> manually. |
1831 |
</p> |
1832 |
|
1833 |
<p> |
1834 |
If you are behind a proxy, do not forget to initialize your system using |
1835 |
<c>export http_proxy</c>, <c>ftp_proxy</c> and <c>RSYNC_PROXY</c>. |
1836 |
</p> |
1837 |
|
1838 |
<pre caption="Configure networking the guided way"> |
1839 |
livecd root # <i>net-setup eth0</i> |
1840 |
</pre> |
1841 |
|
1842 |
<p> |
1843 |
Alternatively, you can start networking manually. The following example assigns |
1844 |
the IP address 192.168.1.10 to your PC and defines 192.168.1.1 as your router |
1845 |
and name server. |
1846 |
</p> |
1847 |
|
1848 |
<pre caption="Configure networking the manual way"> |
1849 |
livecd root # <i>ifconfig eth0 192.168.1.10/24</i> |
1850 |
livecd root # <i>route add default gw 192.168.1.1</i> |
1851 |
livecd root # <i>echo nameserver 192.168.1.1 > /etc/resolv.conf</i> |
1852 |
</pre> |
1853 |
|
1854 |
<p> |
1855 |
The installation CD allows you to start an <c>sshd</c> server, add additional |
1856 |
users, run <c>irssi</c> (a command-line chat client) and surf the web using |
1857 |
<c>lynx</c> or <c>links</c>. |
1858 |
</p> |
1859 |
|
1860 |
</body> |
1861 |
</section> |
1862 |
<section> |
1863 |
<title>Optional: connect to your new box over ssh</title> |
1864 |
<body> |
1865 |
|
1866 |
<p> |
1867 |
The most interesting feature is of course <c>sshd</c>. You can start it and |
1868 |
then connect from another machine and cut and paste commands from this guide. |
1869 |
</p> |
1870 |
|
1871 |
<pre caption="Start sshd"> |
1872 |
livecd root # <i>time /etc/init.d/sshd start</i> |
1873 |
* Generating hostkey ... |
1874 |
<comment>(sshd generates the key and displays more output)</comment> |
1875 |
* starting sshd ... [ok] |
1876 |
|
1877 |
real 0m13.688s |
1878 |
user 0m9.420s |
1879 |
sys 0m0.090s |
1880 |
</pre> |
1881 |
|
1882 |
<p> |
1883 |
Now, set the root password on the liveCD so that you can connect to it from |
1884 |
another PC. Please note that allowing root to connect over ssh is not |
1885 |
recommended under normal circumstances. If you can't trust your local network, |
1886 |
use a long and complex password, you should use it only once as it will |
1887 |
disappear after your first reboot. |
1888 |
</p> |
1889 |
|
1890 |
<pre caption="Set the root password"> |
1891 |
livecd root # <i>passwd</i> |
1892 |
New UNIX password: <comment>type_a_password</comment> |
1893 |
Retype new UNIX password: <comment>type_a_password</comment> |
1894 |
passwd: password updated successfully |
1895 |
</pre> |
1896 |
|
1897 |
<p> |
1898 |
Now, you can start a terminal on another PC and connect to your new box, follow |
1899 |
the rest of this guide in another window, and cut and paste commands. |
1900 |
</p> |
1901 |
|
1902 |
<pre caption="Connect to your new box from another PC"> |
1903 |
<comment>(Use the IP address of your new box)</comment> |
1904 |
$ <i>ssh root@192.168.1.10</i> |
1905 |
The authenticity of host '192.168.1.10 (192.168.1.10)' can't be established. |
1906 |
RSA key fingerprint is 96:e7:2d:12:ac:9c:b0:94:90:9f:40:89:b0:45:26:8f. |
1907 |
Are you sure you want to continue connecting (yes/no)? <i>yes</i> |
1908 |
Warning: Permanently added '192.168.1.10' (RSA) to the list of known hosts. |
1909 |
Password: <comment>type_the_password</comment> |
1910 |
</pre> |
1911 |
|
1912 |
</body> |
1913 |
</section> |
1914 |
|
1915 |
</included> |
1916 |
|
1917 |
|
1918 |
|
1919 |
1.1 xml/htdocs/doc/en/gentoo-x86-quickinstall-stage.xml |
1920 |
|
1921 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-stage.xml?rev=1.1&view=markup |
1922 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-stage.xml?rev=1.1&content-type=text/plain |
1923 |
|
1924 |
Index: gentoo-x86-quickinstall-stage.xml |
1925 |
=================================================================== |
1926 |
<?xml version='1.0' encoding="UTF-8"?> |
1927 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-stage.xml,v 1.1 2008/01/01 21:32:30 neysx Exp $ --> |
1928 |
<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> |
1929 |
|
1930 |
<included> |
1931 |
|
1932 |
<version>1</version> |
1933 |
<date>2008-01-01</date> |
1934 |
|
1935 |
<section> |
1936 |
<title>Setting Up The Stage</title> |
1937 |
<body> |
1938 |
|
1939 |
<p> |
1940 |
First make sure your date and time is set correctly using <c>date |
1941 |
MMDDhhmmYYYY</c>. Use UTC time. |
1942 |
</p> |
1943 |
|
1944 |
<pre caption="Set the date and UTC time"> |
1945 |
<comment>(Check the clock)</comment> |
1946 |
livecd gentoo # <i>date</i> |
1947 |
Mon Mar 6 00:14:13 UTC 2006 |
1948 |
|
1949 |
<comment>(Set the current date and time if required)</comment> |
1950 |
livecd gentoo # <i>date 030600162006</i> <comment>(Format is MMDDhhmmYYYY)</comment> |
1951 |
Mon Mar 6 00:16:00 UTC 2006 |
1952 |
</pre> |
1953 |
|
1954 |
<p> |
1955 |
Next, download a stage from one of our <uri |
1956 |
link="/main/en/mirrors.xml">mirrors</uri>. Go to <path>/mnt/gentoo</path> and |
1957 |
unpack the stage using <c>tar xjpf <stage3 tarball></c>. |
1958 |
</p> |
1959 |
|
1960 |
<pre caption="Download a stage3 archive"> |
1961 |
livecd gentoo # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
1962 |
<comment>(Pick a mirror, move to the releases/x86/current/stages directory highlight the |
1963 |
stage3 of your choice, probably the i686 stage3 and press D to download it)</comment> |
1964 |
|
1965 |
<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
1966 |
livecd gentoo # <i>wget ftp://gentoo.osuosl.org/pub/gentoo/releases/x86/current/stages/stage3-i686*tar.bz2</i> |
1967 |
</pre> |
1968 |
|
1969 |
<pre caption="Unpack the stage3 archive"> |
1970 |
livecd gentoo # <i>time tar xjpf stage3*</i> |
1971 |
|
1972 |
real 1m14.157s |
1973 |
user 1m2.920s |
1974 |
sys 0m7.530s |
1975 |
</pre> |
1976 |
|
1977 |
<p> |
1978 |
Install the latest Portage snapshot. Proceed as for the stage3 archive: choose |
1979 |
a nearby mirror from our <uri link="/main/en/mirrors.xml">list</uri>, download |
1980 |
the latest snapshot and unpack it. |
1981 |
</p> |
1982 |
|
1983 |
<pre caption="Download the latest Portage snapshot"> |
1984 |
livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
1985 |
livecd usr # <i>links http://www.gentoo.org/main/en/mirrors.xml</i> |
1986 |
<comment>(Pick a mirror, move to the snapshots/ directory, |
1987 |
highlight <b>portage-latest.tar.bz2</b> and press D to download it)</comment> |
1988 |
|
1989 |
<comment>(<b>Or</b> download it directly with wget without choosing a nearby mirror)</comment> |
1990 |
livecd gentoo # <i>cd /mnt/gentoo/usr</i> |
1991 |
livecd usr # <i>wget http://gentoo.osuosl.org/snapshots/portage-latest.tar.bz2</i> |
1992 |
</pre> |
1993 |
|
1994 |
<pre caption="Unpack the Portage snapshot"> |
1995 |
livecd usr # <i>time tar xjf portage-lat*</i> |
1996 |
|
1997 |
real 0m40.523s |
1998 |
user 0m28.280s |
1999 |
sys 0m8.240s |
2000 |
</pre> |
2001 |
|
2002 |
</body> |
2003 |
</section> |
2004 |
<section> |
2005 |
<title>Chrooting</title> |
2006 |
<body> |
2007 |
|
2008 |
<p> |
2009 |
Mount the <path>/proc</path> file system, copy over the |
2010 |
<path>/etc/resolv.conf</path> file, then chroot into your Gentoo environment. |
2011 |
</p> |
2012 |
|
2013 |
<pre caption="Chroot"> |
2014 |
livecd usr # <i>cd /</i> |
2015 |
livecd / # <i>mount -t proc proc /mnt/gentoo/proc</i> |
2016 |
livecd / # <i>cp -L /etc/resolv.conf /mnt/gentoo/etc/</i> |
2017 |
livecd / # <i>chroot /mnt/gentoo /bin/bash</i> |
2018 |
livecd / # <i>env-update && source /etc/profile</i> |
2019 |
>>> Regenerating /etc/ld.so.cache... |
2020 |
</pre> |
2021 |
|
2022 |
</body> |
2023 |
</section> |
2024 |
<section> |
2025 |
<title>Set your time zone</title> |
2026 |
<body> |
2027 |
|
2028 |
<p> |
2029 |
Set your time zone information by using the correct listing in |
2030 |
<path>/usr/share/zoneinfo</path>. |
2031 |
</p> |
2032 |
|
2033 |
<pre caption="Setting your timezone"> |
2034 |
livecd / # <i>ls /usr/share/zoneinfo</i> |
2035 |
<comment>(Using Brussels as an example)</comment> |
2036 |
livecd / # <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i> |
2037 |
|
2038 |
livecd / # <i>date</i> |
2039 |
Wed Mar 8 00:46:05 CET 2006 |
2040 |
</pre> |
2041 |
|
2042 |
</body> |
2043 |
</section> |
2044 |
<section> |
2045 |
<title>Set your host name and domain name</title> |
2046 |
<body> |
2047 |
|
2048 |
<p> |
2049 |
Set your host name in <path>/etc/conf.d/hostname</path> and |
2050 |
<path>/etc/hosts</path>. In the following example, we use |
2051 |
<c>mybox</c> as host name and <c>at.myplace</c> as domain name. You can either |
2052 |
edit the config files with <c>nano</c> or use the following commands: |
2053 |
</p> |
2054 |
|
2055 |
<pre caption="Set host and domain name"> |
2056 |
livecd / # <i>cd /etc</i> |
2057 |
livecd etc # <i>echo "127.0.0.1 mybox.at.myplace mybox localhost" > hosts</i> |
2058 |
livecd etc # <i>sed -i -e 's/HOSTNAME.*/HOSTNAME="mybox"/' conf.d/hostname</i> |
2059 |
<comment>(Use defined host name and check)</comment> |
2060 |
livecd etc # <i>hostname mybox</i> |
2061 |
livecd etc # <i>hostname -f</i> |
2062 |
mybox.at.myplace |
2063 |
</pre> |
2064 |
|
2065 |
</body> |
2066 |
</section> |
2067 |
|
2068 |
</included> |
2069 |
|
2070 |
|
2071 |
|
2072 |
1.1 xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml |
2073 |
|
2074 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml?rev=1.1&view=markup |
2075 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml?rev=1.1&content-type=text/plain |
2076 |
|
2077 |
Index: gentoo-x86-quickinstall-system.xml |
2078 |
=================================================================== |
2079 |
<?xml version='1.0' encoding="UTF-8"?> |
2080 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/gentoo-x86-quickinstall-system.xml,v 1.1 2008/01/01 21:32:30 neysx Exp $ --> |
2081 |
<!DOCTYPE included SYSTEM "/dtd/guide.dtd"> |
2082 |
|
2083 |
<included> |
2084 |
|
2085 |
<version>1</version> |
2086 |
<date>2008-01-01</date> |
2087 |
|
2088 |
<section> |
2089 |
<title>Configure the system</title> |
2090 |
|
2091 |
<body test="func:keyval('raid+lvm')='no'"> |
2092 |
|
2093 |
<p> |
2094 |
Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and |
2095 |
<c>SWAP</c> with the actual partition names. Don't forget to check that the |
2096 |
file systems match your installation. |
2097 |
</p> |
2098 |
|
2099 |
<pre caption="Example fstab"> |
2100 |
livecd linux # <i>cd /etc</i> |
2101 |
livecd etc # <i>nano -w fstab</i> |
2102 |
/dev/<i>sda1</i> /boot ext2 noauto,noatime 1 2 |
2103 |
/dev/<i>sda3</i> / ext3 noatime 0 1 |
2104 |
/dev/<i>sda2</i> none swap sw 0 0 |
2105 |
</pre> |
2106 |
|
2107 |
</body> |
2108 |
<body test="func:keyval('raid+lvm')='yes'"> |
2109 |
|
2110 |
<p> |
2111 |
Edit your <path>/etc/fstab</path> and replace <c>BOOT</c>, <c>ROOT</c> and |
2112 |
<c>SWAP</c> with the actual partition names and add your logical volumes. Don't |
2113 |
forget to check that the file systems match your installation. |
2114 |
</p> |
2115 |
|
2116 |
<pre caption="Example fstab"> |
2117 |
livecd linux # <i>cd /etc</i> |
2118 |
livecd etc # <i>nano -w fstab</i> |
2119 |
/dev/<i>md1</i> /boot ext2 noauto,noatime 1 2 |
2120 |
/dev/<i>md3</i> / ext3 noatime 0 1 |
2121 |
/dev/<i>sda2</i> none swap sw,pri=1 0 0 |
2122 |
/dev/<i>sdb2</i> none swap sw,pri=1 0 0 |
2123 |
/dev/vg/usr /usr ext3 noatime 1 2 |
2124 |
/dev/vg/portage /usr/portage ext2 noatime 1 2 |
2125 |
/dev/vg/distfiles /usr/portage/distfiles ext2 noatime 1 2 |
2126 |
/dev/vg/home /home ext3 noatime 1 2 |
2127 |
/dev/vg/opt /opt ext3 noatime 1 2 |
2128 |
/dev/vg/tmp /tmp ext2 noatime 1 2 |
2129 |
/dev/vg/var /var ext3 noatime 1 2 |
2130 |
/dev/vg/vartmp /var/tmp ext2 noatime 1 2 |
2131 |
</pre> |
2132 |
|
2133 |
</body> |
2134 |
<body> |
2135 |
|
2136 |
<p> |
2137 |
Configure your network in <path>/etc/conf.d/net</path>. Add the <c>net.eth0</c> |
2138 |
init script to the default run level. If you have multiple NICs, symlink them |
2139 |
to the <c>net.eth0</c> init script and add them to the default run level as |
2140 |
well. Either edit <path>/etc/conf.d/net</path> with <c>nano</c> or use the |
2141 |
following commands: |
2142 |
</p> |
2143 |
|
2144 |
<pre caption="Configure networking"> |
2145 |
livecd etc # <i>cd conf.d</i> |
2146 |
livecd conf.d # <i>echo 'config_eth0=( "192.168.1.10/24" )' >> net</i> |
2147 |
livecd conf.d # <i>echo 'routes_eth0=( "default via 192.168.1.1" )' >> net</i> |
2148 |
livecd conf.d # <i>rc-update add net.eth0 default</i> |
2149 |
<comment>(If you compiled your network card driver as a module, |
2150 |
add it to /etc/modules.autoload.d/kernel-2.6)</comment> |
2151 |
livecd conf.d # <i>echo r8169 >> /etc/modules.autoload.d/kernel-2.6</i> |
2152 |
<comment>(If you want to reconnect via ssh after you have rebooted your new box)</comment> |
2153 |
livecd conf.d # <i>rc-update add sshd default</i> |
2154 |
</pre> |
2155 |
|
2156 |
<note> |
2157 |
Emerge <c>pcmciautils</c> if you need support for PCMCIA cards. |
2158 |
</note> |
2159 |
|
2160 |
<p> |
2161 |
Set the root password using <c>passwd</c>. |
2162 |
</p> |
2163 |
|
2164 |
<pre caption="Set the root password"> |
2165 |
livecd conf.d # <i>passwd</i> |
2166 |
New UNIX password: <comment>type_the_password</comment> |
2167 |
Retype new UNIX password: <comment>type_the_password_again</comment> |
2168 |
passwd: password updated successfully |
2169 |
</pre> |
2170 |
|
2171 |
<p> |
2172 |
Edit <path>/etc/conf.d/clock</path> to define the time zone you used |
2173 |
previously. |
2174 |
</p> |
2175 |
|
2176 |
<pre caption="Edit /etc/conf.d/clock"> |
2177 |
livecd conf.d # <i>nano -w /etc/conf.d/clock</i> |
2178 |
TIMEZONE="Europe/Brussels" |
2179 |
</pre> |
2180 |
|
2181 |
<p> |
2182 |
Check the system configuration in <path>/etc/rc.conf</path>, |
2183 |
<path>/etc/conf.d/rc</path>, <path>/etc/conf.d/keymaps</path> and edit any of |
2184 |
those files if required. |
2185 |
</p> |
2186 |
|
2187 |
<pre caption="Optional: edit some config files"> |
2188 |
livecd conf.d # <i>nano -w /etc/rc.conf</i> |
2189 |
livecd conf.d # <i>nano -w /etc/conf.d/rc</i> |
2190 |
livecd conf.d # <i>nano -w /etc/conf.d/keymaps</i> |
2191 |
</pre> |
2192 |
|
2193 |
</body> |
2194 |
</section> |
2195 |
<section> |
2196 |
<title>Installing System Tools</title> |
2197 |
|
2198 |
<body test="func:keyval('raid+lvm')='yes'"> |
2199 |
|
2200 |
<p> |
2201 |
Install RAID and LVM2 utilities. |
2202 |
</p> |
2203 |
|
2204 |
<pre caption="Install RAID & LVM2 tools"> |
2205 |
livecd conf.d # <i>emerge mdadm lvm2</i> |
2206 |
</pre> |
2207 |
|
2208 |
</body> |
2209 |
<body> |
2210 |
|
2211 |
<p> |
2212 |
Install a system logger like <c>syslog-ng</c> and a cron daemon like |
2213 |
<c>vixie-cron</c>, and add them to the default run level. |
2214 |
</p> |
2215 |
|
2216 |
<note> |
2217 |
Cron daemons depend on an MTA. <c>mail-mta/ssmtp</c> will be pulled in as a |
2218 |
dependency. If you want to use a more advanced MTA, you might want to install |
2219 |
it now. If you are in a hurry, let ssmtp be installed and remove it later when |
2220 |
you install the MTA of your choice. |
2221 |
</note> |
2222 |
|
2223 |
<pre caption="Install a syslogger and a cron daemon"> |
2224 |
livecd conf.d # <i>time emerge syslog-ng vixie-cron</i> |
2225 |
|
2226 |
real 1m54.099s |
2227 |
user 1m2.630s |
2228 |
sys 0m34.620s |
2229 |
livecd conf.d # <i>rc-update add syslog-ng default</i> |
2230 |
livecd conf.d # <i>rc-update add vixie-cron default</i> |
2231 |
</pre> |
2232 |
|
2233 |
<p> |
2234 |
Install the necessary file system tools (<c>xfsprogs</c>, <c>reiserfsprogs</c> |
2235 |
or <c>jfsutils</c>) and networking tools (<c>dhcpcd</c> or <c>ppp</c>) if you |
2236 |
need any. |
2237 |
</p> |
2238 |
|
2239 |
<pre caption="Install extra tools if required"> |
2240 |
livecd conf.d # <i>emerge xfsprogs</i> <comment>(If you use the XFS file system)</comment> |
2241 |
livecd conf.d # <i>emerge jfsutils</i> <comment>(If you use the JFS file system)</comment> |
2242 |
livecd conf.d # <i>emerge reiserfsprogs</i> <comment>(If you use the Reiser file system)</comment> |
2243 |
livecd conf.d # <i>emerge dhcpcd</i> <comment>(If you need a DHCP client)</comment> |
2244 |
livecd conf.d # <i>emerge ppp</i> <comment>(If you need PPPoE ADSL connectivity)</comment> |
2245 |
</pre> |
2246 |
|
2247 |
</body> |
2248 |
</section> |
2249 |
|
2250 |
<section id="grub"> |
2251 |
<title>Configuring the Bootloader</title> |
2252 |
|
2253 |
<body> |
2254 |
<p> |
2255 |
Emerge <c>grub</c> and configure it. |
2256 |
</p> |
2257 |
|
2258 |
<pre caption="Emerge grub and edit its configuration file"> |
2259 |
livecd conf.d # <i>time emerge grub</i> |
2260 |
|
2261 |
real 1m4.634s |
2262 |
user 0m39.460s |
2263 |
sys 0m15.280s |
2264 |
livecd conf.d # <i>nano -w /boot/grub/grub.conf</i> |
2265 |
</pre> |
2266 |
|
2267 |
<pre caption="Example grub.conf"> |
2268 |
default 0 |
2269 |
timeout 10 |
2270 |
|
2271 |
title=Gentoo |
2272 |
root (hd0,0) |
2273 |
kernel /boot/kernel root=<keyval id="root"/> |
2274 |
</pre> |
2275 |
|
2276 |
<pre caption="Install grub" test="not(contains(func:keyval('root'),'md'))"> |
2277 |
livecd conf.d # <i>grub</i> |
2278 |
Probing devices to guess BIOS drives. This may take a long time. |
2279 |
|
2280 |
grub> <i>root (hd0,0)</i> |
2281 |
Filesystem type is ext2fs, partition type 0xfd |
2282 |
|
2283 |
grub> <i>setup (hd0)</i> |
2284 |
Checking if "/boot/grub/stage1" exists... yes |
2285 |
Checking if "/boot/grub/stage2" exists... yes |
2286 |
Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
2287 |
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
2288 |
succeeded |
2289 |
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
2290 |
grub/menu.lst"... succeeded |
2291 |
Done. |
2292 |
|
2293 |
grub> <i>quit</i> |
2294 |
</pre> |
2295 |
|
2296 |
<pre caption="Install grub on both disks" test="contains(func:keyval('root'),'md')"> |
2297 |
livecd conf.d # <i>grub</i> |
2298 |
Probing devices to guess BIOS drives. This may take a long time. |
2299 |
|
2300 |
grub> <i>root (hd0,0)</i> |
2301 |
Filesystem type is ext2fs, partition type 0xfd |
2302 |
|
2303 |
grub> <i>setup (hd0)</i> |
2304 |
Checking if "/boot/grub/stage1" exists... yes |
2305 |
Checking if "/boot/grub/stage2" exists... yes |
2306 |
Checking if "/boot/grub/e2fs_stage1_5" exists... yes |
2307 |
Running "embed /boot/grub/e2fs_stage1_5 (hd0)"... 16 sectors are embedded. |
2308 |
succeeded |
2309 |
Running "install /boot/grub/stage1 (hd0) (hd0)1+16 p (hd0,0)/boot/grub/stage2 /boot/ |
2310 |
grub/menu.lst"... succeeded |
2311 |
Done. |
2312 |
|
2313 |
grub> <i>root (hd1,0)</i> |
2314 |
Filesystem type is ext2fs, partition type 0xfd |
2315 |
|
2316 |
grub> <i>setup (hd1)</i> |
2317 |
|
2318 |
grub> <i>quit</i> |
2319 |
</pre> |
2320 |
|
2321 |
</body> |
2322 |
</section> |
2323 |
</included> |
2324 |
|
2325 |
|
2326 |
|
2327 |
-- |
2328 |
gentoo-doc-cvs@g.o mailing list |