1 |
nightmorph 08/02/27 22:46:58 |
2 |
|
3 |
Added: handbook-amd64.xml handbook-hppa.xml |
4 |
handbook-ppc.xml handbook-ppc64.xml |
5 |
handbook-sparc.xml handbook-x86.xml |
6 |
hb-install-about.xml hb-install-config.xml |
7 |
hb-install-finalise.xml hb-install-gli-dialog.xml |
8 |
hb-install-gli-medium.xml hb-install-gtkfe.xml |
9 |
hb-install-hppa-bootloader.xml |
10 |
hb-install-hppa-disk.xml hb-install-hppa-kernel.xml |
11 |
hb-install-hppa-medium.xml hb-install-network.xml |
12 |
hb-install-next.xml hb-install-ppc-bootloader.xml |
13 |
hb-install-ppc-disk.xml hb-install-ppc-kernel.xml |
14 |
hb-install-ppc-medium.xml |
15 |
hb-install-ppc64-bootloader.xml |
16 |
hb-install-ppc64-disk.xml |
17 |
hb-install-ppc64-kernel.xml |
18 |
hb-install-ppc64-medium.xml |
19 |
hb-install-sparc-bootloader.xml |
20 |
hb-install-sparc-disk.xml |
21 |
hb-install-sparc-kernel.xml |
22 |
hb-install-sparc-medium.xml hb-install-stage.xml |
23 |
hb-install-system.xml hb-install-tools.xml |
24 |
index.xml |
25 |
Log: |
26 |
moved 2007.1 to 2008.0. i now officially hate cvs. bah. humbug. |
27 |
|
28 |
Revision Changes Path |
29 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-amd64.xml |
30 |
|
31 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-amd64.xml?rev=1.1&view=markup |
32 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-amd64.xml?rev=1.1&content-type=text/plain |
33 |
|
34 |
Index: handbook-amd64.xml |
35 |
=================================================================== |
36 |
<?xml version='1.0' encoding='UTF-8'?> |
37 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
38 |
|
39 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-amd64.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
40 |
|
41 |
<book link="/doc/en/handbook/2007.1/handbook-amd64.xml" disclaimer="draft"> |
42 |
<title>Gentoo Linux 2007.1 AMD64 Networkless Handbook</title> |
43 |
|
44 |
<values> |
45 |
<key id="arch">AMD64</key> |
46 |
<key id="release-dir">releases/amd64/2007.1/</key> |
47 |
<key id="online-book">2007.1/handbook-amd64.xml</key> |
48 |
</values> |
49 |
|
50 |
<author title="Author"> |
51 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
52 |
</author> |
53 |
<author title="Author"> |
54 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
55 |
</author> |
56 |
<author title="Author"> |
57 |
<mail link="uberlord@g.o">Roy Marples</mail> |
58 |
</author> |
59 |
<author title="Author"> |
60 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
61 |
</author> |
62 |
<author title="Author"> |
63 |
<mail link="chouser@g.o">Chris Houser</mail> |
64 |
</author> |
65 |
<author title="Author"> |
66 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
67 |
</author> |
68 |
<author title="Author"> |
69 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
70 |
</author> |
71 |
<author title="Gentoo x86 Developer"> |
72 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
73 |
</author> |
74 |
<author title="Gentoo Alpha Developer"> |
75 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
76 |
</author> |
77 |
<!-- Does not want to be listed on the rendered page |
78 |
<author title="Gentoo Developer"> |
79 |
Aron Griffis |
80 |
</author> |
81 |
--> |
82 |
<author title="Gentoo AMD64 Developer"> |
83 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
84 |
</author> |
85 |
<author title="Gentoo HPPA developer"> |
86 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
87 |
</author> |
88 |
<author title="Gentoo PPC developer"> |
89 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
90 |
</author> |
91 |
<author title="Gentoo SPARC developer"> |
92 |
<mail link="blademan@g.o">Joe Kallar</mail> |
93 |
</author> |
94 |
<author title="Editor"> |
95 |
<mail link="zhen@g.o">John P. Davis</mail> |
96 |
</author> |
97 |
<author title="Editor">Pierre-Henri Jondot</author> |
98 |
<author title="Editor"> |
99 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
100 |
</author> |
101 |
<author title="Editor"> |
102 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
103 |
</author> |
104 |
<author title="Editor"> |
105 |
<mail link="seo@g.o">Jungmin Seo</mail> |
106 |
</author> |
107 |
<author title="Editor"> |
108 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
109 |
</author> |
110 |
<author title="Editor"> |
111 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
112 |
</author> |
113 |
<author title="Editor"> |
114 |
<mail link="peitolm@g.o">Colin Morey</mail> |
115 |
</author> |
116 |
<author title="Editor"> |
117 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
118 |
</author> |
119 |
<author title="Editor"> |
120 |
<mail link="carl@g.o">Carl Anderson</mail> |
121 |
</author> |
122 |
<author title="Editor"> |
123 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
124 |
</author> |
125 |
<author title="Editor"> |
126 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
127 |
</author> |
128 |
<author title="Editor"> |
129 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
130 |
</author> |
131 |
<author title="Editor"> |
132 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
133 |
</author> |
134 |
<author title="Editor"> |
135 |
<mail link="erwin@g.o">Erwin</mail> |
136 |
</author> |
137 |
<author title="Editor"> |
138 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
139 |
</author> |
140 |
<author title="Editor"> |
141 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
142 |
</author> |
143 |
<author title="Editor"> |
144 |
<mail link="neysx@g.o">Xavier Neys</mail> |
145 |
</author> |
146 |
<author title="Editor"> |
147 |
<mail link="fox2mike@g.o">Shyam Mani</mail> |
148 |
</author> |
149 |
<author title="Reviewer"> |
150 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
151 |
</author> |
152 |
<author title="Reviewer"> |
153 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
154 |
</author> |
155 |
<author title="Reviewer"> |
156 |
<mail link="antifa@g.o">Ken Nowack</mail> |
157 |
</author> |
158 |
<author title="Contributor"> |
159 |
<mail link="pylon@g.o">Lars Weiler</mail> |
160 |
</author> |
161 |
|
162 |
<abstract> |
163 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
164 |
information. This handbook contains the installation instructions for a |
165 |
networkless installation on AMD64 & EM64T systems and parts about working |
166 |
with Gentoo and Portage. |
167 |
</abstract> |
168 |
|
169 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
170 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
171 |
<license/> |
172 |
|
173 |
<version>9.0</version> |
174 |
<date>2007-06-06</date> |
175 |
|
176 |
<part> |
177 |
<title>Installing Gentoo</title> |
178 |
<abstract> |
179 |
In this part you learn how to install Gentoo on your system. |
180 |
</abstract> |
181 |
|
182 |
<chapter> |
183 |
<title>About the Gentoo Linux Installation</title> |
184 |
<abstract> |
185 |
Users not familiar with Gentoo do not always know that choice is what |
186 |
Gentoo is all about. |
187 |
</abstract> |
188 |
<include href="hb-install-about.xml"/> |
189 |
</chapter> |
190 |
|
191 |
<chapter> |
192 |
<title>Booting the Installer LiveCD</title> |
193 |
<abstract> |
194 |
Using our Installer LiveCD you can boot up your system into a running |
195 |
environment that allows you to install Gentoo. |
196 |
</abstract> |
197 |
<include href="hb-install-gli-medium.xml"/> |
198 |
</chapter> |
199 |
|
200 |
<chapter> |
201 |
<title>Using the GTK+ based Gentoo Linux Installer</title> |
202 |
<abstract> |
203 |
You now have an option of using our graphical installer to install Gentoo. |
204 |
Configure the options you need through an easy to use GUI and you're ready to |
205 |
go. |
206 |
</abstract> |
207 |
<include href="hb-install-gtkfe.xml" /> |
208 |
</chapter> |
209 |
|
210 |
<chapter> |
211 |
<title>Using the Dialog based Gentoo Linux Installer</title> |
212 |
<abstract> |
213 |
You also have an option of using our text based installer to install Gentoo. |
214 |
Configure the options you need through an easy to use set of menus and you're |
215 |
ready to go. |
216 |
</abstract> |
217 |
<include href="hb-install-gli-dialog.xml" /> |
218 |
</chapter> |
219 |
|
220 |
<chapter> |
221 |
<title>Where to go from here?</title> |
222 |
<abstract> |
223 |
Now you have your Gentoo system, but what's next? |
224 |
</abstract> |
225 |
<include href="hb-install-next.xml"/> |
226 |
</chapter> |
227 |
</part> |
228 |
|
229 |
<part> |
230 |
<title>Working with Gentoo</title> |
231 |
<abstract> |
232 |
Learn how to work with Gentoo: installing software, altering variables, |
233 |
changing Portage behaviour etc. |
234 |
</abstract> |
235 |
|
236 |
<chapter> |
237 |
<title>A Portage Introduction</title> |
238 |
<abstract> |
239 |
This chapter explains the "simple" steps a user definitely needs to know to |
240 |
maintain the software on his system. |
241 |
</abstract> |
242 |
<include href="../hb-working-portage.xml"/> |
243 |
</chapter> |
244 |
|
245 |
<chapter> |
246 |
<title>USE flags</title> |
247 |
<abstract> |
248 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
249 |
work with USE flags and understand how USE flags interact with your system. |
250 |
</abstract> |
251 |
<include href="../hb-working-use.xml"/> |
252 |
</chapter> |
253 |
|
254 |
<chapter> |
255 |
<title>Portage Features</title> |
256 |
<abstract> |
257 |
Discover the features Portage has, such as support for distributed compiling, |
258 |
ccache and more. |
259 |
</abstract> |
260 |
<include href="../hb-working-features.xml"/> |
261 |
</chapter> |
262 |
|
263 |
<chapter> |
264 |
<title>Initscripts</title> |
265 |
<abstract> |
266 |
Gentoo uses a special initscript format which, amongst other features, allows |
267 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
268 |
these aspects and explains how to deal with these scripts. |
269 |
</abstract> |
270 |
<include href="../hb-working-rcscripts.xml"/> |
271 |
</chapter> |
272 |
|
273 |
<chapter> |
274 |
<title>Environment Variables</title> |
275 |
<abstract> |
276 |
With Gentoo you can easily manage the environment variables for your system. |
277 |
This chapter explains how you do that, and also describes frequently used |
278 |
variables. |
279 |
</abstract> |
280 |
<include href="../hb-working-variables.xml"/> |
281 |
</chapter> |
282 |
</part> |
283 |
|
284 |
<part> |
285 |
<title>Working with Portage</title> |
286 |
<abstract> |
287 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
288 |
Software Management Tool. |
289 |
</abstract> |
290 |
|
291 |
<chapter> |
292 |
<title>Files and Directories</title> |
293 |
<abstract> |
294 |
Once you want to know Portage in-depth you need to know where it stores its |
295 |
files and data. |
296 |
</abstract> |
297 |
<include href="../hb-portage-files.xml"/> |
298 |
</chapter> |
299 |
|
300 |
<chapter> |
301 |
<title>Configuring through Variables</title> |
302 |
<abstract> |
303 |
Portage is completely configurable through various variables you can set in the |
304 |
configuration file or as environment variable. |
305 |
</abstract> |
306 |
<include href="../hb-portage-configuration.xml"/> |
307 |
</chapter> |
308 |
|
309 |
<chapter> |
310 |
<title>Mixing Software Branches</title> |
311 |
<abstract> |
312 |
Gentoo provides software separated in several branches, depending on stability |
313 |
and architectural support. "Mixing Software Branches" inform you how these |
314 |
branches can be configured and how you can override this separation |
315 |
individually. |
316 |
</abstract> |
317 |
<include href="../hb-portage-branches.xml"/> |
318 |
</chapter> |
319 |
|
320 |
<chapter> |
321 |
<title>Additional Portage Tools</title> |
322 |
<abstract> |
323 |
Portage comes with a few extra tools that might make your Gentoo experience even |
324 |
better. Read on to discover how to use dispatch-conf and other tools. |
325 |
</abstract> |
326 |
<include href="../hb-portage-tools.xml"/> |
327 |
</chapter> |
328 |
|
329 |
<chapter> |
330 |
<title>Diverting from the Official Tree</title> |
331 |
<abstract> |
332 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
333 |
your own Portage tree, how to synchronise only the categories you want, inject |
334 |
packages and more. |
335 |
</abstract> |
336 |
<include href="../hb-portage-diverttree.xml"/> |
337 |
</chapter> |
338 |
</part> |
339 |
|
340 |
<part> |
341 |
<title>Gentoo Network Configuration</title> |
342 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
343 |
|
344 |
<chapter> |
345 |
<title>Getting Started</title> |
346 |
<abstract> |
347 |
A guide to quickly get your network interface up and running in most common |
348 |
environments. |
349 |
</abstract> |
350 |
<include href="../hb-net-start.xml"/> |
351 |
</chapter> |
352 |
|
353 |
<chapter> |
354 |
<title>Advanced Configuration</title> |
355 |
<abstract> |
356 |
Here we learn about how the configuration works - you need to know this |
357 |
before we learn about modular networking. |
358 |
</abstract> |
359 |
<include href="../hb-net-advanced.xml"/> |
360 |
</chapter> |
361 |
|
362 |
<chapter> |
363 |
<title>Modular Networking</title> |
364 |
<abstract> |
365 |
Gentoo provides you flexible networking - here you are told about choosing |
366 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
367 |
</abstract> |
368 |
<include href="../hb-net-modules.xml"/> |
369 |
</chapter> |
370 |
|
371 |
<chapter> |
372 |
<title>Wireless Networking</title> |
373 |
<abstract> |
374 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
375 |
</abstract> |
376 |
<include href="../hb-net-wireless.xml"/> |
377 |
</chapter> |
378 |
|
379 |
<chapter> |
380 |
<title>Adding Functionality</title> |
381 |
<abstract> |
382 |
If you're feeling adventurous, you can add your own functions to networking. |
383 |
</abstract> |
384 |
<include href="../hb-net-functions.xml"/> |
385 |
</chapter> |
386 |
|
387 |
<chapter> |
388 |
<title>Network Management</title> |
389 |
<abstract> |
390 |
For laptop users or people who move their computer around different networks. |
391 |
</abstract> |
392 |
<include href="../hb-net-management.xml"/> |
393 |
</chapter> |
394 |
</part> |
395 |
|
396 |
</book> |
397 |
|
398 |
|
399 |
|
400 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-hppa.xml |
401 |
|
402 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-hppa.xml?rev=1.1&view=markup |
403 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-hppa.xml?rev=1.1&content-type=text/plain |
404 |
|
405 |
Index: handbook-hppa.xml |
406 |
=================================================================== |
407 |
<?xml version='1.0' encoding='UTF-8'?> |
408 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
409 |
|
410 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-hppa.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
411 |
|
412 |
<book link="/doc/en/handbook/2007.1/handbook-hppa.xml" disclaimer="draft"> |
413 |
<title>Gentoo Linux 2007.1 HPPA Networkless Handbook</title> |
414 |
|
415 |
<values> |
416 |
<key id="arch">HPPA</key> |
417 |
<key id="/boot">/dev/sda2</key> |
418 |
<key id="kernel-version">2.6.20.1-hppa</key> |
419 |
<key id="kernel-name">kernel-2.6.20.1-hppa</key> |
420 |
<key id="online-book">2007.1/handbook-hppa.xml</key> |
421 |
<key id="release-dir">releases/hppa/2007.1/hppa2.0/</key> |
422 |
<key id="stage3">stage3-hppa2.0-2007.1.tar.bz2</key> |
423 |
<key id="CFLAGS">-march=2.0 -O2 -pipe</key> |
424 |
</values> |
425 |
|
426 |
<author title="Author"> |
427 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
428 |
</author> |
429 |
<author title="Author"> |
430 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
431 |
</author> |
432 |
<author title="Author"> |
433 |
<mail link="uberlord@g.o">Roy Marples</mail> |
434 |
</author> |
435 |
<author title="Author"> |
436 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
437 |
</author> |
438 |
<author title="Author"> |
439 |
<mail link="chouser@g.o">Chris Houser</mail> |
440 |
</author> |
441 |
<author title="Author"> |
442 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
443 |
</author> |
444 |
<author title="Gentoo x86 Developer"> |
445 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
446 |
</author> |
447 |
<author title="Gentoo Alpha Developer"> |
448 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
449 |
</author><!-- Does not want to be listed on the rendered page |
450 |
<author title="Gentoo Developer"> |
451 |
Aron Griffis |
452 |
</author> |
453 |
--> |
454 |
<author title="Gentoo AMD64 Developer"> |
455 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
456 |
</author> |
457 |
<author title="Gentoo HPPA developer"> |
458 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
459 |
</author> |
460 |
<author title="Gentoo PPC developer"> |
461 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
462 |
</author> |
463 |
<author title="Gentoo SPARC developer"> |
464 |
<mail link="blademan@g.o">Joe Kallar</mail> |
465 |
</author> |
466 |
<author title="Editor"> |
467 |
<mail link="zhen@g.o">John P. Davis</mail> |
468 |
</author> |
469 |
<author title="Editor">Pierre-Henri Jondot</author> |
470 |
<author title="Editor"> |
471 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
472 |
</author> |
473 |
<author title="Editor"> |
474 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
475 |
</author> |
476 |
<author title="Editor"> |
477 |
<mail link="seo@g.o">Jungmin Seo</mail> |
478 |
</author> |
479 |
<author title="Editor"> |
480 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
481 |
</author> |
482 |
<author title="Editor"> |
483 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
484 |
</author> |
485 |
<author title="Editor"> |
486 |
<mail link="peitolm@g.o">Colin Morey</mail> |
487 |
</author> |
488 |
<author title="Editor"> |
489 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
490 |
</author> |
491 |
<author title="Editor"> |
492 |
<mail link="carl@g.o">Carl Anderson</mail> |
493 |
</author> |
494 |
<author title="Editor"> |
495 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
496 |
</author> |
497 |
<author title="Editor"> |
498 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
499 |
</author> |
500 |
<author title="Editor"> |
501 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
502 |
</author> |
503 |
<author title="Editor"> |
504 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
505 |
</author> |
506 |
<author title="Editor"> |
507 |
<mail link="erwin@g.o">Erwin</mail> |
508 |
</author> |
509 |
<author title="Editor"> |
510 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
511 |
</author> |
512 |
<author title="Editor"> |
513 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
514 |
</author> |
515 |
<author title="Editor"> |
516 |
<mail link="neysx@g.o">Xavier Neys</mail> |
517 |
</author> |
518 |
<author title="Editor"> |
519 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
520 |
</author> |
521 |
<author title="Reviewer"> |
522 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
523 |
</author> |
524 |
<author title="Reviewer"> |
525 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
526 |
</author> |
527 |
<author title="Reviewer"> |
528 |
<mail link="antifa@g.o">Ken Nowack</mail> |
529 |
</author> |
530 |
<author title="Contributor"> |
531 |
<mail link="pylon@g.o">Lars Weiler</mail> |
532 |
</author> |
533 |
|
534 |
<abstract> |
535 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
536 |
information. This handbook contains the installation instructions for a |
537 |
networkless installation on HPPA systems and parts about working with Gentoo |
538 |
and Portage. |
539 |
</abstract> |
540 |
|
541 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
542 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
543 |
<license/> |
544 |
|
545 |
<version>9.0</version> |
546 |
<date>2007-06-06</date> |
547 |
|
548 |
<part> |
549 |
<title>Installing Gentoo</title> |
550 |
<abstract> |
551 |
In this part you learn how to install Gentoo on your system. |
552 |
</abstract> |
553 |
|
554 |
<chapter> |
555 |
<title>About the Gentoo Linux Installation</title> |
556 |
<abstract> |
557 |
Users not familiar with Gentoo do not always know that choice is what |
558 |
Gentoo is all about. |
559 |
</abstract> |
560 |
<include href="hb-install-about.xml"/> |
561 |
</chapter> |
562 |
|
563 |
<chapter> |
564 |
<title>Booting the Universal Installation CD</title> |
565 |
<abstract> |
566 |
Using our Universal Installation CD you can boot up your system into a running |
567 |
environment that allows you to install Gentoo. |
568 |
</abstract> |
569 |
<include href="hb-install-hppa-medium.xml"/> |
570 |
</chapter> |
571 |
|
572 |
<chapter> |
573 |
<title>Configuring your Network</title> |
574 |
<abstract> |
575 |
If you need networking, this is the place where the network (and Internet |
576 |
connection) is configured. |
577 |
</abstract> |
578 |
<include href="hb-install-network.xml"/> |
579 |
</chapter> |
580 |
|
581 |
<chapter> |
582 |
<title>Preparing the Disks</title> |
583 |
<abstract> |
584 |
To be able to install Gentoo, you must create the necessary partitions. |
585 |
This chapter describes how to partition a disk for future usage. |
586 |
</abstract> |
587 |
<include href="hb-install-hppa-disk.xml"/> |
588 |
</chapter> |
589 |
|
590 |
<chapter> |
591 |
<title>Installing the Gentoo Installation Files</title> |
592 |
<abstract> |
593 |
Gentoo installs work through so-called stage-files. In this chapter we |
594 |
describe how you extract a stage-file and configure Portage. |
595 |
</abstract> |
596 |
<include href="hb-install-stage.xml"/> |
597 |
</chapter> |
598 |
|
599 |
<chapter> |
600 |
<title>Chrooting into the Gentoo Base System</title> |
601 |
<abstract> |
602 |
Now that the stage3 file is extracted, we chroot into the new system and modify |
603 |
the USE variable. |
604 |
</abstract> |
605 |
<include href="hb-install-system.xml"/> |
606 |
</chapter> |
607 |
|
608 |
<chapter> |
609 |
<title>Configuring the Kernel</title> |
610 |
<abstract> |
611 |
The Linux kernel is the core of every distribution. This chapter |
612 |
explains how to configure your kernel. |
613 |
</abstract> |
614 |
<include href="hb-install-hppa-kernel.xml"/> |
615 |
</chapter> |
616 |
|
617 |
<chapter> |
618 |
<title>Configuring your System</title> |
619 |
<abstract> |
620 |
You need to edit some important configuration files. In this chapter |
621 |
you receive an overview of these files and an explanation on how to |
622 |
proceed. |
623 |
</abstract> |
624 |
<include href="hb-install-config.xml"/> |
625 |
</chapter> |
626 |
|
627 |
<chapter> |
628 |
<title>Installing Necessary System Tools</title> |
629 |
<abstract> |
630 |
As mentioned before, Gentoo is about customization. In this chapter we help you |
631 |
choose and install some important tools. |
632 |
</abstract> |
633 |
<include href="hb-install-tools.xml"/> |
634 |
</chapter> |
635 |
|
636 |
<chapter> |
637 |
<title>Configuring the Bootloader</title> |
638 |
<abstract> |
639 |
In this chapter we'll describe the PALO bootloader |
640 |
and step you through the process of configuring PALO to your |
641 |
needs. |
642 |
</abstract> |
643 |
<include href="hb-install-hppa-bootloader.xml"/> |
644 |
</chapter> |
645 |
|
646 |
<chapter> |
647 |
<title>Finalizing your Gentoo Installation</title> |
648 |
<abstract> |
649 |
You're almost done. We'll just create one (or more) users for your |
650 |
system and (optionally) install prebuilt packages. |
651 |
</abstract> |
652 |
<include href="hb-install-finalise.xml"/> |
653 |
</chapter> |
654 |
|
655 |
<chapter> |
656 |
<title>Where to go from here?</title> |
657 |
<abstract> |
658 |
Now you have your Gentoo system, but what's next? |
659 |
</abstract> |
660 |
<include href="hb-install-next.xml"/> |
661 |
</chapter> |
662 |
</part> |
663 |
|
664 |
<part> |
665 |
<title>Working with Gentoo</title> |
666 |
<abstract> |
667 |
Learn how to work with Gentoo: installing software, altering variables, changing |
668 |
Portage behaviour etc. |
669 |
</abstract> |
670 |
|
671 |
<chapter> |
672 |
<title>A Portage Introduction</title> |
673 |
<abstract> |
674 |
This chapter explains the "simple" steps a user definitely needs to know to |
675 |
maintain the software on his system. |
676 |
</abstract> |
677 |
<include href="../hb-working-portage.xml"/> |
678 |
</chapter> |
679 |
|
680 |
<chapter> |
681 |
<title>USE flags</title> |
682 |
<abstract> |
683 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
684 |
work with USE flags and understand how USE flags interact with your system. |
685 |
</abstract> |
686 |
<include href="../hb-working-use.xml"/> |
687 |
</chapter> |
688 |
|
689 |
<chapter> |
690 |
<title>Portage Features</title> |
691 |
<abstract> |
692 |
Discover the features Portage has, such as support for distributed compiling, |
693 |
ccache and more. |
694 |
</abstract> |
695 |
<include href="../hb-working-features.xml"/> |
696 |
</chapter> |
697 |
|
698 |
<chapter> |
699 |
<title>Initscripts</title> |
700 |
<abstract> |
701 |
Gentoo uses a special initscript format which, amongst other features, allows |
702 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
703 |
these aspects and explains how to deal with these scripts. |
704 |
</abstract> |
705 |
<include href="../hb-working-rcscripts.xml"/> |
706 |
</chapter> |
707 |
|
708 |
<chapter> |
709 |
<title>Environment Variables</title> |
710 |
<abstract> |
711 |
With Gentoo you can easily manage the environment variables for your system. |
712 |
This chapter explains how you do that, and also describes frequently used |
713 |
variables. |
714 |
</abstract> |
715 |
<include href="../hb-working-variables.xml"/> |
716 |
</chapter> |
717 |
</part> |
718 |
|
719 |
<part> |
720 |
<title>Working with Portage</title> |
721 |
<abstract> |
722 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
723 |
Software Management Tool. |
724 |
</abstract> |
725 |
|
726 |
<chapter> |
727 |
<title>Files and Directories</title> |
728 |
<abstract> |
729 |
Once you want to know Portage in-depth you need to know where it stores its |
730 |
files and data. |
731 |
</abstract> |
732 |
<include href="../hb-portage-files.xml"/> |
733 |
</chapter> |
734 |
|
735 |
<chapter> |
736 |
<title>Configuring through Variables</title> |
737 |
<abstract> |
738 |
Portage is completely configurable through various variables you can set in the |
739 |
configuration file or as environment variable. |
740 |
</abstract> |
741 |
<include href="../hb-portage-configuration.xml"/> |
742 |
</chapter> |
743 |
|
744 |
<chapter> |
745 |
<title>Mixing Software Branches</title> |
746 |
<abstract> |
747 |
Gentoo provides software separated in several branches, depending on stability |
748 |
and architectural support. "Mixing Software Branches" inform you how these |
749 |
branches can be configured and how you can override this separation |
750 |
individually. |
751 |
</abstract> |
752 |
<include href="../hb-portage-branches.xml"/> |
753 |
</chapter> |
754 |
|
755 |
<chapter> |
756 |
<title>Additional Portage Tools</title> |
757 |
<abstract> |
758 |
Portage comes with a few extra tools that might make your Gentoo experience even |
759 |
better. Read on to discover how to use dispatch-conf and other tools. |
760 |
</abstract> |
761 |
<include href="../hb-portage-tools.xml"/> |
762 |
</chapter> |
763 |
|
764 |
<chapter> |
765 |
<title>Diverting from the Official Tree</title> |
766 |
<abstract> |
767 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
768 |
your own Portage tree, how to synchronise only the categories you want, inject |
769 |
packages and more. |
770 |
</abstract> |
771 |
<include href="../hb-portage-diverttree.xml"/> |
772 |
</chapter> |
773 |
</part> |
774 |
|
775 |
<part> |
776 |
<title>Gentoo Network Configuration</title> |
777 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
778 |
|
779 |
<chapter> |
780 |
<title>Getting Started</title> |
781 |
<abstract> |
782 |
A guide to quickly get your network interface up and running in most common |
783 |
environments. |
784 |
</abstract> |
785 |
<include href="../hb-net-start.xml"/> |
786 |
</chapter> |
787 |
|
788 |
<chapter> |
789 |
<title>Advanced Configuration</title> |
790 |
<abstract> |
791 |
Here we learn about how the configuration works - you need to know this |
792 |
before we learn about modular networking. |
793 |
</abstract> |
794 |
<include href="../hb-net-advanced.xml"/> |
795 |
</chapter> |
796 |
|
797 |
<chapter> |
798 |
<title>Modular Networking</title> |
799 |
<abstract> |
800 |
Gentoo provides you flexible networking - here you are told about choosing |
801 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
802 |
</abstract> |
803 |
<include href="../hb-net-modules.xml"/> |
804 |
</chapter> |
805 |
|
806 |
<chapter> |
807 |
<title>Wireless Networking</title> |
808 |
<abstract> |
809 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
810 |
</abstract> |
811 |
<include href="../hb-net-wireless.xml"/> |
812 |
</chapter> |
813 |
|
814 |
<chapter> |
815 |
<title>Adding Functionality</title> |
816 |
<abstract> |
817 |
If you're feeling adventurous, you can add your own functions to networking. |
818 |
</abstract> |
819 |
<include href="../hb-net-functions.xml"/> |
820 |
</chapter> |
821 |
|
822 |
<chapter> |
823 |
<title>Network Management</title> |
824 |
<abstract> |
825 |
For laptop users or people who move their computer around different networks. |
826 |
</abstract> |
827 |
<include href="../hb-net-management.xml"/> |
828 |
</chapter> |
829 |
</part> |
830 |
|
831 |
</book> |
832 |
|
833 |
|
834 |
|
835 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-ppc.xml |
836 |
|
837 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc.xml?rev=1.1&view=markup |
838 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc.xml?rev=1.1&content-type=text/plain |
839 |
|
840 |
Index: handbook-ppc.xml |
841 |
=================================================================== |
842 |
<?xml version='1.0' encoding='UTF-8'?> |
843 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
844 |
|
845 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
846 |
|
847 |
<book link="/doc/en/handbook/2007.1/handbook-ppc.xml" disclaimer="draft"> |
848 |
<title>Gentoo Linux 2007.1 PPC Networkless Handbook</title> |
849 |
|
850 |
<values> |
851 |
<key id="arch">PPC</key> |
852 |
<key id="kernel-version">2.6.19-r5</key> |
853 |
<key id="kernel-name">kernel-2.6.19-gentoo-r5</key> |
854 |
<key id="kernel-gentoo">2.6.19-gentoo-r5</key> |
855 |
<key id="online-book">2007.1/handbook-ppc.xml</key> |
856 |
<key id="release-dir">releases/ppc/2007.1/ppc32/</key> |
857 |
<key id="stage3">stage3-ppc-2007.1.tar.bz2</key> |
858 |
<key id="CFLAGS">-O2 -mcpu=powerpc -mtune=powerpc -fno-strict-aliasing -pipe</key> |
859 |
</values> |
860 |
|
861 |
<author title="Author"> |
862 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
863 |
</author> |
864 |
<author title="Author"> |
865 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
866 |
</author> |
867 |
<author title="Author"> |
868 |
<mail link="uberlord@g.o">Roy Marples</mail> |
869 |
</author> |
870 |
<author title="Author"> |
871 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
872 |
</author> |
873 |
<author title="Author"> |
874 |
<mail link="chouser@g.o">Chris Houser</mail> |
875 |
</author> |
876 |
<author title="Author"> |
877 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
878 |
</author> |
879 |
<author title="Gentoo x86 Developer"> |
880 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
881 |
</author> |
882 |
<author title="Gentoo Alpha Developer"> |
883 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
884 |
</author><!-- Does not want to be listed on the rendered page |
885 |
<author title="Gentoo Developer"> |
886 |
Aron Griffis |
887 |
</author> |
888 |
--> |
889 |
<author title="Gentoo AMD64 Developer"> |
890 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
891 |
</author> |
892 |
<author title="Gentoo HPPA developer"> |
893 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
894 |
</author> |
895 |
<author title="Gentoo PPC developer"> |
896 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
897 |
</author> |
898 |
<author title="Gentoo SPARC developer"> |
899 |
<mail link="blademan@g.o">Joe Kallar</mail> |
900 |
</author> |
901 |
<author title="Editor"> |
902 |
<mail link="zhen@g.o">John P. Davis</mail> |
903 |
</author> |
904 |
<author title="Editor">Pierre-Henri Jondot</author> |
905 |
<author title="Editor"> |
906 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
907 |
</author> |
908 |
<author title="Editor"> |
909 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
910 |
</author> |
911 |
<author title="Editor"> |
912 |
<mail link="seo@g.o">Jungmin Seo</mail> |
913 |
</author> |
914 |
<author title="Editor"> |
915 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
916 |
</author> |
917 |
<author title="Editor"> |
918 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
919 |
</author> |
920 |
<author title="Editor"> |
921 |
<mail link="peitolm@g.o">Colin Morey</mail> |
922 |
</author> |
923 |
<author title="Editor"> |
924 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
925 |
</author> |
926 |
<author title="Editor"> |
927 |
<mail link="carl@g.o">Carl Anderson</mail> |
928 |
</author> |
929 |
<author title="Editor"> |
930 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
931 |
</author> |
932 |
<author title="Editor"> |
933 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
934 |
</author> |
935 |
<author title="Editor"> |
936 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
937 |
</author> |
938 |
<author title="Editor"> |
939 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
940 |
</author> |
941 |
<author title="Editor"> |
942 |
<mail link="erwin@g.o">Erwin</mail> |
943 |
</author> |
944 |
<author title="Editor"> |
945 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
946 |
</author> |
947 |
<author title="Editor"> |
948 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
949 |
</author> |
950 |
<author title="Editor"> |
951 |
<mail link="pylon@g.o">Lars Weiler</mail> |
952 |
</author> |
953 |
<author title="Editor"> |
954 |
<mail link="sejo@g.o">Jochen Maes </mail> |
955 |
</author> |
956 |
<author title="Editor"> |
957 |
<mail link="neysx@g.o">Xavier Neys</mail> |
958 |
</author> |
959 |
<author title="Editor"> |
960 |
<mail link="josejx@g.o">Joseph Jezak</mail> |
961 |
</author> |
962 |
<author title="Editor"> |
963 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
964 |
</author> |
965 |
<author title="Reviewer"> |
966 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
967 |
</author> |
968 |
<author title="Reviewer"> |
969 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
970 |
</author> |
971 |
<author title="Reviewer"> |
972 |
<mail link="antifa@g.o">Ken Nowack</mail> |
973 |
</author> |
974 |
|
975 |
<abstract> |
976 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
977 |
information. This handbook contains the installation instructions for a |
978 |
networkless installation on PPC systems and parts about working with Gentoo and |
979 |
Portage. |
980 |
</abstract> |
981 |
|
982 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
983 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
984 |
<license/> |
985 |
|
986 |
<version>9.0</version> |
987 |
<date>2007-06-06</date> |
988 |
|
989 |
<part> |
990 |
<title>Installing Gentoo</title> |
991 |
<abstract> |
992 |
In this part you learn how to install Gentoo on your system. |
993 |
</abstract> |
994 |
|
995 |
<chapter> |
996 |
<title>About the Gentoo Linux Installation</title> |
997 |
<abstract> |
998 |
Users not familiar with Gentoo do not always know that choice is what |
999 |
Gentoo is all about. |
1000 |
</abstract> |
1001 |
<include href="hb-install-about.xml"/> |
1002 |
</chapter> |
1003 |
|
1004 |
<chapter> |
1005 |
<title>Booting the Universal Installation CD</title> |
1006 |
<abstract> |
1007 |
Using our Universal Installation CD you can boot up your system into a running |
1008 |
environment that allows you to install Gentoo. |
1009 |
</abstract> |
1010 |
<include href="hb-install-ppc-medium.xml"/> |
1011 |
</chapter> |
1012 |
|
1013 |
<chapter> |
1014 |
<title>Configuring your Network</title> |
1015 |
<abstract> |
1016 |
If you need networking, this is the place where the network (and Internet |
1017 |
connection) is configured. |
1018 |
</abstract> |
1019 |
<include href="hb-install-network.xml"/> |
1020 |
</chapter> |
1021 |
|
1022 |
<chapter> |
1023 |
<title>Preparing the Disks</title> |
1024 |
<abstract> |
1025 |
To be able to install Gentoo, you must create the necessary partitions. |
1026 |
This chapter describes how to partition a disk for future usage. |
1027 |
</abstract> |
1028 |
<include href="hb-install-ppc-disk.xml"/> |
1029 |
</chapter> |
1030 |
|
1031 |
<chapter> |
1032 |
<title>Installing the Gentoo Installation Files</title> |
1033 |
<abstract> |
1034 |
In this chapter we describe how you extract a stage3 file and how to configure |
1035 |
Portage. |
1036 |
</abstract> |
1037 |
<include href="hb-install-stage.xml"/> |
1038 |
</chapter> |
1039 |
|
1040 |
<chapter> |
1041 |
<title>Chrooting into the Gentoo Base System</title> |
1042 |
<abstract> |
1043 |
Now that the stage3 file is extracted, we chroot into the new system and modify |
1044 |
the USE variable. |
1045 |
</abstract> |
1046 |
<include href="hb-install-system.xml"/> |
1047 |
</chapter> |
1048 |
|
1049 |
<chapter> |
1050 |
<title>Configuring the Kernel</title> |
1051 |
<abstract> |
1052 |
The Linux kernel is the core of every distribution. This chapter |
1053 |
explains how to configure your kernel. |
1054 |
</abstract> |
1055 |
<include href="hb-install-ppc-kernel.xml"/> |
1056 |
</chapter> |
1057 |
|
1058 |
<chapter> |
1059 |
<title>Configuring your System</title> |
1060 |
<abstract> |
1061 |
You need to edit some important configuration files. In this chapter |
1062 |
you receive an overview of these files and an explanation on how to |
1063 |
proceed. |
1064 |
</abstract> |
1065 |
<include href="hb-install-config.xml"/> |
1066 |
</chapter> |
1067 |
|
1068 |
<chapter> |
1069 |
<title>Installing Necessary System Tools</title> |
1070 |
<abstract> |
1071 |
As mentioned before, Gentoo is about customization. In this chapter we help you |
1072 |
choose and install some important tools. |
1073 |
</abstract> |
1074 |
<include href="hb-install-tools.xml"/> |
1075 |
</chapter> |
1076 |
|
1077 |
<chapter> |
1078 |
<title>Configuring the Bootloader</title> |
1079 |
<abstract> |
1080 |
Several bootloaders exist. Each one of them has its own way of |
1081 |
configuration. In this chapter we'll describe all possibilities for you |
1082 |
and step you through the process of configuring a bootloader to your |
1083 |
needs. |
1084 |
</abstract> |
1085 |
<include href="hb-install-ppc-bootloader.xml"/> |
1086 |
</chapter> |
1087 |
|
1088 |
<chapter> |
1089 |
<title>Finalizing your Gentoo Installation</title> |
1090 |
<abstract> |
1091 |
You're almost done. We'll just create one (or more) users for your |
1092 |
system and (optionally) install prebuilt packages. |
1093 |
</abstract> |
1094 |
<include href="hb-install-finalise.xml"/> |
1095 |
</chapter> |
1096 |
|
1097 |
<chapter> |
1098 |
<title>Where to go from here?</title> |
1099 |
<abstract> |
1100 |
Now you have your Gentoo system, but what's next? |
1101 |
</abstract> |
1102 |
<include href="hb-install-next.xml"/> |
1103 |
</chapter> |
1104 |
</part> |
1105 |
|
1106 |
<part> |
1107 |
<title>Working with Gentoo</title> |
1108 |
<abstract> |
1109 |
Learn how to work with Gentoo: installing software, altering variables, changing |
1110 |
Portage behaviour etc. |
1111 |
</abstract> |
1112 |
|
1113 |
<chapter> |
1114 |
<title>A Portage Introduction</title> |
1115 |
<abstract> |
1116 |
This chapter explains the "simple" steps a user definitely needs to know to |
1117 |
maintain the software on his system. |
1118 |
</abstract> |
1119 |
<include href="../hb-working-portage.xml"/> |
1120 |
</chapter> |
1121 |
|
1122 |
<chapter> |
1123 |
<title>USE flags</title> |
1124 |
<abstract> |
1125 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
1126 |
work with USE flags and understand how USE flags interact with your system. |
1127 |
</abstract> |
1128 |
<include href="../hb-working-use.xml"/> |
1129 |
</chapter> |
1130 |
|
1131 |
<chapter> |
1132 |
<title>Portage Features</title> |
1133 |
<abstract> |
1134 |
Discover the features Portage has, such as support for distributed compiling, |
1135 |
ccache and more. |
1136 |
</abstract> |
1137 |
<include href="../hb-working-features.xml"/> |
1138 |
</chapter> |
1139 |
|
1140 |
<chapter> |
1141 |
<title>Initscripts</title> |
1142 |
<abstract> |
1143 |
Gentoo uses a special initscript format which, amongst other features, allows |
1144 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
1145 |
these aspects and explains how to deal with these scripts. |
1146 |
</abstract> |
1147 |
<include href="../hb-working-rcscripts.xml"/> |
1148 |
</chapter> |
1149 |
|
1150 |
<chapter> |
1151 |
<title>Environment Variables</title> |
1152 |
<abstract> |
1153 |
With Gentoo you can easily manage the environment variables for your system. |
1154 |
This chapter explains how you do that, and also describes frequently used |
1155 |
variables. |
1156 |
</abstract> |
1157 |
<include href="../hb-working-variables.xml"/> |
1158 |
</chapter> |
1159 |
</part> |
1160 |
|
1161 |
<part> |
1162 |
<title>Working with Portage</title> |
1163 |
<abstract> |
1164 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
1165 |
Software Management Tool. |
1166 |
</abstract> |
1167 |
|
1168 |
<chapter> |
1169 |
<title>Files and Directories</title> |
1170 |
<abstract> |
1171 |
Once you want to know Portage in-depth you need to know where it stores its |
1172 |
files and data. |
1173 |
</abstract> |
1174 |
<include href="../hb-portage-files.xml"/> |
1175 |
</chapter> |
1176 |
|
1177 |
<chapter> |
1178 |
<title>Configuring through Variables</title> |
1179 |
<abstract> |
1180 |
Portage is completely configurable through various variables you can set in the |
1181 |
configuration file or as environment variable. |
1182 |
</abstract> |
1183 |
<include href="../hb-portage-configuration.xml"/> |
1184 |
</chapter> |
1185 |
|
1186 |
<chapter> |
1187 |
<title>Mixing Software Branches</title> |
1188 |
<abstract> |
1189 |
Gentoo provides software separated in several branches, depending on stability |
1190 |
and architectural support. "Mixing Software Branches" inform you how these |
1191 |
branches can be configured and how you can override this separation |
1192 |
individually. |
1193 |
</abstract> |
1194 |
<include href="../hb-portage-branches.xml"/> |
1195 |
</chapter> |
1196 |
|
1197 |
<chapter> |
1198 |
<title>Additional Portage Tools</title> |
1199 |
<abstract> |
1200 |
Portage comes with a few extra tools that might make your Gentoo experience even |
1201 |
better. Read on to discover how to use dispatch-conf and other tools. |
1202 |
</abstract> |
1203 |
<include href="../hb-portage-tools.xml"/> |
1204 |
</chapter> |
1205 |
|
1206 |
<chapter> |
1207 |
<title>Diverting from the Official Tree</title> |
1208 |
<abstract> |
1209 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
1210 |
your own Portage tree, how to synchronise only the categories you want, inject |
1211 |
packages and more. |
1212 |
</abstract> |
1213 |
<include href="../hb-portage-diverttree.xml"/> |
1214 |
</chapter> |
1215 |
</part> |
1216 |
|
1217 |
<part> |
1218 |
<title>Gentoo Network Configuration</title> |
1219 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
1220 |
|
1221 |
<chapter> |
1222 |
<title>Getting Started</title> |
1223 |
<abstract> |
1224 |
A guide to quickly get your network interface up and running in most common |
1225 |
environments. |
1226 |
</abstract> |
1227 |
<include href="../hb-net-start.xml"/> |
1228 |
</chapter> |
1229 |
|
1230 |
<chapter> |
1231 |
<title>Advanced Configuration</title> |
1232 |
<abstract> |
1233 |
Here we learn about how the configuration works - you need to know this |
1234 |
before we learn about modular networking. |
1235 |
</abstract> |
1236 |
<include href="../hb-net-advanced.xml"/> |
1237 |
</chapter> |
1238 |
|
1239 |
<chapter> |
1240 |
<title>Modular Networking</title> |
1241 |
<abstract> |
1242 |
Gentoo provides you flexible networking - here you are told about choosing |
1243 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
1244 |
</abstract> |
1245 |
<include href="../hb-net-modules.xml"/> |
1246 |
</chapter> |
1247 |
|
1248 |
<chapter> |
1249 |
<title>Wireless Networking</title> |
1250 |
<abstract> |
1251 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
1252 |
</abstract> |
1253 |
<include href="../hb-net-wireless.xml"/> |
1254 |
</chapter> |
1255 |
|
1256 |
<chapter> |
1257 |
<title>Adding Functionality</title> |
1258 |
<abstract> |
1259 |
If you're feeling adventurous, you can add your own functions to networking. |
1260 |
</abstract> |
1261 |
<include href="../hb-net-functions.xml"/> |
1262 |
</chapter> |
1263 |
|
1264 |
<chapter> |
1265 |
<title>Network Management</title> |
1266 |
<abstract> |
1267 |
For laptop users or people who move their computer around different networks. |
1268 |
</abstract> |
1269 |
<include href="../hb-net-management.xml"/> |
1270 |
</chapter> |
1271 |
</part> |
1272 |
|
1273 |
</book> |
1274 |
|
1275 |
|
1276 |
|
1277 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-ppc64.xml |
1278 |
|
1279 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc64.xml?rev=1.1&view=markup |
1280 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc64.xml?rev=1.1&content-type=text/plain |
1281 |
|
1282 |
Index: handbook-ppc64.xml |
1283 |
=================================================================== |
1284 |
<?xml version='1.0' encoding='UTF-8'?> |
1285 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
1286 |
|
1287 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-ppc64.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
1288 |
|
1289 |
<book link="/doc/en/handbook/2007.1/handbook-ppc64.xml" disclaimer="draft"> |
1290 |
<title>Gentoo Linux 2007.1 PPC64 Networkless Handbook</title> |
1291 |
|
1292 |
<values> |
1293 |
<key id="arch">PPC64</key> |
1294 |
<key id="kernel-version">2.6.19-r7</key> |
1295 |
<key id="kernel-name">kernel-2.6.19-gentoo-r7</key> |
1296 |
<key id="online-book">2007.1/handbook-ppc64.xml</key> |
1297 |
<key id="release-dir">releases/ppc/2007.1/ppc64/</key> |
1298 |
<key id="stage3">stage3-ppc64-32ul-2007.1.tar.bz2</key> |
1299 |
<key id="CFLAGS">-O2 -pipe</key> |
1300 |
</values> |
1301 |
|
1302 |
<author title="Author"> |
1303 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
1304 |
</author> |
1305 |
<author title="Author"> |
1306 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
1307 |
</author> |
1308 |
<author title="Author"> |
1309 |
<mail link="uberlord@g.o">Roy Marples</mail> |
1310 |
</author> |
1311 |
<author title="Author"> |
1312 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
1313 |
</author> |
1314 |
<author title="Author"> |
1315 |
<mail link="chouser@g.o">Chris Houser</mail> |
1316 |
</author> |
1317 |
<author title="Author"> |
1318 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
1319 |
</author> |
1320 |
<author title="Gentoo x86 Developer"> |
1321 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
1322 |
</author> |
1323 |
<author title="Gentoo Alpha Developer"> |
1324 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
1325 |
</author><!-- Does not want to be listed on the rendered page |
1326 |
<author title="Gentoo Developer"> |
1327 |
Aron Griffis |
1328 |
</author> |
1329 |
--> |
1330 |
<author title="Gentoo AMD64 Developer"> |
1331 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
1332 |
</author> |
1333 |
<author title="Gentoo HPPA developer"> |
1334 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
1335 |
</author> |
1336 |
<author title="Gentoo PPC developer"> |
1337 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
1338 |
</author> |
1339 |
<author title="Gentoo SPARC developer"> |
1340 |
<mail link="blademan@g.o">Joe Kallar</mail> |
1341 |
</author> |
1342 |
<author title="Editor"> |
1343 |
<mail link="zhen@g.o">John P. Davis</mail> |
1344 |
</author> |
1345 |
<author title="Editor">Pierre-Henri Jondot</author> |
1346 |
<author title="Editor"> |
1347 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
1348 |
</author> |
1349 |
<author title="Editor"> |
1350 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
1351 |
</author> |
1352 |
<author title="Editor"> |
1353 |
<mail link="seo@g.o">Jungmin Seo</mail> |
1354 |
</author> |
1355 |
<author title="Editor"> |
1356 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
1357 |
</author> |
1358 |
<author title="Editor"> |
1359 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
1360 |
</author> |
1361 |
<author title="Editor"> |
1362 |
<mail link="peitolm@g.o">Colin Morey</mail> |
1363 |
</author> |
1364 |
<author title="Editor"> |
1365 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
1366 |
</author> |
1367 |
<author title="Editor"> |
1368 |
<mail link="carl@g.o">Carl Anderson</mail> |
1369 |
</author> |
1370 |
<author title="Editor"> |
1371 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
1372 |
</author> |
1373 |
<author title="Editor"> |
1374 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
1375 |
</author> |
1376 |
<author title="Editor"> |
1377 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
1378 |
</author> |
1379 |
<author title="Editor"> |
1380 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
1381 |
</author> |
1382 |
<author title="Editor"> |
1383 |
<mail link="erwin@g.o">Erwin</mail> |
1384 |
</author> |
1385 |
<author title="Editor"> |
1386 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
1387 |
</author> |
1388 |
<author title="Editor"> |
1389 |
<mail link="neysx@g.o">Xavier Neys</mail> |
1390 |
</author> |
1391 |
<author title="Editor"> |
1392 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
1393 |
</author> |
1394 |
<author title="Reviewer"> |
1395 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
1396 |
</author> |
1397 |
<author title="Reviewer"> |
1398 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
1399 |
</author> |
1400 |
<author title="Reviewer"> |
1401 |
<mail link="antifa@g.o">Ken Nowack</mail> |
1402 |
</author> |
1403 |
<author title="Contributor"> |
1404 |
<mail link="pylon@g.o">Lars Weiler</mail> |
1405 |
</author> |
1406 |
<author title="Editor"> |
1407 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
1408 |
</author> |
1409 |
|
1410 |
<abstract> |
1411 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
1412 |
information. This handbook contains the installation instructions for a |
1413 |
networkless installation on PPC64 systems and parts about working with Gentoo |
1414 |
and Portage. |
1415 |
</abstract> |
1416 |
|
1417 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
1418 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
1419 |
<license/> |
1420 |
|
1421 |
<version>9.0</version> |
1422 |
<date>2007-06-06</date> |
1423 |
|
1424 |
<part> |
1425 |
<title>Installing Gentoo</title> |
1426 |
<abstract> |
1427 |
In this part you learn how to install Gentoo on your system. |
1428 |
</abstract> |
1429 |
|
1430 |
<chapter> |
1431 |
<title>About the Gentoo Linux Installation</title> |
1432 |
<abstract> |
1433 |
Users not familiar with Gentoo do not always know that choice is what |
1434 |
Gentoo is all about. |
1435 |
</abstract> |
1436 |
<include href="hb-install-about.xml"/> |
1437 |
</chapter> |
1438 |
|
1439 |
<chapter> |
1440 |
<title>Booting the Universal Installation CD</title> |
1441 |
<abstract> |
1442 |
Using our Universal Installation CD you can boot up your system into a running |
1443 |
environment that allows you to install Gentoo. |
1444 |
</abstract> |
1445 |
<include href="hb-install-ppc64-medium.xml"/> |
1446 |
</chapter> |
1447 |
|
1448 |
<chapter> |
1449 |
<title>Configuring your Network</title> |
1450 |
<abstract> |
1451 |
If you need networking, this is the place where the network (and Internet |
1452 |
connection) is configured. |
1453 |
</abstract> |
1454 |
<include href="hb-install-network.xml"/> |
1455 |
</chapter> |
1456 |
|
1457 |
<chapter> |
1458 |
<title>Preparing the Disks</title> |
1459 |
<abstract> |
1460 |
To be able to install Gentoo, you must create the necessary partitions. |
1461 |
This chapter describes how to partition a disk for future usage. |
1462 |
</abstract> |
1463 |
<include href="hb-install-ppc64-disk.xml"/> |
1464 |
</chapter> |
1465 |
|
1466 |
<chapter> |
1467 |
<title>Installing the Gentoo Installation Files</title> |
1468 |
<abstract> |
1469 |
In this chapter we describe how you extract a stage3 file and how to configure |
1470 |
Portage. |
1471 |
</abstract> |
1472 |
<include href="hb-install-stage.xml"/> |
1473 |
</chapter> |
1474 |
|
1475 |
<chapter> |
1476 |
<title>Chrooting into the Gentoo Base System</title> |
1477 |
<abstract> |
1478 |
Now that the stage3 file is extracted, we chroot into the new system and modify |
1479 |
the USE variable. |
1480 |
</abstract> |
1481 |
<include href="hb-install-system.xml"/> |
1482 |
</chapter> |
1483 |
|
1484 |
<chapter> |
1485 |
<title>Configuring the Kernel</title> |
1486 |
<abstract> |
1487 |
The Linux kernel is the core of every distribution. This chapter |
1488 |
explains how to configure your kernel. |
1489 |
</abstract> |
1490 |
<include href="hb-install-ppc64-kernel.xml"/> |
1491 |
</chapter> |
1492 |
|
1493 |
<chapter> |
1494 |
<title>Configuring your System</title> |
1495 |
<abstract> |
1496 |
You need to edit some important configuration files. In this chapter |
1497 |
you receive an overview of these files and an explanation on how to |
1498 |
proceed. |
1499 |
</abstract> |
1500 |
<include href="hb-install-config.xml"/> |
1501 |
</chapter> |
1502 |
|
1503 |
<chapter> |
1504 |
<title>Installing Necessary System Tools</title> |
1505 |
<abstract> |
1506 |
As mentioned before, Gentoo is about customization. In this chapter we help you |
1507 |
choose and install some important tools. |
1508 |
</abstract> |
1509 |
<include href="hb-install-tools.xml"/> |
1510 |
</chapter> |
1511 |
|
1512 |
<chapter> |
1513 |
<title>Configuring the Bootloader</title> |
1514 |
<abstract> |
1515 |
Several bootloaders exist. Each one of them has its own way of |
1516 |
configuration. In this chapter we'll describe all possibilities for you |
1517 |
and step you through the process of configuring a bootloader to your |
1518 |
needs. |
1519 |
</abstract> |
1520 |
<include href="hb-install-ppc64-bootloader.xml"/> |
1521 |
</chapter> |
1522 |
|
1523 |
|
1524 |
<chapter> |
1525 |
<title>Finalizing your Gentoo Installation</title> |
1526 |
<abstract> |
1527 |
You're almost done. We'll just create one (or more) users for your |
1528 |
system and (optionally) install prebuilt packages. |
1529 |
</abstract> |
1530 |
<include href="hb-install-finalise.xml"/> |
1531 |
</chapter> |
1532 |
|
1533 |
<chapter> |
1534 |
<title>Where to go from here?</title> |
1535 |
<abstract> |
1536 |
Now you have your Gentoo system, but what's next? |
1537 |
</abstract> |
1538 |
<include href="hb-install-next.xml"/> |
1539 |
</chapter> |
1540 |
</part> |
1541 |
|
1542 |
<part> |
1543 |
<title>Working with Gentoo</title> |
1544 |
<abstract> |
1545 |
Learn how to work with Gentoo: installing software, altering variables, changing |
1546 |
Portage behaviour etc. |
1547 |
</abstract> |
1548 |
|
1549 |
<chapter> |
1550 |
<title>A Portage Introduction</title> |
1551 |
<abstract> |
1552 |
This chapter explains the "simple" steps a user definitely needs to know to |
1553 |
maintain the software on his system. |
1554 |
</abstract> |
1555 |
<include href="../hb-working-portage.xml"/> |
1556 |
</chapter> |
1557 |
|
1558 |
<chapter> |
1559 |
<title>USE flags</title> |
1560 |
<abstract> |
1561 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
1562 |
work with USE flags and understand how USE flags interact with your system. |
1563 |
</abstract> |
1564 |
<include href="../hb-working-use.xml"/> |
1565 |
</chapter> |
1566 |
|
1567 |
<chapter> |
1568 |
<title>Portage Features</title> |
1569 |
<abstract> |
1570 |
Discover the features Portage has, such as support for distributed compiling, |
1571 |
ccache and more. |
1572 |
</abstract> |
1573 |
<include href="../hb-working-features.xml"/> |
1574 |
</chapter> |
1575 |
|
1576 |
<chapter> |
1577 |
<title>Initscripts</title> |
1578 |
<abstract> |
1579 |
Gentoo uses a special initscript format which, amongst other features, allows |
1580 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
1581 |
these aspects and explains how to deal with these scripts. |
1582 |
</abstract> |
1583 |
<include href="../hb-working-rcscripts.xml"/> |
1584 |
</chapter> |
1585 |
|
1586 |
<chapter> |
1587 |
<title>Environment Variables</title> |
1588 |
<abstract> |
1589 |
With Gentoo you can easily manage the environment variables for your system. |
1590 |
This chapter explains how you do that, and also describes frequently used |
1591 |
variables. |
1592 |
</abstract> |
1593 |
<include href="../hb-working-variables.xml"/> |
1594 |
</chapter> |
1595 |
</part> |
1596 |
|
1597 |
<part> |
1598 |
<title>Working with Portage</title> |
1599 |
<abstract> |
1600 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
1601 |
Software Management Tool. |
1602 |
</abstract> |
1603 |
|
1604 |
<chapter> |
1605 |
<title>Files and Directories</title> |
1606 |
<abstract> |
1607 |
Once you want to know Portage in-depth you need to know where it stores its |
1608 |
files and data. |
1609 |
</abstract> |
1610 |
<include href="../hb-portage-files.xml"/> |
1611 |
</chapter> |
1612 |
|
1613 |
<chapter> |
1614 |
<title>Configuring through Variables</title> |
1615 |
<abstract> |
1616 |
Portage is completely configurable through various variables you can set in the |
1617 |
configuration file or as environment variable. |
1618 |
</abstract> |
1619 |
<include href="../hb-portage-configuration.xml"/> |
1620 |
</chapter> |
1621 |
|
1622 |
<chapter> |
1623 |
<title>Mixing Software Branches</title> |
1624 |
<abstract> |
1625 |
Gentoo provides software separated in several branches, depending on stability |
1626 |
and architectural support. "Mixing Software Branches" inform you how these |
1627 |
branches can be configured and how you can override this separation |
1628 |
individually. |
1629 |
</abstract> |
1630 |
<include href="../hb-portage-branches.xml"/> |
1631 |
</chapter> |
1632 |
|
1633 |
<chapter> |
1634 |
<title>Additional Portage Tools</title> |
1635 |
<abstract> |
1636 |
Portage comes with a few extra tools that might make your Gentoo experience even |
1637 |
better. Read on to discover how to use dispatch-conf and other tools. |
1638 |
</abstract> |
1639 |
<include href="../hb-portage-tools.xml"/> |
1640 |
</chapter> |
1641 |
|
1642 |
<chapter> |
1643 |
<title>Diverting from the Official Tree</title> |
1644 |
<abstract> |
1645 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
1646 |
your own Portage tree, how to synchronise only the categories you want, inject |
1647 |
packages and more. |
1648 |
</abstract> |
1649 |
<include href="../hb-portage-diverttree.xml"/> |
1650 |
</chapter> |
1651 |
</part> |
1652 |
|
1653 |
<part> |
1654 |
<title>Gentoo Network Configuration</title> |
1655 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
1656 |
|
1657 |
<chapter> |
1658 |
<title>Getting Started</title> |
1659 |
<abstract> |
1660 |
A guide to quickly get your network interface up and running in most common |
1661 |
environments. |
1662 |
</abstract> |
1663 |
<include href="../hb-net-start.xml"/> |
1664 |
</chapter> |
1665 |
|
1666 |
<chapter> |
1667 |
<title>Advanced Configuration</title> |
1668 |
<abstract> |
1669 |
Here we learn about how the configuration works - you need to know this |
1670 |
before we learn about modular networking. |
1671 |
</abstract> |
1672 |
<include href="../hb-net-advanced.xml"/> |
1673 |
</chapter> |
1674 |
|
1675 |
<chapter> |
1676 |
<title>Modular Networking</title> |
1677 |
<abstract> |
1678 |
Gentoo provides you flexible networking - here you are told about choosing |
1679 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
1680 |
</abstract> |
1681 |
<include href="../hb-net-modules.xml"/> |
1682 |
</chapter> |
1683 |
|
1684 |
<chapter> |
1685 |
<title>Wireless Networking</title> |
1686 |
<abstract> |
1687 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
1688 |
</abstract> |
1689 |
<include href="../hb-net-wireless.xml"/> |
1690 |
</chapter> |
1691 |
|
1692 |
<chapter> |
1693 |
<title>Adding Functionality</title> |
1694 |
<abstract> |
1695 |
If you're feeling adventurous, you can add your own functions to networking. |
1696 |
</abstract> |
1697 |
<include href="../hb-net-functions.xml"/> |
1698 |
</chapter> |
1699 |
|
1700 |
<chapter> |
1701 |
<title>Network Management</title> |
1702 |
<abstract> |
1703 |
For laptop users or people who move their computer around different networks. |
1704 |
</abstract> |
1705 |
<include href="../hb-net-management.xml"/> |
1706 |
</chapter> |
1707 |
</part> |
1708 |
|
1709 |
</book> |
1710 |
|
1711 |
|
1712 |
|
1713 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-sparc.xml |
1714 |
|
1715 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-sparc.xml?rev=1.1&view=markup |
1716 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-sparc.xml?rev=1.1&content-type=text/plain |
1717 |
|
1718 |
Index: handbook-sparc.xml |
1719 |
=================================================================== |
1720 |
<?xml version='1.0' encoding='UTF-8'?> |
1721 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
1722 |
|
1723 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-sparc.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
1724 |
|
1725 |
<book link="/doc/en/handbook/2007.1/handbook-sparc.xml" disclaimer="draft"> |
1726 |
<title>Gentoo Linux 2007.1 SPARC Networkless Handbook</title> |
1727 |
|
1728 |
<values> |
1729 |
<key id="arch">SPARC</key> |
1730 |
<key id="kernel-name">kernel-2.6.22-gentoo-r9</key> |
1731 |
<key id="kernel-version">2.6.22-r9</key> |
1732 |
<key id="min-cd-name">install-sparc-minimal-2007.1.iso</key> |
1733 |
<key id="online-book">2007.1/handbook-sparc.xml</key> |
1734 |
<key id="release-dir">releases/sparc/2007.1/sparc64/</key> |
1735 |
<key id="stage3">stage3-sparc64-2007.1.tar.bz2</key> |
1736 |
<key id="CFLAGS">-O2 -mcpu=ultrasparc -pipe</key> |
1737 |
</values> |
1738 |
|
1739 |
<author title="Author"> |
1740 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
1741 |
</author> |
1742 |
<author title="Author"> |
1743 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
1744 |
</author> |
1745 |
<author title="Author"> |
1746 |
<mail link="uberlord@g.o">Roy Marples</mail> |
1747 |
</author> |
1748 |
<author title="Author"> |
1749 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
1750 |
</author> |
1751 |
<author title="Author"> |
1752 |
<mail link="chouser@g.o">Chris Houser</mail> |
1753 |
</author> |
1754 |
<author title="Author"> |
1755 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
1756 |
</author> |
1757 |
<author title="Gentoo x86 Developer"> |
1758 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
1759 |
</author> |
1760 |
<author title="Gentoo Alpha Developer"> |
1761 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
1762 |
</author><!-- Does not want to be listed on the rendered page |
1763 |
<author title="Gentoo Developer"> |
1764 |
Aron Griffis |
1765 |
</author> |
1766 |
--> |
1767 |
<author title="Gentoo AMD64 Developer"> |
1768 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
1769 |
</author> |
1770 |
<author title="Gentoo HPPA developer"> |
1771 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
1772 |
</author> |
1773 |
<author title="Gentoo PPC developer"> |
1774 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
1775 |
</author> |
1776 |
<author title="Gentoo SPARC developer"> |
1777 |
<mail link="blademan@g.o">Joe Kallar</mail> |
1778 |
</author> |
1779 |
<author title="Editor"> |
1780 |
<mail link="zhen@g.o">John P. Davis</mail> |
1781 |
</author> |
1782 |
<author title="Editor">Pierre-Henri Jondot</author> |
1783 |
<author title="Editor"> |
1784 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
1785 |
</author> |
1786 |
<author title="Editor"> |
1787 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
1788 |
</author> |
1789 |
<author title="Editor"> |
1790 |
<mail link="seo@g.o">Jungmin Seo</mail> |
1791 |
</author> |
1792 |
<author title="Editor"> |
1793 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
1794 |
</author> |
1795 |
<author title="Editor"> |
1796 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
1797 |
</author> |
1798 |
<author title="Editor"> |
1799 |
<mail link="peitolm@g.o">Colin Morey</mail> |
1800 |
</author> |
1801 |
<author title="Editor"> |
1802 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
1803 |
</author> |
1804 |
<author title="Editor"> |
1805 |
<mail link="carl@g.o">Carl Anderson</mail> |
1806 |
</author> |
1807 |
<author title="Editor"> |
1808 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
1809 |
</author> |
1810 |
<author title="Editor"> |
1811 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
1812 |
</author> |
1813 |
<author title="Editor"> |
1814 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
1815 |
</author> |
1816 |
<author title="Editor"> |
1817 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
1818 |
</author> |
1819 |
<author title="Editor"> |
1820 |
<mail link="erwin@g.o">Erwin</mail> |
1821 |
</author> |
1822 |
<author title="Editor"> |
1823 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
1824 |
</author> |
1825 |
<author title="Editor"> |
1826 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
1827 |
</author> |
1828 |
<author title="Editor"> |
1829 |
<mail link="neysx@g.o">Xavier Neys</mail> |
1830 |
</author> |
1831 |
<author title="Editor"> |
1832 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
1833 |
</author> |
1834 |
<author title="Reviewer"> |
1835 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
1836 |
</author> |
1837 |
<author title="Reviewer"> |
1838 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
1839 |
</author> |
1840 |
<author title="Reviewer"> |
1841 |
<mail link="antifa@g.o">Ken Nowack</mail> |
1842 |
</author> |
1843 |
<author title="Contributor"> |
1844 |
<mail link="pylon@g.o">Lars Weiler</mail> |
1845 |
</author> |
1846 |
|
1847 |
<abstract> |
1848 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
1849 |
information. This handbook contains the installation instructions for a |
1850 |
networkless installation on Sparc systems and parts about working with Gentoo |
1851 |
and Portage. |
1852 |
</abstract> |
1853 |
|
1854 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
1855 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
1856 |
<license/> |
1857 |
|
1858 |
<version>9.0</version> |
1859 |
<date>2007-06-06</date> |
1860 |
|
1861 |
<part> |
1862 |
<title>Installing Gentoo</title> |
1863 |
<abstract> |
1864 |
In this part you learn how to install Gentoo on your system. |
1865 |
</abstract> |
1866 |
|
1867 |
<chapter> |
1868 |
<title>About the Gentoo Linux Installation</title> |
1869 |
<abstract> |
1870 |
Users not familiar with Gentoo do not always know that choice is what |
1871 |
Gentoo is all about. |
1872 |
</abstract> |
1873 |
<include href="hb-install-about.xml"/> |
1874 |
</chapter> |
1875 |
|
1876 |
<chapter> |
1877 |
<title>Booting the Universal Installation CD</title> |
1878 |
<abstract> |
1879 |
Using our Universal Installation CD you can boot up your system into a running |
1880 |
environment that allows you to install Gentoo. |
1881 |
</abstract> |
1882 |
<include href="hb-install-sparc-medium.xml"/> |
1883 |
</chapter> |
1884 |
|
1885 |
<chapter> |
1886 |
<title>Configuring your Network</title> |
1887 |
<abstract> |
1888 |
If you need networking, this is the place where the network (and Internet |
1889 |
connection) is configured. |
1890 |
</abstract> |
1891 |
<include href="hb-install-network.xml"/> |
1892 |
</chapter> |
1893 |
|
1894 |
<chapter> |
1895 |
<title>Preparing the Disks</title> |
1896 |
<abstract> |
1897 |
To be able to install Gentoo, you must create the necessary partitions. |
1898 |
This chapter describes how to partition a disk for future usage. |
1899 |
</abstract> |
1900 |
<include href="hb-install-sparc-disk.xml"/> |
1901 |
</chapter> |
1902 |
|
1903 |
<chapter> |
1904 |
<title>Installing the Gentoo Installation Files</title> |
1905 |
<abstract> |
1906 |
In this chapter we describe how you extract a stage3 file and how to configure |
1907 |
Portage. |
1908 |
</abstract> |
1909 |
<include href="hb-install-stage.xml"/> |
1910 |
</chapter> |
1911 |
|
1912 |
<chapter> |
1913 |
<title>Chrooting into the Gentoo Base System</title> |
1914 |
<abstract> |
1915 |
Now that the stage3 file is extracted, we chroot into the new system and modify |
1916 |
the USE variable. |
1917 |
</abstract> |
1918 |
<include href="hb-install-system.xml"/> |
1919 |
</chapter> |
1920 |
|
1921 |
<chapter> |
1922 |
<title>Configuring the Kernel</title> |
1923 |
<abstract> |
1924 |
The Linux kernel is the core of every distribution. This chapter |
1925 |
explains how to configure your kernel. |
1926 |
</abstract> |
1927 |
<include href="hb-install-sparc-kernel.xml"/> |
1928 |
</chapter> |
1929 |
|
1930 |
<chapter> |
1931 |
<title>Configuring your System</title> |
1932 |
<abstract> |
1933 |
You need to edit some important configuration files. In this chapter |
1934 |
you receive an overview of these files and an explanation on how to |
1935 |
proceed. |
1936 |
</abstract> |
1937 |
<include href="hb-install-config.xml"/> |
1938 |
</chapter> |
1939 |
|
1940 |
<chapter> |
1941 |
<title>Installing Necessary System Tools</title> |
1942 |
<abstract> |
1943 |
As mentioned before, Gentoo is about customization. In this chapter we help you |
1944 |
choose and install some important tools. |
1945 |
</abstract> |
1946 |
<include href="hb-install-tools.xml"/> |
1947 |
</chapter> |
1948 |
|
1949 |
<chapter> |
1950 |
<title>Configuring the Bootloader</title> |
1951 |
<abstract> |
1952 |
The SPARC architecture uses the SILO bootloader to fire up your Linux system. In |
1953 |
this chapter we step you through the process of configuring this bootloader to |
1954 |
your needs. |
1955 |
</abstract> |
1956 |
<include href="hb-install-sparc-bootloader.xml"/> |
1957 |
</chapter> |
1958 |
|
1959 |
<chapter> |
1960 |
<title>Finalizing your Gentoo Installation</title> |
1961 |
<abstract> |
1962 |
You're almost done. We'll just create one (or more) users for your |
1963 |
system and (optionally) install prebuilt packages. |
1964 |
</abstract> |
1965 |
<include href="hb-install-finalise.xml"/> |
1966 |
</chapter> |
1967 |
|
1968 |
<chapter> |
1969 |
<title>Where to go from here?</title> |
1970 |
<abstract> |
1971 |
Now you have your Gentoo system, but what's next? |
1972 |
</abstract> |
1973 |
<include href="hb-install-next.xml"/> |
1974 |
</chapter> |
1975 |
</part> |
1976 |
|
1977 |
<part> |
1978 |
<title>Working with Gentoo</title> |
1979 |
<abstract> |
1980 |
Learn how to work with Gentoo: installing software, altering variables, changing |
1981 |
Portage behaviour etc. |
1982 |
</abstract> |
1983 |
|
1984 |
<chapter> |
1985 |
<title>A Portage Introduction</title> |
1986 |
<abstract> |
1987 |
This chapter explains the "simple" steps a user definitely needs to know to |
1988 |
maintain the software on his system. |
1989 |
</abstract> |
1990 |
<include href="../hb-working-portage.xml"/> |
1991 |
</chapter> |
1992 |
|
1993 |
<chapter> |
1994 |
<title>USE flags</title> |
1995 |
<abstract> |
1996 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
1997 |
work with USE flags and understand how USE flags interact with your system. |
1998 |
</abstract> |
1999 |
<include href="../hb-working-use.xml"/> |
2000 |
</chapter> |
2001 |
|
2002 |
<chapter> |
2003 |
<title>Portage Features</title> |
2004 |
<abstract> |
2005 |
Discover the features Portage has, such as support for distributed compiling, |
2006 |
ccache and more. |
2007 |
</abstract> |
2008 |
<include href="../hb-working-features.xml"/> |
2009 |
</chapter> |
2010 |
|
2011 |
<chapter> |
2012 |
<title>Initscripts</title> |
2013 |
<abstract> |
2014 |
Gentoo uses a special initscript format which, amongst other features, allows |
2015 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
2016 |
these aspects and explains how to deal with these scripts. |
2017 |
</abstract> |
2018 |
<include href="../hb-working-rcscripts.xml"/> |
2019 |
</chapter> |
2020 |
|
2021 |
<chapter> |
2022 |
<title>Environment Variables</title> |
2023 |
<abstract> |
2024 |
With Gentoo you can easily manage the environment variables for your system. |
2025 |
This chapter explains how you do that, and also describes frequently used |
2026 |
variables. |
2027 |
</abstract> |
2028 |
<include href="../hb-working-variables.xml"/> |
2029 |
</chapter> |
2030 |
</part> |
2031 |
|
2032 |
<part> |
2033 |
<title>Working with Portage</title> |
2034 |
<abstract> |
2035 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
2036 |
Software Management Tool. |
2037 |
</abstract> |
2038 |
|
2039 |
<chapter> |
2040 |
<title>Files and Directories</title> |
2041 |
<abstract> |
2042 |
Once you want to know Portage in-depth you need to know where it stores its |
2043 |
files and data. |
2044 |
</abstract> |
2045 |
<include href="../hb-portage-files.xml"/> |
2046 |
</chapter> |
2047 |
|
2048 |
<chapter> |
2049 |
<title>Configuring through Variables</title> |
2050 |
<abstract> |
2051 |
Portage is completely configurable through various variables you can set in the |
2052 |
configuration file or as environment variable. |
2053 |
</abstract> |
2054 |
<include href="../hb-portage-configuration.xml"/> |
2055 |
</chapter> |
2056 |
|
2057 |
<chapter> |
2058 |
<title>Mixing Software Branches</title> |
2059 |
<abstract> |
2060 |
Gentoo provides software separated in several branches, depending on stability |
2061 |
and architectural support. "Mixing Software Branches" inform you how these |
2062 |
branches can be configured and how you can override this separation |
2063 |
individually. |
2064 |
</abstract> |
2065 |
<include href="../hb-portage-branches.xml"/> |
2066 |
</chapter> |
2067 |
|
2068 |
<chapter> |
2069 |
<title>Additional Portage Tools</title> |
2070 |
<abstract> |
2071 |
Portage comes with a few extra tools that might make your Gentoo experience even |
2072 |
better. Read on to discover how to use dispatch-conf and other tools. |
2073 |
</abstract> |
2074 |
<include href="../hb-portage-tools.xml"/> |
2075 |
</chapter> |
2076 |
|
2077 |
<chapter> |
2078 |
<title>Diverting from the Official Tree</title> |
2079 |
<abstract> |
2080 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
2081 |
your own Portage tree, how to synchronise only the categories you want, inject |
2082 |
packages and more. |
2083 |
</abstract> |
2084 |
<include href="../hb-portage-diverttree.xml"/> |
2085 |
</chapter> |
2086 |
</part> |
2087 |
|
2088 |
<part> |
2089 |
<title>Gentoo Network Configuration</title> |
2090 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
2091 |
|
2092 |
<chapter> |
2093 |
<title>Getting Started</title> |
2094 |
<abstract> |
2095 |
A guide to quickly get your network interface up and running in most common |
2096 |
environments. |
2097 |
</abstract> |
2098 |
<include href="../hb-net-start.xml"/> |
2099 |
</chapter> |
2100 |
|
2101 |
<chapter> |
2102 |
<title>Advanced Configuration</title> |
2103 |
<abstract> |
2104 |
Here we learn about how the configuration works - you need to know this |
2105 |
before we learn about modular networking. |
2106 |
</abstract> |
2107 |
<include href="../hb-net-advanced.xml"/> |
2108 |
</chapter> |
2109 |
|
2110 |
<chapter> |
2111 |
<title>Modular Networking</title> |
2112 |
<abstract> |
2113 |
Gentoo provides you flexible networking - here you are told about choosing |
2114 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
2115 |
</abstract> |
2116 |
<include href="../hb-net-modules.xml"/> |
2117 |
</chapter> |
2118 |
|
2119 |
<chapter> |
2120 |
<title>Wireless Networking</title> |
2121 |
<abstract> |
2122 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
2123 |
</abstract> |
2124 |
<include href="../hb-net-wireless.xml"/> |
2125 |
</chapter> |
2126 |
|
2127 |
<chapter> |
2128 |
<title>Adding Functionality</title> |
2129 |
<abstract> |
2130 |
If you're feeling adventurous, you can add your own functions to networking. |
2131 |
</abstract> |
2132 |
<include href="../hb-net-functions.xml"/> |
2133 |
</chapter> |
2134 |
|
2135 |
<chapter> |
2136 |
<title>Network Management</title> |
2137 |
<abstract> |
2138 |
For laptop users or people who move their computer around different networks. |
2139 |
</abstract> |
2140 |
<include href="../hb-net-management.xml"/> |
2141 |
</chapter> |
2142 |
</part> |
2143 |
|
2144 |
</book> |
2145 |
|
2146 |
|
2147 |
|
2148 |
1.1 xml/htdocs/doc/en/handbook/2008.0/handbook-x86.xml |
2149 |
|
2150 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-x86.xml?rev=1.1&view=markup |
2151 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-x86.xml?rev=1.1&content-type=text/plain |
2152 |
|
2153 |
Index: handbook-x86.xml |
2154 |
=================================================================== |
2155 |
<?xml version='1.0' encoding='UTF-8'?> |
2156 |
<!DOCTYPE book SYSTEM "/dtd/book.dtd"> |
2157 |
|
2158 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/handbook-x86.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
2159 |
|
2160 |
<book link="/doc/en/handbook/2007.1/handbook-x86.xml" disclaimer="draft"> |
2161 |
<title>Gentoo Linux 2007.1 x86 Networkless Handbook</title> |
2162 |
|
2163 |
<values> |
2164 |
<key id="arch">x86</key> |
2165 |
<key id="release-dir">releases/x86/2007.1/</key> |
2166 |
<key id="online-book">2007.1/handbook-x86.xml</key> |
2167 |
</values> |
2168 |
|
2169 |
<author title="Author"> |
2170 |
<mail link="swift@g.o">Sven Vermeulen</mail> |
2171 |
</author> |
2172 |
<author title="Author"> |
2173 |
<mail link="g2boojum@g.o">Grant Goodyear</mail> |
2174 |
</author> |
2175 |
<author title="Author"> |
2176 |
<mail link="uberlord@g.o">Roy Marples</mail> |
2177 |
</author> |
2178 |
<author title="Author"> |
2179 |
<mail link="drobbins@g.o">Daniel Robbins</mail> |
2180 |
</author> |
2181 |
<author title="Author"> |
2182 |
<mail link="chouser@g.o">Chris Houser</mail> |
2183 |
</author> |
2184 |
<author title="Author"> |
2185 |
<mail link="jerry@g.o">Jerry Alexandratos</mail> |
2186 |
</author> |
2187 |
<author title="Author"> |
2188 |
<mail link="nightmorph@g.o">Joshua Saddler</mail> |
2189 |
</author> |
2190 |
<author title="Gentoo x86 Developer"> |
2191 |
<mail link="seemant@g.o">Seemant Kulleen</mail> |
2192 |
</author> |
2193 |
<author title="Gentoo Alpha Developer"> |
2194 |
<mail link="taviso@g.o">Tavis Ormandy</mail> |
2195 |
</author><!-- Does not want to be listed on the rendered page |
2196 |
<author title="Gentoo Developer"> |
2197 |
Aron Griffis |
2198 |
</author> |
2199 |
--> |
2200 |
<author title="Gentoo AMD64 Developer"> |
2201 |
<mail link="jhuebel@g.o">Jason Huebel</mail> |
2202 |
</author> |
2203 |
<author title="Gentoo HPPA developer"> |
2204 |
<mail link="gmsoft@g.o">Guy Martin</mail> |
2205 |
</author> |
2206 |
<author title="Gentoo PPC developer"> |
2207 |
<mail link="pvdabeel@g.o">Pieter Van den Abeele</mail> |
2208 |
</author> |
2209 |
<author title="Gentoo SPARC developer"> |
2210 |
<mail link="blademan@g.o">Joe Kallar</mail> |
2211 |
</author> |
2212 |
<author title="Editor"> |
2213 |
<mail link="zhen@g.o">John P. Davis</mail> |
2214 |
</author> |
2215 |
<author title="Editor">Pierre-Henri Jondot</author> |
2216 |
<author title="Editor"> |
2217 |
<mail link="stocke2@g.o">Eric Stockbridge</mail> |
2218 |
</author> |
2219 |
<author title="Editor"> |
2220 |
<mail link="rajiv@g.o">Rajiv Manglani</mail> |
2221 |
</author> |
2222 |
<author title="Editor"> |
2223 |
<mail link="seo@g.o">Jungmin Seo</mail> |
2224 |
</author> |
2225 |
<author title="Editor"> |
2226 |
<mail link="zhware@g.o">Stoyan Zhekov</mail> |
2227 |
</author> |
2228 |
<author title="Editor"> |
2229 |
<mail link="jhhudso@g.o">Jared Hudson</mail> |
2230 |
</author> |
2231 |
<author title="Editor"> |
2232 |
<mail link="peitolm@g.o">Colin Morey</mail> |
2233 |
</author> |
2234 |
<author title="Editor"> |
2235 |
<mail link="peesh@g.o">Jorge Paulo</mail> |
2236 |
</author> |
2237 |
<author title="Editor"> |
2238 |
<mail link="carl@g.o">Carl Anderson</mail> |
2239 |
</author> |
2240 |
<author title="Editor"> |
2241 |
<mail link="avenj@g.o">Jon Portnoy</mail> |
2242 |
</author> |
2243 |
<author title="Editor"> |
2244 |
<mail link="klasikahl@g.o">Zack Gilburd</mail> |
2245 |
</author> |
2246 |
<author title="Editor"> |
2247 |
<mail link="jmorgan@g.o">Jack Morgan</mail> |
2248 |
</author> |
2249 |
<author title="Editor"> |
2250 |
<mail link="bennyc@g.o">Benny Chuang</mail> |
2251 |
</author> |
2252 |
<author title="Editor"> |
2253 |
<mail link="erwin@g.o">Erwin</mail> |
2254 |
</author> |
2255 |
<author title="Editor"> |
2256 |
<mail link="kumba@g.o">Joshua Kinard</mail> |
2257 |
</author> |
2258 |
<author title="Editor"> |
2259 |
<mail link="dertobi123@g.o">Tobias Scherbaum</mail> |
2260 |
</author> |
2261 |
<author title="Editor"> |
2262 |
<mail link="neysx@g.o">Xavier Neys</mail> |
2263 |
</author> |
2264 |
<author title="Editor"> |
2265 |
<mail link="fox2mike@g.o">Shyam Mani</mail> |
2266 |
</author> |
2267 |
<author title="Reviewer"> |
2268 |
<mail link="gerrynjr@g.o">Gerald J. Normandin Jr.</mail> |
2269 |
</author> |
2270 |
<author title="Reviewer"> |
2271 |
<mail link="dberkholz@g.o">Donnie Berkholz</mail> |
2272 |
</author> |
2273 |
<author title="Reviewer"> |
2274 |
<mail link="antifa@g.o">Ken Nowack</mail> |
2275 |
</author> |
2276 |
<author title="Contributor"> |
2277 |
<mail link="pylon@g.o">Lars Weiler</mail> |
2278 |
</author> |
2279 |
|
2280 |
<abstract> |
2281 |
This is the Gentoo Networkless Handbook, an effort to centralise Gentoo/Linux |
2282 |
information. This handbook contains the installation instructions for a |
2283 |
networkless installation on x86 systems and parts about working with Gentoo and |
2284 |
Portage. |
2285 |
</abstract> |
2286 |
|
2287 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
2288 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
2289 |
<license/> |
2290 |
|
2291 |
<version>9.0</version> |
2292 |
<date>2007-06-06</date> |
2293 |
|
2294 |
<part> |
2295 |
<title>Installing Gentoo</title> |
2296 |
<abstract> |
2297 |
In this part you learn how to install Gentoo on your system. |
2298 |
</abstract> |
2299 |
|
2300 |
<chapter> |
2301 |
<title>About the Gentoo Linux Installation</title> |
2302 |
<abstract> |
2303 |
Users not familiar with Gentoo do not always know that choice is what |
2304 |
Gentoo is all about. |
2305 |
</abstract> |
2306 |
<include href="hb-install-about.xml"/> |
2307 |
</chapter> |
2308 |
|
2309 |
<chapter> |
2310 |
<title>Booting the Installer LiveCD</title> |
2311 |
<abstract> |
2312 |
Using our Installer LiveCD you can boot up your system into a running |
2313 |
environment that allows you to install Gentoo. |
2314 |
</abstract> |
2315 |
<include href="hb-install-gli-medium.xml"/> |
2316 |
</chapter> |
2317 |
|
2318 |
<chapter> |
2319 |
<title>Using the GTK+ based Gentoo Linux Installer</title> |
2320 |
<abstract> |
2321 |
You now have an option of using our graphical installer to install Gentoo. |
2322 |
Configure the options you need through an easy to use GUI and you're ready to |
2323 |
go. |
2324 |
</abstract> |
2325 |
<include href="hb-install-gtkfe.xml" /> |
2326 |
</chapter> |
2327 |
|
2328 |
<chapter> |
2329 |
<title>Using the Dialog based Gentoo Linux Installer</title> |
2330 |
<abstract> |
2331 |
You also have an option of using our text based installer to install Gentoo. |
2332 |
Configure the options you need through an easy to use set of menus and you're |
2333 |
ready to go. |
2334 |
</abstract> |
2335 |
<include href="hb-install-gli-dialog.xml" /> |
2336 |
</chapter> |
2337 |
|
2338 |
<chapter> |
2339 |
<title>Where to go from here?</title> |
2340 |
<abstract> |
2341 |
Now you have your Gentoo system, but what's next? |
2342 |
</abstract> |
2343 |
<include href="hb-install-next.xml"/> |
2344 |
</chapter> |
2345 |
</part> |
2346 |
|
2347 |
<part> |
2348 |
<title>Working with Gentoo</title> |
2349 |
<abstract> |
2350 |
Learn how to work with Gentoo: installing software, altering variables, |
2351 |
changing Portage behaviour etc. |
2352 |
</abstract> |
2353 |
|
2354 |
<chapter> |
2355 |
<title>A Portage Introduction</title> |
2356 |
<abstract> |
2357 |
This chapter explains the "simple" steps a user definitely needs to know to |
2358 |
maintain the software on his system. |
2359 |
</abstract> |
2360 |
<include href="../hb-working-portage.xml"/> |
2361 |
</chapter> |
2362 |
|
2363 |
<chapter> |
2364 |
<title>USE flags</title> |
2365 |
<abstract> |
2366 |
USE flags are a very important aspect of Gentoo. In this chapter, you learn to |
2367 |
work with USE flags and understand how USE flags interact with your system. |
2368 |
</abstract> |
2369 |
<include href="../hb-working-use.xml"/> |
2370 |
</chapter> |
2371 |
|
2372 |
<chapter> |
2373 |
<title>Portage Features</title> |
2374 |
<abstract> |
2375 |
Discover the features Portage has, such as support for distributed compiling, |
2376 |
ccache and more. |
2377 |
</abstract> |
2378 |
<include href="../hb-working-features.xml"/> |
2379 |
</chapter> |
2380 |
|
2381 |
<chapter> |
2382 |
<title>Initscripts</title> |
2383 |
<abstract> |
2384 |
Gentoo uses a special initscript format which, amongst other features, allows |
2385 |
dependency-driven decisions and virtual initscripts. This chapter explains all |
2386 |
these aspects and explains how to deal with these scripts. |
2387 |
</abstract> |
2388 |
<include href="../hb-working-rcscripts.xml"/> |
2389 |
</chapter> |
2390 |
|
2391 |
<chapter> |
2392 |
<title>Environment Variables</title> |
2393 |
<abstract> |
2394 |
With Gentoo you can easily manage the environment variables for your system. |
2395 |
This chapter explains how you do that, and also describes frequently used |
2396 |
variables. |
2397 |
</abstract> |
2398 |
<include href="../hb-working-variables.xml"/> |
2399 |
</chapter> |
2400 |
</part> |
2401 |
|
2402 |
<part> |
2403 |
<title>Working with Portage</title> |
2404 |
<abstract> |
2405 |
"Working with Portage" provides an in-depth coverage of Portage, Gentoo's |
2406 |
Software Management Tool. |
2407 |
</abstract> |
2408 |
|
2409 |
<chapter> |
2410 |
<title>Files and Directories</title> |
2411 |
<abstract> |
2412 |
Once you want to know Portage in-depth you need to know where it stores its |
2413 |
files and data. |
2414 |
</abstract> |
2415 |
<include href="../hb-portage-files.xml"/> |
2416 |
</chapter> |
2417 |
|
2418 |
<chapter> |
2419 |
<title>Configuring through Variables</title> |
2420 |
<abstract> |
2421 |
Portage is completely configurable through various variables you can set in the |
2422 |
configuration file or as environment variable. |
2423 |
</abstract> |
2424 |
<include href="../hb-portage-configuration.xml"/> |
2425 |
</chapter> |
2426 |
|
2427 |
<chapter> |
2428 |
<title>Mixing Software Branches</title> |
2429 |
<abstract> |
2430 |
Gentoo provides software separated in several branches, depending on stability |
2431 |
and architectural support. "Mixing Software Branches" inform you how these |
2432 |
branches can be configured and how you can override this separation |
2433 |
individually. |
2434 |
</abstract> |
2435 |
<include href="../hb-portage-branches.xml"/> |
2436 |
</chapter> |
2437 |
|
2438 |
<chapter> |
2439 |
<title>Additional Portage Tools</title> |
2440 |
<abstract> |
2441 |
Portage comes with a few extra tools that might make your Gentoo experience even |
2442 |
better. Read on to discover how to use dispatch-conf and other tools. |
2443 |
</abstract> |
2444 |
<include href="../hb-portage-tools.xml"/> |
2445 |
</chapter> |
2446 |
|
2447 |
<chapter> |
2448 |
<title>Diverting from the Official Tree</title> |
2449 |
<abstract> |
2450 |
"Diverting from the Official Tree" gives you some tips and tricks on how to use |
2451 |
your own Portage tree, how to synchronise only the categories you want, inject |
2452 |
packages and more. |
2453 |
</abstract> |
2454 |
<include href="../hb-portage-diverttree.xml"/> |
2455 |
</chapter> |
2456 |
</part> |
2457 |
|
2458 |
<part> |
2459 |
<title>Gentoo Network Configuration</title> |
2460 |
<abstract>A comprehensive guide to Networking in Gentoo.</abstract> |
2461 |
|
2462 |
<chapter> |
2463 |
<title>Getting Started</title> |
2464 |
<abstract> |
2465 |
A guide to quickly get your network interface up and running in most common |
2466 |
environments. |
2467 |
</abstract> |
2468 |
<include href="../hb-net-start.xml"/> |
2469 |
</chapter> |
2470 |
|
2471 |
<chapter> |
2472 |
<title>Advanced Configuration</title> |
2473 |
<abstract> |
2474 |
Here we learn about how the configuration works - you need to know this |
2475 |
before we learn about modular networking. |
2476 |
</abstract> |
2477 |
<include href="../hb-net-advanced.xml"/> |
2478 |
</chapter> |
2479 |
|
2480 |
<chapter> |
2481 |
<title>Modular Networking</title> |
2482 |
<abstract> |
2483 |
Gentoo provides you flexible networking - here you are told about choosing |
2484 |
different DHCP clients, setting up bonding, bridging, VLANs and more. |
2485 |
</abstract> |
2486 |
<include href="../hb-net-modules.xml"/> |
2487 |
</chapter> |
2488 |
|
2489 |
<chapter> |
2490 |
<title>Wireless Networking</title> |
2491 |
<abstract> |
2492 |
Wireless isn't straight-forward. Hopefully we'll get you working! |
2493 |
</abstract> |
2494 |
<include href="../hb-net-wireless.xml"/> |
2495 |
</chapter> |
2496 |
|
2497 |
<chapter> |
2498 |
<title>Adding Functionality</title> |
2499 |
<abstract> |
2500 |
If you're feeling adventurous, you can add your own functions to networking. |
2501 |
</abstract> |
2502 |
<include href="../hb-net-functions.xml"/> |
2503 |
</chapter> |
2504 |
|
2505 |
<chapter> |
2506 |
<title>Network Management</title> |
2507 |
<abstract> |
2508 |
For laptop users or people who move their computer around different networks. |
2509 |
</abstract> |
2510 |
<include href="../hb-net-management.xml"/> |
2511 |
</chapter> |
2512 |
</part> |
2513 |
|
2514 |
</book> |
2515 |
|
2516 |
|
2517 |
|
2518 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-about.xml |
2519 |
|
2520 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-about.xml?rev=1.1&view=markup |
2521 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-about.xml?rev=1.1&content-type=text/plain |
2522 |
|
2523 |
Index: hb-install-about.xml |
2524 |
=================================================================== |
2525 |
<?xml version='1.0' encoding='UTF-8'?> |
2526 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2527 |
|
2528 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
2529 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
2530 |
|
2531 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-about.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
2532 |
|
2533 |
<sections> |
2534 |
|
2535 |
<version>9.0</version> |
2536 |
<date>2007-06-02</date> |
2537 |
|
2538 |
<section> |
2539 |
<title>Introduction</title> |
2540 |
<subsection> |
2541 |
<title>Welcome!</title> |
2542 |
<body> |
2543 |
|
2544 |
<p> |
2545 |
First of all, <e>welcome</e> to Gentoo. You are about to enter the world |
2546 |
of customization and performance. When installing Gentoo, this is made clear to |
2547 |
you several times -- you can choose how much you want to compile yourself, how |
2548 |
to install Gentoo, what system logger you want, etc. |
2549 |
</p> |
2550 |
|
2551 |
<p> |
2552 |
Gentoo is a fast, modern meta-distribution with a clean and flexible |
2553 |
design. Gentoo is built around free software and doesn't hide from its |
2554 |
users what is beneath the hood. Portage, the package maintenance system |
2555 |
which Gentoo uses, is written in Python, meaning you can easily view and |
2556 |
modify the source code. Gentoo's packaging system uses source code |
2557 |
(although support for precompiled packages is included too) and |
2558 |
configuring Gentoo happens through regular text files. In other words, |
2559 |
openness everywhere. |
2560 |
</p> |
2561 |
|
2562 |
<p> |
2563 |
It is very important that you understand that <e>empowerment</e> is what makes |
2564 |
Gentoo run. We try not to force anything on our users and try our best to |
2565 |
empower you to make the choices you wish. If you feel a change should be made, |
2566 |
please file a <uri link="http://bugs.gentoo.org">bug report</uri> about it. |
2567 |
</p> |
2568 |
|
2569 |
</body> |
2570 |
</subsection> |
2571 |
<!-- for all arches that DO have an installer liveCD --> |
2572 |
<subsection test="contains('AMD64 x86', func:keyval('arch'))"> |
2573 |
<title>How do I go about Installing Gentoo?</title> |
2574 |
<body> |
2575 |
|
2576 |
<p> |
2577 |
Gentoo Linux comes with two versions of an easy to use Installer. A GTK+ based |
2578 |
installer (for use with an X based environment) and a Dialog based installer for |
2579 |
use on the console. Chapter 3 of the handbook deals with the GTK+ based |
2580 |
installer while Chapter 4 is for the Dialog based one. |
2581 |
</p> |
2582 |
|
2583 |
</body> |
2584 |
</subsection> |
2585 |
<!-- for all arches that do NOT have an installer liveCD --> |
2586 |
<subsection test="not(contains('AMD64 x86', func:keyval('arch')))"> |
2587 |
<title>How is the Installation Structured?</title> |
2588 |
<body> |
2589 |
|
2590 |
<p> |
2591 |
The Gentoo Installation can be seen as a 10-step procedure, |
2592 |
corresponding to chapters 2 - 11. Every step results in |
2593 |
a certain state: |
2594 |
</p> |
2595 |
|
2596 |
<ul> |
2597 |
<li> |
2598 |
After step 1, you are in a working environment ready to install Gentoo |
2599 |
</li> |
2600 |
<li> |
2601 |
After step 2, your internet connection is prepared in case you need it (this |
2602 |
is however optional) |
2603 |
</li> |
2604 |
<li> |
2605 |
After step 3, your hard disks are initialized to house your Gentoo |
2606 |
installation |
2607 |
</li> |
2608 |
<li> |
2609 |
After step 4, your installation environment is prepared and you are |
2610 |
ready to chroot into the new environment |
2611 |
</li> |
2612 |
<li> |
2613 |
After step 5, core packages, which are the same on all Gentoo |
2614 |
installations, are installed |
2615 |
</li> |
2616 |
<li> |
2617 |
After step 6, you have compiled your Linux kernel |
2618 |
</li> |
2619 |
<li> |
2620 |
After step 7, you have written most of your Gentoo system |
2621 |
configuration files |
2622 |
</li> |
2623 |
<li> |
2624 |
After step 8, necessary system tools (which you can choose from a nice |
2625 |
list) are installed |
2626 |
</li> |
2627 |
<li> |
2628 |
After step 9, your choice of bootloader has been installed and |
2629 |
configured and you are logged in into your new Gentoo installation |
2630 |
</li> |
2631 |
<li> |
2632 |
After step 10, your Gentoo Linux environment is ready to be explored |
2633 |
</li> |
2634 |
</ul> |
2635 |
|
2636 |
<p> |
2637 |
When you are given a certain choice, we try our best to explain what the pros |
2638 |
and cons are. We will continue then with a default |
2639 |
choice, identified by "Default: " in the title. The other |
2640 |
possibilities are marked by "Alternative: ". Do <e>not</e> |
2641 |
think that the default is what we recommend. It is however what we |
2642 |
believe most users will use. |
2643 |
</p> |
2644 |
|
2645 |
<p> |
2646 |
Sometimes you can pursue an optional step. Such steps are marked as |
2647 |
"Optional: " and are therefore not needed to install Gentoo. |
2648 |
However, some optional steps are dependant on a previous decision you |
2649 |
made. We will inform you when this happens, both when you make the |
2650 |
decision, and right before the optional step is described. |
2651 |
</p> |
2652 |
|
2653 |
</body> |
2654 |
</subsection> |
2655 |
<subsection> |
2656 |
<title>What are my Options?</title> |
2657 |
<body> |
2658 |
|
2659 |
<p> |
2660 |
You can install Gentoo in many different ways. You can download and install from |
2661 |
one of our Installation CDs, from an existing distribution, |
2662 |
from a bootable CD (such as Knoppix), from a netbooted environment, from a |
2663 |
rescue floppy, etc. |
2664 |
</p> |
2665 |
|
2666 |
<p> |
2667 |
This document covers the installation using a Gentoo Linux Installation CD, a |
2668 |
bootable CD that contains everything you need to get Gentoo Linux up and |
2669 |
running. There are two types of Installation CDs, the InstallCD and the |
2670 |
Installer LiveCD. The InstallCD is a minimal environment which contains only |
2671 |
those packages necessary for installing Gentoo Linux. The LiveCD is a complete |
2672 |
Gentoo Linux environment and can be used for multiple tasks, one of which is |
2673 |
installing Gentoo Linux. The LiveCD is not available on all architectures at |
2674 |
this time. If your architecture does not have a LiveCD, then this document will |
2675 |
refer to the Universal InstallCD for you. |
2676 |
</p> |
2677 |
|
2678 |
<p> |
2679 |
This installation approach however does not immediately use the latest version |
2680 |
of the available packages; if you want this you should check out the |
2681 |
Installation Instructions inside our <uri |
2682 |
link="/doc/en/handbook/index.xml">Gentoo Linux Handbooks</uri>. |
2683 |
</p> |
2684 |
|
2685 |
<p> |
2686 |
For help on the other installation approaches, |
2687 |
please read our <uri link="/doc/en/altinstall.xml">Alternative Installation |
2688 |
Guide</uri>. We also provide a <uri |
2689 |
link="/doc/en/gentoo-x86-tipsntricks.xml">Gentoo Installation Tips & |
2690 |
Tricks</uri> document that might be useful to read as well. If you feel that |
2691 |
the current installation instructions are too elaborate, feel free to use our |
2692 |
Quick Installation Guide available from our <uri |
2693 |
link="/doc/en/index.xml">Documentation Resources</uri> if your architecture |
2694 |
has such a document available. |
2695 |
</p> |
2696 |
|
2697 |
</body> |
2698 |
</subsection> |
2699 |
<subsection> |
2700 |
<title>Troubles?</title> |
2701 |
<body> |
2702 |
|
2703 |
<p> |
2704 |
If you find a problem in the installation (or in the installation |
2705 |
documentation), please check the errata from our <uri |
2706 |
link="/proj/en/releng/">Gentoo Release Engineering Project</uri>, |
2707 |
visit our <uri link="http://bugs.gentoo.org">bug tracking |
2708 |
system</uri> and check if the bug is known. If not, please create a bug report |
2709 |
for it so we can take care of it. Do not be afraid of the developers who are |
2710 |
assigned to (your) bugs -- they generally don't eat people. |
2711 |
</p> |
2712 |
|
2713 |
<p> |
2714 |
Note though that, although the document you are now reading is |
2715 |
architecture-specific, it will contain references to other architectures as |
2716 |
well. This is due to the fact that large parts of the Gentoo Handbook use source |
2717 |
code that is common for all architectures (to avoid duplication of efforts and |
2718 |
starvation of development resources). We will try to keep this to a minimum |
2719 |
to avoid confusion. |
2720 |
</p> |
2721 |
|
2722 |
<p> |
2723 |
If you are uncertain if the problem is a user-problem (some error you |
2724 |
made despite having read the documentation carefully) or a |
2725 |
software-problem (some error we made despite having tested the |
2726 |
installation/documentation carefully) you are free to join #gentoo on |
2727 |
irc.freenode.net. Of course, you are welcome otherwise too :) |
2728 |
</p> |
2729 |
|
2730 |
<p> |
2731 |
If you have a question regarding Gentoo, check out our <uri |
2732 |
link="/doc/en/faq.xml">Frequently Asked |
2733 |
Questions</uri>, available from the <uri |
2734 |
link="/doc/en/">Gentoo Documentation</uri>. You can |
2735 |
also view the <uri |
2736 |
link="http://forums.gentoo.org/viewforum.php?f=40">FAQs</uri> on our |
2737 |
<uri link="http://forums.gentoo.org">forums</uri>. If you can't find the answer |
2738 |
there ask on #gentoo, our IRC-channel on irc.freenode.net. Yes, several of |
2739 |
us are freaks who sit on IRC :-) |
2740 |
</p> |
2741 |
|
2742 |
</body> |
2743 |
</subsection> |
2744 |
</section> |
2745 |
<section> |
2746 |
<title>Fast Installation using the Gentoo Reference Platform</title> |
2747 |
<subsection> |
2748 |
<title>What is the Gentoo Reference Platform?</title> |
2749 |
<body> |
2750 |
|
2751 |
<p> |
2752 |
The Gentoo Reference Platform, from now on abbreviated to GRP, is a snapshot of |
2753 |
prebuilt packages users (that means you!) can install during the installation |
2754 |
of Gentoo to speed up the installation process. The GRP consists of all |
2755 |
packages required to have a fully functional Gentoo installation. They are not |
2756 |
just the ones you need to have a base installation up to speed in no time, but |
2757 |
all lengthier builds (such as xorg-x11, GNOME, OpenOffice, Mozilla, ...) |
2758 |
are available as GRP packages too. |
2759 |
</p> |
2760 |
|
2761 |
<p> |
2762 |
However, these prebuilt packages aren't maintained during the lifetime of the |
2763 |
Gentoo distribution. They are snapshots released at every Gentoo release and |
2764 |
make it possible to have a functional environment in a short amount of time. You |
2765 |
can then upgrade your system in the background while working in your Gentoo |
2766 |
environment. |
2767 |
</p> |
2768 |
|
2769 |
</body> |
2770 |
</subsection> |
2771 |
<subsection> |
2772 |
<title>How Portage Handles GRP Packages</title> |
2773 |
<body> |
2774 |
|
2775 |
<p> |
2776 |
Your Portage tree - the collection of <e>ebuilds</e> (files that contain all |
2777 |
information about a package, such as its description, homepage, sourcecode URLs, |
2778 |
compilation instructions, dependencies, etc.) - must be synchronised with the |
2779 |
GRP set: the versions of the available ebuilds and their accompanying GRP |
2780 |
packages must match. |
2781 |
</p> |
2782 |
|
2783 |
<p> |
2784 |
For this reason you can only benefit from the GRP packages Gentoo provides while |
2785 |
performing the current installation approach. GRP is not available for those |
2786 |
interested in performing an installation using the latest versions of all |
2787 |
available packages. |
2788 |
</p> |
2789 |
|
2790 |
</body> |
2791 |
</subsection> |
2792 |
<subsection> |
2793 |
<title>Is GRP Available?</title> |
2794 |
<body> |
2795 |
|
2796 |
<p> |
2797 |
Not all architectures provide GRP packages. That doesn't mean GRP isn't |
2798 |
supported on the other architectures, but it means that we don't have the |
2799 |
resources to build and test the GRP packages. |
2800 |
</p> |
2801 |
|
2802 |
<p> |
2803 |
At present we provide GRP packages for the following architectures: |
2804 |
</p> |
2805 |
|
2806 |
<ul> |
2807 |
<li> |
2808 |
The <b>amd64</b> architecture (amd64). Note: The packages are available on |
2809 |
the Installer LiveCD. |
2810 |
</li> |
2811 |
<li> |
2812 |
The <b>ppc</b> architecture (ppc32) |
2813 |
</li> |
2814 |
<li> |
2815 |
The <b>sparc</b> architecture (sparc64) |
2816 |
</li> |
2817 |
<li> |
2818 |
The <b>x86</b> architecture (athlon, athlon-xp, athlon-mp, pentium-pro, |
2819 |
pentium2, pentium3, pentium4 and pentium-m) Note: The packages are for i686 |
2820 |
and are available on the Installer LiveCD. |
2821 |
</li> |
2822 |
</ul> |
2823 |
|
2824 |
<p> |
2825 |
If your architecture (or subarchitecture) isn't on this list, you are not |
2826 |
able to opt for a GRP installation. |
2827 |
</p> |
2828 |
|
2829 |
<p> |
2830 |
Now that this introduction is over, let's continue with <uri |
2831 |
link="?part=1&chap=2">Booting the Universal InstallCD/Installer |
2832 |
LiveCD</uri>. |
2833 |
</p> |
2834 |
|
2835 |
</body> |
2836 |
</subsection> |
2837 |
</section> |
2838 |
</sections> |
2839 |
|
2840 |
|
2841 |
|
2842 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-config.xml |
2843 |
|
2844 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-config.xml?rev=1.1&view=markup |
2845 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-config.xml?rev=1.1&content-type=text/plain |
2846 |
|
2847 |
Index: hb-install-config.xml |
2848 |
=================================================================== |
2849 |
<?xml version='1.0' encoding='UTF-8'?> |
2850 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2851 |
|
2852 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
2853 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
2854 |
|
2855 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-config.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
2856 |
|
2857 |
<sections> |
2858 |
|
2859 |
<version>9.0</version> |
2860 |
<date>2007-08-13</date> |
2861 |
|
2862 |
<section> |
2863 |
<title>Filesystem Information</title> |
2864 |
<subsection> |
2865 |
<title>What is fstab?</title> |
2866 |
<body> |
2867 |
|
2868 |
<p> |
2869 |
Under Linux, all partitions used by the system must be listed in |
2870 |
<path>/etc/fstab</path>. This file contains the mountpoints of those partitions |
2871 |
(where they are seen in the file system structure), how they should be mounted |
2872 |
and with what special options (automatically or not, whether users can mount |
2873 |
them or not, etc.) |
2874 |
</p> |
2875 |
|
2876 |
</body> |
2877 |
</subsection> |
2878 |
<subsection> |
2879 |
<title>Creating /etc/fstab</title> |
2880 |
<body> |
2881 |
|
2882 |
<p> |
2883 |
<path>/etc/fstab</path> uses a special syntax. Every line consists of six |
2884 |
fields, separated by whitespace (space(s), tabs or a mixture). Each field has |
2885 |
its own meaning: |
2886 |
</p> |
2887 |
|
2888 |
<ul> |
2889 |
<li> |
2890 |
The first field shows the <b>partition</b> described (the path to the device |
2891 |
file) |
2892 |
</li> |
2893 |
<li> |
2894 |
The second field shows the <b>mountpoint</b> at which the partition should be |
2895 |
mounted |
2896 |
</li> |
2897 |
<li> |
2898 |
The third field shows the <b>filesystem</b> used by the partition |
2899 |
</li> |
2900 |
<li> |
2901 |
The fourth field shows the <b>mountoptions</b> used by <c>mount</c> when it |
2902 |
wants to mount the partition. As every filesystem has its own mountoptions, |
2903 |
you are encouraged to read the mount man page (<c>man mount</c>) for a full |
2904 |
listing. Multiple mountoptions are comma-separated. |
2905 |
</li> |
2906 |
<li> |
2907 |
The fifth field is used by <c>dump</c> to determine if the partition needs to |
2908 |
be <b>dump</b>ed or not. You can generally leave this as <c>0</c> (zero). |
2909 |
</li> |
2910 |
<li> |
2911 |
The sixth field is used by <c>fsck</c> to determine the order in which |
2912 |
filesystems should be <b>check</b>ed if the system wasn't shut down properly. |
2913 |
The root filesystem should have <c>1</c> while the rest should have <c>2</c> |
2914 |
(or <c>0</c> if a filesystem check isn't necessary). |
2915 |
</li> |
2916 |
</ul> |
2917 |
|
2918 |
<impo> |
2919 |
The default <path>/etc/fstab</path> file provided by Gentoo <e>is not a valid |
2920 |
fstab file</e>. You <b>have to create</b> your own <path>/etc/fstab</path>. |
2921 |
</impo> |
2922 |
|
2923 |
<pre caption="Opening /etc/fstab"> |
2924 |
# <i>nano -w /etc/fstab</i> |
2925 |
</pre> |
2926 |
|
2927 |
</body> |
2928 |
<body test="func:keyval('/boot')"> |
2929 |
|
2930 |
<p> |
2931 |
Let us take a look at how we write down the options for the <path>/boot</path> |
2932 |
partition. This is just an example, if you didn't or couldn't create a |
2933 |
<path>/boot</path>, don't copy it. |
2934 |
</p> |
2935 |
|
2936 |
<p test="contains(func:keyval('/boot'), '/dev/hd')"> |
2937 |
In our default <keyval id="arch"/> partitioning example, <path>/boot</path> is |
2938 |
usually the <path><keyval id="/boot"/></path> partition (or |
2939 |
<path>/dev/sda*</path> if you use SCSI or SATA drives), with <c>ext2</c> as |
2940 |
filesystem. It needs to be checked during boot, so we would write down: |
2941 |
</p> |
2942 |
|
2943 |
<p test="contains(func:keyval('/boot'), '/dev/sd')"> |
2944 |
In our default <keyval id="arch"/> partitioning example, <path>/boot</path> is |
2945 |
usually the <path><keyval id="/boot"/></path> partition, with <c>ext2</c> as |
2946 |
filesystem. It needs to be checked during boot, so we would write down: |
2947 |
</p> |
2948 |
|
2949 |
<pre caption="An example /boot line for /etc/fstab"> |
2950 |
<keyval id="/boot"/> /boot ext2 defaults 1 2 |
2951 |
</pre> |
2952 |
|
2953 |
<p> |
2954 |
Some users don't want their <path>/boot</path> partition to be mounted |
2955 |
automatically to improve their system's security. Those people should |
2956 |
substitute <c>defaults</c> with <c>noauto</c>. This does mean that you need to |
2957 |
manually mount this partition every time you want to use it. |
2958 |
</p> |
2959 |
|
2960 |
</body> |
2961 |
<body> |
2962 |
|
2963 |
<p test="not(func:keyval('arch')='SPARC')"> |
2964 |
Add the rules that match your partitioning scheme and append rules for |
2965 |
your CD-ROM drive(s), and of course, if you have other partitions or |
2966 |
drives, for those too. |
2967 |
</p> |
2968 |
|
2969 |
<p test="func:keyval('arch')='SPARC'"> |
2970 |
Add the rules that match your partitioning schema and append rules for |
2971 |
<path>/proc/openprom</path>, for your CD-ROM drive(s), and of course, if |
2972 |
you have other partitions or drives, for those too. |
2973 |
</p> |
2974 |
|
2975 |
<p> |
2976 |
Now use the <e>example</e> below to create your <path>/etc/fstab</path>: |
2977 |
</p> |
2978 |
|
2979 |
<pre caption="A full /etc/fstab example" test="func:keyval('arch')='HPPA'"> |
2980 |
<keyval id="/boot"/> /boot ext2 defaults,noatime 1 2 |
2981 |
/dev/sda3 none swap sw 0 0 |
2982 |
/dev/sda4 / ext3 noatime 0 1 |
2983 |
|
2984 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
2985 |
</pre> |
2986 |
|
2987 |
<pre caption="A full /etc/fstab example" test="func:keyval('arch')='Alpha' or func:keyval('arch')='MIPS'"> |
2988 |
<keyval id="/boot"/> /boot ext2 defaults,noatime 1 2 |
2989 |
/dev/sda2 none swap sw 0 0 |
2990 |
/dev/sda3 / ext3 noatime 0 1 |
2991 |
|
2992 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
2993 |
</pre> |
2994 |
|
2995 |
<pre caption="A full /etc/fstab example" test="func:keyval('arch')='SPARC'"> |
2996 |
/dev/sda1 / ext3 noatime 0 1 |
2997 |
/dev/sda2 none swap sw 0 0 |
2998 |
/dev/sda4 /usr ext3 noatime 0 2 |
2999 |
/dev/sda5 /var ext3 noatime 0 2 |
3000 |
/dev/sda6 /home ext3 noatime 0 2 |
3001 |
|
3002 |
openprom /proc/openprom openpromfs defaults 0 0 |
3003 |
|
3004 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
3005 |
</pre> |
3006 |
|
3007 |
<note test="func:keyval('arch')='PPC'"> |
3008 |
There are important variations between PPC machine types. Please make sure you |
3009 |
adapt the following example to your system. |
3010 |
</note> |
3011 |
|
3012 |
<pre caption="A full /etc/fstab example" test="func:keyval('arch')='PPC'"> |
3013 |
/dev/hda4 / ext3 noatime 0 1 |
3014 |
/dev/hda3 none swap sw 0 0 |
3015 |
|
3016 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
3017 |
</pre> |
3018 |
|
3019 |
<pre caption="A full /etc/fstab example" test="func:keyval('arch')='PPC64'"> |
3020 |
/dev/sda4 / ext3 noatime 0 1 |
3021 |
/dev/sda3 none swap sw 0 0 |
3022 |
|
3023 |
/dev/cdrom /mnt/cdrom auto noauto,user 0 0 |
3024 |
</pre> |
3025 |
|
3026 |
<p> |
3027 |
<c>auto</c> makes <c>mount</c> guess for the filesystem (recommended for |
3028 |
removable media as they can be created with one of many filesystems) and |
3029 |
<c>user</c> makes it possible for non-root users to mount the CD. |
3030 |
</p> |
3031 |
|
3032 |
<p> |
3033 |
To improve performance, most users would want to add the <c>noatime</c> |
3034 |
mount option, which results in a faster system since access times |
3035 |
aren't registered (you don't need those generally anyway). |
3036 |
</p> |
3037 |
|
3038 |
<p> |
3039 |
Double-check your <path>/etc/fstab</path>, save and quit to continue. |
3040 |
</p> |
3041 |
|
3042 |
</body> |
3043 |
</subsection> |
3044 |
</section> |
3045 |
<section> |
3046 |
<title>Networking Information</title> |
3047 |
<subsection> |
3048 |
<title>Hostname, Domainname etc.</title> |
3049 |
<body> |
3050 |
|
3051 |
<p> |
3052 |
One of the choices the user has to make is name his/her PC. This seems to be |
3053 |
quite easy, but <e>lots</e> of users are having difficulties finding the |
3054 |
appropriate name for their Linux-pc. To speed things up, know that any name you |
3055 |
choose can be changed afterwards. For all we care, you can just call your system |
3056 |
<c>tux</c> and domain <c>homenetwork</c>. |
3057 |
</p> |
3058 |
|
3059 |
<p> |
3060 |
We use these values in the next examples. First we set the hostname: |
3061 |
</p> |
3062 |
|
3063 |
<pre caption="Setting the hostname"> |
3064 |
# <i>nano -w /etc/conf.d/hostname</i> |
3065 |
|
3066 |
<comment>(Set the HOSTNAME variable to your hostname)</comment> |
3067 |
HOSTNAME="<i>tux</i>" |
3068 |
</pre> |
3069 |
|
3070 |
<p> |
3071 |
Second, <e>if</e> you need a domainname, set it in <path>/etc/conf.d/net</path>. |
3072 |
You only need a domain if your ISP or network administrator says so, or if you |
3073 |
have a DNS server but not a DHCP server. You don't need to worry about DNS or |
3074 |
domainnames if your networking is setup for DHCP. |
3075 |
</p> |
3076 |
|
3077 |
<pre caption="Setting the domainname"> |
3078 |
# <i>nano -w /etc/conf.d/net</i> |
3079 |
|
3080 |
<comment>(Set the dns_domain variable to your domain name)</comment> |
3081 |
dns_domain_lo="<i>homenetwork</i>" |
3082 |
</pre> |
3083 |
|
3084 |
<note> |
3085 |
If you choose not to set a domainname, you can get rid of the "This is |
3086 |
hostname.(none)" messages at your login screen by editing |
3087 |
<path>/etc/issue</path>. Just delete the string <c>.\O</c> from that file. |
3088 |
</note> |
3089 |
|
3090 |
<p> |
3091 |
If you have a NIS domain (if you don't know what that is, then you don't have |
3092 |
one), you need to define that one too: |
3093 |
</p> |
3094 |
|
3095 |
<pre caption="Setting the NIS domainname"> |
3096 |
# <i>nano -w /etc/conf.d/net</i> |
3097 |
|
3098 |
<comment>(Set the nis_domain variable to your NIS domain name)</comment> |
3099 |
nis_domain_lo="<i>my-nisdomain</i>" |
3100 |
</pre> |
3101 |
|
3102 |
<note> |
3103 |
For more information on configuring DNS and NIS, please read the examples |
3104 |
provided in <path>/etc/conf.d/net.example</path>. Also, you may want to emerge |
3105 |
<c>resolvconf-gentoo</c> to help manage your DNS/NIS setup. |
3106 |
</note> |
3107 |
|
3108 |
</body> |
3109 |
</subsection> |
3110 |
<subsection> |
3111 |
<title>Configuring your Network</title> |
3112 |
<body> |
3113 |
|
3114 |
<p> |
3115 |
Before you get that "Hey, we've had that already"-feeling, you should remember |
3116 |
that the networking you set up in the beginning of the Gentoo installation was |
3117 |
just for the installation. Right now you are going to configure networking for |
3118 |
your Gentoo system permanently. |
3119 |
</p> |
3120 |
|
3121 |
<note> |
3122 |
More detailed information about networking, including advanced topics like |
3123 |
bonding, bridging, 802.1Q VLANs or wireless networking is covered in the <uri |
3124 |
link="?part=4">Gentoo Network Configuration</uri> section. |
3125 |
</note> |
3126 |
|
3127 |
<p> |
3128 |
All networking information is gathered in <path>/etc/conf.d/net</path>. It uses |
3129 |
a straightforward yet not intuitive syntax if you don't know how to set up |
3130 |
networking manually. But don't fear, we'll explain everything. A fully |
3131 |
commented example that covers many different configurations is available in |
3132 |
<path>/etc/conf.d/net.example</path>. |
3133 |
</p> |
3134 |
|
3135 |
<p> |
3136 |
DHCP is used by default and does not require any further configuration. |
3137 |
</p> |
3138 |
|
3139 |
<p> |
3140 |
If you need to configure your network connection either because you need |
3141 |
specific DHCP options or because you do not use DHCP at all, open |
3142 |
<path>/etc/conf.d/net</path> with your favorite editor (<c>nano</c> is used in |
3143 |
this example): |
3144 |
</p> |
3145 |
|
3146 |
<pre caption="Opening /etc/conf.d/net for editing"> |
3147 |
# <i>nano -w /etc/conf.d/net</i> |
3148 |
</pre> |
3149 |
|
3150 |
<p> |
3151 |
You will see the following file: |
3152 |
</p> |
3153 |
|
3154 |
<pre caption="Default /etc/conf.d/net"> |
3155 |
# This blank configuration will automatically use DHCP for any net.* |
3156 |
# scripts in /etc/init.d. To create a more complete configuration, |
3157 |
# please review /etc/conf.d/net.example and save your configuration |
3158 |
# in /etc/conf.d/net (this file :]!). |
3159 |
</pre> |
3160 |
|
3161 |
<p> |
3162 |
To enter your own IP address, netmask and gateway, you need |
3163 |
to set both <c>config_eth0</c> and <c>routes_eth0</c>: |
3164 |
</p> |
3165 |
|
3166 |
<pre caption="Manually setting IP information for eth0"> |
3167 |
config_eth0=( "192.168.0.2 netmask 255.255.255.0 brd 192.168.0.255" ) |
3168 |
routes_eth0=( "default via 192.168.0.1" ) |
3169 |
</pre> |
3170 |
|
3171 |
<p> |
3172 |
To use DHCP and add specific DHCP options, define <c>config_eth0</c> and |
3173 |
<c>dhcp_eth0</c>: |
3174 |
</p> |
3175 |
|
3176 |
<pre caption="Automatically obtaining an IP address for eth0"> |
3177 |
config_eth0=( "dhcp" ) |
3178 |
dhcp_eth0="nodns nontp nonis" |
3179 |
</pre> |
3180 |
|
3181 |
<p> |
3182 |
Please read <path>/etc/conf.d/net.example</path> for a list of all available |
3183 |
options. |
3184 |
</p> |
3185 |
|
3186 |
<p> |
3187 |
If you have several network interfaces repeat the above steps for |
3188 |
<c>config_eth1</c>, <c>config_eth2</c>, etc. |
3189 |
</p> |
3190 |
|
3191 |
<p> |
3192 |
Now save the configuration and exit to continue. |
3193 |
</p> |
3194 |
|
3195 |
</body> |
3196 |
</subsection> |
3197 |
<subsection> |
3198 |
<title>Automatically Start Networking at Boot</title> |
3199 |
<body> |
3200 |
|
3201 |
<p> |
3202 |
To have your network interfaces activated at boot, you need to add them to the |
3203 |
default runlevel. |
3204 |
</p> |
3205 |
|
3206 |
<pre caption="Adding net.eth0 to the default runlevel"> |
3207 |
# <i>rc-update add net.eth0 default</i> |
3208 |
</pre> |
3209 |
|
3210 |
<p> |
3211 |
If you have several network interfaces, you need to create the appropriate |
3212 |
<path>net.eth1</path>, <path>net.eth2</path> etc. initscripts for those. You can |
3213 |
use <c>ln</c> to do this: |
3214 |
</p> |
3215 |
|
3216 |
<pre caption="Creating extra initscripts"> |
3217 |
# <i>cd /etc/init.d</i> |
3218 |
# <i>ln -s net.lo net.eth1</i> |
3219 |
# <i>rc-update add net.eth1 default</i> |
3220 |
</pre> |
3221 |
|
3222 |
</body> |
3223 |
</subsection> |
3224 |
<subsection> |
3225 |
<title>Writing Down Network Information</title> |
3226 |
<body> |
3227 |
|
3228 |
<p> |
3229 |
You now need to inform Linux about your network. This is defined in |
3230 |
<path>/etc/hosts</path> and helps in resolving hostnames to IP addresses for |
3231 |
hosts that aren't resolved by your nameserver. You need to define your system. |
3232 |
You may also want to define other systems on your network if you don't want to |
3233 |
set up your own internal DNS system. |
3234 |
</p> |
3235 |
|
3236 |
<pre caption="Opening /etc/hosts"> |
3237 |
# <i>nano -w /etc/hosts</i> |
3238 |
</pre> |
3239 |
|
3240 |
<pre caption="Filling in the networking information"> |
3241 |
<comment>(This defines the current system)</comment> |
3242 |
127.0.0.1 tux.homenetwork tux localhost |
3243 |
|
3244 |
<comment>(Define extra systems on your network, |
3245 |
they need to have a static IP to be defined this way.)</comment> |
3246 |
192.168.0.5 jenny.homenetwork jenny |
3247 |
192.168.0.6 benny.homenetwork benny |
3248 |
</pre> |
3249 |
|
3250 |
<p> |
3251 |
Save and exit the editor to continue. |
3252 |
</p> |
3253 |
|
3254 |
<p test="func:keyval('arch')='AMD64' or func:keyval('arch')='x86' or substring(func:keyval('arch'),1,3)='PPC'"> |
3255 |
If you don't have PCMCIA, you can now continue with <uri |
3256 |
link="#sysinfo">System Information</uri>. PCMCIA-users should read the |
3257 |
following topic on PCMCIA. |
3258 |
</p> |
3259 |
|
3260 |
</body> |
3261 |
</subsection> |
3262 |
<subsection test="func:keyval('arch')='AMD64' or func:keyval('arch')='x86' or substring(func:keyval('arch'),1,3)='PPC'"> |
3263 |
<title>Optional: Get PCMCIA Working</title> |
3264 |
<body> |
3265 |
|
3266 |
<p> |
3267 |
PCMCIA users should first install the <c>pcmciautils</c> package. |
3268 |
</p> |
3269 |
|
3270 |
<pre caption="Installing pcmciautils"> |
3271 |
# <i>emerge pcmciautils</i> |
3272 |
</pre> |
3273 |
|
3274 |
</body> |
3275 |
</subsection> |
3276 |
</section> |
3277 |
|
3278 |
<section id="sysinfo"> |
3279 |
<title>System Information</title> |
3280 |
<subsection> |
3281 |
<title>Root Password</title> |
3282 |
<body> |
3283 |
|
3284 |
<p> |
3285 |
First we set the root password by typing: |
3286 |
</p> |
3287 |
|
3288 |
<pre caption="Setting the root password"> |
3289 |
# <i>passwd</i> |
3290 |
</pre> |
3291 |
|
3292 |
<p> |
3293 |
If you want root to be able to log on through the serial console, add |
3294 |
<c>tts/0</c> to <path>/etc/securetty</path>: |
3295 |
</p> |
3296 |
|
3297 |
<pre caption="Adding tts/0 to /etc/securetty"> |
3298 |
# <i>echo "tts/0" >> /etc/securetty</i> |
3299 |
</pre> |
3300 |
|
3301 |
</body> |
3302 |
</subsection> |
3303 |
<subsection> |
3304 |
<title>System Information</title> |
3305 |
<body> |
3306 |
|
3307 |
<p> |
3308 |
Gentoo uses <path>/etc/rc.conf</path> for general, system-wide configuration. |
3309 |
Open up <path>/etc/rc.conf</path> and enjoy all the comments in that file :) |
3310 |
</p> |
3311 |
|
3312 |
<pre caption="Opening /etc/rc.conf"> |
3313 |
# <i>nano -w /etc/rc.conf</i> |
3314 |
</pre> |
3315 |
|
3316 |
<p> |
3317 |
When you're finished configuring <path>/etc/rc.conf</path>, save and exit. |
3318 |
</p> |
3319 |
|
3320 |
<p> |
3321 |
As you can see, this file is well commented to help you set up the necessary |
3322 |
configuration variables. You can configure your system to use unicode and |
3323 |
define your default editor and your display manager (like gdm or kdm). |
3324 |
</p> |
3325 |
|
3326 |
<p> |
3327 |
Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration. |
3328 |
Edit it to configure your keyboard. |
3329 |
</p> |
3330 |
|
3331 |
<pre caption="Opening /etc/conf.d/keymaps"> |
3332 |
# <i>nano -w /etc/conf.d/keymaps</i> |
3333 |
</pre> |
3334 |
|
3335 |
<p> |
3336 |
Take special care with the <c>KEYMAP</c> variable. If you select the wrong |
3337 |
<c>KEYMAP</c>, you will get weird results when typing on your keyboard. |
3338 |
</p> |
3339 |
|
3340 |
<note test="substring(func:keyval('arch'),1,3)='PPC'"> |
3341 |
PPC uses x86 keymaps on most systems. Users who want to be able to use ADB |
3342 |
keymaps on boot have to enable ADB keycode sendings in their kernel and have to |
3343 |
set a mac/ppc keymap in <path>/etc/conf.d/keymaps</path>. |
3344 |
</note> |
3345 |
|
3346 |
<p> |
3347 |
When you're finished configuring <path>/etc/conf.d/keymaps</path>, save and |
3348 |
exit. |
3349 |
</p> |
3350 |
|
3351 |
<p> |
3352 |
Gentoo uses <path>/etc/conf.d/clock</path> to set clock options. Edit it |
3353 |
according to your needs. |
3354 |
</p> |
3355 |
|
3356 |
<pre caption="Opening /etc/conf.d/clock"> |
3357 |
# <i>nano -w /etc/conf.d/clock</i> |
3358 |
</pre> |
3359 |
|
3360 |
<p> |
3361 |
If your hardware clock is not using UTC, you need to add <c>CLOCK="local"</c> to |
3362 |
the file. Otherwise you will notice some clock skew. |
3363 |
</p> |
3364 |
|
3365 |
<p> |
3366 |
You should define the timezone that you previously copied to |
3367 |
<path>/etc/localtime</path> so that further upgrades of the |
3368 |
<c>sys-libs/timezone-data</c> package can update <path>/etc/localtime</path> |
3369 |
automatically. For instance, if you used the GMT timezone, you would add |
3370 |
<c>TIMEZONE="GMT"</c> |
3371 |
</p> |
3372 |
|
3373 |
<p> |
3374 |
When you're finished configuring <path>/etc/conf.d/clock</path>, save and |
3375 |
exit. |
3376 |
</p> |
3377 |
|
3378 |
<p test="not(func:keyval('arch')='PPC64')"> |
3379 |
Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
3380 |
Tools</uri>. |
3381 |
</p> |
3382 |
|
3383 |
</body> |
3384 |
</subsection> |
3385 |
<subsection test="func:keyval('arch')='PPC64'"> |
3386 |
<title>Configuring the Console</title> |
3387 |
<body> |
3388 |
|
3389 |
<p> |
3390 |
If you are using a virtual console, you must uncomment the appropriate line in |
3391 |
<path>/etc/inittab</path> for the virtual console to spawn a login prompt. |
3392 |
</p> |
3393 |
|
3394 |
<pre caption="Enabling hvc or hvsi support in /etc/inittab"> |
3395 |
hvc0:12345:respawn:/sbin/agetty -L 9600 hvc0 |
3396 |
hvsi:12345:respawn:/sbin/agetty -L 19200 hvsi0 |
3397 |
</pre> |
3398 |
|
3399 |
<p> |
3400 |
You should also take this time to verify that the appropriate console is |
3401 |
listed in <path>/etc/securetty</path>. |
3402 |
</p> |
3403 |
|
3404 |
<p> |
3405 |
You may now continue with <uri link="?part=1&chap=9">Installing Necessary |
3406 |
System Tools</uri>. |
3407 |
</p> |
3408 |
|
3409 |
</body> |
3410 |
</subsection> |
3411 |
</section> |
3412 |
</sections> |
3413 |
|
3414 |
|
3415 |
|
3416 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-finalise.xml |
3417 |
|
3418 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-finalise.xml?rev=1.1&view=markup |
3419 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-finalise.xml?rev=1.1&content-type=text/plain |
3420 |
|
3421 |
Index: hb-install-finalise.xml |
3422 |
=================================================================== |
3423 |
<?xml version='1.0' encoding='UTF-8'?> |
3424 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
3425 |
|
3426 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
3427 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
3428 |
|
3429 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-finalise.xml,v 1.1 2008/02/27 22:46:57 nightmorph Exp $ --> |
3430 |
|
3431 |
<sections> |
3432 |
|
3433 |
<version>9.0</version> |
3434 |
<date>2007-05-07</date> |
3435 |
|
3436 |
<section> |
3437 |
<title>User Administration</title> |
3438 |
<subsection> |
3439 |
<title>Adding a User for Daily Use</title> |
3440 |
<body> |
3441 |
|
3442 |
<p> |
3443 |
Working as root on a Unix/Linux system is <e>dangerous</e> and should be avoided |
3444 |
as much as possible. Therefore it is <e>strongly</e> recommended to add a user |
3445 |
for day-to-day use. |
3446 |
</p> |
3447 |
|
3448 |
<p> |
3449 |
The groups the user is member of define what activities the user can perform. |
3450 |
The following table lists a number of important groups you might wish to use: |
3451 |
</p> |
3452 |
|
3453 |
<table> |
3454 |
<tr> |
3455 |
<th>Group</th> |
3456 |
<th>Description</th> |
3457 |
</tr> |
3458 |
<tr> |
3459 |
<ti>audio</ti> |
3460 |
<ti>be able to access the audio devices</ti> |
3461 |
</tr> |
3462 |
<tr> |
3463 |
<ti>cdrom</ti> |
3464 |
<ti>be able to directly access optical devices</ti> |
3465 |
</tr> |
3466 |
<tr> |
3467 |
<ti>floppy</ti> |
3468 |
<ti>be able to directly access floppy devices</ti> |
3469 |
</tr> |
3470 |
<tr> |
3471 |
<ti>games</ti> |
3472 |
<ti>be able to play games</ti> |
3473 |
</tr> |
3474 |
<tr> |
3475 |
<ti>portage</ti> |
3476 |
<ti>be able to use <c>emerge --pretend</c> as a normal user</ti> |
3477 |
</tr> |
3478 |
<tr> |
3479 |
<ti>usb</ti> |
3480 |
<ti>be able to access USB devices</ti> |
3481 |
</tr> |
3482 |
<tr> |
3483 |
<ti>plugdev</ti> |
3484 |
<ti> |
3485 |
Be able to mount and use pluggable devices such as cameras and USB sticks |
3486 |
</ti> |
3487 |
</tr> |
3488 |
<tr> |
3489 |
<ti>video</ti> |
3490 |
<ti> |
3491 |
be able to access video capturing hardware and doing hardware |
3492 |
acceleration |
3493 |
</ti> |
3494 |
</tr> |
3495 |
<tr> |
3496 |
<ti>wheel</ti> |
3497 |
<ti>be able to use <c>su</c></ti> |
3498 |
</tr> |
3499 |
</table> |
3500 |
|
3501 |
<p> |
3502 |
For instance, to create a user called <c>john</c> who is member of the |
3503 |
<c>wheel</c>, <c>users</c> and <c>audio</c> groups, log in as root first |
3504 |
(only root can create users) and run <c>useradd</c>: |
3505 |
</p> |
3506 |
|
3507 |
<pre caption="Adding a user for day-to-day use"> |
3508 |
Login: <i>root</i> |
3509 |
Password: <comment>(Your root password)</comment> |
3510 |
|
3511 |
# <i>useradd -m -G users,wheel,audio -s /bin/bash john</i> |
3512 |
# <i>passwd john</i> |
3513 |
Password: <comment>(Enter the password for john)</comment> |
3514 |
Re-enter password: <comment>(Re-enter the password to verify)</comment> |
3515 |
</pre> |
3516 |
|
3517 |
<p> |
3518 |
If a user ever needs to perform some task as root, they can use <c>su -</c> |
3519 |
to temporarily receive root privileges. Another way is to use the <c>sudo</c> |
3520 |
package which is, if correctly configured, very secure. |
3521 |
</p> |
3522 |
|
3523 |
</body> |
3524 |
</subsection> |
3525 |
</section> |
3526 |
<section> |
3527 |
<title>Optional: Install GRP Packages</title> |
3528 |
<body> |
3529 |
|
3530 |
<impo> |
3531 |
This part is for GRP users only. Other users should skip this part and continue |
3532 |
with <uri link="?part=1&chap=12">Where to go from here?</uri>. |
3533 |
</impo> |
3534 |
|
3535 |
<p> |
3536 |
Now that your system is booted, log on as the user you created (for instance, |
3537 |
<c>john</c>) and use <c>su -</c> to gain root privileges: |
3538 |
</p> |
3539 |
|
3540 |
<pre caption="Gaining root privileges"> |
3541 |
$ <i>su -</i> |
3542 |
Password: <comment>(Enter your root password)</comment> |
3543 |
</pre> |
3544 |
|
3545 |
<p> |
3546 |
Now we need to change the Portage configuration to look for the prebuilt |
3547 |
binaries from the second CD (Gentoo Packages CD). First mount this CD: |
3548 |
</p> |
3549 |
|
3550 |
<pre caption="Mount the Packages CD"> |
3551 |
<comment>(Put the Gentoo Packages CD in the CD tray)</comment> |
3552 |
# <i>mount /mnt/cdrom</i> |
3553 |
</pre> |
3554 |
|
3555 |
<p> |
3556 |
Now configure Portage to use <path>/mnt/cdrom</path> for its prebuilt packages: |
3557 |
</p> |
3558 |
|
3559 |
<pre caption="Configuring Portage to use /mnt/cdrom"> |
3560 |
# <i>ls /mnt/cdrom</i> |
3561 |
|
3562 |
<comment>(If there is a /mnt/cdrom/packages directory:)</comment> |
3563 |
# <i>export PKGDIR="/mnt/cdrom/packages"</i> |
3564 |
|
3565 |
<comment>(Otherwise:)</comment> |
3566 |
# <i>export PKGDIR="/mnt/cdrom"</i> |
3567 |
</pre> |
3568 |
|
3569 |
<p> |
3570 |
Now install the packages you want. The Packages CD contains several prebuilt |
3571 |
binaries, for instance KDE and GNOME. |
3572 |
</p> |
3573 |
|
3574 |
<pre caption="Installing GNOME"> |
3575 |
# <i>emerge --usepkg gnome</i> |
3576 |
</pre> |
3577 |
|
3578 |
<p> |
3579 |
To find out what prebuilt packages are available, do a quick listing of all |
3580 |
the files in <path>/mnt/cdrom/All</path>. For instance, to find out if KDE is |
3581 |
emergeable: |
3582 |
</p> |
3583 |
|
3584 |
<pre caption="Finding out if KDE is installable"> |
3585 |
# <i>ls /mnt/cdrom/All/kde*</i> |
3586 |
</pre> |
3587 |
|
3588 |
<p> |
3589 |
Be sure to install the binaries now. When you do an <c>emerge --sync</c> to |
3590 |
update Portage (as you will learn later), the prebuilt binaries might not match |
3591 |
against the ebuilds in your updated Portage. You can try to circumvent this by |
3592 |
using <c>emerge --usepkgonly</c> instead of <c>emerge --usepkg</c>. |
3593 |
</p> |
3594 |
|
3595 |
<p> |
3596 |
Congratulations, your system is now fully equipped! Continue with <uri |
3597 |
link="?part=1&chap=12">Where to go from here?</uri> to learn more about |
3598 |
Gentoo. |
3599 |
</p> |
3600 |
|
3601 |
</body> |
3602 |
</section> |
3603 |
</sections> |
3604 |
|
3605 |
|
3606 |
|
3607 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-dialog.xml |
3608 |
|
3609 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-dialog.xml?rev=1.1&view=markup |
3610 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-dialog.xml?rev=1.1&content-type=text/plain |
3611 |
|
3612 |
Index: hb-install-gli-dialog.xml |
3613 |
=================================================================== |
3614 |
<?xml version='1.0' encoding='UTF-8'?> |
3615 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
3616 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-dialog.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
3617 |
|
3618 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
3619 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
3620 |
|
3621 |
<sections> |
3622 |
|
3623 |
<version>4.0</version> |
3624 |
<date>2007-05-07</date> |
3625 |
|
3626 |
<section> |
3627 |
<title>Welcome</title> |
3628 |
<subsection> |
3629 |
<title>Before you begin</title> |
3630 |
<body> |
3631 |
|
3632 |
<p> |
3633 |
After you boot the Gentoo Linux Installer LiveCD, it will attempt to load a |
3634 |
graphical desktop. If it is unable to do so, it will instead display a command |
3635 |
line prompt. To launch the installer, simply type: |
3636 |
</p> |
3637 |
|
3638 |
<pre caption="Start the installer"> |
3639 |
# <i>installer-dialog</i> |
3640 |
</pre> |
3641 |
|
3642 |
<p> |
3643 |
The Gentoo Linux Installer (GLI) provides a friendly introduction to the process |
3644 |
of installing Gentoo on your computer. Remember to read each option carefully. |
3645 |
There is detailed help available for each step of installation at the top of the |
3646 |
screen. We recommend that you always read the help provided before making your |
3647 |
choices. Note that at any time during the installation process, you can save |
3648 |
your configuration progress in case you need to resume your installation at a |
3649 |
later time. Use the <c>Tab</c> key (on your keyboard) to move around the menus |
3650 |
within a screen and the <c>Enter</c> key to confirm an action. |
3651 |
</p> |
3652 |
|
3653 |
</body> |
3654 |
</subsection> |
3655 |
</section> |
3656 |
|
3657 |
<section> |
3658 |
<title>Partitioning</title> |
3659 |
<subsection> |
3660 |
<title>Preparing the disks</title> |
3661 |
<body> |
3662 |
|
3663 |
<p> |
3664 |
In order to install Gentoo on your machine, you will need to prepare your |
3665 |
disks. The <c>Partitioning</c> screen will show you a list of detected disks and |
3666 |
allow you to specify the filesystems you would like to have on your |
3667 |
partitions. Selecting <c>Clear partitions</c> will erase all previous partitions on |
3668 |
your disk, so be careful with this option!<!-- It is also possible to resize |
3669 |
certain partition types. --> |
3670 |
</p> |
3671 |
|
3672 |
<p> |
3673 |
If you choose to go with the <c>Recommended layout</c>, the installer will |
3674 |
create three partitions: 100MB for <path>/boot</path>, a <path>/swap</path> |
3675 |
partition up to 512MB in size, and the rest of the available space on the disk |
3676 |
is used for <path>/</path>, the root partition. |
3677 |
</p> |
3678 |
|
3679 |
<warn> |
3680 |
As with any partitioning application, you should backup your system before |
3681 |
making changes to your partition table, as any possible bugs could cause data |
3682 |
loss. |
3683 |
</warn> |
3684 |
|
3685 |
</body> |
3686 |
</subsection> |
3687 |
</section> |
3688 |
|
3689 |
<section> |
3690 |
<title>System Configuration</title> |
3691 |
<subsection> |
3692 |
<title>Timezone</title> |
3693 |
<body> |
3694 |
|
3695 |
<p> |
3696 |
Study the list and select the region closest to your actual location. |
3697 |
</p> |
3698 |
|
3699 |
</body> |
3700 |
</subsection> |
3701 |
<subsection> |
3702 |
<title>Networking</title> |
3703 |
<body> |
3704 |
|
3705 |
<p> |
3706 |
On this screen, you will be able to configure the various network interface |
3707 |
devices detected on your computer. Read the available options carefully. |
3708 |
</p> |
3709 |
|
3710 |
<p> |
3711 |
The next screen gives you a choice between DHCP and manual IP address |
3712 |
configuration. Once your network interface is properly configured, you will |
3713 |
need to create a hostname for your system. Optionally, you may specify a |
3714 |
domainname and any DNS server information needed. |
3715 |
</p> |
3716 |
|
3717 |
</body> |
3718 |
</subsection> |
3719 |
<subsection> |
3720 |
<title>Users and groups</title> |
3721 |
<body> |
3722 |
|
3723 |
<p> |
3724 |
First set the root password for the system administrator (the <e>root</e> |
3725 |
user). |
3726 |
</p> |
3727 |
|
3728 |
<p> |
3729 |
We <e>strongly</e> recommend that you create a regular user for daily work. |
3730 |
Working as root all the time is <e>dangerous</e> and should be avoided! Create |
3731 |
your users, set their passwords, and add them to the appropriate groups. You can |
3732 |
optionally change their home directories and select their login shell. |
3733 |
</p> |
3734 |
|
3735 |
</body> |
3736 |
</subsection> |
3737 |
<subsection> |
3738 |
<title>Extra Packages</title> |
3739 |
<body> |
3740 |
|
3741 |
<p> |
3742 |
The LiveCD contains a number of available pre-built packages. If you wish to |
3743 |
install any of them, check the appropriate box. |
3744 |
</p> |
3745 |
|
3746 |
</body> |
3747 |
</subsection> |
3748 |
<subsection> |
3749 |
<title>Startup Services</title> |
3750 |
<body> |
3751 |
|
3752 |
<p> |
3753 |
This screen allows you to choose various services to load at system boot. Study |
3754 |
the available options and their descriptions carefully, and then select your |
3755 |
desired services. For example, if you have chosen to install <c>xorg-x11</c> |
3756 |
and want to boot straight into a graphical desktop, then you would select |
3757 |
"xdm" from the list. |
3758 |
</p> |
3759 |
|
3760 |
</body> |
3761 |
</subsection> |
3762 |
<subsection> |
3763 |
<title>Other Settings</title> |
3764 |
<body> |
3765 |
|
3766 |
<p> |
3767 |
You now will be able to change various settings, including keyboard layout, |
3768 |
graphical display manager, the default editor, and whether to set your hardware |
3769 |
clock to UTC or local time. |
3770 |
</p> |
3771 |
|
3772 |
</body> |
3773 |
</subsection> |
3774 |
</section> |
3775 |
|
3776 |
<section> |
3777 |
<title>Finishing Up</title> |
3778 |
<subsection> |
3779 |
<body> |
3780 |
|
3781 |
<p> |
3782 |
The installer will ask if you want to save your <c>installation profile</c> for |
3783 |
later use. The installer will alert you when it has finished. It will then |
3784 |
return you to the command prompt. All you need to do to reboot is type: |
3785 |
</p> |
3786 |
|
3787 |
<pre caption="Rebooting"> |
3788 |
# <i>shutdown -r now</i> |
3789 |
</pre> |
3790 |
|
3791 |
<p> |
3792 |
Congratulations, your system is now fully equipped! Continue with <uri |
3793 |
link="?part=1&chap=5">Where to go from here?</uri> to learn more about |
3794 |
Gentoo. |
3795 |
</p> |
3796 |
|
3797 |
</body> |
3798 |
</subsection> |
3799 |
</section> |
3800 |
</sections> |
3801 |
|
3802 |
|
3803 |
|
3804 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-medium.xml |
3805 |
|
3806 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-medium.xml?rev=1.1&view=markup |
3807 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-medium.xml?rev=1.1&content-type=text/plain |
3808 |
|
3809 |
Index: hb-install-gli-medium.xml |
3810 |
=================================================================== |
3811 |
<?xml version='1.0' encoding='UTF-8'?> |
3812 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
3813 |
|
3814 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
3815 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
3816 |
|
3817 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gli-medium.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
3818 |
|
3819 |
<sections> |
3820 |
|
3821 |
<version>9.0</version> |
3822 |
<date>2007-06-29</date> |
3823 |
|
3824 |
<section> |
3825 |
<title>Hardware Requirements</title> |
3826 |
<subsection> |
3827 |
<title>Introduction</title> |
3828 |
<body> |
3829 |
|
3830 |
<p> |
3831 |
Before we start, we first list what hardware requirements you need to |
3832 |
successfully install Gentoo on your box using the Installer LiveCD. |
3833 |
</p> |
3834 |
|
3835 |
</body> |
3836 |
</subsection> |
3837 |
<subsection> |
3838 |
<title>Hardware Requirements</title> |
3839 |
<body> |
3840 |
|
3841 |
<table> |
3842 |
<tr test="func:keyval('arch')='x86'"> |
3843 |
<th>CPU</th> |
3844 |
<ti>i686 or later</ti> |
3845 |
</tr> |
3846 |
<tr test="func:keyval('arch')='AMD64'"> |
3847 |
<th>CPU</th> |
3848 |
<ti>Any AMD64 or EM64T CPU</ti> |
3849 |
</tr> |
3850 |
<tr> |
3851 |
<th>Memory</th> |
3852 |
<ti>256 MB</ti> |
3853 |
</tr> |
3854 |
<tr> |
3855 |
<th>Diskspace</th> |
3856 |
<ti>1.5 GB (excluding swap space)</ti> |
3857 |
</tr> |
3858 |
<tr> |
3859 |
<th>Swap space</th> |
3860 |
<ti>At least 256 MB</ti> |
3861 |
</tr> |
3862 |
</table> |
3863 |
|
3864 |
</body> |
3865 |
</subsection> |
3866 |
</section> |
3867 |
<!-- General description, propagated to other architectures as well --> |
3868 |
<!-- START --> |
3869 |
<section> |
3870 |
<title>The Gentoo Linux Installer LiveCD</title> |
3871 |
<subsection> |
3872 |
<title>Introduction</title> |
3873 |
<body> |
3874 |
|
3875 |
<p> |
3876 |
A LiveCD is a bootable medium which contains a self-sustained Gentoo |
3877 |
environment. It allows you to boot Linux from the CD. During the boot process |
3878 |
your hardware is detected and the appropriate drivers are loaded. The Gentoo |
3879 |
Installation CDs are maintained by Gentoo developers. |
3880 |
</p> |
3881 |
|
3882 |
<p> |
3883 |
There currently are two Installation CDs available: |
3884 |
</p> |
3885 |
|
3886 |
<ul> |
3887 |
<li> |
3888 |
The Installer LiveCD contains everything you need to install Gentoo. It |
3889 |
provides a graphical environment, a graphical as well as console based |
3890 |
installer which automatically carries out the installation for you, and of |
3891 |
course, the installation instructions for your architecture. |
3892 |
</li> |
3893 |
<li> |
3894 |
The Minimal Installation CD contains only a minimal environment that allows |
3895 |
you to boot up and configure your network so you can connect to the |
3896 |
Internet. It does not contain any additional files and cannot be used |
3897 |
during the current installation approach. |
3898 |
</li> |
3899 |
</ul> |
3900 |
|
3901 |
</body> |
3902 |
</subsection> |
3903 |
</section> |
3904 |
<!-- STOP --> |
3905 |
<section> |
3906 |
<title>Download, Burn and Boot the Gentoo Linux Installer LiveCD</title> |
3907 |
<subsection> |
3908 |
<title>Downloading and Burning the Installer LiveCD</title> |
3909 |
<body> |
3910 |
|
3911 |
<p> |
3912 |
You can download the Installer LiveCDs from one of our <uri |
3913 |
link="/main/en/mirrors.xml">mirrors</uri>. They are located in the |
3914 |
<path><keyval id="release-dir"/>livecd/</path> directory. |
3915 |
</p> |
3916 |
|
3917 |
<p> |
3918 |
Inside that directory you'll find an ISO file. That is a full CD image which |
3919 |
you can write on a CD-R. |
3920 |
</p> |
3921 |
|
3922 |
<p> |
3923 |
After downloading the file, you can verify its integrity to see if it is |
3924 |
corrupted or not: |
3925 |
</p> |
3926 |
|
3927 |
<ul> |
3928 |
<li> |
3929 |
You can check its MD5 checksum and compare it with the MD5 checksum we |
3930 |
provide (for instance with the <c>md5sum</c> tool under Linux/Unix or <uri |
3931 |
link="http://www.etree.org/md5com.html">md5sum</uri> for Windows) |
3932 |
</li> |
3933 |
<li> |
3934 |
You can verify the cryptographic signature that we provide. You need to |
3935 |
obtain the public key we use (17072058) before you proceed though. |
3936 |
</li> |
3937 |
</ul> |
3938 |
|
3939 |
<p> |
3940 |
To fetch our public key using the GnuPG application, run the following command: |
3941 |
</p> |
3942 |
|
3943 |
<pre caption="Obtaining the public key"> |
3944 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i> |
3945 |
</pre> |
3946 |
|
3947 |
<p> |
3948 |
Now verify the signature: |
3949 |
</p> |
3950 |
|
3951 |
<pre caption="Verify the cryptographic signature"> |
3952 |
$ <i>gpg --verify <signature file> <downloaded iso></i> |
3953 |
</pre> |
3954 |
|
3955 |
<p> |
3956 |
To burn the downloaded ISO(s), you have to select raw-burning. How you do this |
3957 |
is highly program-dependent. We will discuss <c>cdrecord</c> and <c>K3B</c> |
3958 |
here; more information can be found in our <uri |
3959 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
3960 |
</p> |
3961 |
|
3962 |
<ul> |
3963 |
<li> |
3964 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded iso |
3965 |
file></c> (replace <path>/dev/hdc</path> with your CD-RW drive's device |
3966 |
path). |
3967 |
</li> |
3968 |
<li> |
3969 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
3970 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
3971 |
</li> |
3972 |
</ul> |
3973 |
|
3974 |
</body> |
3975 |
</subsection> |
3976 |
<subsection> |
3977 |
<title>Booting the Installer LiveCD</title> |
3978 |
<body> |
3979 |
|
3980 |
<impo> |
3981 |
Read this whole subsection before continuing, as you will probably not have the |
3982 |
opportunity to read it before doing things later. |
3983 |
</impo> |
3984 |
|
3985 |
<p> |
3986 |
Once you have burned your LiveCD, it is time to boot it. Remove all CDs from |
3987 |
your CD drives, reboot your system and enter the BIOS. This is usually done by |
3988 |
hitting DEL, F1 or ESC, depending on your BIOS. Inside the BIOS, change the |
3989 |
boot order so that the CD-ROM is tried before the hard disk. This is often |
3990 |
found under "CMOS Setup". If you don't do this, your system will just reboot |
3991 |
from the hard disk, ignoring the CD-ROM. |
3992 |
</p> |
3993 |
|
3994 |
<p> |
3995 |
Now place the LiveCD in the CD-ROM drive and reboot. You should see a boot |
3996 |
prompt. At this screen, you can hit Enter to begin the boot process with the |
3997 |
default boot options, or boot the LiveCD with custom boot options by specifying |
3998 |
a kernel followed by boot options and then hitting Enter. |
3999 |
</p> |
4000 |
|
4001 |
<p> |
4002 |
Specifying a kernel? Yes, we provide a few kernels on our LiveCD. The default |
4003 |
one is <c>gentoo</c>. Other kernels are for specific hardware needs and the |
4004 |
<c>-nofb</c> variants which disable framebuffer. |
4005 |
</p> |
4006 |
|
4007 |
<p> |
4008 |
Below you'll find a short overview on the available kernels: |
4009 |
</p> |
4010 |
|
4011 |
<table> |
4012 |
<tr> |
4013 |
<th>Kernel</th> |
4014 |
<th>Description</th> |
4015 |
</tr> |
4016 |
<tr test="func:keyval('arch')='x86'"> |
4017 |
<ti>gentoo</ti> |
4018 |
<ti>Default 2.6 kernel with support for multiple CPUs</ti> |
4019 |
</tr> |
4020 |
<tr test="func:keyval('arch')='x86'"> |
4021 |
<ti>gentoo-nofb</ti> |
4022 |
<ti>Same as <c>gentoo</c> but without framebuffer support</ti> |
4023 |
</tr> |
4024 |
<tr test="func:keyval('arch')='AMD64'"> |
4025 |
<ti>gentoo</ti> |
4026 |
<ti> |
4027 |
Default kernel with support for K8 CPUS (including NUMA support) and EM64T |
4028 |
CPUs |
4029 |
</ti> |
4030 |
</tr> |
4031 |
<tr> |
4032 |
<ti>memtest86</ti> |
4033 |
<ti>Test your local RAM for errors</ti> |
4034 |
</tr> |
4035 |
</table> |
4036 |
|
4037 |
<p> |
4038 |
You can also provide kernel options. They represent optional settings you can |
4039 |
(de)activate at will. The following list is the same as the one you receive |
4040 |
when you press F2 through F7 at the bootscreen. |
4041 |
</p> |
4042 |
|
4043 |
<pre caption="Options available to pass to your kernel of choice"> |
4044 |
<comment>Hardware options:</comment> |
4045 |
|
4046 |
acpi=on This loads support for ACPI and also causes the acpid daemon to |
4047 |
be started by the CD on boot. This is only needed if your |
4048 |
system requires ACPI to function properly. This is not |
4049 |
required for Hyperthreading support. |
4050 |
|
4051 |
acpi=off Completely disables ACPI. This is useful on some older |
4052 |
systems, and is also a requirement for using APM. This will |
4053 |
disable any Hyperthreading support of your processor. |
4054 |
|
4055 |
console=X This sets up serial console access for the CD. The first |
4056 |
option is the device, usually ttyS0 on x86, followed by any |
4057 |
connection options, which are comma separated. The default |
4058 |
options are 9600,8,n,1. |
4059 |
|
4060 |
dmraid=X This allows for passing options to the device-mapper RAID |
4061 |
subsystem. Options should be encapsulated in quotes. |
4062 |
|
4063 |
doapm This loads APM driver support. This requires you to also use |
4064 |
acpi=off. |
4065 |
|
4066 |
doslowusb This adds some extra pauses into the boot process for the slow |
4067 |
USB CDROM of the IBM BladeCenter. |
4068 |
|
4069 |
dopcmcia This loads support for PCMCIA and Cardbus hardware and also |
4070 |
causes the pcmcia cardmgr to be started by the CD on boot. |
4071 |
This is only required when booting from a PCMCIA/Cardbus device. |
4072 |
|
4073 |
doscsi This loads support for most SCSI controllers. This is also a |
4074 |
requirement for booting most USB devices, as they use the SCSI |
4075 |
subsystem of the kernel. |
4076 |
|
4077 |
hda=stroke This allows you to partition the whole hard disk even when your |
4078 |
BIOS is unable to handle large disks. This option is only used |
4079 |
on machines with an older BIOS. Replace hda with the device |
4080 |
that is requiring this option. |
4081 |
|
4082 |
ide=nodma This forces the disabling of DMA in the kernel and is required |
4083 |
by some IDE chipsets and also by some CDROM drives. If your |
4084 |
system is having trouble reading from your IDE CDROM, try this |
4085 |
option. This also disables the default hdparm settings from |
4086 |
being executed. |
4087 |
|
4088 |
noapic This disables the Advanced Programmable Interrupt Controller |
4089 |
that is present on newer motherboards. It has been known to |
4090 |
cause some problems on older hardware. |
4091 |
|
4092 |
nodetect This disables all of the autodetection done by the CD, |
4093 |
including device autodetection and DHCP probing. This is |
4094 |
useful for doing debugging of a failing CD or driver. |
4095 |
|
4096 |
nodhcp This disables DHCP probing on detected network cards. This is |
4097 |
useful on networks with only static addresses. |
4098 |
|
4099 |
nodmraid Disables support for device-mapper RAID, such as that used for |
4100 |
on-board IDE/SATA RAID controllers. |
4101 |
|
4102 |
nofirewire This disables the loading of Firewire modules. This should only |
4103 |
be necessary if your Firewire hardware is causing a problem |
4104 |
with booting the CD. |
4105 |
|
4106 |
nogpm This disables gpm console mouse support. |
4107 |
|
4108 |
nohotplug This disables the loading of the hotplug and coldplug init |
4109 |
scripts at boot. This is useful for doing debugging of a |
4110 |
failing CD or driver. |
4111 |
|
4112 |
nokeymap This disables the keymap selection used to select non-US |
4113 |
keyboard layouts. |
4114 |
|
4115 |
nolapic This disables the local APIC on Uniprocessor kernels. |
4116 |
|
4117 |
nosata This disables the loading of Serial ATA modules. This is |
4118 |
useful if your system is having problems with the SATA subsystem. |
4119 |
|
4120 |
nosmp This disables SMP, or Symmetric Multiprocessing, on SMP-enabled |
4121 |
kernels. This is useful for debugging SMP-related issues with |
4122 |
certain drivers and motherboards. |
4123 |
|
4124 |
nosound This disables sound support and volume setting. This is useful |
4125 |
for systems where sound support causes problems. |
4126 |
|
4127 |
nousb This disables the autoloading of USB modules. This is useful |
4128 |
for debugging USB issues. |
4129 |
|
4130 |
<comment>Volume/Device Management:</comment> |
4131 |
|
4132 |
dodevfs This enables the deprecated device filesystem on 2.6 systems. |
4133 |
You will also need to use noudev for this to take effect. |
4134 |
Since devfs is the only option with a 2.4 kernel, this option |
4135 |
has no effect if booting a 2.4 kernel. |
4136 |
|
4137 |
doevms This enables support for IBM's pluggable EVMS, or Enterprise |
4138 |
Volume Management System. This is not safe to use with lvm. |
4139 |
|
4140 |
dolvm This enables support for Linux's Logical Volume Management. |
4141 |
This is not safe to use with evms. |
4142 |
|
4143 |
noudev This disables udev support on 2.6 kernels. This option |
4144 |
requires that dodevfs is used. Since udev is not an option for |
4145 |
2.4 kernels, this option has no effect if booting a 2.4 |
4146 |
kernel. |
4147 |
|
4148 |
unionfs Enables support for Unionfs on supported CD images. This will |
4149 |
create a writable Unionfs overlay in a tmpfs, allowing you to |
4150 |
change any file on the CD. |
4151 |
|
4152 |
unionfs=X Enables support for Unionfs on supported CD images. This will |
4153 |
create a writable Unionfs overlay on the device you specify. |
4154 |
The device must be formatted with a filesystem recognized and |
4155 |
writable by the kernel. |
4156 |
|
4157 |
<comment>Other options:</comment> |
4158 |
|
4159 |
debug Enables debugging code. This might get messy, as it displays |
4160 |
a lot of data to the screen. |
4161 |
|
4162 |
docache This caches the entire runtime portion of the CD into RAM, |
4163 |
which allows you to umount /mnt/cdrom and mount another CDROM. |
4164 |
This option requires that you have at least twice as much |
4165 |
available RAM as the size of the CD. |
4166 |
|
4167 |
doload=X This causes the initial ramdisk to load any module listed, as |
4168 |
well as dependencies. Replace X with the module name. Multiple |
4169 |
modules can be specified by a comma-separated list. |
4170 |
|
4171 |
noload=X This causes the initial ramdisk to skip the loading of a |
4172 |
specific module that may be causing a problem. Syntax matches |
4173 |
that of doload. |
4174 |
|
4175 |
nox This causes an X-enabled LiveCD to not automatically start X, |
4176 |
but rather, to drop to the command line instead. |
4177 |
|
4178 |
scandelay This causes the CD to pause for 10 seconds during certain |
4179 |
portions the boot process to allow for devices that are slow to |
4180 |
initialize to be ready for use. |
4181 |
|
4182 |
scandelay=X This allows you to specify a given delay, in seconds, to be |
4183 |
added to certain portions of the boot process to allow for |
4184 |
devices that are slow to initialize to be ready for use. |
4185 |
Replace X with the number of seconds to pause. |
4186 |
</pre> |
4187 |
|
4188 |
<p> |
4189 |
Now boot your CD, select a kernel (if you are not happy with the default |
4190 |
<c>gentoo</c> kernel) and boot options. As an example, we show you how |
4191 |
to boot the <c>gentoo</c> kernel, with <c>dopcmcia</c> as kernel |
4192 |
parameters: |
4193 |
</p> |
4194 |
|
4195 |
<pre caption="Booting an Installation CD"> |
4196 |
boot: <i>gentoo dopcmcia</i> |
4197 |
</pre> |
4198 |
|
4199 |
<p> |
4200 |
You will then be greeted with a boot screen and progress bar. If you are |
4201 |
installing Gentoo on a system with a non-US keyboard, make sure you |
4202 |
immediately press Alt-F1 to switch to verbose mode and follow the prompt. If no |
4203 |
selection is made in 10 seconds the default (US keyboard) will be accepted and |
4204 |
the boot process will continue. Once the boot process completes, Gnome will |
4205 |
start up and you will be automatically logged in to the "Live" Gentoo Linux |
4206 |
system as "gentoo" in graphical mode. You will be logged in as "root", the |
4207 |
superuser on the other consoles and should have a root ("#") prompt there. You |
4208 |
can switch to those consoles by pressing Alt-F2, Alt-F3, Alt-F4 Alt-F5, Alt-F6. |
4209 |
Get back to the graphical desktop you started on by pressing Alt-F7. To switch |
4210 |
to other consoles from within X, you must prefix the above with Ctrl. You are |
4211 |
able to run commands as root from any terminal within the graphical environment |
4212 |
by using the <c>sudo</c> application. You can even become root within a |
4213 |
terminal to perform multiple tasks. |
4214 |
</p> |
4215 |
|
4216 |
<pre caption="Using sudo to run applications"> |
4217 |
<comment>(Example only)</comment> |
4218 |
<comment>(Editing the group file)</comment> |
4219 |
# <i>sudo vi /etc/group</i> |
4220 |
<comment>(Becoming root for a session)</comment> |
4221 |
# <i>sudo su -</i> |
4222 |
</pre> |
4223 |
|
4224 |
</body> |
4225 |
</subsection> |
4226 |
<subsection id="hardware"> |
4227 |
<title>Extra Hardware Configuration</title> |
4228 |
<body> |
4229 |
|
4230 |
<p> |
4231 |
When the LiveCD boots, it tries to detect all your hardware devices and loads |
4232 |
the appropriate kernel modules to support your hardware. In the vast majority |
4233 |
of cases, it does a very good job. However, in some cases, it may not auto-load |
4234 |
the kernel modules you need. If the PCI auto-detection missed some of your |
4235 |
system's hardware, you will have to load the appropriate kernel modules |
4236 |
manually. These tasks require root access. |
4237 |
</p> |
4238 |
|
4239 |
<p> |
4240 |
In the next example we try to load the <c>8139too</c> module (support for |
4241 |
certain kinds of network interfaces): |
4242 |
</p> |
4243 |
|
4244 |
<pre caption="Loading kernel modules"> |
4245 |
# <i>modprobe 8139too</i> |
4246 |
</pre> |
4247 |
|
4248 |
</body> |
4249 |
</subsection> |
4250 |
<subsection> |
4251 |
<title>Optional: Tweaking Hard Disk Performance</title> |
4252 |
<body> |
4253 |
|
4254 |
<p> |
4255 |
If you are an advanced user, you might want to tweak the IDE hard disk |
4256 |
performance using <c>hdparm</c>. You will need root access to use <c>hdparm</c>. |
4257 |
With the <c>-tT</c> options you can test the performance of your disk (execute |
4258 |
it several times to get a more precise impression): |
4259 |
</p> |
4260 |
|
4261 |
<pre caption="Testing disk performance"> |
4262 |
# <i>hdparm -tT /dev/hda</i> |
4263 |
</pre> |
4264 |
|
4265 |
<p> |
4266 |
To tweak, you can use any of the following examples (or experiment |
4267 |
yourself) which use <path>/dev/hda</path> as disk (substitute with your |
4268 |
disk): |
4269 |
</p> |
4270 |
|
4271 |
<pre caption="Tweaking hard disk performance"> |
4272 |
<comment>(Activate DMA:)</comment> |
4273 |
# <i>hdparm -d 1 /dev/hda</i> |
4274 |
<comment>(Or with Safe Performance Options:)</comment> |
4275 |
# <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i> |
4276 |
</pre> |
4277 |
|
4278 |
</body> |
4279 |
</subsection> |
4280 |
<subsection id="useraccounts"> |
4281 |
<title>Optional: User Accounts</title> |
4282 |
<body> |
4283 |
|
4284 |
<p> |
4285 |
If you plan on giving other people access to your installation environment or |
4286 |
you want to chat using <c>irssi</c> without root privileges (for security |
4287 |
reasons), you need to create the necessary user accounts and change the root |
4288 |
password. You need root access to change the root password and add new users. |
4289 |
</p> |
4290 |
|
4291 |
<p> |
4292 |
To change the root password, use the <c>passwd</c> utility: |
4293 |
</p> |
4294 |
|
4295 |
<pre caption="Changing the root password"> |
4296 |
$ <i>sudo su -</i> |
4297 |
# <i>passwd</i> |
4298 |
New password: <comment>(Enter your new password)</comment> |
4299 |
Re-enter password: <comment>(Re-enter your password)</comment> |
4300 |
</pre> |
4301 |
|
4302 |
<p> |
4303 |
To create a user account, we first enter their credentials, followed by its |
4304 |
password. We use <c>useradd</c> and <c>passwd</c> for these tasks. In the next |
4305 |
example, we create a user called "john". |
4306 |
</p> |
4307 |
|
4308 |
<pre caption="Creating a user account"> |
4309 |
# <i>useradd -m -G users john</i> |
4310 |
# <i>passwd john</i> |
4311 |
New password: <comment>(Enter john's password)</comment> |
4312 |
Re-enter password: <comment>(Re-enter john's password)</comment> |
4313 |
</pre> |
4314 |
|
4315 |
<p> |
4316 |
You can change your user id from root to the newly created user by using |
4317 |
<c>su</c>: |
4318 |
</p> |
4319 |
|
4320 |
<pre caption="Changing user id"> |
4321 |
# <i>su - john</i> |
4322 |
</pre> |
4323 |
|
4324 |
<p> |
4325 |
You can also change the password for the "gentoo" user in the graphical |
4326 |
environment. This account is already suitable for use on the Internet. |
4327 |
</p> |
4328 |
|
4329 |
<pre caption="Changing the gentoo password"> |
4330 |
$ <i>passwd</i> |
4331 |
New password: <comment>(Enter your new password)</comment> |
4332 |
Re-enter password: <comment>(Re-enter your password)</comment> |
4333 |
</pre> |
4334 |
|
4335 |
</body> |
4336 |
</subsection> |
4337 |
<subsection> |
4338 |
<title>Optional: Viewing Documentation while Installing</title> |
4339 |
<body> |
4340 |
|
4341 |
<p> |
4342 |
If you want to view the Gentoo Handbook (either from-CD or online) during the |
4343 |
installation, you can view it with Mozilla Firefox (from the graphical |
4344 |
environment) or with <c>links</c> (from a terminal environment). |
4345 |
</p> |
4346 |
|
4347 |
<pre caption="Viewing the on-CD documentation with Firefox"> |
4348 |
# <i>firefox /mnt/cdrom/docs/handbook/html/index.html</i> |
4349 |
</pre> |
4350 |
|
4351 |
<p> |
4352 |
If you would prefer to use <c>links</c> to see a text-only version of the |
4353 |
handbook, make sure you have created a user account (see <uri |
4354 |
link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> |
4355 |
to go to a new terminal and log in. |
4356 |
</p> |
4357 |
|
4358 |
<pre caption="Viewing the on-CD documentation with links"> |
4359 |
# <i>links /mnt/cdrom/docs/handbook/html/index.html</i> |
4360 |
</pre> |
4361 |
|
4362 |
<p> |
4363 |
You can go back to your original window by pressing <c>Alt-F7</c>. |
4364 |
</p> |
4365 |
|
4366 |
<p> |
4367 |
However, it is preferred that you use the online Gentoo Handbook as it will be |
4368 |
more recent than the one provided on the CD. You can view it using Firefox or |
4369 |
<c>links</c> as well, but only after having completed the <e>Configuring your |
4370 |
Network</e> chapter (otherwise you won't be able to go on the Internet to view |
4371 |
the document): |
4372 |
</p> |
4373 |
|
4374 |
<pre caption="Viewing the online documentation with Firefox"> |
4375 |
# <i>firefox http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
4376 |
</pre> |
4377 |
|
4378 |
<pre caption="Viewing the online documentation with links"> |
4379 |
# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
4380 |
</pre> |
4381 |
|
4382 |
<p> |
4383 |
You can now choose to proceed by using the <uri link="?part=1&chap=3">GTK+ |
4384 |
based installer</uri> (which needs X) or the <uri |
4385 |
link="?part=1&chap=4">Dialog based installer</uri> that can be run on a |
4386 |
console. |
4387 |
</p> |
4388 |
|
4389 |
</body> |
4390 |
</subsection> |
4391 |
</section> |
4392 |
</sections> |
4393 |
|
4394 |
|
4395 |
|
4396 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-gtkfe.xml |
4397 |
|
4398 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gtkfe.xml?rev=1.1&view=markup |
4399 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gtkfe.xml?rev=1.1&content-type=text/plain |
4400 |
|
4401 |
Index: hb-install-gtkfe.xml |
4402 |
=================================================================== |
4403 |
<?xml version='1.0' encoding='UTF-8'?> |
4404 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
4405 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-gtkfe.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
4406 |
|
4407 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
4408 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
4409 |
|
4410 |
<sections> |
4411 |
|
4412 |
<version>4.0</version> |
4413 |
<date>2007-06-02</date> |
4414 |
|
4415 |
<section> |
4416 |
<title>Welcome</title> |
4417 |
<subsection> |
4418 |
<title>Before you begin</title> |
4419 |
<body> |
4420 |
|
4421 |
<p> |
4422 |
The Gentoo Linux Installer (GLI) provides a friendly introduction to the process |
4423 |
of installing Gentoo on your computer. Remember to read each option carefully. |
4424 |
There is detailed help available for each step of installation; just look to |
4425 |
the left of each screen. We recommend that you always read the help pages before |
4426 |
making your choices. Note that at any time during the installation process, you |
4427 |
can save your configuration progress in case you need to resume your |
4428 |
installation at a later time. |
4429 |
</p> |
4430 |
|
4431 |
</body> |
4432 |
</subsection> |
4433 |
</section> |
4434 |
|
4435 |
<section> |
4436 |
<title>Partitioning</title> |
4437 |
<subsection> |
4438 |
<title>Preparing the disks</title> |
4439 |
<body> |
4440 |
|
4441 |
<p> |
4442 |
In order to install Gentoo on your machine, you will need to prepare your |
4443 |
disks. The <e>Partitioning</e> screen will show you a list of detected disks and |
4444 |
allow you to specify the filesystems you would like to have on your |
4445 |
partitions. Clicking <c>Clear partitions</c> will erase all previous partitions on |
4446 |
your disk, so be careful with this option! It is also possible to resize |
4447 |
certain partition types. |
4448 |
</p> |
4449 |
|
4450 |
<p> |
4451 |
If you choose to go with the <c>Recommended layout</c>, the installer will erase |
4452 |
any previous partitions on your disk and create three partitions: 100MB for |
4453 |
<path>/boot</path>, a <path>/swap</path> partition up to 512MB in size, and the |
4454 |
rest of the available space on the disk is used for <path>/</path>, the root |
4455 |
partition. |
4456 |
</p> |
4457 |
|
4458 |
<warn> |
4459 |
As with any partitioning application, you should backup your system before |
4460 |
making changes to your partition table, as any possible bugs could cause data |
4461 |
loss. Any changes you make to your partition table will be performed by the |
4462 |
installer immediately. |
4463 |
</warn> |
4464 |
|
4465 |
</body> |
4466 |
</subsection> |
4467 |
</section> |
4468 |
|
4469 |
<section> |
4470 |
<title>Timezone</title> |
4471 |
<subsection> |
4472 |
<title>Choose your timezone</title> |
4473 |
<body> |
4474 |
|
4475 |
<p> |
4476 |
Study the map and select the region closest to your actual location. Later, |
4477 |
you will be asked to select if you want your clock to be set to UTC or local |
4478 |
time. |
4479 |
</p> |
4480 |
|
4481 |
</body> |
4482 |
</subsection> |
4483 |
</section> |
4484 |
|
4485 |
<section> |
4486 |
<title>Networking</title> |
4487 |
<subsection> |
4488 |
<title>Device information</title> |
4489 |
<body> |
4490 |
|
4491 |
<p> |
4492 |
On this screen, you will be able to configure the various network interface |
4493 |
devices on your computer. Read the available options carefully. |
4494 |
</p> |
4495 |
|
4496 |
<p> |
4497 |
On the <e>Hostname/Proxy Information/Other</e> tab, you will need to choose a |
4498 |
hostname for your machine. You may also specify proxy server and DNS settings |
4499 |
if needed. |
4500 |
</p> |
4501 |
|
4502 |
</body> |
4503 |
</subsection> |
4504 |
</section> |
4505 |
|
4506 |
<section> |
4507 |
<title>Users</title> |
4508 |
<subsection> |
4509 |
<title>Adding users and groups</title> |
4510 |
<body> |
4511 |
|
4512 |
<p> |
4513 |
First set the root password for the system administrator (the <e>root</e> |
4514 |
user). |
4515 |
</p> |
4516 |
|
4517 |
<p> |
4518 |
We <e>strongly</e> recommend that you create a regular user for daily work. |
4519 |
Working as root all the time is <e>dangerous</e> and should be avoided! Create |
4520 |
your users, add them to the appropriate groups, and set their passwords. You |
4521 |
can optionally change their home directories, select their login shell, and |
4522 |
set helpful comments. |
4523 |
</p> |
4524 |
|
4525 |
</body> |
4526 |
</subsection> |
4527 |
</section> |
4528 |
|
4529 |
<section> |
4530 |
<title>Extra Packages</title> |
4531 |
<subsection> |
4532 |
<title>Optional: installing extra packages</title> |
4533 |
<body> |
4534 |
|
4535 |
<p> |
4536 |
The LiveCD contains a number of available pre-built packages. If you wish to |
4537 |
install any of them, check the appropriate box. |
4538 |
</p> |
4539 |
|
4540 |
</body> |
4541 |
</subsection> |
4542 |
</section> |
4543 |
|
4544 |
<section> |
4545 |
<title>Startup Services</title> |
4546 |
<subsection> |
4547 |
<body> |
4548 |
|
4549 |
<p> |
4550 |
This screen allows you to choose various services to load at system boot. |
4551 |
Study the available options and their descriptions carefully, and then select |
4552 |
your desired services. For example, if you have chosen to install |
4553 |
<c>xorg-x11</c> and want to boot straight into a graphical desktop, then you |
4554 |
would select "xdm" from the list. |
4555 |
</p> |
4556 |
|
4557 |
</body> |
4558 |
</subsection> |
4559 |
</section> |
4560 |
|
4561 |
<section> |
4562 |
<title>Other Settings</title> |
4563 |
<subsection> |
4564 |
<title>Miscellaneous options</title> |
4565 |
<body> |
4566 |
|
4567 |
<p> |
4568 |
Now you will be able to change various settings, including keyboard layout, |
4569 |
graphical display manager, the default editor, and whether to set your |
4570 |
hardware clock to UTC or local time. |
4571 |
</p> |
4572 |
|
4573 |
</body> |
4574 |
</subsection> |
4575 |
</section> |
4576 |
|
4577 |
<section> |
4578 |
<title>Finishing Up</title> |
4579 |
<subsection> |
4580 |
<body> |
4581 |
|
4582 |
<p> |
4583 |
At this point, you're done. You can reboot into your new Gentoo system at any |
4584 |
time. |
4585 |
</p> |
4586 |
|
4587 |
<p> |
4588 |
Congratulations, your system is now fully equipped! Continue with <uri |
4589 |
link="?part=1&chap=5">Where to go from here?</uri> to learn more about |
4590 |
Gentoo. |
4591 |
</p> |
4592 |
|
4593 |
</body> |
4594 |
</subsection> |
4595 |
</section> |
4596 |
</sections> |
4597 |
|
4598 |
|
4599 |
|
4600 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-bootloader.xml |
4601 |
|
4602 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-bootloader.xml?rev=1.1&view=markup |
4603 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-bootloader.xml?rev=1.1&content-type=text/plain |
4604 |
|
4605 |
Index: hb-install-hppa-bootloader.xml |
4606 |
=================================================================== |
4607 |
<?xml version='1.0' encoding='UTF-8'?> |
4608 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
4609 |
|
4610 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
4611 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
4612 |
|
4613 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-bootloader.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
4614 |
|
4615 |
<sections> |
4616 |
|
4617 |
<version>9.0</version> |
4618 |
<date>2007-05-07</date> |
4619 |
|
4620 |
<section> |
4621 |
<title>Installing PALO</title> |
4622 |
<body> |
4623 |
|
4624 |
<p> |
4625 |
On the PA-RISC platform, the boot loader is called palo. You can find the |
4626 |
configuration file in <path>/etc/palo.conf</path>. Here is a sample |
4627 |
configuration: |
4628 |
</p> |
4629 |
|
4630 |
<pre caption = "/etc/palo.conf example"> |
4631 |
--commandline=2/<keyval id="kernel-name"/> root=/dev/sda4 |
4632 |
--recoverykernel=/vmlinux.old |
4633 |
--init-partitioned=/dev/sda |
4634 |
</pre> |
4635 |
|
4636 |
<p> |
4637 |
The first line tells palo the location of the kernel and which boot parameters |
4638 |
it must use. <c>2/<keyval id="kernel-name"/></c> means the kernel named |
4639 |
<c><keyval id="kernel-name"/></c> resides on the second partition. Beware, the |
4640 |
path to the kernel is relative to the partition, not to the root of your |
4641 |
filesystem. |
4642 |
</p> |
4643 |
|
4644 |
<p> |
4645 |
The second line indicates which recovery kernel to use. If it is your |
4646 |
first install and you do not have a recovery kernel, please comment this |
4647 |
out. The third line indicates on which disk palo will reside. |
4648 |
</p> |
4649 |
|
4650 |
<p> |
4651 |
When configuration is done, just run <c>palo</c>. |
4652 |
</p> |
4653 |
|
4654 |
<pre caption = "Applying the PALO configuration"> |
4655 |
# <i>palo</i> |
4656 |
</pre> |
4657 |
|
4658 |
<p> |
4659 |
Now continue with <uri link="#reboot">Rebooting the System</uri>. |
4660 |
</p> |
4661 |
|
4662 |
</body> |
4663 |
</section> |
4664 |
<section id="reboot"> |
4665 |
<title>Rebooting the System</title> |
4666 |
<subsection> |
4667 |
<body> |
4668 |
|
4669 |
<p> |
4670 |
Exit the chrooted environment and unmount all mounted partitions. Then type in |
4671 |
that one magical command you have been waiting for: <c>reboot</c>. |
4672 |
</p> |
4673 |
|
4674 |
<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
4675 |
# <i>exit</i> |
4676 |
cdimage ~# <i>cd</i> |
4677 |
cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i> |
4678 |
cdimage ~# <i>reboot</i> |
4679 |
</pre> |
4680 |
|
4681 |
<p> |
4682 |
Of course, don't forget to remove the bootable CD, otherwise the CD will be |
4683 |
booted again instead of your new Gentoo system. |
4684 |
</p> |
4685 |
|
4686 |
<p> |
4687 |
Once rebooted in your Gentoo installation, finish up with <uri |
4688 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
4689 |
</p> |
4690 |
|
4691 |
</body> |
4692 |
</subsection> |
4693 |
</section> |
4694 |
</sections> |
4695 |
|
4696 |
|
4697 |
|
4698 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-disk.xml |
4699 |
|
4700 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-disk.xml?rev=1.1&view=markup |
4701 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-disk.xml?rev=1.1&content-type=text/plain |
4702 |
|
4703 |
Index: hb-install-hppa-disk.xml |
4704 |
=================================================================== |
4705 |
<?xml version='1.0' encoding='UTF-8'?> |
4706 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
4707 |
|
4708 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
4709 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
4710 |
|
4711 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-disk.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
4712 |
|
4713 |
<sections> |
4714 |
|
4715 |
<version>9.0</version> |
4716 |
<date>2007-06-26</date> |
4717 |
|
4718 |
<section> |
4719 |
<title>Introduction to Block Devices</title> |
4720 |
<subsection> |
4721 |
<title>Block Devices</title> |
4722 |
<body> |
4723 |
|
4724 |
<p> |
4725 |
We'll take a good look at disk-oriented aspects of Gentoo Linux |
4726 |
and Linux in general, including Linux filesystems, partitions and block devices. |
4727 |
Then, once you're familiar with the ins and outs of disks and filesystems, |
4728 |
you'll be guided through the process of setting up partitions and filesystems |
4729 |
for your Gentoo Linux installation. |
4730 |
</p> |
4731 |
|
4732 |
<p> |
4733 |
To begin, we'll introduce <e>block devices</e>. The most famous block device is |
4734 |
probably the one that represents the first SCSI HD in a Linux system, namely |
4735 |
<path>/dev/sda</path>. |
4736 |
</p> |
4737 |
|
4738 |
<p> |
4739 |
The block devices above represent an abstract interface to the disk. User |
4740 |
programs can use these block devices to interact with your disk without worrying |
4741 |
about whether your drives are IDE, SCSI or something else. The program can |
4742 |
simply address the storage on the disk as a bunch of contiguous, |
4743 |
randomly-accessible 512-byte blocks. |
4744 |
</p> |
4745 |
|
4746 |
</body> |
4747 |
</subsection> |
4748 |
<subsection> |
4749 |
<title>Partitions and Slices</title> |
4750 |
<body> |
4751 |
|
4752 |
<p> |
4753 |
Although it is theoretically possible to use a full disk to house your Linux |
4754 |
system, this is almost never done in practice. Instead, full disk block devices |
4755 |
are split up in smaller, more manageable block devices. On most systems, |
4756 |
these are called <e>partitions</e>. Other architectures use a similar technique, |
4757 |
called <e>slices</e>. |
4758 |
</p> |
4759 |
|
4760 |
</body> |
4761 |
</subsection> |
4762 |
</section> |
4763 |
<section> |
4764 |
<title>Designing a Partitioning Scheme</title> |
4765 |
<subsection> |
4766 |
<title>How Many and How Big?</title> |
4767 |
<body> |
4768 |
|
4769 |
<p> |
4770 |
The number of partitions is highly dependent on your environment. For instance, |
4771 |
if you have lots of users, you will most likely want to have your |
4772 |
<path>/home</path> separate as it increases security and makes backups easier. |
4773 |
If you are installing Gentoo to perform as a mailserver, your |
4774 |
<path>/var</path> should be separate as all mails are stored inside |
4775 |
<path>/var</path>. A good choice of filesystem will then maximise your |
4776 |
performance. Gameservers will have a separate <path>/opt</path> as most gaming |
4777 |
servers are installed there. The reason is similar for <path>/home</path>: |
4778 |
security and backups. You will definitely want to keep <path>/usr</path> big: |
4779 |
not only will it contain the majority of applications, the Portage tree alone |
4780 |
takes around 500 Mbyte excluding the various sources that are stored in it. |
4781 |
</p> |
4782 |
|
4783 |
<p> |
4784 |
As you can see, it very much depends on what you want to achieve. Separate |
4785 |
partitions or volumes have the following advantages: |
4786 |
</p> |
4787 |
|
4788 |
<ul> |
4789 |
<li> |
4790 |
You can choose the best performing filesystem for each partition or volume |
4791 |
</li> |
4792 |
<li> |
4793 |
Your entire system cannot run out of free space if one defunct tool is |
4794 |
continuously writing files to a partition or volume |
4795 |
</li> |
4796 |
<li> |
4797 |
If necessary, file system checks are reduced in time, as multiple checks can |
4798 |
be done in parallel (although this advantage is more with multiple disks than |
4799 |
it is with multiple partitions) |
4800 |
</li> |
4801 |
<li> |
4802 |
Security can be enhanced by mounting some partitions or volumes read-only, |
4803 |
nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc. |
4804 |
</li> |
4805 |
</ul> |
4806 |
|
4807 |
<p> |
4808 |
However, multiple partitions have one big disadvantage: if not configured |
4809 |
properly, you might result in having a system with lots of free space on one |
4810 |
partition and none on another. There is also a 15-partition limit for SCSI and |
4811 |
SATA. |
4812 |
</p> |
4813 |
|
4814 |
</body> |
4815 |
</subsection> |
4816 |
</section> |
4817 |
<section> |
4818 |
<title>Using fdisk on HPPA to Partition your Disk</title> |
4819 |
<body> |
4820 |
|
4821 |
<p> |
4822 |
Use <c>fdisk</c> to create the partitions you want: |
4823 |
</p> |
4824 |
|
4825 |
<pre caption="Partitioning the disk"> |
4826 |
# <i>fdisk /dev/sda</i> |
4827 |
</pre> |
4828 |
|
4829 |
<p> |
4830 |
HPPA machines use the PC standard DOS partition tables. To create a new |
4831 |
DOS partition table, simply use the <c>o</c> command. |
4832 |
</p> |
4833 |
|
4834 |
<pre caption="Creating a DOS partition table"> |
4835 |
# <i>fdisk /dev/sda</i> |
4836 |
|
4837 |
Command (m for help): <i>o</i> |
4838 |
Building a new DOS disklabel. |
4839 |
</pre> |
4840 |
|
4841 |
<p> |
4842 |
PALO (the HPPA bootloader) needs a special partition to work. You have |
4843 |
to create a partition of at least 16MB at the beginning of your disk. |
4844 |
The partition type must be of type <e>f0</e> (Linux/PA-RISC boot). |
4845 |
</p> |
4846 |
|
4847 |
<impo> |
4848 |
If you ignore this and continue without a special PALO partition, your system |
4849 |
will stop loving you and fail to start. Also, if your disk is larger than 2GB, |
4850 |
make sure that the boot partition is in the first 2GB of your disk. PALO is |
4851 |
unable to read a kernel after the 2GB limit. |
4852 |
</impo> |
4853 |
|
4854 |
<pre caption="A simple default partition schema"> |
4855 |
# <i>cat /etc/fstab</i> |
4856 |
/dev/sda2 /boot ext3 noauto,noatime 1 1 |
4857 |
/dev/sda3 none swap sw 0 0 |
4858 |
/dev/sda4 / ext3 noatime 0 0 |
4859 |
|
4860 |
# <i>fdisk /dev/sda</i> |
4861 |
|
4862 |
Command (m for help): <i>p</i> |
4863 |
|
4864 |
Disk /dev/sda: 4294 MB, 4294816768 bytes |
4865 |
133 heads, 62 sectors/track, 1017 cylinders |
4866 |
Units = cylinders of 8246 * 512 = 4221952 bytes |
4867 |
|
4868 |
Device Boot Start End Blocks Id System |
4869 |
/dev/sda1 1 8 32953 f0 Linux/PA-RISC boot |
4870 |
/dev/sda2 9 20 49476 83 Linux |
4871 |
/dev/sda3 21 70 206150 82 Linux swap |
4872 |
/dev/sda4 71 1017 3904481 83 Linux |
4873 |
</pre> |
4874 |
|
4875 |
<p> |
4876 |
Now that your partitions are created, you can now continue with <uri |
4877 |
link="#filesystems">Creating Filesystems</uri>. |
4878 |
</p> |
4879 |
|
4880 |
</body> |
4881 |
</section> |
4882 |
<section id="filesystems"> |
4883 |
<title>Creating Filesystems</title> |
4884 |
<subsection> |
4885 |
<title>Introduction</title> |
4886 |
<body> |
4887 |
|
4888 |
<p> |
4889 |
Now that your partitions are created, it is time to place a filesystem on them. |
4890 |
If you don't care about what filesystem to choose and are happy with what we use |
4891 |
as default in this handbook, continue with <uri |
4892 |
link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
4893 |
Otherwise read on to learn about the available filesystems... |
4894 |
</p> |
4895 |
|
4896 |
</body> |
4897 |
</subsection> |
4898 |
<subsection> |
4899 |
<title>Filesystems?</title> |
4900 |
<body> |
4901 |
|
4902 |
<p> |
4903 |
Several filesystems are available. Ext2, ext3, XFS and reiserfs are found stable |
4904 |
on the HPPA architecture. The others are very experimental. |
4905 |
</p> |
4906 |
|
4907 |
<p> |
4908 |
<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata |
4909 |
journaling, which means that routine ext2 filesystem checks at startup time can |
4910 |
be quite time-consuming. There is now quite a selection of newer-generation |
4911 |
journaled filesystems that can be checked for consistency very quickly and are |
4912 |
thus generally preferred over their non-journaled counterparts. Journaled |
4913 |
filesystems prevent long delays when you boot your system and your filesystem |
4914 |
happens to be in an inconsistent state. |
4915 |
</p> |
4916 |
|
4917 |
<p> |
4918 |
<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata |
4919 |
journaling for fast recovery in addition to other enhanced journaling modes like |
4920 |
full data and ordered data journaling. It uses an HTree index that enables high |
4921 |
performance in almost all situations. In short, ext3 is a very good and reliable |
4922 |
filesystem. |
4923 |
</p> |
4924 |
|
4925 |
<p> |
4926 |
<b>ReiserFS</b> is a B+tree-based filesystem that has very good overall |
4927 |
performance and greatly outperforms both ext2 and ext3 when dealing with small |
4928 |
files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales |
4929 |
extremely well and has metadata journaling. ReiserFS is solid and usable as |
4930 |
both general-purpose filesystem and for extreme cases such as the creation of |
4931 |
large filesystems, very large files and directories containing tens of |
4932 |
thousands of small files. |
4933 |
</p> |
4934 |
|
4935 |
<p> |
4936 |
<b>XFS</b> is a filesystem with metadata journaling which comes with a robust |
4937 |
feature-set and is optimized for scalability. We only recommend using this |
4938 |
filesystem on Linux systems with high-end SCSI and/or fibre channel storage and |
4939 |
an uninterruptible power supply. Because XFS aggressively caches in-transit data |
4940 |
in RAM, improperly designed programs (those that don't take proper precautions |
4941 |
when writing files to disk and there are quite a few of them) can lose a good |
4942 |
deal of data if the system goes down unexpectedly. |
4943 |
</p> |
4944 |
|
4945 |
<p> |
4946 |
<b>JFS</b> is IBM's high-performance journaling filesystem. It has recently |
4947 |
become production-ready and there hasn't been a sufficient track record to |
4948 |
comment positively nor negatively on its general stability at this point. |
4949 |
</p> |
4950 |
|
4951 |
</body> |
4952 |
</subsection> |
4953 |
<subsection id="filesystems-apply"> |
4954 |
<title>Applying a Filesystem to a Partition</title> |
4955 |
<body> |
4956 |
|
4957 |
<p> |
4958 |
To create a filesystem on a partition or volume, there are tools available for |
4959 |
each possible filesystem: |
4960 |
</p> |
4961 |
|
4962 |
<table> |
4963 |
<tr> |
4964 |
<th>Filesystem</th> |
4965 |
<th>Creation Command</th> |
4966 |
</tr> |
4967 |
<tr> |
4968 |
<ti>ext2</ti> |
4969 |
<ti><c>mke2fs</c></ti> |
4970 |
</tr> |
4971 |
<tr> |
4972 |
<ti>ext3</ti> |
4973 |
<ti><c>mke2fs -j</c></ti> |
4974 |
</tr> |
4975 |
<tr> |
4976 |
<ti>reiserfs</ti> |
4977 |
<ti><c>mkreiserfs</c></ti> |
4978 |
</tr> |
4979 |
<tr> |
4980 |
<ti>xfs</ti> |
4981 |
<ti><c>mkfs.xfs</c></ti> |
4982 |
</tr> |
4983 |
<tr> |
4984 |
<ti>jfs</ti> |
4985 |
<ti><c>mkfs.jfs</c></ti> |
4986 |
</tr> |
4987 |
</table> |
4988 |
|
4989 |
<p> |
4990 |
For instance, to have the boot partition (<path>/dev/sda2</path> in our |
4991 |
example) in ext2 and the root partition (<path>/dev/sda4</path> in our example) |
4992 |
in ext3 (as in our example), you would use: |
4993 |
</p> |
4994 |
|
4995 |
<pre caption="Applying a filesystem on a partition"> |
4996 |
# <i>mke2fs /dev/sda2</i> |
4997 |
# <i>mke2fs -j /dev/sda4</i> |
4998 |
</pre> |
4999 |
|
5000 |
<p> |
5001 |
Now create the filesystems on your newly created partitions (or logical |
5002 |
volumes). |
5003 |
</p> |
5004 |
|
5005 |
</body> |
5006 |
</subsection> |
5007 |
<subsection> |
5008 |
<title>Activating the Swap Partition</title> |
5009 |
<body> |
5010 |
|
5011 |
<p> |
5012 |
<c>mkswap</c> is the command that is used to initialize swap partitions: |
5013 |
</p> |
5014 |
|
5015 |
<pre caption="Creating a Swap signature"> |
5016 |
# <i>mkswap /dev/sda3</i> |
5017 |
</pre> |
5018 |
|
5019 |
<p> |
5020 |
To activate the swap partition, use <c>swapon</c>: |
5021 |
</p> |
5022 |
|
5023 |
<pre caption="Activating the swap partition"> |
5024 |
# <i>swapon /dev/sda3</i> |
5025 |
</pre> |
5026 |
|
5027 |
<p> |
5028 |
Create and activate the swap now. |
5029 |
</p> |
5030 |
|
5031 |
</body> |
5032 |
</subsection> |
5033 |
</section> |
5034 |
<section> |
5035 |
<title>Mounting</title> |
5036 |
<subsection> |
5037 |
<body> |
5038 |
|
5039 |
<p> |
5040 |
Now that your partitions are initialized and are housing a filesystem, it is |
5041 |
time to mount those partitions. Use the <c>mount</c> command. Don't forget to |
5042 |
create the necessary mount directories for every partition you created. As an |
5043 |
example we mount the root and boot partition: |
5044 |
</p> |
5045 |
|
5046 |
<pre caption="Mounting partitions"> |
5047 |
# <i>mount /dev/sda4 /mnt/gentoo</i> |
5048 |
# <i>mkdir /mnt/gentoo/boot</i> |
5049 |
# <i>mount /dev/sda2 /mnt/gentoo/boot</i> |
5050 |
</pre> |
5051 |
|
5052 |
<note> |
5053 |
If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
5054 |
change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This |
5055 |
also holds for <path>/var/tmp</path>. |
5056 |
</note> |
5057 |
|
5058 |
<p> |
5059 |
We will also have to mount the proc filesystem (a virtual interface with the |
5060 |
kernel) on <path>/proc</path>. But first we will need to place our files on the |
5061 |
partitions. |
5062 |
</p> |
5063 |
|
5064 |
<p> |
5065 |
Continue with <uri link="?part=1&chap=5">Installing the Gentoo |
5066 |
Installation Files</uri>. |
5067 |
</p> |
5068 |
|
5069 |
</body> |
5070 |
</subsection> |
5071 |
</section> |
5072 |
</sections> |
5073 |
|
5074 |
|
5075 |
|
5076 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-kernel.xml |
5077 |
|
5078 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-kernel.xml?rev=1.1&view=markup |
5079 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-kernel.xml?rev=1.1&content-type=text/plain |
5080 |
|
5081 |
Index: hb-install-hppa-kernel.xml |
5082 |
=================================================================== |
5083 |
<?xml version='1.0' encoding='UTF-8'?> |
5084 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
5085 |
|
5086 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
5087 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5088 |
|
5089 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-kernel.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
5090 |
|
5091 |
<sections> |
5092 |
|
5093 |
<version>9.0</version> |
5094 |
<date>2007-08-12</date> |
5095 |
|
5096 |
<section> |
5097 |
<title>Timezone</title> |
5098 |
<body> |
5099 |
|
5100 |
<p> |
5101 |
You first need to select your timezone so that your system knows where it is |
5102 |
located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy |
5103 |
it to <path>/etc/localtime</path>. Please avoid the |
5104 |
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not |
5105 |
indicate the expected zones. For instance, <path>GMT-8</path> is in fact |
5106 |
GMT+8. |
5107 |
</p> |
5108 |
|
5109 |
<pre caption="Setting the timezone information"> |
5110 |
# <i>ls /usr/share/zoneinfo</i> |
5111 |
<comment>(Suppose you want to use GMT)</comment> |
5112 |
# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> |
5113 |
</pre> |
5114 |
|
5115 |
</body> |
5116 |
</section> |
5117 |
<section> |
5118 |
<title>Installing the Sources</title> |
5119 |
<subsection> |
5120 |
<title>Choosing a Kernel</title> |
5121 |
<body> |
5122 |
|
5123 |
<p> |
5124 |
The core around which all distributions are built is the Linux kernel. It is the |
5125 |
layer between the user programs and your system hardware. Gentoo provides its |
5126 |
users several possible kernel sources. A full listing with description is |
5127 |
available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel |
5128 |
Guide</uri>. |
5129 |
</p> |
5130 |
|
5131 |
<p> |
5132 |
For HPPA we have <c>hppa-sources</c>. By default these sources are based on the |
5133 |
2.6 kernel sources. |
5134 |
</p> |
5135 |
|
5136 |
<pre caption="Installing a kernel source"> |
5137 |
# <i>emerge hppa-sources</i> |
5138 |
</pre> |
5139 |
|
5140 |
<p> |
5141 |
When you take a look in <path>/usr/src</path> you should see a symlink called |
5142 |
<path>linux</path> pointing to your kernel source. In this case, the installed |
5143 |
kernel source points to <c>hppa-sources-<keyval id="kernel-version"/></c>. Your |
5144 |
version may be different, so keep this in mind. |
5145 |
</p> |
5146 |
|
5147 |
<pre caption="Viewing the kernel source symlink"> |
5148 |
# <i>ls -l /usr/src/linux</i> |
5149 |
lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -> linux-<keyval id="kernel-version"/> |
5150 |
</pre> |
5151 |
|
5152 |
<p> |
5153 |
Now it is time to configure and compile your kernel source. All architectures |
5154 |
can use <c>genkernel</c> for this, which will build a generic kernel as used |
5155 |
by the Installation CD. We explain the "manual" configuration first though, as |
5156 |
it is the best way to optimize your environment. |
5157 |
</p> |
5158 |
|
5159 |
<p> |
5160 |
If you want to manually configure your kernel, continue now with <uri |
5161 |
link="#manual">Default: Manual Configuration</uri>. If you want to use |
5162 |
<c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using |
5163 |
genkernel</uri> instead. |
5164 |
</p> |
5165 |
|
5166 |
</body> |
5167 |
</subsection> |
5168 |
</section> |
5169 |
<section id="manual"> |
5170 |
<title>Default: Manual Configuration</title> |
5171 |
<subsection> |
5172 |
<title>Introduction</title> |
5173 |
<body> |
5174 |
|
5175 |
<p> |
5176 |
Manually configuring a kernel is often seen as the most difficult procedure a |
5177 |
Linux user ever has to perform. Nothing is less true -- after configuring a |
5178 |
couple of kernels you don't even remember that it was difficult ;) |
5179 |
</p> |
5180 |
|
5181 |
<p> |
5182 |
However, one thing <e>is</e> true: you must know your system when you start |
5183 |
configuring a kernel manually. Most information can be gathered by emerging |
5184 |
pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now |
5185 |
be able to use <c>lspci</c> within the chrooted environment. You may safely |
5186 |
ignore any <e>pcilib</e> warnings (like pcilib: cannot open |
5187 |
/sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run |
5188 |
<c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same. |
5189 |
You can also run <c>lsmod</c> to see what kernel modules the Installation CD |
5190 |
uses (it might provide you with a nice hint on what to enable). |
5191 |
</p> |
5192 |
|
5193 |
<p> |
5194 |
Now go to your kernel source directory and execute <c>make menuconfig</c>. This |
5195 |
will fire up an ncurses-based configuration menu. |
5196 |
</p> |
5197 |
|
5198 |
<pre caption="Invoking menuconfig"> |
5199 |
# <i>cd /usr/src/linux</i> |
5200 |
# <i>make menuconfig</i> |
5201 |
</pre> |
5202 |
|
5203 |
<p> |
5204 |
You will be greeted with several configuration sections. We'll first list some |
5205 |
options you must activate (otherwise Gentoo will not function, or not function |
5206 |
properly without additional tweaks). |
5207 |
</p> |
5208 |
|
5209 |
</body> |
5210 |
</subsection> |
5211 |
<subsection> |
5212 |
<title>Activating Required Options</title> |
5213 |
<body> |
5214 |
|
5215 |
<p> |
5216 |
First of all, activate the use of development and experimental code/drivers. |
5217 |
You need this, otherwise some very important code/drivers won't show up: |
5218 |
</p> |
5219 |
|
5220 |
<pre caption="Selecting experimental code/drivers"> |
5221 |
General setup ---> |
5222 |
[*] Prompt for development and/or incomplete code/drivers |
5223 |
</pre> |
5224 |
|
5225 |
<p> |
5226 |
Now go to <c>File Systems</c> and select support for the filesystems you use. |
5227 |
<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
5228 |
able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc |
5229 |
file system</c>. |
5230 |
</p> |
5231 |
|
5232 |
<pre caption="Selecting necessary file systems"> |
5233 |
File systems ---> |
5234 |
Pseudo Filesystems ---> |
5235 |
[*] /proc file system support |
5236 |
[*] Virtual memory file system support (former shm fs) |
5237 |
|
5238 |
<comment>(Select one or more of the following options as needed by your system)</comment> |
5239 |
<*> Reiserfs support |
5240 |
<*> Ext3 journalling file system support |
5241 |
<*> JFS filesystem support |
5242 |
<*> Second extended fs support |
5243 |
<*> XFS filesystem support |
5244 |
</pre> |
5245 |
|
5246 |
<p> |
5247 |
If you are using PPPoE to connect to the Internet or you are using a dial-up |
5248 |
modem, you will need the following options in the kernel: |
5249 |
</p> |
5250 |
|
5251 |
<pre caption="Selecting PPPoE necessary drivers"> |
5252 |
Device Drivers ---> |
5253 |
Networking support ---> |
5254 |
<*> PPP (point-to-point protocol) support |
5255 |
<*> PPP support for async serial ports |
5256 |
<*> PPP support for sync tty ports |
5257 |
</pre> |
5258 |
|
5259 |
<p> |
5260 |
The two compression options won't harm but are not definitely needed, neither |
5261 |
does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c> |
5262 |
when configured to do kernel mode PPPoE. |
5263 |
</p> |
5264 |
|
5265 |
<p> |
5266 |
If you require it, don't forget to include support in the kernel for your |
5267 |
ethernet card. |
5268 |
</p> |
5269 |
|
5270 |
<p> |
5271 |
If you have a HIL mouse or keyboard, do not forget to compile in support for |
5272 |
them. |
5273 |
</p> |
5274 |
|
5275 |
<pre caption="Activating HIL support"> |
5276 |
Input core support ---> |
5277 |
[*] Keyboard support |
5278 |
[*] Mouse support |
5279 |
[*] Event interface support |
5280 |
</pre> |
5281 |
|
5282 |
<p> |
5283 |
If you have no mouse on your HIL port, only use the basic support: |
5284 |
</p> |
5285 |
|
5286 |
<pre caption="Basic HIL support"> |
5287 |
HIL support ---> |
5288 |
[*] HIL Keyboard (basic) support |
5289 |
</pre> |
5290 |
|
5291 |
<p> |
5292 |
If you however want <e>full</e> HIL support, select the following options: |
5293 |
</p> |
5294 |
|
5295 |
<pre caption="Full HIL support"> |
5296 |
HIL support ---> |
5297 |
[*] HP System Device Controller i8042 Support |
5298 |
[*] HIL MLC Support |
5299 |
[*] HIL Keyboard (full) support |
5300 |
[*] HIL Mouse & Pointer support |
5301 |
</pre> |
5302 |
|
5303 |
<p> |
5304 |
Also include display driver support: |
5305 |
</p> |
5306 |
|
5307 |
<pre caption="Display Driver support"> |
5308 |
Graphics support ---> |
5309 |
[*] Support for frame buffer devices |
5310 |
[*] HP STI frame buffer device support |
5311 |
Console display driver support ---> |
5312 |
[*] STI text console |
5313 |
</pre> |
5314 |
|
5315 |
<p> |
5316 |
When you're done configuring your kernel, continue with <uri |
5317 |
link="#compiling">Compiling and Installing</uri>. |
5318 |
</p> |
5319 |
|
5320 |
</body> |
5321 |
</subsection> |
5322 |
<subsection id="compiling"> |
5323 |
<title>Compiling and Installing</title> |
5324 |
<body> |
5325 |
|
5326 |
<impo> |
5327 |
If you want to compile a 64-bit kernel, you'll need to emerge <c>kgcc64</c> |
5328 |
<e>after</e> you've finished installing Gentoo and rebooted. However, running a |
5329 |
64-bit kernel is discouraged. You should only run a 64-bit kernel if you have |
5330 |
more than 4GB of RAM or if your server requires it, i.e. on the A500. |
5331 |
</impo> |
5332 |
|
5333 |
<p> |
5334 |
Now that your kernel is configured, it is time to compile and install it. Exit |
5335 |
the configuration and start the compilation process: |
5336 |
</p> |
5337 |
|
5338 |
<pre caption="Compiling the kernel"> |
5339 |
# <i>make && make modules_install</i> |
5340 |
</pre> |
5341 |
|
5342 |
<p> |
5343 |
When the kernel has finished compiling, copy the kernel image to |
5344 |
<path>/boot</path>. Use whatever name you feel is appropriate for your kernel |
5345 |
choice and remember it as you will need it later on when you configure your |
5346 |
bootloader. Remember to replace <path><kernel-version></path> with the |
5347 |
name and version of your kernel. |
5348 |
</p> |
5349 |
|
5350 |
<pre caption="Installing the kernel"> |
5351 |
# <i>cp vmlinux /boot/<kernel-version></i> |
5352 |
</pre> |
5353 |
|
5354 |
<p> |
5355 |
Now continue with <uri link="#kernel_modules">Configuring Kernel |
5356 |
Modules</uri>. |
5357 |
</p> |
5358 |
|
5359 |
</body> |
5360 |
</subsection> |
5361 |
</section> |
5362 |
<section id="genkernel"> |
5363 |
<title>Alternative: Using genkernel</title> |
5364 |
<body> |
5365 |
|
5366 |
<p> |
5367 |
If you are reading this section, you have chosen to use our <c>genkernel</c> |
5368 |
script to configure your kernel for you. |
5369 |
</p> |
5370 |
|
5371 |
<p> |
5372 |
Now that your kernel source tree is installed, it's now time to compile your |
5373 |
kernel by using our <c>genkernel</c> script to automatically build a kernel for |
5374 |
you. <c>genkernel</c> works by configuring a kernel nearly identically to the |
5375 |
way our Installation CD kernel is configured. This means that when you use |
5376 |
<c>genkernel</c> to build your kernel, your system will generally detect all |
5377 |
your hardware at boot-time, just like our Installation CD does. Because |
5378 |
genkernel doesn't require any manual kernel configuration, it is an ideal |
5379 |
solution for those users who may not be comfortable compiling their own |
5380 |
kernels. |
5381 |
</p> |
5382 |
|
5383 |
<p> |
5384 |
Now, let's see how to use genkernel. First, emerge the genkernel ebuild: |
5385 |
</p> |
5386 |
|
5387 |
<pre caption="Emerging genkernel"> |
5388 |
# <i>emerge genkernel</i> |
5389 |
</pre> |
5390 |
|
5391 |
<p> |
5392 |
Now, compile your kernel sources by running <c>genkernel all</c>. |
5393 |
Be aware though, as <c>genkernel</c> compiles a kernel that supports almost all |
5394 |
hardware, this compilation will take quite a while to finish! |
5395 |
</p> |
5396 |
|
5397 |
<p> |
5398 |
Note that, if your boot partition doesn't use ext2 or ext3 as filesystem you |
5399 |
need to manually configure your kernel using <c>genkernel --menuconfig all</c> |
5400 |
and add support for your filesystem <e>in</e> the kernel (i.e. <e>not</e> as a |
5401 |
module). |
5402 |
</p> |
5403 |
|
5404 |
<pre caption="Running genkernel"> |
5405 |
# <i>genkernel all</i> |
5406 |
</pre> |
5407 |
|
5408 |
<p> |
5409 |
Once <c>genkernel</c> completes, a kernel, full set of modules and |
5410 |
<e>initial root disk</e> (initrd) will be created. We will use the kernel |
5411 |
and initrd when configuring a boot loader later in this document. Write |
5412 |
down the names of the kernel and initrd as you will need it when writing |
5413 |
the bootloader configuration file. The initrd will be started immediately after |
5414 |
booting to perform hardware autodetection (just like on the Installation CD) |
5415 |
before your "real" system starts up. |
5416 |
</p> |
5417 |
|
5418 |
<pre caption="Checking the created kernel image name and initrd"> |
5419 |
# <i>ls /boot/kernel* /boot/initramfs*</i> |
5420 |
</pre> |
5421 |
|
5422 |
</body> |
5423 |
</section> |
5424 |
<section id="kernel_modules"> |
5425 |
<title>Configuring Kernel Modules</title> |
5426 |
<subsection> |
5427 |
<title>Configuring the Modules</title> |
5428 |
<body> |
5429 |
|
5430 |
<p> |
5431 |
You should list the modules you want automatically loaded in |
5432 |
<path>/etc/modules.autoload.d/kernel-2.6</path>. |
5433 |
You can add extra options to the modules too if you want. |
5434 |
</p> |
5435 |
|
5436 |
<p> |
5437 |
To view all available modules, run the following <c>find</c> command. Don't |
5438 |
forget to substitute "<kernel version>" with the version of the kernel you |
5439 |
just compiled: |
5440 |
</p> |
5441 |
|
5442 |
<pre caption="Viewing all available modules"> |
5443 |
# <i>find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'</i> |
5444 |
</pre> |
5445 |
|
5446 |
<p> |
5447 |
For instance, to automatically load the <c>3c59x.ko</c> module, edit the |
5448 |
<path>kernel-2.6</path> file and enter the module |
5449 |
name in it. |
5450 |
</p> |
5451 |
|
5452 |
<pre caption="Editing /etc/modules.autoload.d/kernel-2.6"> |
5453 |
# <i>nano -w /etc/modules.autoload.d/kernel-2.6</i> |
5454 |
</pre> |
5455 |
|
5456 |
<pre caption="/etc/modules.autoload.d/kernel-2.6"> |
5457 |
3c59x |
5458 |
</pre> |
5459 |
|
5460 |
<p> |
5461 |
Continue the installation with <uri link="?part=1&chap=8">Configuring |
5462 |
your System</uri>. |
5463 |
</p> |
5464 |
|
5465 |
</body> |
5466 |
</subsection> |
5467 |
</section> |
5468 |
</sections> |
5469 |
|
5470 |
|
5471 |
|
5472 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-medium.xml |
5473 |
|
5474 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-medium.xml?rev=1.1&view=markup |
5475 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-medium.xml?rev=1.1&content-type=text/plain |
5476 |
|
5477 |
Index: hb-install-hppa-medium.xml |
5478 |
=================================================================== |
5479 |
<?xml version='1.0' encoding='UTF-8'?> |
5480 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
5481 |
|
5482 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
5483 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5484 |
|
5485 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-hppa-medium.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
5486 |
|
5487 |
<sections> |
5488 |
|
5489 |
<version>9.0</version> |
5490 |
<date>2007-06-29</date> |
5491 |
|
5492 |
<section> |
5493 |
<title>Hardware Requirements</title> |
5494 |
<subsection> |
5495 |
<title>Introduction</title> |
5496 |
<body> |
5497 |
|
5498 |
<p> |
5499 |
Before we start, we first list what hardware requirements you need to |
5500 |
successfully install Gentoo on your box. |
5501 |
</p> |
5502 |
|
5503 |
</body> |
5504 |
</subsection> |
5505 |
<subsection> |
5506 |
<title>Hardware Requirements</title> |
5507 |
<body> |
5508 |
|
5509 |
<p> |
5510 |
A list of supported hardware can be found on the <uri |
5511 |
link="http://www.pateam.org/list.html">PA Team website</uri>. You may find |
5512 |
additional information about your box in the <uri |
5513 |
link="http://hwdb.parisc-linux.org">Parisc-Linux Hardware Database</uri> and |
5514 |
the <uri link="http://www.openpa.net/cpu.html">processor list</uri> on |
5515 |
<uri link="http://www.openpa.net">www.openpa.net</uri>. |
5516 |
</p> |
5517 |
|
5518 |
<p> |
5519 |
If you don't know which version of PA-RISC your box is using, please check the |
5520 |
links above to find out whether you're using version 1.1 or 2.0. You will need |
5521 |
this information later on. |
5522 |
</p> |
5523 |
|
5524 |
<table> |
5525 |
<tr> |
5526 |
<th>Memory</th> |
5527 |
<ti>64 MB</ti> |
5528 |
</tr> |
5529 |
<tr> |
5530 |
<th>Diskspace</th> |
5531 |
<ti>1.5 GB (excluding swap space)</ti> |
5532 |
</tr> |
5533 |
<tr> |
5534 |
<th>Swap space</th> |
5535 |
<ti>At least 256 MB</ti> |
5536 |
</tr> |
5537 |
</table> |
5538 |
|
5539 |
</body> |
5540 |
</subsection> |
5541 |
</section> |
5542 |
|
5543 |
<!-- START --> |
5544 |
<section> |
5545 |
<title>The Gentoo Universal Installation CD</title> |
5546 |
<subsection> |
5547 |
<title>Introduction</title> |
5548 |
<body> |
5549 |
|
5550 |
<p> |
5551 |
Gentoo Linux can be installed using a <e>stage3</e> tarball file. |
5552 |
Such a tarball is an archive that contains a minimal environment from |
5553 |
which you can succesfully install Gentoo Linux onto your system. |
5554 |
</p> |
5555 |
|
5556 |
<p> |
5557 |
Installations using a stage1 or stage2 tarball file are not documented in the |
5558 |
Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo |
5559 |
FAQ</uri> on these matters. |
5560 |
</p> |
5561 |
|
5562 |
</body> |
5563 |
</subsection> |
5564 |
<subsection> |
5565 |
<title>Gentoo Universal Installation CD</title> |
5566 |
<body> |
5567 |
|
5568 |
<p> |
5569 |
An Installation CD is a bootable medium which contains a self-sustained Gentoo |
5570 |
environment. It allows you to boot Linux from the CD. During the boot process |
5571 |
your hardware is detected and the appropriate drivers are loaded. The Gentoo |
5572 |
Installation CDs are maintained by Gentoo developers. |
5573 |
</p> |
5574 |
|
5575 |
<p> |
5576 |
There currently are two Installation CDs available: |
5577 |
</p> |
5578 |
|
5579 |
<ul> |
5580 |
<li> |
5581 |
The Universal Installation CD contains everything you need to install |
5582 |
Gentoo. It provides stage3 files for common architectures, source code |
5583 |
for the extra applications you need to choose from and, of course, the |
5584 |
installation instructions for your architecture. |
5585 |
</li> |
5586 |
<li> |
5587 |
The Minimal Installation CD contains only a minimal environment that allows |
5588 |
you to boot up and configure your network so you can connect to the |
5589 |
Internet. It does not contain any additional files and cannot be used |
5590 |
during the current installation approach. |
5591 |
</li> |
5592 |
</ul> |
5593 |
|
5594 |
</body> |
5595 |
</subsection> |
5596 |
</section> |
5597 |
<!-- STOP --> |
5598 |
<section> |
5599 |
<title>Download, Burn and Boot the Gentoo Universal Installation CD</title> |
5600 |
<subsection> |
5601 |
<title>Downloading and Burning the Installation CD</title> |
5602 |
<body> |
5603 |
|
5604 |
<p> |
5605 |
You can download the Universal Installation CD from one of our <uri |
5606 |
link="/main/en/mirrors.xml">mirrors</uri>. The Installation CD is located in |
5607 |
the <path><keyval id="release-dir"/>installcd</path> directory. |
5608 |
</p> |
5609 |
|
5610 |
<p> |
5611 |
Inside those directories you'll find ISO files. Those are full CD images which |
5612 |
you can write on a CD-R. |
5613 |
</p> |
5614 |
|
5615 |
<p> |
5616 |
After downloading the file, you can verify its integrity to see if it is |
5617 |
corrupted or not: |
5618 |
</p> |
5619 |
|
5620 |
<ul> |
5621 |
<li> |
5622 |
You can check its MD5 checksum and compare it with the MD5 checksum we |
5623 |
provide (for instance with the <c>md5sum</c> tool under Linux/Unix or |
5624 |
<uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows) |
5625 |
</li> |
5626 |
<li> |
5627 |
You can verify the cryptographic signature that we provide. You need to |
5628 |
obtain the public key we use (17072058) before you proceed though. |
5629 |
</li> |
5630 |
</ul> |
5631 |
|
5632 |
<p> |
5633 |
To fetch our public key using the GnuPG application, run the following command: |
5634 |
</p> |
5635 |
|
5636 |
<pre caption="Obtaining the public key"> |
5637 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i> |
5638 |
</pre> |
5639 |
|
5640 |
<p> |
5641 |
Now verify the signature: |
5642 |
</p> |
5643 |
|
5644 |
<pre caption="Verify the cryptographic signature"> |
5645 |
$ <i>gpg --verify <signature file> <downloaded iso></i> |
5646 |
</pre> |
5647 |
|
5648 |
<p> |
5649 |
To burn the downloaded ISO(s), you have to select raw-burning. How you |
5650 |
do this is highly program-dependent. We will discuss <c>cdrecord</c> and |
5651 |
<c>K3B</c> here; more information can be found in our <uri |
5652 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
5653 |
</p> |
5654 |
|
5655 |
<ul> |
5656 |
<li> |
5657 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded iso |
5658 |
file></c> (replace <path>/dev/hdc</path> with your CD-RW drive's device |
5659 |
path). |
5660 |
</li> |
5661 |
<li> |
5662 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
5663 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
5664 |
</li> |
5665 |
</ul> |
5666 |
|
5667 |
</body> |
5668 |
</subsection> |
5669 |
<subsection> |
5670 |
<title>Booting the Universal Installation CD</title> |
5671 |
<body> |
5672 |
|
5673 |
<note> |
5674 |
If you have problems booting the Installation CD or any other media, please |
5675 |
read the <uri |
5676 |
link="http://www.tldp.org/HOWTO/PA-RISC-Linux-Boot-HOWTO/index.html"> |
5677 |
PA-RISC Linux Boot HOWTO</uri>. |
5678 |
</note> |
5679 |
|
5680 |
<p> |
5681 |
Boot your HPPA system. During the boot process, you will see a message similar |
5682 |
to the following: |
5683 |
</p> |
5684 |
|
5685 |
<pre caption="HPPA boot message"> |
5686 |
Searching for Potential Boot Devices. |
5687 |
To terminate search, press and hold the ESCAPE key. |
5688 |
</pre> |
5689 |
|
5690 |
<p> |
5691 |
When this message appears, press and hold the Esc-key until an option menu |
5692 |
appears. This can take a while, be patient. By default, you should enter the |
5693 |
BOOT_ADMIN console. If you receive an option menu, choose <c>Enter Boot |
5694 |
Administration mode</c> to enter the BOOT_ADMIN console. You should now have an |
5695 |
'>' prompt. |
5696 |
</p> |
5697 |
|
5698 |
<p> |
5699 |
Put the Gentoo Installation CD in the CD-ROM. If you do not know the SCSI ID of |
5700 |
your CD-ROM drive, your PA-RISC station will search for it when you issue the |
5701 |
<c>search</c> command. |
5702 |
</p> |
5703 |
|
5704 |
<pre caption="Searching for SCSI ID"> |
5705 |
> <i>search</i> |
5706 |
Searching for Devices with Bootable Media. |
5707 |
To terminate search, please press and hold the ESCAPE key. |
5708 |
</pre> |
5709 |
|
5710 |
<p> |
5711 |
Your PA-RISC station will now display all the available boot media. This is an |
5712 |
example result of this command: |
5713 |
</p> |
5714 |
|
5715 |
<pre caption="Available boot media"> |
5716 |
Device Selection Device Path Device Type and Utilities |
5717 |
--------------------------------------------------------------------------- |
5718 |
|
5719 |
P0 scsi.5.0 TOSHIBA CD-ROM XM-3301TA |
5720 |
IPL |
5721 |
P1 scsi.2.0 COMPAQ ST32550N |
5722 |
IPL |
5723 |
P2 lan.0010a7-06d1b6.3.6 server |
5724 |
IPL |
5725 |
</pre> |
5726 |
|
5727 |
<p> |
5728 |
To boot from a CD-ROM you need the accompanying Device Path. For instance, if we |
5729 |
want to boot from the TOSHIBA CD-ROM in the above example, we would need to type |
5730 |
the following command: |
5731 |
</p> |
5732 |
|
5733 |
<pre caption="Booting from a CD-ROM"> |
5734 |
> <i>boot scsi.5.0 ipl</i> |
5735 |
|
5736 |
Trying scsi.5.0 |
5737 |
</pre> |
5738 |
|
5739 |
<p> |
5740 |
The <c>ipl</c> keyword (Initial Program Loader) tells palo (the PA-RISC boot |
5741 |
LOader) to enter interactive mode. This will allow you to change, for example, |
5742 |
the kernel boot parameters. |
5743 |
</p> |
5744 |
|
5745 |
<p> |
5746 |
When the boot is successful, palo will start in interactive mode: |
5747 |
</p> |
5748 |
|
5749 |
<pre caption="PALO Interactive Mode"> |
5750 |
Boot path initialized. |
5751 |
Attempting to load IPL. |
5752 |
|
5753 |
|
5754 |
HARD Booted. |
5755 |
palo ipl 1.5 root@hope Sat Apr 23 18:06:47 CEST 2005 |
5756 |
|
5757 |
Boot image contains: |
5758 |
0/vmlinux32 6241293 bytes @ 0x3904000 |
5759 |
0/vmlinux64 8352719 bytes @ 0x3ef8000 |
5760 |
0/ramdisk 1007589 bytes @ 0x105800 |
5761 |
|
5762 |
Information: No console specified on kernel command line. This is normal. |
5763 |
PALO will choose the console currently used by firmware (serial).Current command line: |
5764 |
0/vmlinux initrd=initrd TERM=linux root=/dev/ram0 init=/linuxrc cdroot looptype=squashfs loop=/livecd.squashfs hda=scsi console=ttyS0 |
5765 |
0: 0/vmlinux |
5766 |
1: initrd=initrd |
5767 |
2: TERM=linux |
5768 |
3: root=/dev/ram0 |
5769 |
4: init=/linuxrc |
5770 |
5: cdroot |
5771 |
6: looptype=squashfs |
5772 |
7: loop=/livecd.squashfs |
5773 |
8: hda=scsi |
5774 |
9: console=ttyS0 |
5775 |
|
5776 |
<#> edit the numbered field |
5777 |
'b' boot with this command line |
5778 |
'r' restore command line |
5779 |
'l' list dir |
5780 |
</pre> |
5781 |
|
5782 |
<p> |
5783 |
These parameters are suitable for most situations. |
5784 |
</p> |
5785 |
|
5786 |
<p> |
5787 |
If you need extra features you must add the appropriate keyword(s) to the end of |
5788 |
the command line. To add a keyword, edit the last field, add a space and type |
5789 |
your keyword. The only implemented keywords as of now are <c>cdcache</c> which |
5790 |
tells the Installation CD to load itself into RAM, allowing you to unmount the |
5791 |
CD, and <c>noload=module1[,module2[,...]]</c> which allows you to explicitly |
5792 |
disable loading of particular modules. |
5793 |
</p> |
5794 |
|
5795 |
<pre caption="Adding hdb=scsi as boot option"> |
5796 |
(or 'b' to boot with this command line)? <i>9</i> |
5797 |
console=ttyS0 <i>hdb=scsi</i> |
5798 |
</pre> |
5799 |
|
5800 |
<p> |
5801 |
Now that you have tweaked your kernel boot params, boot it. |
5802 |
</p> |
5803 |
|
5804 |
<pre caption="Booting the kernel"> |
5805 |
(or 'b' to boot with this command line)? <i>b</i> |
5806 |
</pre> |
5807 |
|
5808 |
<p> |
5809 |
You should have a root ("#") prompt on the current console and can also switch |
5810 |
to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get back to the one you |
5811 |
started on by pressing Alt-F1. |
5812 |
</p> |
5813 |
|
5814 |
<p> |
5815 |
Now continue with <uri link="#hardware">Extra Hardware |
5816 |
Configuration</uri>. |
5817 |
</p> |
5818 |
|
5819 |
</body> |
5820 |
</subsection> |
5821 |
<subsection id="hardware"> |
5822 |
<title>Extra Hardware Configuration</title> |
5823 |
<body> |
5824 |
|
5825 |
<p> |
5826 |
Most hppa machines have an onboard ethernet card. Old ones use the lasi driver |
5827 |
which is compiled in the kernel. Newer ones need the tulip driver which is |
5828 |
compiled as a module. To use the latter, you need to load its driver. |
5829 |
</p> |
5830 |
|
5831 |
<p> |
5832 |
In the next example, we try to load the <c>tulip</c> module (support for |
5833 |
certain kinds of network interfaces): |
5834 |
</p> |
5835 |
|
5836 |
<pre caption="Loading kernel modules"> |
5837 |
# <i>modprobe tulip</i> |
5838 |
</pre> |
5839 |
|
5840 |
</body> |
5841 |
</subsection> |
5842 |
|
5843 |
<subsection id="useraccounts"> |
5844 |
<title>Optional: User Accounts</title> |
5845 |
<body> |
5846 |
|
5847 |
<p> |
5848 |
If you plan on giving other people access to your installation |
5849 |
environment or you want to chat using <c>irssi</c> without root privileges (for |
5850 |
security reasons), you need to create the necessary user accounts and change |
5851 |
the root password. |
5852 |
</p> |
5853 |
|
5854 |
<p> |
5855 |
To change the root password, use the <c>passwd</c> utility: |
5856 |
</p> |
5857 |
|
5858 |
<pre caption="Changing the root password"> |
5859 |
# <i>passwd</i> |
5860 |
New password: <comment>(Enter your new password)</comment> |
5861 |
Re-enter password: <comment>(Re-enter your password)</comment> |
5862 |
</pre> |
5863 |
|
5864 |
<p> |
5865 |
To create a user account, we first enter their credentials, followed by |
5866 |
its password. We use <c>useradd</c> and <c>passwd</c> for these tasks. |
5867 |
In the next example, we create a user called "john". |
5868 |
</p> |
5869 |
|
5870 |
<pre caption="Creating a user account"> |
5871 |
# <i>useradd -m -G users john</i> |
5872 |
# <i>passwd john</i> |
5873 |
New password: <comment>(Enter john's password)</comment> |
5874 |
Re-enter password: <comment>(Re-enter john's password)</comment> |
5875 |
</pre> |
5876 |
|
5877 |
<p> |
5878 |
You can change your user id from root to the newly created user by using |
5879 |
<c>su</c>: |
5880 |
</p> |
5881 |
|
5882 |
<pre caption="Changing user id"> |
5883 |
# <i>su - john</i> |
5884 |
</pre> |
5885 |
|
5886 |
</body> |
5887 |
</subsection> |
5888 |
<subsection> |
5889 |
<title>Optional: Viewing Documentation while Installing</title> |
5890 |
<body> |
5891 |
|
5892 |
<p> |
5893 |
If you want to view the Gentoo Handbook (either from-CD or online) during the |
5894 |
installation, make sure you have created a user account (see <uri |
5895 |
link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to |
5896 |
go to a new terminal and log in. |
5897 |
</p> |
5898 |
|
5899 |
<p> |
5900 |
If you want to view the documentation on the CD you can immediately run |
5901 |
<c>links</c> to read it: |
5902 |
</p> |
5903 |
|
5904 |
<pre caption="Viewing the on-CD documentation"> |
5905 |
# <i>links /mnt/cdrom/docs/handbook/html/index.html</i> |
5906 |
</pre> |
5907 |
|
5908 |
<p> |
5909 |
However, it is preferred that you use the online Gentoo Handbook as it will be |
5910 |
more recent than the one provided on the CD. You can view it using <c>links</c> |
5911 |
as well, but only after having completed the <e>Configuring your Network</e> |
5912 |
chapter (otherwise you won't be able to go on the Internet to view the |
5913 |
document): |
5914 |
</p> |
5915 |
|
5916 |
<pre caption="Viewing the Online Documentation"> |
5917 |
# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
5918 |
</pre> |
5919 |
|
5920 |
<p> |
5921 |
You can go back to your original terminal by pressing <c>Alt-F1</c>. |
5922 |
</p> |
5923 |
|
5924 |
</body> |
5925 |
</subsection> |
5926 |
<subsection> |
5927 |
<title>Optional: Starting the SSH Daemon</title> |
5928 |
<body> |
5929 |
|
5930 |
<p> |
5931 |
If you want to allow other users to access your computer during the |
5932 |
Gentoo installation (perhaps because those users are going to help you |
5933 |
install Gentoo, or even do it for you), you need to create a user |
5934 |
account for them and perhaps even provide them with your root password |
5935 |
(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user). |
5936 |
</p> |
5937 |
|
5938 |
<p> |
5939 |
To fire up the SSH daemon, execute the following command: |
5940 |
</p> |
5941 |
|
5942 |
<pre caption="Starting the SSH daemon"> |
5943 |
# <i>/etc/init.d/sshd start</i> |
5944 |
</pre> |
5945 |
|
5946 |
<p> |
5947 |
To be able to use sshd, you first need to set up your networking. Continue with |
5948 |
the chapter on <uri link="?part=1&chap=3">Configuring your Network</uri>. |
5949 |
</p> |
5950 |
|
5951 |
</body> |
5952 |
</subsection> |
5953 |
</section> |
5954 |
</sections> |
5955 |
|
5956 |
|
5957 |
|
5958 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-network.xml |
5959 |
|
5960 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-network.xml?rev=1.1&view=markup |
5961 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-network.xml?rev=1.1&content-type=text/plain |
5962 |
|
5963 |
Index: hb-install-network.xml |
5964 |
=================================================================== |
5965 |
<?xml version='1.0' encoding='UTF-8'?> |
5966 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
5967 |
|
5968 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
5969 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5970 |
|
5971 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-network.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
5972 |
|
5973 |
<sections> |
5974 |
|
5975 |
<version>9.0</version> |
5976 |
<date>2007-05-07</date> |
5977 |
|
5978 |
<section> |
5979 |
<title>Do you need Networking?</title> |
5980 |
<subsection> |
5981 |
<title>Who can do without?</title> |
5982 |
<body> |
5983 |
|
5984 |
<p> |
5985 |
Generally, you don't need a working network connection to install Gentoo using |
5986 |
either the Universal InstallCD or the Installer LiveCD. However, there are some |
5987 |
circumstances where you do want to have a working Internet connection: |
5988 |
</p> |
5989 |
|
5990 |
<ul> |
5991 |
<li> |
5992 |
The stage3 files that are stored in the Universal InstallCD do not |
5993 |
match your architecture and you need to download the correct stage3 file |
5994 |
</li> |
5995 |
<li> |
5996 |
The stage3 file that is generated by the Installer LiveCD does not |
5997 |
match your architecture and you need to download the correct stage3 file |
5998 |
</li> |
5999 |
<li> |
6000 |
You need to install a specific networking application that will allow you to |
6001 |
connect to the Internet which isn't available on the Universal InstallCD or |
6002 |
the Installer LiveCD, but is supported by the CD (i.e. you can connect to |
6003 |
the Internet using the CD but the necessary sources are not available on |
6004 |
the CD) |
6005 |
</li> |
6006 |
<li> |
6007 |
You want remote assistance during the installation (using SSH or through |
6008 |
direct conversations using IRC) |
6009 |
</li> |
6010 |
</ul> |
6011 |
|
6012 |
</body> |
6013 |
</subsection> |
6014 |
<subsection> |
6015 |
<title>Do I need Networking?</title> |
6016 |
<body> |
6017 |
|
6018 |
<p> |
6019 |
To find out if the stage3 file for your architecture is available and you are |
6020 |
using a Universal InstallCD, take a look inside <path>/mnt/cdrom/stages</path> |
6021 |
and check if one of the available stages matches your architecture. If not, you |
6022 |
can still opt for a stage3 file of an architecture compatible with yours. |
6023 |
</p> |
6024 |
|
6025 |
<p> |
6026 |
The stage3 file built by the x86 Installer LiveCD is optimized for i686 or |
6027 |
better and uses NPTL. The stage3 file built by the amd64 Installer LiveCD is |
6028 |
optimized for generic amd64 usage and uses NPTL. |
6029 |
</p> |
6030 |
|
6031 |
<p> |
6032 |
If you, on the other hand, want to use a stage3 file optimized for your |
6033 |
architecture and the stage3 file of your choice is not available, then you will |
6034 |
need networking to download the appropriate stage3 file. |
6035 |
</p> |
6036 |
|
6037 |
<p> |
6038 |
So, if you don't need networking, you can skip the rest of this chapter and |
6039 |
continue with <uri link="?part=1&chap=4">Preparing the Disks</uri>. |
6040 |
Otherwise, continue with the networking configuration sections below. |
6041 |
</p> |
6042 |
|
6043 |
</body> |
6044 |
</subsection> |
6045 |
</section> |
6046 |
<section> |
6047 |
<title>Automatic Network Detection</title> |
6048 |
<subsection> |
6049 |
<title>Maybe it just works?</title> |
6050 |
<body> |
6051 |
|
6052 |
<p> |
6053 |
If your system is plugged into an Ethernet network with a DHCP server, it is |
6054 |
very likely that your networking configuration has already been set up |
6055 |
automatically for you. If so, you should be able to take advantage of the many |
6056 |
included network-aware commands on the Installation CD such as <c>ssh</c>, |
6057 |
<c>scp</c>, <c>ping</c>, <c>irssi</c>, <c>wget</c> and <c>links</c>, among |
6058 |
others. |
6059 |
</p> |
6060 |
|
6061 |
<p> |
6062 |
If networking has been configured for you, the <c>/sbin/ifconfig</c> command |
6063 |
should list some network interfaces besides lo, such as eth0: |
6064 |
</p> |
6065 |
|
6066 |
<pre caption="/sbin/ifconfig for a working network configuration"> |
6067 |
# <i>/sbin/ifconfig</i> |
6068 |
<comment>(...)</comment> |
6069 |
eth0 Link encap:Ethernet HWaddr 00:50:BA:8F:61:7A |
6070 |
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0 |
6071 |
inet6 addr: fe80::50:ba8f:617a/10 Scope:Link |
6072 |
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 |
6073 |
RX packets:1498792 errors:0 dropped:0 overruns:0 frame:0 |
6074 |
TX packets:1284980 errors:0 dropped:0 overruns:0 carrier:0 |
6075 |
collisions:1984 txqueuelen:100 |
6076 |
RX bytes:485691215 (463.1 Mb) TX bytes:123951388 (118.2 Mb) |
6077 |
Interrupt:11 Base address:0xe800 |
6078 |
</pre> |
6079 |
|
6080 |
</body> |
6081 |
</subsection> |
6082 |
<subsection> |
6083 |
<title>Optional: Configure any Proxies</title> |
6084 |
<body> |
6085 |
|
6086 |
<p> |
6087 |
If you access the Internet through a proxy, you might need to set up proxy |
6088 |
information during the installation. It is very easy to define a proxy: you just |
6089 |
need to define a variable which contains the proxy server information. |
6090 |
</p> |
6091 |
|
6092 |
<p> |
6093 |
In most cases, you can just define the variables using the server hostname. As |
6094 |
an example, we assume the proxy is called <c>proxy.gentoo.org</c> and the port |
6095 |
is <c>8080</c>. |
6096 |
</p> |
6097 |
|
6098 |
<pre caption="Defining proxy servers"> |
6099 |
<comment>(If the proxy filters HTTP traffic)</comment> |
6100 |
# <i>export http_proxy="http://proxy.gentoo.org:8080"</i> |
6101 |
<comment>(If the proxy filters FTP traffic)</comment> |
6102 |
# <i>export ftp_proxy="ftp://proxy.gentoo.org:8080"</i> |
6103 |
<comment>(If the proxy filters RSYNC traffic)</comment> |
6104 |
# <i>export RSYNC_PROXY="proxy.gentoo.org:8080"</i> |
6105 |
</pre> |
6106 |
|
6107 |
<p> |
6108 |
If your proxy requires a username and password, you should use the following |
6109 |
syntax for the variable: |
6110 |
</p> |
6111 |
|
6112 |
<pre caption="Adding username/password to the proxy variable"> |
6113 |
http://<i>username</i>:<i>password</i>@proxy.gentoo.org:8080 |
6114 |
</pre> |
6115 |
|
6116 |
</body> |
6117 |
</subsection> |
6118 |
<subsection> |
6119 |
<title>Testing the Network</title> |
6120 |
<body> |
6121 |
|
6122 |
<p> |
6123 |
You may want to try pinging your ISP's DNS server (found in |
6124 |
<path>/etc/resolv.conf</path>) and a Web site of your choice, just to make sure |
6125 |
that your packets are reaching the net, DNS name resolution is working |
6126 |
correctly, etc. |
6127 |
</p> |
6128 |
|
6129 |
<pre caption="Further network testing"> |
6130 |
# <i>ping -c 3 www.gentoo.org</i> |
6131 |
</pre> |
6132 |
|
6133 |
<p> |
6134 |
If you are now able to use your network, you can skip the rest of this |
6135 |
section and continue with <uri link="?part=1&chap=4">Preparing the |
6136 |
Disks</uri>. If not, read on. |
6137 |
</p> |
6138 |
|
6139 |
</body> |
6140 |
</subsection> |
6141 |
</section> |
6142 |
<section> |
6143 |
<title>Automatic Network Configuration</title> |
6144 |
<subsection> |
6145 |
<body> |
6146 |
|
6147 |
<p> |
6148 |
If the network doesn't work immediately, some installation media allow you to |
6149 |
use <c>net-setup</c> (for regular or wireless networks), <c>pppoe-setup</c> |
6150 |
(for ADSL-users) or <c>pptp</c> (for PPTP-users - only available on x86). |
6151 |
</p> |
6152 |
|
6153 |
<p> |
6154 |
If your installation medium does not contain any of these tools or your network |
6155 |
doesn't function yet, continue with <uri link="#doc_chap3">Manual Network |
6156 |
Configuration</uri>. |
6157 |
</p> |
6158 |
|
6159 |
<ul> |
6160 |
<li> |
6161 |
Regular Ethernet users should continue with <uri |
6162 |
link="#net-setup">Default: Using net-setup</uri> |
6163 |
</li> |
6164 |
<li> |
6165 |
ADSL users should continue with <uri link="#ppp">Alternative: Using |
6166 |
PPP</uri> |
6167 |
</li> |
6168 |
<li> |
6169 |
PPTP users should continue with <uri link="#pptp">Alternative: |
6170 |
Using PPTP</uri> |
6171 |
</li> |
6172 |
</ul> |
6173 |
|
6174 |
</body> |
6175 |
</subsection> |
6176 |
<subsection id="net-setup"> |
6177 |
<title>Default: Using net-setup</title> |
6178 |
<body> |
6179 |
|
6180 |
<p> |
6181 |
The simplest way to set up networking if it didn't get configured |
6182 |
automatically is to run the <c>net-setup</c> script: |
6183 |
</p> |
6184 |
|
6185 |
<pre caption="Running the net-setup script"> |
6186 |
# <i>net-setup eth0</i> |
6187 |
</pre> |
6188 |
|
6189 |
<p> |
6190 |
<c>net-setup</c> will ask you some questions about your network |
6191 |
environment. When all is done, you should have a working network |
6192 |
connection. Test your network connection as stated before. If the tests |
6193 |
are positive, congratulations! You are now ready to install Gentoo. Skip |
6194 |
the rest of this section and continue with <uri |
6195 |
link="?part=1&chap=4">Preparing the Disks</uri>. |
6196 |
</p> |
6197 |
|
6198 |
<p> |
6199 |
If your network still doesn't work, continue with <uri link="#doc_chap3">Manual |
6200 |
Network Configuration</uri>. |
6201 |
</p> |
6202 |
|
6203 |
|
6204 |
</body> |
6205 |
</subsection> |
6206 |
<subsection id="ppp"> |
6207 |
<title>Alternative: Using PPP</title> |
6208 |
<body> |
6209 |
|
6210 |
<p> |
6211 |
Assuming you need PPPoE to connect to the internet, the Installation CD (any |
6212 |
version) has made things easy for you by including <c>ppp</c>. Use the provided |
6213 |
<c>pppoe-setup</c> script to configure your connection. You will be prompted for |
6214 |
the ethernet device that is connected to your adsl modem, your username and |
6215 |
password, the IPs of your DNS servers and if you need a basic firewall or not. |
6216 |
</p> |
6217 |
|
6218 |
<pre caption="Using ppp"> |
6219 |
# <i>pppoe-setup</i> |
6220 |
# <i>pppoe-start</i> |
6221 |
</pre> |
6222 |
|
6223 |
<p> |
6224 |
If something goes wrong, double-check that you correctly typed your username and |
6225 |
password by looking at <path>/etc/ppp/pap-secrets</path> or |
6226 |
<path>/etc/ppp/chap-secrets</path> and make sure you are using the right |
6227 |
ethernet device. If your ethernet device doesn't exist, you will have to load |
6228 |
the appropriate network modules. In that case you should continue with |
6229 |
<uri link="#doc_chap3">Manual Network Configuration</uri> as we explain how to |
6230 |
load the appropriate network modules there. |
6231 |
</p> |
6232 |
|
6233 |
<p> |
6234 |
If everything worked, continue with <uri link="?part=1&chap=4">Preparing the |
6235 |
Disks</uri>. |
6236 |
</p> |
6237 |
|
6238 |
</body> |
6239 |
</subsection> |
6240 |
<subsection id="pptp"> |
6241 |
<title>Alternative: Using PPTP</title> |
6242 |
<body> |
6243 |
|
6244 |
<note> |
6245 |
PPTP support is only available for x86 |
6246 |
</note> |
6247 |
|
6248 |
<p> |
6249 |
If you need PPTP support, you can use <c>pptpclient</c> which is provided by our |
6250 |
Installation CDs. But first you need to make sure that your configuration is |
6251 |
correct. Edit <path>/etc/ppp/pap-secrets</path> or |
6252 |
<path>/etc/ppp/chap-secrets</path> so it contains the correct username/password |
6253 |
combination: |
6254 |
</p> |
6255 |
|
6256 |
<pre caption="Editing /etc/ppp/chap-secrets"> |
6257 |
# <i>nano -w /etc/ppp/chap-secrets</i> |
6258 |
</pre> |
6259 |
|
6260 |
<p> |
6261 |
Then adjust <path>/etc/ppp/options.pptp</path> if necessary: |
6262 |
</p> |
6263 |
|
6264 |
<pre caption="Editing /etc/ppp/options.pptp"> |
6265 |
# <i>nano -w /etc/ppp/options.pptp</i> |
6266 |
</pre> |
6267 |
|
6268 |
<p> |
6269 |
When all that is done, just run <c>pptp</c> (along with the options you couldn't |
6270 |
set in <path>options.pptp</path>) to connect the server: |
6271 |
</p> |
6272 |
|
6273 |
<pre caption="Connection to a dial-in server"> |
6274 |
# <i>pptp <server ip></i> |
6275 |
</pre> |
6276 |
|
6277 |
<p> |
6278 |
Now continue with <uri link="?part=1&chap=4">Preparing the Disks</uri>. |
6279 |
</p> |
6280 |
|
6281 |
</body> |
6282 |
</subsection> |
6283 |
</section> |
6284 |
<section> |
6285 |
<title>Manual Network Configuration</title> |
6286 |
<subsection> |
6287 |
<title>Loading the Appropriate Network Modules</title> |
6288 |
<body> |
6289 |
|
6290 |
<p> |
6291 |
When the Installation CD boots, it tries to detect all your hardware devices and |
6292 |
loads the appropriate kernel modules (drivers) to support your hardware. In the |
6293 |
vast majority of cases, it does a very good job. However, in some cases, |
6294 |
it may not auto-load the kernel modules you need. |
6295 |
</p> |
6296 |
|
6297 |
<p> |
6298 |
If <c>net-setup</c> or <c>pppoe-setup</c> failed, then it is possible that |
6299 |
your network card wasn't found immediately. This means you may have to load |
6300 |
the appropriate kernel modules manually. |
6301 |
</p> |
6302 |
|
6303 |
<p> |
6304 |
To find out what kernel modules we provide for networking, use |
6305 |
<c>ls</c>: |
6306 |
</p> |
6307 |
|
6308 |
<pre caption="Searching for provided modules"> |
6309 |
# <i>ls /lib/modules/`uname -r`/kernel/drivers/net</i> |
6310 |
</pre> |
6311 |
|
6312 |
<p> |
6313 |
If you find a driver for your network card, use <c>modprobe</c> to load |
6314 |
the kernel module: |
6315 |
</p> |
6316 |
|
6317 |
<pre caption="Using modprobe to load a kernel module"> |
6318 |
<comment>(As an example, we load the pcnet32 module)</comment> |
6319 |
# <i>modprobe pcnet32</i> |
6320 |
</pre> |
6321 |
|
6322 |
<p> |
6323 |
To check if your network card is now detected, use <c>ifconfig</c>. A |
6324 |
detected network card would result in something like this: |
6325 |
</p> |
6326 |
|
6327 |
<pre caption="Testing availability of your network card, successful"> |
6328 |
# <i>ifconfig eth0</i> |
6329 |
eth0 Link encap:Ethernet HWaddr FE:FD:00:00:00:00 |
6330 |
BROADCAST NOARP MULTICAST MTU:1500 Metric:1 |
6331 |
RX packets:0 errors:0 dropped:0 overruns:0 frame:0 |
6332 |
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 |
6333 |
collisions:0 txqueuelen:0 |
6334 |
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) |
6335 |
</pre> |
6336 |
|
6337 |
<p> |
6338 |
If however you receive the following error, the network card is not |
6339 |
detected: |
6340 |
</p> |
6341 |
|
6342 |
<pre caption="Testing availability of your network card, failed"> |
6343 |
# <i>ifconfig eth0</i> |
6344 |
eth0: error fetching interface information: Device not found |
6345 |
</pre> |
6346 |
|
6347 |
<p> |
6348 |
If you have multiple network cards in your system they are named <e>eth0</e>, |
6349 |
<e>eth1</e>, etc. Make sure that the network card you want to use works well and |
6350 |
remember to use the correct naming throughout this document. We will assume that |
6351 |
the network card <e>eth0</e> is used. |
6352 |
</p> |
6353 |
|
6354 |
<p> |
6355 |
Assuming that you now have a detected network card, you can |
6356 |
retry <c>net-setup</c> or <c>pppoe-setup</c> again (which should work |
6357 |
now), but for the hardcore people amongst you we explain how to configure your |
6358 |
network manually. |
6359 |
</p> |
6360 |
|
6361 |
<p> |
6362 |
Select one of the following sections based on your network setup: |
6363 |
</p> |
6364 |
|
6365 |
<ul> |
6366 |
<li><uri link="#install-dhcp">Using DHCP</uri> for automatic IP retrieval</li> |
6367 |
<li> |
6368 |
<uri link="#wireless">Preparing for Wireless Access</uri> if you have a |
6369 |
wireless card |
6370 |
</li> |
6371 |
<li> |
6372 |
<uri link="#network_term">Understanding Network Terminology</uri> explains |
6373 |
what you need to know about networking |
6374 |
</li> |
6375 |
<li> |
6376 |
<uri link="#ifconfig_route">Using ifconfig and route</uri> explains how to |
6377 |
set up your networking manually |
6378 |
</li> |
6379 |
</ul> |
6380 |
|
6381 |
</body> |
6382 |
</subsection> |
6383 |
<subsection id="install-dhcp"> |
6384 |
<title>Using DHCP</title> |
6385 |
<body> |
6386 |
|
6387 |
<p> |
6388 |
DHCP (Dynamic Host Configuration Protocol) makes it possible to |
6389 |
automatically receive networking information (IP address, netmask, |
6390 |
broadcast address, gateway, nameservers etc.). This only works if you |
6391 |
have a DHCP server in your network (or if your provider provides a DHCP |
6392 |
service). To have a network interface receive this information automatically, |
6393 |
use <c>dhcpcd</c>: |
6394 |
</p> |
6395 |
|
6396 |
<pre caption="Using dhcpcd"> |
6397 |
# <i>dhcpcd eth0</i> |
6398 |
<comment>Some network admins require that you use the</comment> |
6399 |
<comment>hostname and domainname provided by the DHCP server.</comment> |
6400 |
<comment>In that case, use</comment> |
6401 |
# <i>dhcpcd -HD eth0</i> |
6402 |
</pre> |
6403 |
|
6404 |
<p> |
6405 |
If this works (try pinging some internet server, like <uri |
6406 |
link="http://www.google.com">Google</uri>), then you are all set and |
6407 |
ready to continue. Skip the rest of this section and continue with <uri |
6408 |
link="?part=1&chap=4">Preparing the Disks</uri>. |
6409 |
</p> |
6410 |
|
6411 |
</body> |
6412 |
</subsection> |
6413 |
<subsection id="wireless"> |
6414 |
<title>Preparing for Wireless Access</title> |
6415 |
<body> |
6416 |
|
6417 |
<note> |
6418 |
Support for the <c>iwconfig</c> command is only available on x86, amd64 and ppc |
6419 |
Installation CDs. You can still get the extensions working otherwise |
6420 |
by following the instructions of the |
6421 |
<uri link="ftp://ftp.linux-wlan.org/pub/linux-wlan-ng/README">linux-wlan-ng |
6422 |
project</uri>. |
6423 |
</note> |
6424 |
|
6425 |
<p> |
6426 |
If you are using a wireless (802.11) card, you may need to configure your |
6427 |
wireless settings before going any further. To see the current wireless settings |
6428 |
on your card, you can use <c>iwconfig</c>. Running <c>iwconfig</c> might show |
6429 |
something like: |
6430 |
</p> |
6431 |
|
6432 |
<pre caption="Showing the current wireless settings"> |
6433 |
# <i>iwconfig eth0</i> |
6434 |
eth0 IEEE 802.11-DS ESSID:"GentooNode" |
6435 |
Mode:Managed Frequency:2.442GHz Access Point: 00:09:5B:11:CC:F2 |
6436 |
Bit Rate:11Mb/s Tx-Power=20 dBm Sensitivity=0/65535 |
6437 |
Retry limit:16 RTS thr:off Fragment thr:off |
6438 |
Power Management:off |
6439 |
Link Quality:25/10 Signal level:-51 dBm Noise level:-102 dBm |
6440 |
Rx invalid nwid:5901 Rx invalid crypt:0 Rx invalid frag:0 Tx |
6441 |
excessive retries:237 Invalid misc:350282 Missed beacon:84 |
6442 |
</pre> |
6443 |
|
6444 |
<note> |
6445 |
Some wireless cards may have a device name of <c>wlan0</c> or <c>ra0</c> instead |
6446 |
of <c>eth0</c>. Run <c>iwconfig</c> without any command-line parameters to |
6447 |
determine the correct device name. |
6448 |
</note> |
6449 |
|
6450 |
<p> |
6451 |
For most users, there are only two settings that might be important to change, |
6452 |
the ESSID (aka wireless network name) or the WEP key. If the ESSID and Access |
6453 |
Point address listed are already that of your access point and you are not using |
6454 |
WEP, then your wireless is working. If you need to change your ESSID, or add a |
6455 |
WEP key, you can issue the following commands: |
6456 |
</p> |
6457 |
|
6458 |
<pre caption="Changing ESSID and/or adding WEP key"> |
6459 |
<comment>(This sets the network name to "GentooNode")</comment> |
6460 |
# <i>iwconfig eth0 essid GentooNode</i> |
6461 |
|
6462 |
<comment>(This sets a hex WEP key)</comment> |
6463 |
# <i>iwconfig eth0 key 1234123412341234abcd</i> |
6464 |
|
6465 |
<comment>(This sets an ASCII key - prefix it with "s:")</comment> |
6466 |
# <i>iwconfig eth0 key s:some-password</i> |
6467 |
</pre> |
6468 |
|
6469 |
<p> |
6470 |
You can then confirm your wireless settings again by using <c>iwconfig</c>. |
6471 |
Once you have wireless working, you can continue configuring the IP level |
6472 |
networking options as described in the next section (<uri |
6473 |
link="#network_term">Understanding Network Terminology</uri>) or use the |
6474 |
<c>net-setup</c> tool as described previously. |
6475 |
</p> |
6476 |
|
6477 |
</body> |
6478 |
</subsection> |
6479 |
<subsection id="network_term"> |
6480 |
<title>Understanding Network Terminology</title> |
6481 |
<body> |
6482 |
|
6483 |
<note> |
6484 |
If you know your IP address, broadcast address, netmask and nameservers, |
6485 |
then you can skip this subsection and continue with <uri |
6486 |
link="#ifconfig_route">Using ifconfig and route</uri>. |
6487 |
</note> |
6488 |
|
6489 |
<p> |
6490 |
If all of the above fails, you will have to configure your network manually. |
6491 |
This is not difficult at all. However, you need to be familiar with some |
6492 |
network terminology, as you will need it to be able to |
6493 |
configure your network to your satisfaction. After reading this, you |
6494 |
will know what a <e>gateway</e> is, what a <e>netmask</e> serves for, |
6495 |
how a <e>broadcast</e> address is formed and why you need |
6496 |
<e>nameservers</e>. |
6497 |
</p> |
6498 |
|
6499 |
<p> |
6500 |
In a network, hosts are identified by their <e>IP address</e> (Internet |
6501 |
Protocol address). Such an address is a combination of four numbers |
6502 |
between 0 and 255. Well, at least that is how we perceive it. In |
6503 |
reality, such an IP address consists of 32 bits (ones and zeros). Let's |
6504 |
view an example: |
6505 |
</p> |
6506 |
|
6507 |
<pre caption="Example of an IP address"> |
6508 |
IP Address (numbers): 192.168.0.2 |
6509 |
IP Address (bits): 11000000 10101000 00000000 00000010 |
6510 |
-------- -------- -------- -------- |
6511 |
192 168 0 2 |
6512 |
</pre> |
6513 |
|
6514 |
<p> |
6515 |
Such an IP address is unique to a host as far as all accessible networks are |
6516 |
concerned (i.e. every host that you are able to reach must have a unique IP |
6517 |
address). In order to distinguish between hosts inside and outside a |
6518 |
network, the IP address is divided in two parts: the |
6519 |
<e>network</e> part and the <e>host</e> part. |
6520 |
</p> |
6521 |
|
6522 |
<p> |
6523 |
The separation is written down with the <e>netmask</e>, a collection of |
6524 |
ones followed by a collection of zeros. The part of the IP that can be |
6525 |
mapped on the ones is the network-part, the other one is the host-part. |
6526 |
As usual, the netmask can be written down as an IP-address. |
6527 |
</p> |
6528 |
|
6529 |
<pre caption="Example of network/host separation"> |
6530 |
IP-address: 192 168 0 2 |
6531 |
11000000 10101000 00000000 00000010 |
6532 |
Netmask: 11111111 11111111 11111111 00000000 |
6533 |
255 255 255 0 |
6534 |
+--------------------------+--------+ |
6535 |
Network Host |
6536 |
</pre> |
6537 |
|
6538 |
<p> |
6539 |
In other words, 192.168.0.14 is still part of our example network, but |
6540 |
192.168.1.2 is not. |
6541 |
</p> |
6542 |
|
6543 |
<p> |
6544 |
The <e>broadcast</e> address is an IP-address with the same network-part |
6545 |
as your network, but with only ones as host-part. Every host on your |
6546 |
network listens to this IP address. It is truly meant for broadcasting |
6547 |
packets. |
6548 |
</p> |
6549 |
|
6550 |
<pre caption="Broadcast address"> |
6551 |
IP-address: 192 168 0 2 |
6552 |
11000000 10101000 00000000 00000010 |
6553 |
Broadcast: 11000000 10101000 00000000 11111111 |
6554 |
192 168 0 255 |
6555 |
+--------------------------+--------+ |
6556 |
Network Host |
6557 |
</pre> |
6558 |
|
6559 |
<p> |
6560 |
To be able to surf on the internet, you must know which host shares the |
6561 |
Internet connection. This host is called the <e>gateway</e>. Since it is |
6562 |
a regular host, it has a regular IP address (for instance 192.168.0.1). |
6563 |
</p> |
6564 |
|
6565 |
<p> |
6566 |
We previously stated that every host has its own IP address. To be able |
6567 |
to reach this host by a name (instead of an IP address) you need a |
6568 |
service that translates a name (such as <e>dev.gentoo.org</e>) to an IP |
6569 |
address (such as <e>64.5.62.82</e>). Such a service is called a name |
6570 |
service. To use such a service, you must define the necessary <e>name |
6571 |
servers</e> in <path>/etc/resolv.conf</path>. |
6572 |
</p> |
6573 |
|
6574 |
<p> |
6575 |
In some cases, your gateway also serves as nameserver. Otherwise you |
6576 |
will have to enter the nameservers provided by your ISP. |
6577 |
</p> |
6578 |
|
6579 |
<p> |
6580 |
To summarise, you will need the following information before continuing: |
6581 |
</p> |
6582 |
|
6583 |
<table> |
6584 |
<tr> |
6585 |
<th>Network Item</th> |
6586 |
<th>Example</th> |
6587 |
</tr> |
6588 |
<tr> |
6589 |
<ti>Your IP address</ti> |
6590 |
<ti>192.168.0.2</ti> |
6591 |
</tr> |
6592 |
<tr> |
6593 |
<ti>Netmask</ti> |
6594 |
<ti>255.255.255.0</ti> |
6595 |
</tr> |
6596 |
<tr> |
6597 |
<ti>Broadcast</ti> |
6598 |
<ti>192.168.0.255</ti> |
6599 |
</tr> |
6600 |
<tr> |
6601 |
<ti>Gateway</ti> |
6602 |
<ti>192.168.0.1</ti> |
6603 |
</tr> |
6604 |
<tr> |
6605 |
<ti>Nameserver(s)</ti> |
6606 |
<ti>195.130.130.5, 195.130.130.133</ti> |
6607 |
</tr> |
6608 |
</table> |
6609 |
|
6610 |
</body> |
6611 |
</subsection> |
6612 |
<subsection id="ifconfig_route"> |
6613 |
<title>Using ifconfig and route</title> |
6614 |
<body> |
6615 |
|
6616 |
<p> |
6617 |
Setting up your network consists of three steps. First we assign |
6618 |
ourselves an IP address using <c>ifconfig</c>. Then we set up routing to |
6619 |
the gateway using <c>route</c>. Then we finish up by placing the |
6620 |
nameserver IPs in <path>/etc/resolv.conf</path>. |
6621 |
</p> |
6622 |
|
6623 |
<p> |
6624 |
To assign an IP address, you will need your IP address, broadcast |
6625 |
address and netmask. Then execute the following command, substituting |
6626 |
<c>${IP_ADDR}</c> with your IP address, <c>${BROADCAST}</c> with your |
6627 |
broadcast address and <c>${NETMASK}</c> with your netmask: |
6628 |
</p> |
6629 |
|
6630 |
<pre caption="Using ifconfig"> |
6631 |
# <i>ifconfig eth0 ${IP_ADDR} broadcast ${BROADCAST} netmask ${NETMASK} up</i> |
6632 |
</pre> |
6633 |
|
6634 |
<p> |
6635 |
Now set up routing using <c>route</c>. Substitute <c>${GATEWAY}</c> with |
6636 |
your gateway IP address: |
6637 |
</p> |
6638 |
|
6639 |
<pre caption="Using route"> |
6640 |
# <i>route add default gw ${GATEWAY}</i> |
6641 |
</pre> |
6642 |
|
6643 |
<p> |
6644 |
Now open <path>/etc/resolv.conf</path> with your favorite editor (in our |
6645 |
example, we use <c>nano</c>): |
6646 |
</p> |
6647 |
|
6648 |
<pre caption="Creating /etc/resolv.conf"> |
6649 |
# <i>nano -w /etc/resolv.conf</i> |
6650 |
</pre> |
6651 |
|
6652 |
<p> |
6653 |
Now fill in your nameserver(s) using the following as a template. Make |
6654 |
sure you substitute <c>${NAMESERVER1}</c> and <c>${NAMESERVER2}</c> with |
6655 |
the appropriate nameserver addresses: |
6656 |
</p> |
6657 |
|
6658 |
<pre caption="/etc/resolv.conf template"> |
6659 |
nameserver ${NAMESERVER1} |
6660 |
nameserver ${NAMESERVER2} |
6661 |
</pre> |
6662 |
|
6663 |
<p> |
6664 |
That's it. Now test your network by pinging some Internet server (like |
6665 |
<uri link="http://www.google.com">Google</uri>). If this works, |
6666 |
congratulations then. You are now ready to install Gentoo. Continue with <uri |
6667 |
link="?part=1&chap=4">Preparing the Disks</uri>. |
6668 |
</p> |
6669 |
|
6670 |
</body> |
6671 |
</subsection> |
6672 |
</section> |
6673 |
</sections> |
6674 |
|
6675 |
|
6676 |
|
6677 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-next.xml |
6678 |
|
6679 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-next.xml?rev=1.1&view=markup |
6680 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-next.xml?rev=1.1&content-type=text/plain |
6681 |
|
6682 |
Index: hb-install-next.xml |
6683 |
=================================================================== |
6684 |
<?xml version='1.0' encoding='UTF-8'?> |
6685 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
6686 |
|
6687 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
6688 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
6689 |
|
6690 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-next.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
6691 |
|
6692 |
<sections> |
6693 |
|
6694 |
<version>9.0</version> |
6695 |
<date>2007-05-07</date> |
6696 |
|
6697 |
<section> |
6698 |
<title>Documentation</title> |
6699 |
<subsection> |
6700 |
<body> |
6701 |
|
6702 |
<p> |
6703 |
Congratulations! You now have a working Gentoo system. But where to go from |
6704 |
here? What are your options now? What to explore first? Gentoo provides its |
6705 |
users with lots of possibilities, and therefore lots of documented (and less |
6706 |
documented) features. |
6707 |
</p> |
6708 |
|
6709 |
<p> |
6710 |
You should definitely take a look at the next part of the Gentoo Handbook |
6711 |
entitled <uri link="?part=2">Working with Gentoo</uri> which explains |
6712 |
how to keep your software up to date, how to install more software, what USE |
6713 |
flags are, how the Gentoo Init system works, etc. |
6714 |
</p> |
6715 |
|
6716 |
<p> |
6717 |
If you are interested in optimizing your system for desktop use, or you want to |
6718 |
learn how to configure your system to be a full working desktop system, consult |
6719 |
our extensive <uri link="/doc/en/index.xml?catid=desktop">Gentoo Desktop |
6720 |
Documentation Resources</uri>. Besides, you might want to use our <uri |
6721 |
link="/doc/en/guide-localization.xml">localization guide</uri> to make your |
6722 |
system feel more at home. |
6723 |
</p> |
6724 |
|
6725 |
<p> |
6726 |
We also have a <uri link="/doc/en/security/">Gentoo Security Handbook</uri> |
6727 |
which is worth reading. |
6728 |
</p> |
6729 |
|
6730 |
<p> |
6731 |
For a full listing of all our available documentation check out our <uri |
6732 |
link="/doc/en/index.xml">Documentation Resources</uri> page. |
6733 |
</p> |
6734 |
|
6735 |
</body> |
6736 |
</subsection> |
6737 |
</section> |
6738 |
<section> |
6739 |
<title>Gentoo Online</title> |
6740 |
<body> |
6741 |
|
6742 |
<p> |
6743 |
You are of course always welcome on our <uri |
6744 |
link="http://forums.gentoo.org">Gentoo Forums</uri> or on one of our many |
6745 |
<uri link="/main/en/irc.xml">Gentoo IRC channels</uri>. |
6746 |
</p> |
6747 |
|
6748 |
<p> |
6749 |
We also have several <uri |
6750 |
link="/main/en/lists.xml">mailinglists</uri> open to all |
6751 |
our users. Information on how to join is contained in that page. |
6752 |
</p> |
6753 |
|
6754 |
<p> |
6755 |
We'll shut up now and let you enjoy your installation :) |
6756 |
</p> |
6757 |
|
6758 |
</body> |
6759 |
</section> |
6760 |
<section> |
6761 |
<title>Gentoo Changes since 2007.1</title> |
6762 |
<subsection> |
6763 |
<title>Changes?</title> |
6764 |
<body> |
6765 |
|
6766 |
<p> |
6767 |
Gentoo is a fast-moving target. The following sections describe important |
6768 |
changes that affect a Gentoo installation. We only list those that have anything |
6769 |
in common with the installation, not with package changes that did not occur |
6770 |
during the installation. |
6771 |
</p> |
6772 |
|
6773 |
<p> |
6774 |
There have been no significant changes since. |
6775 |
</p> |
6776 |
|
6777 |
</body> |
6778 |
</subsection> |
6779 |
</section> |
6780 |
</sections> |
6781 |
|
6782 |
|
6783 |
|
6784 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-bootloader.xml |
6785 |
|
6786 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-bootloader.xml?rev=1.1&view=markup |
6787 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-bootloader.xml?rev=1.1&content-type=text/plain |
6788 |
|
6789 |
Index: hb-install-ppc-bootloader.xml |
6790 |
=================================================================== |
6791 |
<?xml version='1.0' encoding='UTF-8'?> |
6792 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
6793 |
|
6794 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
6795 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
6796 |
|
6797 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-bootloader.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
6798 |
|
6799 |
<sections> |
6800 |
|
6801 |
<version>9.0</version> |
6802 |
<date>2007-05-07</date> |
6803 |
|
6804 |
<section> |
6805 |
<title>Choosing a Bootloader</title> |
6806 |
<subsection> |
6807 |
<title>Introduction</title> |
6808 |
<body> |
6809 |
|
6810 |
<p> |
6811 |
Now that the kernel is configured and compiled, you'll need a <e>bootloader</e> |
6812 |
to start your new linux installation. The <e>bootloader</e> that you use will |
6813 |
depend upon the type of PPC machine you have. |
6814 |
</p> |
6815 |
|
6816 |
<p> |
6817 |
If you are using a NewWorld Apple or IBM machine, you need to use |
6818 |
<uri link="#yaboot">yaboot</uri>. OldWorld Apple machines have two options, |
6819 |
<uri link="#bootx">BootX</uri> (recommended) and <uri link="#quik">quik</uri>. |
6820 |
The Pegasos does not require a bootloader, but you will need to emerge |
6821 |
<uri link="#bootcreator">bootcreator</uri> to create SmartFirmware boot menus. |
6822 |
</p> |
6823 |
|
6824 |
</body> |
6825 |
</subsection> |
6826 |
</section> |
6827 |
<section id="yaboot"> |
6828 |
<title>Default: Using yaboot</title> |
6829 |
<subsection> |
6830 |
<title>Introduction</title> |
6831 |
<body> |
6832 |
|
6833 |
<impo> |
6834 |
yaboot can only be used on NewWorld Apple and IBM systems! |
6835 |
</impo> |
6836 |
|
6837 |
<p> |
6838 |
In order to find the boot devices, yaboot needs access to the device nodes |
6839 |
created by udev on startup and the sysfs filesystem. These two filesystems |
6840 |
are found at <path>/dev</path> and <path>sys</path> respectively. To do this, |
6841 |
you will need to "bind mount" these filesystems from the Installation CD's root |
6842 |
to the <path>/dev</path> and <path>/sys</path> mount points inside the chroot. |
6843 |
If you have already bind mounted these filesystems, there is no need to do it |
6844 |
again. |
6845 |
</p> |
6846 |
|
6847 |
<pre caption="Bind-mounting the device and sysfs filesystems"> |
6848 |
# <i>exit </i> # this will exit the chroot |
6849 |
# <i>mount -o bind /dev /mnt/gentoo/dev</i> |
6850 |
# <i>mount -o bind /sys /mnt/gentoo/sys</i> |
6851 |
# <i>chroot /mnt/gentoo /bin/bash</i> |
6852 |
# <i>/usr/sbin/env-update && source /etc/profile </i> |
6853 |
</pre> |
6854 |
|
6855 |
<p> |
6856 |
To set up yaboot, you can use <c>yabootconfig</c> to automatically create a |
6857 |
configuration file for you. If you are installing Gentoo on a G5 (where |
6858 |
<c>yabootconfig</c> does not always work), or you plan to boot from firewire |
6859 |
or USB, you will need to manually configure yaboot. |
6860 |
</p> |
6861 |
|
6862 |
<note> |
6863 |
You will need to manually edit the yaboot.conf when using genkernel, even if |
6864 |
yabootconfig is used. The kernel image section of yaboot.conf should be |
6865 |
modified as follows (using vmlinux and initrd as the name of kernel and |
6866 |
initrd image): |
6867 |
</note> |
6868 |
|
6869 |
<pre caption="Adding genkernel boot arguments to yaboot.conf"> |
6870 |
<comment>########################################################### |
6871 |
## This section can be duplicated if you have more than one |
6872 |
## kernel or set of boot options - replace the image and initrd |
6873 |
## with the exact filename of your kernel and initrd image. |
6874 |
###########################################################</comment> |
6875 |
image=/boot/kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> |
6876 |
label=Linux |
6877 |
root=/dev/ram0 |
6878 |
partition=3 |
6879 |
initrd=/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> |
6880 |
<comment># You can add additional kernel arguments to append such as |
6881 |
# rootdelay=10 for a USB/Firewire Boot</comment> |
6882 |
append="real_root=/dev/hda3 init=/linuxrc" |
6883 |
read-only |
6884 |
<comment>##########################################################</comment> |
6885 |
</pre> |
6886 |
|
6887 |
<ul> |
6888 |
<li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li> |
6889 |
<li> |
6890 |
<uri link="#manual_yaboot">Alternative: Manual yaboot Configuration</uri> |
6891 |
</li> |
6892 |
</ul> |
6893 |
|
6894 |
</body> |
6895 |
</subsection> |
6896 |
<subsection id="yabootconfig"> |
6897 |
<title>Default: Using yabootconfig</title> |
6898 |
<body> |
6899 |
|
6900 |
<p> |
6901 |
<c>yabootconfig</c> will auto-detect the partitions on your machine and will |
6902 |
set up dual and triple boot combinations with Linux, Mac OS, and Mac OS X. |
6903 |
</p> |
6904 |
|
6905 |
<p> |
6906 |
To use <c>yabootconfig</c>, your drive must have an Apple_Bootstrap partition, |
6907 |
and <path>/etc/fstab</path> must be configured to reflect your Linux |
6908 |
partitions (note that the Bootstrap partition should <e>not</e> be in your |
6909 |
fstab). These steps should have already been completed before, but check |
6910 |
<path>/etc/fstab</path> before proceeding. Now, install <c>yaboot</c>. |
6911 |
</p> |
6912 |
|
6913 |
<pre caption = "Installing yaboot from GRP"> |
6914 |
# <i>emerge --usepkg yaboot</i> |
6915 |
</pre> |
6916 |
|
6917 |
<p> |
6918 |
Now exit the chroot and run <c>yabootconfig --chroot /mnt/gentoo</c>. First, |
6919 |
the program will confirm the location of the bootstrap partition. If you are |
6920 |
using the suggested disk partitioning scheme, your bootstrap partition should |
6921 |
be /dev/hda2. Type <c>Y</c> if the output is correct. If not, double check your |
6922 |
<path>/etc/fstab</path>. <c>yabootconfig</c> will then scan your system setup, |
6923 |
create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you. |
6924 |
<c>mkofboot</c> is used to format the Apple_Bootstrap partition, and install |
6925 |
the yaboot configuration file into it. After this enter the chroot again. |
6926 |
</p> |
6927 |
|
6928 |
<pre caption="Re-enter the chroot"> |
6929 |
# <i>chroot /mnt/gentoo /bin/bash</i> |
6930 |
# <i>/usr/sbin/env-update && source /etc/profile</i> |
6931 |
</pre> |
6932 |
|
6933 |
<p> |
6934 |
You should verify the contents of <path>/etc/yaboot.conf</path>. If you make |
6935 |
changes to <path>/etc/yaboot.conf</path> (like setting the default/boot OS), |
6936 |
make sure to rerun <c>ybin -v</c> to apply changes to the Apple_Bootstrap |
6937 |
partition. Whenever you make a change to yaboot.conf, like when testing a new |
6938 |
kernel, always remember to run <c>ybin -v</c> to update the bootstrap |
6939 |
partition. |
6940 |
</p> |
6941 |
|
6942 |
<p> |
6943 |
Now continue with <uri link="#reboot">Rebooting the System</uri>. |
6944 |
</p> |
6945 |
|
6946 |
</body> |
6947 |
</subsection> |
6948 |
<subsection id="manual_yaboot"> |
6949 |
<title>Alternative: Manual yaboot Configuration</title> |
6950 |
<body> |
6951 |
|
6952 |
<p> |
6953 |
First, install <c>yaboot</c> on your system: |
6954 |
</p> |
6955 |
|
6956 |
<pre caption="Installing yaboot from GRP"> |
6957 |
# <i>emerge --usepkg yaboot</i> |
6958 |
</pre> |
6959 |
|
6960 |
<p> |
6961 |
An example <path>yaboot.conf</path> file is given below, but you will need to |
6962 |
alter it to fit your needs. G5 users and users booting from firewire and USB |
6963 |
should be aware that their disks are seen as SCSI disks by the Linux kernel, so |
6964 |
you will need to substitute <path>/dev/hda</path> with <path>/dev/sda</path>). |
6965 |
</p> |
6966 |
|
6967 |
<pre caption = "/etc/yaboot.conf"> |
6968 |
<comment>## /etc/yaboot.conf |
6969 |
## |
6970 |
## run: "man yaboot.conf" for details. Do not make changes until you have!! |
6971 |
## see also: /usr/share/doc/yaboot/examples for example configurations. |
6972 |
## |
6973 |
## For a dual-boot menu, add one or more of: |
6974 |
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ |
6975 |
|
6976 |
## The bootstrap partition:</comment> |
6977 |
|
6978 |
boot=/dev/hda2 |
6979 |
|
6980 |
<comment>## ofboot is the Open Firmware way to specify the bootstrap partition. |
6981 |
## If this isn't defined, yaboot fails on the G5 and some G4s (unless |
6982 |
## you pass the necessary arguments to the mkofboot/ybin program). |
6983 |
## hd:X means /dev/sdaX (or /dev/hdaX). |
6984 |
## |
6985 |
## G5 users should uncomment this line!! |
6986 |
|
6987 |
#ofboot=hd:2 |
6988 |
|
6989 |
## Users booting from firewire should use something like this line: |
6990 |
# ofboot=fw/node/sbp-2/disk@0: |
6991 |
|
6992 |
## Users booting from USB should use something like this line: |
6993 |
# ofboot=usb/disk@0: |
6994 |
|
6995 |
## hd: is shorthand for the first hard drive Open Firmware sees</comment> |
6996 |
device=hd: |
6997 |
|
6998 |
<comment>## Firewire and USB users will need to specify the whole OF device name |
6999 |
## This can be found using ofpath, which is included with yaboot. |
7000 |
|
7001 |
# device=fw/node@0001d200e00d0207/sbp-2@c000/disk@0: |
7002 |
</comment> |
7003 |
|
7004 |
delay=5 |
7005 |
defaultos=macosx |
7006 |
timeout=30 |
7007 |
install=/usr/lib/yaboot/yaboot |
7008 |
magicboot=/usr/lib/yaboot/ofboot |
7009 |
|
7010 |
<comment>########################################################### |
7011 |
## This section can be duplicated if you have more than one |
7012 |
## kernel or set of boot options - replace the image variable |
7013 |
## with the exact filename of your kernel. |
7014 |
###########################################################</comment> |
7015 |
image=/boot/<keyval id="kernel-name"/> |
7016 |
label=Linux |
7017 |
root=/dev/hda3 |
7018 |
partition=3 |
7019 |
<comment># append="rootdelay=10" # Required for booting USB/Firewire</comment> |
7020 |
read-only |
7021 |
<comment>################## |
7022 |
|
7023 |
## G5 users and some G4 users should set |
7024 |
## macos=hd:13 |
7025 |
## macosx=hd:12 |
7026 |
## instead of the example values.</comment> |
7027 |
macos=/dev/hda13 |
7028 |
macosx=/dev/hda12 |
7029 |
enablecdboot |
7030 |
enableofboot |
7031 |
</pre> |
7032 |
|
7033 |
<p> |
7034 |
Once <path>yaboot.conf</path> is configured, run <c>mkofboot -v</c> to format |
7035 |
the Apple_bootstrap partition and install the settings. If you change |
7036 |
yaboot.conf after the Apple_bootstrap partition has been created, you can |
7037 |
update the settings by running <c>ybin -v</c> |
7038 |
</p> |
7039 |
|
7040 |
<pre caption="Setting up the bootstrap partition"> |
7041 |
# <i>mkofboot -v</i> |
7042 |
</pre> |
7043 |
|
7044 |
<p> |
7045 |
For more information on yaboot, take a look at the <uri |
7046 |
link="http://penguinppc.org/bootloaders/yaboot">yaboot project</uri>. For |
7047 |
now, continue the installation with <uri link="#reboot">Rebooting the |
7048 |
System</uri>. |
7049 |
</p> |
7050 |
|
7051 |
</body> |
7052 |
</subsection> |
7053 |
</section> |
7054 |
<section id="bootx"> |
7055 |
<title>Alternative: BootX</title> |
7056 |
<body> |
7057 |
|
7058 |
<impo> |
7059 |
BootX can only be used on OldWorld Apple systems with MacOS 9 or earlier! |
7060 |
</impo> |
7061 |
|
7062 |
<p> |
7063 |
Since BootX boots Linux from within MacOS, the kernel will need to be copied |
7064 |
from the Linux Partition to the MacOS partition. First, mount the MacOS |
7065 |
partition from outside of the chroot. Use <c>mac-fdisk -l</c> to find the |
7066 |
MacOS partition number, sda6 is used as an example here. Once the partition is |
7067 |
mounted, we'll copy the kernel to the system folder so BootX can find it. |
7068 |
</p> |
7069 |
|
7070 |
<pre caption="Copying the kernel to the MacOS partition"> |
7071 |
# <i>exit</i> |
7072 |
cdimage ~# <i>mkdir /mnt/mac</i> |
7073 |
cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i> |
7074 |
cdimage ~# <i>cp /mnt/gentoo/usr/src/linux/vmlinux "/mnt/mac/System Folder/Linux Kernels/<keyval id="kernel-name"/>"</i> |
7075 |
</pre> |
7076 |
|
7077 |
<p> |
7078 |
If genkernel is used, both the kernel and initrd will need to be copied to the |
7079 |
MacOS partition. |
7080 |
</p> |
7081 |
|
7082 |
<pre caption="Copying the Genkernel kernel and initrd to the MacOS partition"> |
7083 |
# <i>exit</i> |
7084 |
cdimage ~# <i>mkdir /mnt/mac</i> |
7085 |
cdimage ~# <i>mount /dev/sda6 /mnt/mac -t hfs</i> |
7086 |
cdimage ~# <i>cp /mnt/gentoo/boot/kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> "/mnt/mac/System Folder/Linux Kernels"</i> |
7087 |
cdimage ~# <i>cp /mnt/gentoo/boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> "/mnt/mac/System Folder"</i> |
7088 |
</pre> |
7089 |
|
7090 |
<p> |
7091 |
Now that the kernel is copied over, we'll need to reboot to set up BootX. |
7092 |
</p> |
7093 |
|
7094 |
<pre caption="Unmounting all partitions and rebooting"> |
7095 |
cdimage ~# <i>cd /</i> |
7096 |
cdimage ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo /mnt/mac</i> |
7097 |
cdimage ~# <i>reboot</i> |
7098 |
</pre> |
7099 |
|
7100 |
<p> |
7101 |
Of course, don't forget to remove the bootable CD, otherwise the CD will be |
7102 |
booted again instead of MacOS. |
7103 |
</p> |
7104 |
|
7105 |
<p> |
7106 |
Once the machine has booted into MacOS, open the BootX control panel. If you're |
7107 |
not using genkernel, select <c>Options</c> and uncheck <c>Use specified RAM |
7108 |
disk</c>. If you are using genkernel, ensure that the genkernel initrd is |
7109 |
selected instead of the Installation CD initrd. If not using genkernel, |
7110 |
there is now an option to specify the machine's Linux root disk and partition. |
7111 |
Fill these in with the appropriate values. Depending upon the kernel |
7112 |
configuration, additional boot arguments may need to be applied. |
7113 |
</p> |
7114 |
|
7115 |
<p> |
7116 |
BootX can be configured to start Linux upon boot. If you do this, you will first |
7117 |
see your machine boot into MacOS then, during startup, BootX will load and start |
7118 |
Linux. See the <uri link="http://penguinppc.org/bootloaders/bootx/">BootX home |
7119 |
page</uri> for more information. |
7120 |
</p> |
7121 |
|
7122 |
<impo> |
7123 |
Make sure that you have support for HFS and HFS+ filesystems in your kernel, |
7124 |
otherwise you will not be able to upgrade or change the kernel on your MacOS |
7125 |
partition. |
7126 |
</impo> |
7127 |
|
7128 |
<p> |
7129 |
Now reboot again and boot into Linux, then continue with <uri |
7130 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
7131 |
</p> |
7132 |
|
7133 |
</body> |
7134 |
</section> |
7135 |
<section id="quik"> |
7136 |
<title>Alternative: quik</title> |
7137 |
<body> |
7138 |
|
7139 |
<p> |
7140 |
quik allows OldWorld Macs to boot without MacOS. However, it isn't well |
7141 |
supported and has a number of quirks. If you have the option, it is recommended |
7142 |
that you use BootX instead since it is much more reliable and easier to set up |
7143 |
than quik. |
7144 |
</p> |
7145 |
|
7146 |
<p> |
7147 |
First, we'll need to install quik: |
7148 |
</p> |
7149 |
|
7150 |
<pre caption="Emerge quik from GRP"> |
7151 |
# <i>emerge --usepkg quik</i> |
7152 |
</pre> |
7153 |
|
7154 |
<p> |
7155 |
Next, we'll need to set it up. Edit <path>/etc/quik.conf</path> and set your |
7156 |
image to the kernel that we copied to your boot partition. |
7157 |
</p> |
7158 |
|
7159 |
<pre caption="Configuring quik.conf"> |
7160 |
# Example of quik.conf |
7161 |
init-message = "Gentoo 2007.1\n" |
7162 |
<comment># This is the boot partition</comment> |
7163 |
partition = 2 |
7164 |
root = /dev/hda4 |
7165 |
timeout = 30 |
7166 |
default = gentoo |
7167 |
<comment># This is your kernel</comment> |
7168 |
image = /<keyval id="kernel-name"/> |
7169 |
label = gentoo |
7170 |
</pre> |
7171 |
|
7172 |
<p> |
7173 |
Your quik.conf file <e>must</e> be on the same disk as the quik boot images, |
7174 |
however it can be on a different partition on the same disk, although it is |
7175 |
recommended to move it to your boot partition. |
7176 |
</p> |
7177 |
|
7178 |
<pre caption="Moving quik.conf to /boot"> |
7179 |
# <i>mv /etc/quik.conf /boot/quik.conf</i> |
7180 |
</pre> |
7181 |
|
7182 |
<p> |
7183 |
We will now set your boot variables so that quik loads on boot. To do this, |
7184 |
we'll use a program called <c>nvsetenv</c>. The variables that you want to |
7185 |
set vary from machine to machine, it's best to find your machine's |
7186 |
<uri link="http://penguinppc.org/bootloaders/quik/quirks.php">quirks</uri> |
7187 |
before attempting this. |
7188 |
</p> |
7189 |
|
7190 |
<pre caption="Setting the boot variables"> |
7191 |
# <i>nvsetenv auto-boot true</i> <comment># Set to false if you want to boot into OF, not all models can display the OF output</comment> |
7192 |
# <i>nvsetenv output-device video</i> <comment># Check the quirks page, there are many variations here</comment> |
7193 |
# <i>nvsetenv input-device kbd</i> |
7194 |
# <i>nvsetenv boot-device scsi/sd@1:0</i> <comment># For SCSI</comment> |
7195 |
# <i>nvsetenv boot-device ata/ata-disk@0:0</i> <comment># For ATA</comment> |
7196 |
# <i>nvsetenv boot-file /boot/<keyval id="kernel-name"/> root=/dev/hda4</i> <comment>First item is the path to the kernel, the second is the root partition. You may append any kernel options to the end of this line.</comment> |
7197 |
# <i>nvsetenv boot-command boot</i> <comment># Set this to bye for MacOS and boot for Linux</comment> |
7198 |
</pre> |
7199 |
|
7200 |
<note> |
7201 |
It is also possible to change your boot variables from MacOS. Depending upon |
7202 |
the model, either <uri |
7203 |
link="http://penguinppc.org/bootloaders/quik/BootVars.sit.hqx">bootvars</uri> or |
7204 |
<uri |
7205 |
link="ftp://ftp.apple.com/developer/macosxserver/utilities/SystemDisk2.3.1.smi.bin"> |
7206 |
Apple System Disk</uri> should be used. Please see the quik quirks page above |
7207 |
for more information. |
7208 |
</note> |
7209 |
|
7210 |
<p> |
7211 |
Now that we've set up our machine to boot, we'll need to make sure the boot |
7212 |
images are installed correctly. Run <c>quik -v -C /boot/quik.conf</c>. It |
7213 |
should tell you that it has installed the first stage QUIK boot block. |
7214 |
</p> |
7215 |
|
7216 |
<note> |
7217 |
If something has gone wrong, you can always reset your PRAM back to the default |
7218 |
values by holding down <c>command + option + p + r</c> before powering on your |
7219 |
machine. This will clear the values you set with nvsetenv and should allow you |
7220 |
to boot either a MacOS bootdisk or a Linux bootdisk. |
7221 |
</note> |
7222 |
|
7223 |
<p> |
7224 |
Now, continue the installation with |
7225 |
<uri link="#reboot">Rebooting the System</uri>. |
7226 |
</p> |
7227 |
|
7228 |
</body> |
7229 |
</section> |
7230 |
<section id="bootcreator"> |
7231 |
<title>Alternative: BootCreator</title> |
7232 |
<body> |
7233 |
|
7234 |
<impo> |
7235 |
BootCreator will build a nice SmartFirmware bootmenu written in Forth for the |
7236 |
Pegasos. |
7237 |
</impo> |
7238 |
|
7239 |
<p> |
7240 |
First make sure you have <c>bootcreator</c> installed on your system: |
7241 |
</p> |
7242 |
|
7243 |
<pre caption = "Installing bootcreator from GRP"> |
7244 |
# <i>emerge --usepkg bootcreator</i> |
7245 |
</pre> |
7246 |
|
7247 |
<p> |
7248 |
Now copy the file <path>/etc/bootmenu.example</path> into |
7249 |
<path>/etc/bootmenu</path> and edit it to suit your needs: |
7250 |
</p> |
7251 |
|
7252 |
<pre caption = "Edit the bootcreator config file"> |
7253 |
# <i>cp /etc/bootmenu.example /etc/bootmenu</i> |
7254 |
# <i>nano -w /etc/bootmenu</i> |
7255 |
</pre> |
7256 |
|
7257 |
<p> |
7258 |
Below is a complete <path>/etc/bootmenu</path> config file. vmlinux and |
7259 |
initrd should be replaced by your kernel and initrd image names. |
7260 |
</p> |
7261 |
|
7262 |
<pre caption = "bootcreator config file"> |
7263 |
<comment># |
7264 |
# Example description file for bootcreator 1.1 |
7265 |
#</comment> |
7266 |
|
7267 |
[VERSION] |
7268 |
1 |
7269 |
|
7270 |
[TITLE] |
7271 |
Boot Menu |
7272 |
|
7273 |
[SETTINGS] |
7274 |
AbortOnKey = false |
7275 |
Timeout = 9 |
7276 |
Default = 1 |
7277 |
|
7278 |
[SECTION] |
7279 |
Local HD -> Morphos (Normal) |
7280 |
ide:0 boot2.img ramdebug edebugflags="logkprintf" |
7281 |
|
7282 |
[SECTION] |
7283 |
Local HD -> Linux (Normal) |
7284 |
ide:0 <keyval id="kernel-name"/> video=radeonfb:1024x768@70 root=/dev/hda3 |
7285 |
|
7286 |
[SECTION] |
7287 |
Local HD -> Genkernel (Normal) |
7288 |
ide:0 kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> root=/dev/ram0 real_root=/dev/hda3 init=/linuxrc initrd=initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/> |
7289 |
</pre> |
7290 |
|
7291 |
<p> |
7292 |
Finally the <path>bootmenu</path> must be transferred into Forth and copied to |
7293 |
your boot partition, so that the SmartFirmware can read it. Therefore you have |
7294 |
to call <c>bootcreator</c>: |
7295 |
</p> |
7296 |
|
7297 |
<pre caption = "Install the bootmenu"> |
7298 |
# <i>bootcreator /etc/bootmenu /boot/menu</i> |
7299 |
</pre> |
7300 |
|
7301 |
<note> |
7302 |
Be sure to have a look into the SmartFirmware's settings when you reboot, that |
7303 |
<path>menu</path> is the file that will be loaded by default. |
7304 |
</note> |
7305 |
|
7306 |
<p> |
7307 |
For now, continue the installation with <uri link="#reboot">Rebooting the |
7308 |
System</uri>. |
7309 |
</p> |
7310 |
|
7311 |
</body> |
7312 |
</section> |
7313 |
<section id="reboot"> |
7314 |
<title>Rebooting the System</title> |
7315 |
<subsection> |
7316 |
<body> |
7317 |
|
7318 |
<p> |
7319 |
Exit the chrooted environment and unmount all mounted partitions. Then type in |
7320 |
that one magical command you have been waiting for: <c>reboot</c>. |
7321 |
</p> |
7322 |
|
7323 |
<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
7324 |
# <i>exit</i> |
7325 |
livecd ~# <i>umount /mnt/gentoo/proc /mnt/gentoo/dev /mnt/gentoo/sys /mnt/gentoo</i> |
7326 |
livecd ~# <i>reboot</i> |
7327 |
</pre> |
7328 |
|
7329 |
<p> |
7330 |
Once rebooted in your Gentoo installation, finish up with <uri |
7331 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
7332 |
</p> |
7333 |
|
7334 |
</body> |
7335 |
</subsection> |
7336 |
</section> |
7337 |
</sections> |
7338 |
|
7339 |
|
7340 |
|
7341 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-disk.xml |
7342 |
|
7343 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-disk.xml?rev=1.1&view=markup |
7344 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-disk.xml?rev=1.1&content-type=text/plain |
7345 |
|
7346 |
Index: hb-install-ppc-disk.xml |
7347 |
=================================================================== |
7348 |
<?xml version='1.0' encoding='UTF-8'?> |
7349 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
7350 |
|
7351 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
7352 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
7353 |
|
7354 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-disk.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
7355 |
|
7356 |
<sections> |
7357 |
|
7358 |
<version>9.0</version> |
7359 |
<date>2007-06-26</date> |
7360 |
|
7361 |
<section> |
7362 |
<title>Introduction to Block Devices</title> |
7363 |
<subsection> |
7364 |
<title>Block Devices</title> |
7365 |
<body> |
7366 |
|
7367 |
<p> |
7368 |
We'll start by taking a good look at disk-oriented aspects of Gentoo Linux |
7369 |
and Linux in general, including Linux filesystems, partitions and block devices. |
7370 |
Then, once you're familiar with the ins and outs of disks and filesystems, |
7371 |
you'll be guided through the process of setting up partitions and filesystems |
7372 |
for your Gentoo Linux installation. |
7373 |
</p> |
7374 |
|
7375 |
<p> |
7376 |
To begin, we'll introduce <e>block devices</e>. The most common block device is |
7377 |
the one that represents the first IDE drive in a Linux system, namely |
7378 |
<path>/dev/hda</path>. If you are installing onto SCSI, FireWire, USB or SATA |
7379 |
drives, then your first hard drive would be <path>/dev/sda</path>. Additional |
7380 |
drives are enumerated by the next letter in the alphabet. As an example, the |
7381 |
third IDE disk could be found at <path>/dev/hdc</path>. |
7382 |
</p> |
7383 |
|
7384 |
<p> |
7385 |
The block devices above represent an abstract interface to the disk. User |
7386 |
programs can use these block devices to interact with the disk without worrying |
7387 |
about whether the drives are IDE, SCSI or something else. The program can |
7388 |
simply address the storage on the disk as a bunch of contiguous, |
7389 |
randomly-accessible 512-byte blocks. |
7390 |
</p> |
7391 |
|
7392 |
</body> |
7393 |
</subsection> |
7394 |
<subsection> |
7395 |
<title>Partitions</title> |
7396 |
<body> |
7397 |
|
7398 |
<p> |
7399 |
Although it is theoretically possible to use a full disk to house your Linux |
7400 |
system, this is almost never done in practice. Instead, full disk block devices |
7401 |
are split up in smaller, more manageable block devices. On most systems, |
7402 |
these are called <e>partitions</e>. |
7403 |
</p> |
7404 |
|
7405 |
</body> |
7406 |
</subsection> |
7407 |
</section> |
7408 |
<section> |
7409 |
<title>Designing a Partitioning Scheme</title> |
7410 |
<subsection> |
7411 |
<title>Default Partitioning Scheme</title> |
7412 |
<body> |
7413 |
|
7414 |
<p> |
7415 |
If you are not interested in drawing up a partitioning scheme for your system, |
7416 |
you can use the partitioning scheme we use throughout this book. Choose the |
7417 |
filesystem layout that best matches the type of PowerPC system you are |
7418 |
installing on. |
7419 |
</p> |
7420 |
|
7421 |
</body> |
7422 |
</subsection> |
7423 |
<subsection> |
7424 |
<title>Apple New World</title> |
7425 |
<body> |
7426 |
|
7427 |
<p> |
7428 |
Apple New World machines are fairly straightforward to configure. The first |
7429 |
partition is always an <e>Apple Partition Map</e>. This partition keeps track |
7430 |
of the layout of the disk. You cannot remove this partition. The next |
7431 |
partition should always be a bootstrap partition. This partition contains a |
7432 |
small (800k) HFS filesystem that holds a copy of the bootloader Yaboot and its |
7433 |
configuration file. This partition is <e>not</e> the same as a |
7434 |
<path>/boot</path> partition as found on other architectures. After the boot |
7435 |
partition, the usual Linux filesystems are placed, according to the scheme |
7436 |
below. The swap partition is a temporary storage place for when your system |
7437 |
runs out of physical memory. The root partition will contain the filesystem |
7438 |
that Gentoo is installed on. If you wish to dual boot, the OSX partition |
7439 |
can go anywhere after the bootstrap partition to insure that yaboot starts |
7440 |
first. |
7441 |
</p> |
7442 |
|
7443 |
<note> |
7444 |
There may be "Disk Driver" partitions on your disk such as |
7445 |
<path>Apple_Driver63</path>, <path>Apple_Driver_ATA</path>, |
7446 |
<path>Apple_FWDriver</path>, <path>Apple_Driver_IOKit</path>, and |
7447 |
<path>Apple_Patches</path>. These are used to boot MacOS, so if you have no |
7448 |
need for this, you can remove them by initializing the disk with mac-fdisk's |
7449 |
<c>i</c> option. This will completely erase the disk! If you are in doubt, |
7450 |
just let them be. |
7451 |
</note> |
7452 |
|
7453 |
<note> |
7454 |
If you partitioned this disk with Apple's Disk Utility, there may be |
7455 |
128Mb spaces between partitions which Apple reserves for "future use". You |
7456 |
can safely remove these. |
7457 |
</note> |
7458 |
|
7459 |
<table> |
7460 |
<tr> |
7461 |
<th>Partition</th> |
7462 |
<th>Size</th> |
7463 |
<th>Filesystem</th> |
7464 |
<th>Description</th> |
7465 |
</tr> |
7466 |
<tr> |
7467 |
<ti><path>/dev/hda1</path></ti> |
7468 |
<ti>32k</ti> |
7469 |
<ti>None</ti> |
7470 |
<ti>Apple Partition Map</ti> |
7471 |
</tr> |
7472 |
<tr> |
7473 |
<ti><path>/dev/hda2</path></ti> |
7474 |
<ti>800k</ti> |
7475 |
<ti>HFS</ti> |
7476 |
<ti>Apple Bootstrap</ti> |
7477 |
</tr> |
7478 |
<tr> |
7479 |
<ti><path>/dev/hda3</path></ti> |
7480 |
<ti>512Mb</ti> |
7481 |
<ti>Swap</ti> |
7482 |
<ti>Linux Swap</ti> |
7483 |
</tr> |
7484 |
<tr> |
7485 |
<ti><path>/dev/hda4</path></ti> |
7486 |
<ti>Rest of Disk</ti> |
7487 |
<ti>ext3, reiserfs, xfs</ti> |
7488 |
<ti>Linux Root</ti> |
7489 |
</tr> |
7490 |
</table> |
7491 |
|
7492 |
</body> |
7493 |
</subsection> |
7494 |
<subsection> |
7495 |
<title>Apple Old World</title> |
7496 |
<body> |
7497 |
|
7498 |
<p> |
7499 |
Apple Old World machines are a bit more complicated to configure. The first |
7500 |
partition is always an <e>Apple Partition Map</e>. This partition keeps track |
7501 |
of the layout of the disk. You cannot remove this partition. If you are using |
7502 |
BootX, the configuration below assumes that MacOS is installed on a seperate |
7503 |
disk. If this is not the case, there will be additional partitions for "Apple |
7504 |
Disk Drivers" such as <path>Apple_Driver63, Apple_Driver_ATA, Apple_FWDriver, |
7505 |
Apple_Driver_IOKit, Apple_Patches</path> and the MacOS install. If you are |
7506 |
using Quik, you will need to create a boot partition to hold the kernel, unlike |
7507 |
other Apple boot methods. After the boot partition, the usual Linux filesystems |
7508 |
are placed, according to the scheme below. The swap partition is a temporary |
7509 |
storage place for when your system runs out of physical memory. The root |
7510 |
partition will contain the filesystem that Gentoo is installed on. |
7511 |
</p> |
7512 |
|
7513 |
<note> |
7514 |
If you are using an OldWorld machine, you will need to keep MacOS available. |
7515 |
The layout here assumes MacOS is installed on a separate drive. |
7516 |
</note> |
7517 |
|
7518 |
<table> |
7519 |
<tr> |
7520 |
<th>Partition</th> |
7521 |
<th>Size</th> |
7522 |
<th>Filesystem</th> |
7523 |
<th>Description</th> |
7524 |
</tr> |
7525 |
<tr> |
7526 |
<ti><path>/dev/hda1</path></ti> |
7527 |
<ti>32k</ti> |
7528 |
<ti>None</ti> |
7529 |
<ti>Apple Partition Map</ti> |
7530 |
</tr> |
7531 |
<tr> |
7532 |
<ti><path>/dev/hda2</path></ti> |
7533 |
<ti>32Mb</ti> |
7534 |
<ti>ext2</ti> |
7535 |
<ti>Quik Boot Partition (quik only)</ti> |
7536 |
</tr> |
7537 |
<tr> |
7538 |
<ti><path>/dev/hda3</path></ti> |
7539 |
<ti>512Mb</ti> |
7540 |
<ti>Swap</ti> |
7541 |
<ti>Linux Swap</ti> |
7542 |
</tr> |
7543 |
<tr> |
7544 |
<ti><path>/dev/hda4</path></ti> |
7545 |
<ti>Rest of Disk</ti> |
7546 |
<ti>ext3, reiserfs, xfs</ti> |
7547 |
<ti>Linux Root</ti> |
7548 |
</tr> |
7549 |
</table> |
7550 |
|
7551 |
</body> |
7552 |
</subsection> |
7553 |
<subsection> |
7554 |
<title>Pegasos</title> |
7555 |
<body> |
7556 |
|
7557 |
<p> |
7558 |
The Pegasos partition layout is quite simple compared to the Apple layouts. |
7559 |
The first partition is a Boot Partition, which contains kernels to be booted, |
7560 |
along with an Open Firmware script that presents a menu on boot. After the boot |
7561 |
partition, the usual Linux filesystems are placed, according to the scheme |
7562 |
below. The swap partition is a temporary storage place for when your system |
7563 |
runs out of physical memory. The root partition will contain the filesystem |
7564 |
that Gentoo is installed on. |
7565 |
</p> |
7566 |
|
7567 |
<table> |
7568 |
<tr> |
7569 |
<th>Partition</th> |
7570 |
<th>Size</th> |
7571 |
<th>Filesystem</th> |
7572 |
<th>Description</th> |
7573 |
</tr> |
7574 |
<tr> |
7575 |
<ti><path>/dev/hda1</path></ti> |
7576 |
<ti>32Mb</ti> |
7577 |
<ti>affs1 or ext2</ti> |
7578 |
<ti>Boot Partition</ti> |
7579 |
</tr> |
7580 |
<tr> |
7581 |
<ti><path>/dev/hda2</path></ti> |
7582 |
<ti>512Mb</ti> |
7583 |
<ti>Swap</ti> |
7584 |
<ti>Linux Swap</ti> |
7585 |
</tr> |
7586 |
<tr> |
7587 |
<ti><path>/dev/hda3</path></ti> |
7588 |
<ti>Rest of Disk</ti> |
7589 |
<ti>ext3, reiserfs, xfs</ti> |
7590 |
<ti>Linux Root</ti> |
7591 |
</tr> |
7592 |
</table> |
7593 |
|
7594 |
</body> |
7595 |
</subsection> |
7596 |
<subsection> |
7597 |
<title>IBM PReP (RS/6000)</title> |
7598 |
<body> |
7599 |
|
7600 |
<p> |
7601 |
The IBM PowerPC Reference Platform (PReP) requires a small PReP boot partition |
7602 |
on the disk's first partition, followed by the swap and root partitions. |
7603 |
</p> |
7604 |
|
7605 |
<table> |
7606 |
<tr> |
7607 |
<th>Partition</th> |
7608 |
<th>Size</th> |
7609 |
<th>Filesystem</th> |
7610 |
<th>Description</th> |
7611 |
</tr> |
7612 |
<tr> |
7613 |
<ti><path>/dev/hda1</path></ti> |
7614 |
<ti>800k</ti> |
7615 |
<ti>None</ti> |
7616 |
<ti>PReP Boot Partition (Type 0x41)</ti> |
7617 |
</tr> |
7618 |
<tr> |
7619 |
<ti><path>/dev/hda2</path></ti> |
7620 |
<ti>512Mb</ti> |
7621 |
<ti>Swap</ti> |
7622 |
<ti>Linux Swap (Type 0x82)</ti> |
7623 |
</tr> |
7624 |
<tr> |
7625 |
<ti><path>/dev/hda3</path></ti> |
7626 |
<ti>Rest of Disk</ti> |
7627 |
<ti>ext3, reiserfs, xfs</ti> |
7628 |
<ti>Linux Root (Type 0x83)</ti> |
7629 |
</tr> |
7630 |
</table> |
7631 |
|
7632 |
<warn> |
7633 |
<c>parted</c> is able to resize partitions including HFS+. Unfortunately there |
7634 |
may be issues with resizing HFS+ journaled filesystems, so, for the best |
7635 |
results, switch off journaling in Mac OS X before resizing. Remember that any |
7636 |
resizing operation is dangerous, so attempt at your own risk! Be sure to always |
7637 |
have a backup of your data before resizing! |
7638 |
</warn> |
7639 |
|
7640 |
<p> |
7641 |
If you are interested in knowing how big a partition should be, or even how many |
7642 |
partitions you need, read on. Otherwise continue now with |
7643 |
<uri link="#mac-fdisk"> Default: Using mac-fdisk (Apple) to Partition your Disk |
7644 |
</uri> or <uri link="#parted">Alternative: Using parted (IBM/Pegasos) to |
7645 |
Partition your Disk</uri>. |
7646 |
</p> |
7647 |
|
7648 |
</body> |
7649 |
</subsection> |
7650 |
<subsection> |
7651 |
<title>How Many and How Big?</title> |
7652 |
<body> |
7653 |
|
7654 |
<p> |
7655 |
The number of partitions is highly dependent on your environment. For instance, |
7656 |
if you have lots of users, you will most likely want to have your |
7657 |
<path>/home</path> separate as it increases security and makes backups easier. |
7658 |
If you are installing Gentoo to perform as a mailserver, your <path>/var</path> |
7659 |
should be separate as all received mail is stored in <path>/var</path>. A good |
7660 |
choice of filesystem will then maximise your performance. Game servers should |
7661 |
have a separate <path>/opt</path> as most game servers are installed there. The |
7662 |
reason is similar for <path>/home</path>: security and backups. Whatever layout |
7663 |
you chose, you will definitely want to keep <path>/usr</path> large: not only |
7664 |
will it contain the majority of applications, the Portage tree alone takes |
7665 |
more than 500Mb excluding the various sources that are stored in it. |
7666 |
</p> |
7667 |
|
7668 |
<p> |
7669 |
As you can see, it very much depends on what you want to achieve. Separate |
7670 |
partitions or volumes have the following advantages: |
7671 |
</p> |
7672 |
|
7673 |
<ul> |
7674 |
<li> |
7675 |
You can choose the best performing filesystem for each partition or volume |
7676 |
</li> |
7677 |
<li> |
7678 |
Your entire system cannot run out of free space if one defunct tool is |
7679 |
continuously writing files to a partition or volume |
7680 |
</li> |
7681 |
<li> |
7682 |
If necessary, file system checks are reduced in time, as multiple checks can |
7683 |
be done in parallel (although this advantage is more with multiple disks than |
7684 |
it is with multiple partitions) |
7685 |
</li> |
7686 |
<li> |
7687 |
Security can be enhanced by mounting some partitions or volumes read-only, |
7688 |
nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc. |
7689 |
</li> |
7690 |
</ul> |
7691 |
|
7692 |
<p> |
7693 |
However, multiple partitions have one big disadvantage: if not configured |
7694 |
properly, you might result in having a system with lots of free space on one |
7695 |
partition and none on another. There is also a 15-partition limit for SCSI and |
7696 |
SATA. |
7697 |
</p> |
7698 |
|
7699 |
</body> |
7700 |
</subsection> |
7701 |
</section> |
7702 |
<section id="mac-fdisk"> |
7703 |
<title>Default: Using mac-fdisk (Apple) Partition your Disk</title> |
7704 |
<body> |
7705 |
|
7706 |
<p> |
7707 |
At this point, create your partitions using <c>mac-fdisk</c>: |
7708 |
</p> |
7709 |
|
7710 |
<pre caption="Starting mac-fdisk"> |
7711 |
# <i>mac-fdisk /dev/hda</i> |
7712 |
</pre> |
7713 |
|
7714 |
<p> |
7715 |
If you used Apple's Disk Utility to leave space for Linux, first delete the |
7716 |
partitions you have created previously to make room for your new install. Use |
7717 |
<c>d</c> in <c>mac-fdisk</c> to delete those partition(s). It will ask for the |
7718 |
partition number to delete. Usually the first partition on NewWorld machines |
7719 |
(Apple_partition_map) could not be deleted. If you would like to start with a |
7720 |
clean disk, you can simply initialize the disk by pressing <c>i</c>. This |
7721 |
will completely erase the disk, so use this with caution. |
7722 |
</p> |
7723 |
|
7724 |
<p> |
7725 |
Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will |
7726 |
ask for what block you want to start. Enter the number of your first free |
7727 |
partition, followed by a <c>p</c>. For instance this is <c>2p</c>. |
7728 |
</p> |
7729 |
|
7730 |
<note> |
7731 |
This partition is <e>not</e> a <path>/boot</path> partition. It is not used by |
7732 |
Linux at all; you don't have to place any filesystem on it and you should never |
7733 |
mount it. Apple users don't need an extra partition for <path>/boot</path>. |
7734 |
</note> |
7735 |
|
7736 |
<p> |
7737 |
Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will |
7738 |
ask for what block you want to start this partition from. As we used <c>2</c> |
7739 |
before to create the Apple_Bootstrap partition, you now have to enter |
7740 |
<c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size |
7741 |
you want -- a minimum of 512MB is recommended, but 2 times your physical memory |
7742 |
is the generally accepted size). When asked for a name, enter <c>swap</c>. |
7743 |
</p> |
7744 |
|
7745 |
<p> |
7746 |
To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select |
7747 |
from what block the root partition should start. When asked for the size, enter |
7748 |
<c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available |
7749 |
space". When asked for the name, enter <c>root</c>. |
7750 |
</p> |
7751 |
|
7752 |
<p> |
7753 |
To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to |
7754 |
quit <c>mac-fdisk</c>. |
7755 |
</p> |
7756 |
|
7757 |
<note> |
7758 |
To make sure everything is ok, you should run <c>mac-fdisk -l</c> and check |
7759 |
whether all the partitions are there. If you don't see any of the partitions |
7760 |
you created, or the changes you made, you should reinitialize your partitions |
7761 |
by pressing "i" in mac-fdisk. Note that this will recreate the partition map |
7762 |
and thus remove all your partitions. |
7763 |
</note> |
7764 |
|
7765 |
<p> |
7766 |
Now that your partitions are created, you can continue with |
7767 |
<uri link="#filesystems">Creating Filesystems</uri>. |
7768 |
</p> |
7769 |
|
7770 |
</body> |
7771 |
</section> |
7772 |
<section id="parted"> |
7773 |
<title>Using parted to Partition your Disk (Pegasos and RS/6000)</title> |
7774 |
<body> |
7775 |
|
7776 |
<p> |
7777 |
<c>parted</c>, the Partition Editor, can now handle HFS+ partitions used by |
7778 |
Mac OS and Mac OS X. With this tool you can resize your Mac-partitions and |
7779 |
create space for your Linux partitions. Nevertheless, the example below |
7780 |
describes partitioning for Pegasos machines only. |
7781 |
</p> |
7782 |
|
7783 |
<p> |
7784 |
To begin let's fire up <c>parted</c>: |
7785 |
</p> |
7786 |
|
7787 |
<pre caption="Starting parted"> |
7788 |
# <i>parted /dev/hda</i> |
7789 |
</pre> |
7790 |
|
7791 |
<p> |
7792 |
If the drive is unpartitioned, run <c>mklabel amiga</c> to create a new |
7793 |
disklabel for the drive. |
7794 |
</p> |
7795 |
|
7796 |
<p> |
7797 |
You can type <c>print</c> at any time in parted to display the current partition |
7798 |
table. If at any time you change your mind or made a mistake you can press |
7799 |
<c>Ctrl-c</c> to abort parted. |
7800 |
</p> |
7801 |
|
7802 |
<p> |
7803 |
If you intend to also install MorphOS on your Pegasos create an affs1 filesystem |
7804 |
at the start of the drive. 32MB should be more than enough to store the MorphOS |
7805 |
kernel. If you have a Pegasos I or intend to use any filesystem besides ext2 or |
7806 |
ext3, you will also have to store your Linux kernel on this partition (the |
7807 |
Pegasos II can only boot from ext2/ext3 or affs1 partitions). To create the |
7808 |
partition run <c>mkpart primary affs1 START END</c> where <c>START</c> and |
7809 |
<c>END</c> should be replaced with the megabyte range (e.g. <c>0 32</c>) which |
7810 |
creates a 32 MB partition starting at 0MB and ending at 32MB. If you chose to |
7811 |
create an ext2 or ext3 partition instead, substitute ext2 or ext3 for affs1 in |
7812 |
the mkpart command. |
7813 |
</p> |
7814 |
|
7815 |
<p> |
7816 |
You will need to create two partitions for Linux, one root filesystem and one |
7817 |
swap partition. Run <c>mkpart primary START END</c> to create each partition, |
7818 |
replacing <c>START</c> and <c>END</c> with the desired megabyte boundries. |
7819 |
</p> |
7820 |
|
7821 |
<p> |
7822 |
It is generally recommended that you create a swap partition that is two times |
7823 |
bigger than the amount of RAM in your computer, but at least 512Mb is |
7824 |
recommended. To create the swap partition, run |
7825 |
<c>mkpart primary linux-swap START END</c> with START and END again denoting |
7826 |
the partition boundries. |
7827 |
</p> |
7828 |
|
7829 |
<p> |
7830 |
When you are done in parted simply type <c>quit</c>. |
7831 |
</p> |
7832 |
|
7833 |
</body> |
7834 |
</section> |
7835 |
<section id="filesystems"> |
7836 |
<title>Creating Filesystems</title> |
7837 |
<subsection> |
7838 |
<title>Introduction</title> |
7839 |
<body> |
7840 |
|
7841 |
<p> |
7842 |
Now that your partitions are created, it is time to place a filesystem on them. |
7843 |
If you're not sure which filesystems to choose and are happy with our defaults, |
7844 |
continue with |
7845 |
<uri link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
7846 |
Otherwise, read on to learn about the available filesystems. |
7847 |
</p> |
7848 |
|
7849 |
</body> |
7850 |
</subsection> |
7851 |
<subsection> |
7852 |
<title>Filesystems?</title> |
7853 |
<body> |
7854 |
|
7855 |
<p> |
7856 |
Several filesystems are available for use on the PowerPC architecture including |
7857 |
ext2, ext3, ReiserFS and XFS, each with their strengths and faults. |
7858 |
</p> |
7859 |
|
7860 |
<p> |
7861 |
<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata |
7862 |
journaling, which means that routine ext2 filesystem checks at startup time can |
7863 |
be quite time-consuming. There is now quite a selection of journaled |
7864 |
filesystems that can be checked for consistency very quickly and are thus |
7865 |
generally preferred over their non-journaled counterparts. |
7866 |
</p> |
7867 |
|
7868 |
<p> |
7869 |
<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata |
7870 |
journaling for fast recovery in addition to other enhanced journaling modes like |
7871 |
full data and ordered data journaling. It uses an HTree index that enables high |
7872 |
performance in almost all situations. In short, ext3 is a very good and reliable |
7873 |
filesystem. |
7874 |
</p> |
7875 |
|
7876 |
<p> |
7877 |
<b>ReiserFS</b> is a B+tree-based filesystem that has very good overall |
7878 |
performance and greatly outperforms both ext2 and ext3 when dealing with small |
7879 |
files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales |
7880 |
extremely well and has metadata journaling. ReiserFS is solid and usable as |
7881 |
both general-purpose filesystem and for extreme cases such as the creation of |
7882 |
large filesystems, very large files and directories containing tens of |
7883 |
thousands of small files. |
7884 |
</p> |
7885 |
|
7886 |
<p> |
7887 |
<b>XFS</b> is a filesystem with metadata journaling which comes with a robust |
7888 |
feature-set and is optimized for scalability. We only recommend using this |
7889 |
filesystem on Linux systems with high-end SCSI and/or fibre channel storage and |
7890 |
an uninterruptible power supply. Because XFS aggressively caches in-transit data |
7891 |
in RAM, improperly designed programs (those that don't take proper precautions |
7892 |
when writing files to disk and there are quite a few of them) can lose a good |
7893 |
deal of data if the system goes down unexpectedly. |
7894 |
</p> |
7895 |
|
7896 |
</body> |
7897 |
</subsection> |
7898 |
<subsection> |
7899 |
<title>Activating the Swap Partition</title> |
7900 |
<body> |
7901 |
|
7902 |
<p> |
7903 |
<c>mkswap</c> is the command that is used to initialize swap partitions: |
7904 |
</p> |
7905 |
|
7906 |
<pre caption="Creating a swap signature"> |
7907 |
# <i>mkswap /dev/hda3</i> |
7908 |
</pre> |
7909 |
|
7910 |
<p> |
7911 |
To activate the swap partition, use <c>swapon</c>: |
7912 |
</p> |
7913 |
|
7914 |
<pre caption="Activating the swap partition"> |
7915 |
# <i>swapon /dev/hda3</i> |
7916 |
</pre> |
7917 |
|
7918 |
<p> |
7919 |
Create and activate the swap now before creating other filesystems. |
7920 |
</p> |
7921 |
|
7922 |
</body> |
7923 |
</subsection> |
7924 |
<subsection id="filesystems-apply"> |
7925 |
<title>Applying a Filesystem to a Partition</title> |
7926 |
<body> |
7927 |
|
7928 |
<p> |
7929 |
To create a filesystem on a partition or volume, there are tools available for |
7930 |
each possible filesystem: |
7931 |
</p> |
7932 |
|
7933 |
<table> |
7934 |
<tr> |
7935 |
<th>Filesystem</th> |
7936 |
<th>Creation Command</th> |
7937 |
</tr> |
7938 |
<tr> |
7939 |
<ti>ext2</ti> |
7940 |
<ti><c>mke2fs</c></ti> |
7941 |
</tr> |
7942 |
<tr> |
7943 |
<ti>ext3</ti> |
7944 |
<ti><c>mke2fs -j</c></ti> |
7945 |
</tr> |
7946 |
<tr> |
7947 |
<ti>reiserfs</ti> |
7948 |
<ti><c>mkreiserfs</c></ti> |
7949 |
</tr> |
7950 |
<tr> |
7951 |
<ti>xfs</ti> |
7952 |
<ti><c>mkfs.xfs</c></ti> |
7953 |
</tr> |
7954 |
</table> |
7955 |
|
7956 |
<p> |
7957 |
For instance, to make an ext3 filesystem on the root partition |
7958 |
(<path>/dev/hda4</path> in our example), you would use: |
7959 |
</p> |
7960 |
|
7961 |
<pre caption="Applying a filesystem on a partition"> |
7962 |
# <i>mke2fs -j /dev/hda4</i> |
7963 |
</pre> |
7964 |
|
7965 |
<p> |
7966 |
Now create the filesystems on your newly created partitions (or logical |
7967 |
volumes). |
7968 |
</p> |
7969 |
|
7970 |
<impo> |
7971 |
If you choose to use ReiserFS for <path>/</path>, do not change its default |
7972 |
block size if you will also be using <c>yaboot</c> as your bootloader, as |
7973 |
explained in <uri link="?part=1&chap=10">Configuring the Bootloader</uri>. |
7974 |
</impo> |
7975 |
|
7976 |
<note> |
7977 |
On the PegasosII your partition which holds the kernel must be ext2, ext3 or |
7978 |
affs1. NewWorld machines can boot from any of ext2, ext3, XFS, ReiserFS or |
7979 |
even HFS/HFS+ filesystems. On OldWorld machines booting with BootX, the kernel |
7980 |
must be placed on an HFS partition, but this will be completed when you |
7981 |
configure your bootloader. |
7982 |
</note> |
7983 |
|
7984 |
</body> |
7985 |
</subsection> |
7986 |
</section> |
7987 |
<section> |
7988 |
<title>Mounting</title> |
7989 |
<body> |
7990 |
|
7991 |
<p> |
7992 |
Now that your partitions are initialized and are housing a filesystem, it is |
7993 |
time to mount those partitions. Use the <c>mount</c> command. As an example we |
7994 |
mount the root partition: |
7995 |
</p> |
7996 |
|
7997 |
<pre caption="Mounting partitions"> |
7998 |
# <i>mount /dev/hda4 /mnt/gentoo</i> |
7999 |
</pre> |
8000 |
|
8001 |
<note> |
8002 |
If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
8003 |
change its permissions after mounting and unpacking with |
8004 |
<c>chmod 1777 /mnt/gentoo/tmp</c>. This is also true for <path>/var/tmp</path>. |
8005 |
</note> |
8006 |
|
8007 |
<p> |
8008 |
Continue with <uri link="?part=1&chap=5">Installing the Gentoo |
8009 |
Installation Files</uri>. |
8010 |
</p> |
8011 |
|
8012 |
</body> |
8013 |
</section> |
8014 |
</sections> |
8015 |
|
8016 |
|
8017 |
|
8018 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-kernel.xml |
8019 |
|
8020 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-kernel.xml?rev=1.1&view=markup |
8021 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-kernel.xml?rev=1.1&content-type=text/plain |
8022 |
|
8023 |
Index: hb-install-ppc-kernel.xml |
8024 |
=================================================================== |
8025 |
<?xml version='1.0' encoding='UTF-8'?> |
8026 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
8027 |
|
8028 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
8029 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
8030 |
|
8031 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-kernel.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
8032 |
|
8033 |
<sections> |
8034 |
|
8035 |
<version>9.0</version> |
8036 |
<date>2007-08-12</date> |
8037 |
|
8038 |
<section> |
8039 |
<title>Timezone</title> |
8040 |
<body> |
8041 |
|
8042 |
<p> |
8043 |
You first need to select your timezone so that your system knows where it is |
8044 |
located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy |
8045 |
it to <path>/etc/localtime</path>. Please avoid the |
8046 |
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not |
8047 |
indicate the expected zones. For instance, <path>GMT-8</path> is in fact |
8048 |
GMT+8. |
8049 |
</p> |
8050 |
|
8051 |
<pre caption="Setting the timezone information"> |
8052 |
# <i>ls /usr/share/zoneinfo</i> |
8053 |
<comment>(Suppose you want to use GMT)</comment> |
8054 |
# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> |
8055 |
</pre> |
8056 |
|
8057 |
</body> |
8058 |
</section> |
8059 |
<section> |
8060 |
<title>Installing the Kernel Sources</title> |
8061 |
<subsection> |
8062 |
<title>Choosing a Kernel</title> |
8063 |
<body> |
8064 |
|
8065 |
<p> |
8066 |
The core around which all distributions are built is the Linux kernel. It is the |
8067 |
layer between the user programs and your system hardware. Gentoo provides its |
8068 |
users several possible kernels to choose from. A full listing with description |
8069 |
is available at the |
8070 |
<uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>. |
8071 |
</p> |
8072 |
|
8073 |
<p> |
8074 |
We suggest using <c>gentoo-sources</c> on PPC, which is a recent 2.6 kernel. |
8075 |
</p> |
8076 |
|
8077 |
<pre caption="Installing a kernel source"> |
8078 |
# <i>emerge --usepkg gentoo-sources</i> |
8079 |
</pre> |
8080 |
|
8081 |
<p> |
8082 |
If you take a look in <path>/usr/src</path> you should see a symlink named |
8083 |
<path>linux</path> pointing to your current kernel source. In this case, the |
8084 |
installed kernel source points to <c>gentoo-sources-<keyval |
8085 |
id="kernel-version"/></c>. Your version may be different, so keep this in mind. |
8086 |
</p> |
8087 |
|
8088 |
<pre caption="Viewing the kernel source symlink"> |
8089 |
# <i>ls -l /usr/src/linux</i> |
8090 |
lrwxrwxrwx 1 root root 22 Mar 18 16:23 /usr/src/linux -> linux-<keyval id="kernel-gentoo"/> |
8091 |
</pre> |
8092 |
|
8093 |
<p> |
8094 |
Now it is time to configure and compile your kernel source. You can use |
8095 |
<c>genkernel</c> for this, which will build a generic kernel as used by the |
8096 |
Installation CD. We explain the "manual" configuration first though, as it is |
8097 |
a more efficient configuration. |
8098 |
</p> |
8099 |
|
8100 |
<p> |
8101 |
If you want to manually configure your kernel, continue now with <uri |
8102 |
link="#manual">Default: Manual Configuration</uri>. If you want to use |
8103 |
<c>genkernel</c> you should read <uri link="#genkernel">Alternative: Using |
8104 |
genkernel</uri> instead. |
8105 |
</p> |
8106 |
|
8107 |
</body> |
8108 |
</subsection> |
8109 |
</section> |
8110 |
<section id="manual"> |
8111 |
<title>Default: Manual Configuration</title> |
8112 |
<subsection> |
8113 |
<title>Introduction</title> |
8114 |
<body> |
8115 |
|
8116 |
<p> |
8117 |
Manually configuring a kernel is often seen as the most difficult procedure a |
8118 |
Linux user ever has to perform. Nothing is less true -- after configuring a |
8119 |
few kernels you won't even remember that it was difficult ;) |
8120 |
</p> |
8121 |
|
8122 |
<p> |
8123 |
However, one thing <e>is</e> true: you must know your system when you start |
8124 |
configuring a kernel manually. Most information can be gathered by emerging |
8125 |
pciutils (<c>emerge --usepkg pciutils</c>) which contains the program |
8126 |
<c>lspci</c>. You will now be able to use <c>lspci</c> within the chrooted |
8127 |
environment. You may safely ignore any <e>pcilib</e> warnings (such as pcilib: |
8128 |
cannot open /sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, |
8129 |
you can run <c>lspci</c> from a <e>non-chrooted</e> environment. The results |
8130 |
are the same. You can also run <c>lsmod</c> to see what kernel modules the |
8131 |
Installation CD uses (it might provide you with a nice hint on what to enable). |
8132 |
Another place to look for clues as to what components to enable is to check the |
8133 |
kernel message logs from the successful boot that got you this far. Type |
8134 |
<c>dmesg</c> to see these kernel messages. |
8135 |
</p> |
8136 |
|
8137 |
<p> |
8138 |
Now, go to your kernel source directory, it's time to configure your kernel. |
8139 |
Start by configuring a kernel that will boot on most 32 Bit PowerPC machines |
8140 |
by first running <c>make pmac32_defconfig</c>. After the default configuration |
8141 |
has been generated, run <c>make menuconfig</c> to start an ncurses-based |
8142 |
configuration menu. |
8143 |
</p> |
8144 |
|
8145 |
<pre caption="Invoking menuconfig"> |
8146 |
# <i>cd /usr/src/linux</i> |
8147 |
# <i>make pmac32_defconfig</i> |
8148 |
# <i>make menuconfig</i> |
8149 |
</pre> |
8150 |
|
8151 |
<p> |
8152 |
You will be greeted with several configuration sections. We'll first list some |
8153 |
options you must activate (otherwise Gentoo will not function, or not function |
8154 |
properly without additional tweaks). |
8155 |
</p> |
8156 |
|
8157 |
</body> |
8158 |
</subsection> |
8159 |
<subsection> |
8160 |
<title>Activating Required Options</title> |
8161 |
<body> |
8162 |
|
8163 |
<p> |
8164 |
First of all, activate the use of development and experimental code/drivers. |
8165 |
You need this, otherwise some very important code/drivers won't show up: |
8166 |
</p> |
8167 |
|
8168 |
<pre caption="Selecting experimental code/drivers"> |
8169 |
General setup ---> |
8170 |
[*] Prompt for development and/or incomplete code/drivers |
8171 |
</pre> |
8172 |
|
8173 |
<p> |
8174 |
Now go to <c>File Systems</c> and select support for the filesystems you use. |
8175 |
<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
8176 |
able to mount your partitions. Also select the <c>/proc file system</c> and |
8177 |
<c>Virtual memory</c>. Make sure that you also enable support for Amiga |
8178 |
partitions if you are using a Pegasos, or Macintosh partitions if you are using |
8179 |
an Apple computer. |
8180 |
</p> |
8181 |
|
8182 |
<pre caption="Selecting necessary file systems"> |
8183 |
File systems ---> |
8184 |
Pseudo Filesystems ---> |
8185 |
<comment>(/proc may already be forced on by your configuration, if so, you'll see --- instead)</comment> |
8186 |
[*] /proc file system support |
8187 |
[*] Virtual memory file system support (former shm fs) |
8188 |
Partition Types ---> |
8189 |
[*] Advanced partition support |
8190 |
[*] Amiga partition table support |
8191 |
[*] Macintosh partition map support |
8192 |
|
8193 |
<comment>(Select one or more of the following options as needed by your system)</comment> |
8194 |
<*> Reiserfs support |
8195 |
<*> Ext3 journalling file system support |
8196 |
<*> Second extended fs support |
8197 |
<*> XFS filesystem support |
8198 |
</pre> |
8199 |
|
8200 |
<p> |
8201 |
Users of NewWorld and OldWorld machines will want HFS support as well. OldWorld |
8202 |
users require it for copying compiled kernels to the MacOS partition. NewWorld |
8203 |
users require it for configuring the special Apple_Bootstrap partition: |
8204 |
</p> |
8205 |
|
8206 |
<pre caption="Activating HFS support"> |
8207 |
File Systems ---> |
8208 |
Miscellaneous filesystems ---> |
8209 |
<M> Apple Macintosh file system support |
8210 |
<M> Apple Extended HFS file system support |
8211 |
</pre> |
8212 |
|
8213 |
<p> |
8214 |
If you are using PPPoE to connect to the Internet or you are using a dial-up |
8215 |
modem, you will need the following options in the kernel: |
8216 |
</p> |
8217 |
|
8218 |
<pre caption="Selecting PPPoE necessary drivers"> |
8219 |
Device Drivers ---> |
8220 |
Network device support ---> |
8221 |
<*> PPP (point-to-point protocol) support |
8222 |
<*> PPP support for async serial ports |
8223 |
<*> PPP support for sync tty ports |
8224 |
</pre> |
8225 |
|
8226 |
<p> |
8227 |
The two compression options won't harm but are not always needed. The <c>PPP |
8228 |
over Ethernet</c> option might only be used by <c>ppp</c> when configured to |
8229 |
perform kernel mode PPPoE. |
8230 |
</p> |
8231 |
|
8232 |
<p> |
8233 |
Don't forget to include support in the kernel for your ethernet card! Most |
8234 |
newer Apple computers use the SunGEM ethernet driver. Older iMacs commonly use |
8235 |
the BMAC driver. |
8236 |
</p> |
8237 |
|
8238 |
<pre caption="Selecting the network driver"> |
8239 |
Device Drivers ---> |
8240 |
Network device support ---> |
8241 |
Ethernet (10 or 100Mbit) ---> |
8242 |
[*] Ethernet (10 or 100Mbit) |
8243 |
<*> Generic Media Independent Interface device support |
8244 |
<*> MACE (Power Mac ethernet) support |
8245 |
<*> BMAC (G3 ethernet) support |
8246 |
<*> Sun GEM support |
8247 |
</pre> |
8248 |
|
8249 |
<p> |
8250 |
At this time, full kernel preemption may still be unstable on PPC and may cause |
8251 |
compilation failures and random segfaults. It is <e>strongly</e> suggested |
8252 |
that you do not use this feature. Both <e>Voluntary Preemption</e> and |
8253 |
<e>No Forced Preemption</e> should be safe. |
8254 |
</p> |
8255 |
|
8256 |
<pre caption="Ensure the Preemptible Kernel Option is Off"> |
8257 |
Kernel options ---> |
8258 |
<comment>(Select One)</comment> |
8259 |
Preemption Model |
8260 |
(X) No Forced Preemption (Server) |
8261 |
(X) Voluntary Kernel Preemption (Desktop) |
8262 |
</pre> |
8263 |
|
8264 |
<p> |
8265 |
If you're booting from Firewire, you'll need to enable these options. If you do |
8266 |
not want to compile in support, you'll need to include these modules and their |
8267 |
dependencies in an initrd. |
8268 |
</p> |
8269 |
|
8270 |
<pre caption="Enable support for firewire devices on boot"> |
8271 |
Device Drivers ---> |
8272 |
IEEE 1394 (FireWire) support ---> |
8273 |
<*> IEEE 1394 (FireWire) support |
8274 |
<*> OHCI-1394 support |
8275 |
<*> SBP-2 support (Harddisks etc.) |
8276 |
</pre> |
8277 |
|
8278 |
<p> |
8279 |
If you're booting from USB, you'll need to enable these options. If you do not |
8280 |
want to compile in support, you'll need to include these modules and their |
8281 |
dependencies in an initrd. |
8282 |
</p> |
8283 |
|
8284 |
<pre caption="Enable support for USB devices on boot"> |
8285 |
Device Drivers ---> |
8286 |
USB support ---> |
8287 |
<*> Support for Host-side USB |
8288 |
<*> OHCI HCD support |
8289 |
<*> USB Mass Storage support |
8290 |
</pre> |
8291 |
|
8292 |
<p> |
8293 |
Do not turn off kernel framebuffer support as it is required for a successful |
8294 |
boot. If you are using an NVIDIA based chipset, you should use the Open Firmware |
8295 |
framebuffer. If you are using an ATI based chipset, you should select the |
8296 |
framebuffer driver based upon your chipset (Mach64, Rage128 or Radeon). |
8297 |
</p> |
8298 |
|
8299 |
<pre caption="Choosing a Framebuffer Driver"> |
8300 |
Device Drivers ---> |
8301 |
Graphics support ---> |
8302 |
<*> Support for frame buffer devices |
8303 |
[*] Open Firmware frame buffer device support |
8304 |
<*> ATI Radeon display support |
8305 |
<*> ATI Rage128 display support |
8306 |
<*> ATI Mach64 display support |
8307 |
Console display driver support ---> |
8308 |
<*> Framebuffer Console support |
8309 |
</pre> |
8310 |
|
8311 |
<note> |
8312 |
If you select more than one framebuffer device, it may default to a less than |
8313 |
optimal driver. Either use only one framebuffer device or specify which |
8314 |
to use by passing the driver to use to the kernel on boot by appending a video |
8315 |
line such as: <c>video=radeonfb</c>. |
8316 |
</note> |
8317 |
|
8318 |
<p> |
8319 |
When you're done configuring your kernel, continue with <uri |
8320 |
link="#compiling">Compiling and Installing</uri>. |
8321 |
</p> |
8322 |
|
8323 |
</body> |
8324 |
</subsection> |
8325 |
<subsection id="compiling"> |
8326 |
<title>Compiling and Installing</title> |
8327 |
<body> |
8328 |
|
8329 |
<p> |
8330 |
Now that your kernel is configured, it is time to compile and install it. Exit |
8331 |
the configuration menu and run the following commands: |
8332 |
</p> |
8333 |
|
8334 |
<pre caption="Compiling the kernel"> |
8335 |
# <i>make && make modules_install</i> |
8336 |
</pre> |
8337 |
|
8338 |
<p> |
8339 |
When the kernel has finished compiling, copy the kernel image to |
8340 |
<path>/boot</path> as shown below. If you have a separate boot partition, as |
8341 |
on Pegasos computers, be sure that it is mounted properly. If you are using |
8342 |
BootX to boot, we'll copy the kernel later. |
8343 |
</p> |
8344 |
|
8345 |
<p> |
8346 |
Yaboot and BootX expect to use an uncompressed kernel unlike many other |
8347 |
bootloaders. The uncompressed kernel is called vmlinux and it is placed in |
8348 |
<path>/usr/src/linux</path> after the kernel has finished compiling. If you are |
8349 |
using a Pegasos machine, the Pegasos firmware requires a compressed kernel |
8350 |
called zImage which can be found in |
8351 |
<path>/usr/src/linux/arch/powerpc/boot/images</path>. |
8352 |
</p> |
8353 |
|
8354 |
<pre caption="Installing the kernel"> |
8355 |
# <i>cd /usr/src/linux</i> |
8356 |
<comment>Note, your kernel version might be different</comment> |
8357 |
<comment>(Apple/IBM)</comment> |
8358 |
# <i>cp vmlinux /boot/<keyval id="kernel-name"/></i> |
8359 |
<comment>(Pegasos)</comment> |
8360 |
# <i>cp arch/powerpc/boot/images/zImage /boot/<keyval id="kernel-name"/></i> |
8361 |
</pre> |
8362 |
|
8363 |
<p> |
8364 |
Now continue with <uri link="#kernel_modules">Installing Separate Kernel |
8365 |
Modules</uri>. |
8366 |
</p> |
8367 |
|
8368 |
</body> |
8369 |
</subsection> |
8370 |
</section> |
8371 |
<section id="kernel_modules"> |
8372 |
<title>Installing Separate Kernel Modules</title> |
8373 |
<subsection> |
8374 |
<title>Configuring the Modules</title> |
8375 |
<body> |
8376 |
|
8377 |
<p> |
8378 |
You should list the modules you want automatically loaded in |
8379 |
<path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra options to |
8380 |
the modules if required. |
8381 |
</p> |
8382 |
|
8383 |
<p> |
8384 |
To view all available modules, run the following <c>find</c> command. Don't |
8385 |
forget to substitute "<kernel version>" with the version of the kernel you |
8386 |
just compiled: |
8387 |
</p> |
8388 |
|
8389 |
<pre caption="Viewing all available modules"> |
8390 |
# <i>find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'</i> |
8391 |
</pre> |
8392 |
|
8393 |
<p> |
8394 |
For instance, to automatically load the <c>3c59x</c> module, edit the |
8395 |
<path>kernel-2.6</path> file and add the module to it, one module on a line. |
8396 |
</p> |
8397 |
|
8398 |
<pre caption="Editing /etc/modules.autoload.d/kernel-2.6"> |
8399 |
# <i>nano -w /etc/modules.autoload.d/kernel-2.6</i> |
8400 |
</pre> |
8401 |
|
8402 |
<pre caption="/etc/modules.autoload.d/kernel-2.6"> |
8403 |
3c59x |
8404 |
</pre> |
8405 |
|
8406 |
<p> |
8407 |
Continue the installation with <uri link="?part=1&chap=8">Configuring |
8408 |
your System</uri>. |
8409 |
</p> |
8410 |
|
8411 |
</body> |
8412 |
</subsection> |
8413 |
</section> |
8414 |
<section id="genkernel"> |
8415 |
<title>Alternative: Using genkernel</title> |
8416 |
<body> |
8417 |
|
8418 |
<p> |
8419 |
Now that your kernel source tree is installed, it's now time to compile your |
8420 |
kernel by using our <c>genkernel</c> script to automatically build a kernel for |
8421 |
you. <c>genkernel</c> works by configuring a kernel nearly identically to the |
8422 |
way our Installation CD kernel is configured. This means that when you use |
8423 |
<c>genkernel</c> to build your kernel, your system will generally detect all |
8424 |
your hardware at boot-time, just like our Installation CD does. Because |
8425 |
genkernel doesn't require any manual kernel configuration, it is an ideal |
8426 |
solution for those users who may not be comfortable compiling their own |
8427 |
kernels. |
8428 |
</p> |
8429 |
|
8430 |
<p> |
8431 |
Now, let's see how to use genkernel. First, emerge the genkernel ebuild: |
8432 |
</p> |
8433 |
|
8434 |
<pre caption="Emerging genkernel"> |
8435 |
# <i>emerge --usepkg genkernel</i> |
8436 |
</pre> |
8437 |
|
8438 |
<p> |
8439 |
Next, copy over the kernel configuration used by the Installation CD to the |
8440 |
location where genkernel looks for the default kernel configuration: |
8441 |
</p> |
8442 |
|
8443 |
<pre caption="Copying over the Installation CD kernel config"> |
8444 |
# <i>zcat /proc/config.gz > /usr/share/genkernel/ppc/kernel-config-2.6</i> |
8445 |
</pre> |
8446 |
|
8447 |
<p> |
8448 |
If you are using firewire or USB to boot, you'll need to add modules to the |
8449 |
initrd. Edit <path>/usr/share/genkernel/ppc/modules_load</path> and change |
8450 |
<c>MODULES_FIREWIRE="ieee1394 ohci1394 sbp2"</c> for firewire support or |
8451 |
<c>MODULES_USB="usbcore ohci-hcd ehci-hcd usb-storage"</c> for USB support. |
8452 |
</p> |
8453 |
|
8454 |
<p> |
8455 |
Before compiling your sources, the fstab needs a slight adjustment. The rest of |
8456 |
the fstab will be completed during a later step, so don't worry about the |
8457 |
details now. If you did not create a separate boot partition (NOT bootstrap, |
8458 |
that's different), remove the line referencing <path>/boot</path> from |
8459 |
<path>/etc/fstab</path>. This will need to be done on most Apple computers. |
8460 |
</p> |
8461 |
|
8462 |
<pre caption="Removing /boot from /etc/fstab on machines without a boot partition"> |
8463 |
# <i>nano -w /etc/fstab</i> |
8464 |
<comment>Remove this line</comment> |
8465 |
/dev/BOOT /boot ext2 noauto,noatime 1 2 |
8466 |
</pre> |
8467 |
|
8468 |
<p> |
8469 |
Now, compile your kernel sources by running <c>genkernel --genzimage all</c>. |
8470 |
For Pegasos, we will need to use a different config and create a zImage instead |
8471 |
of the vmlinux kernel used on Apple machines. Be aware, as <c>genkernel</c> |
8472 |
compiles a kernel that supports almost all hardware, this compilation can take |
8473 |
quite a while to finish! |
8474 |
</p> |
8475 |
|
8476 |
<p> |
8477 |
Note that, if your partition where the kernel should be located doesn't use ext2 |
8478 |
or ext3 as filesystem you might need to manually configure your kernel using |
8479 |
<c>genkernel --menuconfig all</c> and add support for your |
8480 |
filesystem <e>in</e> the kernel (i.e. <e>not</e> as a module). Users of EVMS2 or |
8481 |
LVM2 will probably want to add <c>--evms2</c> or <c>--lvm2</c> as an argument as |
8482 |
well. |
8483 |
</p> |
8484 |
|
8485 |
<pre caption="Running genkernel"> |
8486 |
# <i>genkernel all</i> |
8487 |
</pre> |
8488 |
|
8489 |
<pre caption="Running genkernel on the Pegasos"> |
8490 |
# <i>genkernel --genzimage --kernel-config=/usr/share/genkernel/ppc/Pegasos all</i> |
8491 |
</pre> |
8492 |
|
8493 |
<p> |
8494 |
Once <c>genkernel</c> completes, a kernel, full set of modules and |
8495 |
<e>initial root disk</e> (initrd) will be created. We will use the kernel |
8496 |
and initrd when configuring a boot loader later in this document. Write |
8497 |
down the names of the kernel and initrd as you will need them when writing |
8498 |
the bootloader configuration file. The initrd will be started immediately after |
8499 |
booting to perform hardware autodetection (just like on the Installation CD) |
8500 |
before your "real" system starts up. Be sure to also copy down the required |
8501 |
boot arguments, these are required for a successful boot with genkernel. |
8502 |
</p> |
8503 |
|
8504 |
<pre caption="Checking the created kernel image name and initrd"> |
8505 |
<comment>Note, your kernel version might be different</comment> |
8506 |
# <i>ls /boot/kernel-genkernel-ppc-<keyval id="kernel-gentoo"/> /boot/initramfs-genkernel-ppc-<keyval id="kernel-gentoo"/></i> |
8507 |
</pre> |
8508 |
|
8509 |
<p> |
8510 |
Now continue with <uri link="?part=1&chap=8">Configuring your System</uri>. |
8511 |
</p> |
8512 |
|
8513 |
</body> |
8514 |
</section> |
8515 |
</sections> |
8516 |
|
8517 |
|
8518 |
|
8519 |
|
8520 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-medium.xml |
8521 |
|
8522 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-medium.xml?rev=1.1&view=markup |
8523 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-medium.xml?rev=1.1&content-type=text/plain |
8524 |
|
8525 |
Index: hb-install-ppc-medium.xml |
8526 |
=================================================================== |
8527 |
<?xml version='1.0' encoding='UTF-8'?> |
8528 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
8529 |
|
8530 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
8531 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
8532 |
|
8533 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc-medium.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
8534 |
|
8535 |
<sections> |
8536 |
|
8537 |
<version>9.0</version> |
8538 |
<date>2007-06-29</date> |
8539 |
|
8540 |
<section> |
8541 |
<title>Hardware Requirements</title> |
8542 |
<subsection> |
8543 |
<title>Introduction</title> |
8544 |
<body> |
8545 |
|
8546 |
<p> |
8547 |
Before we start, we first list what hardware requirements you need to |
8548 |
successfully install Gentoo on your box. |
8549 |
</p> |
8550 |
|
8551 |
</body> |
8552 |
</subsection> |
8553 |
<subsection> |
8554 |
<title>Hardware Requirements</title> |
8555 |
<body> |
8556 |
|
8557 |
<table> |
8558 |
<tr> |
8559 |
<th>Apple NewWorld Machines</th> |
8560 |
<ti> |
8561 |
Power/PowerPC microprocessors (G3, G4, G5) such as iMac, eMac, iBook |
8562 |
PowerBook, Xserver, PowerMac |
8563 |
</ti> |
8564 |
</tr> |
8565 |
<tr> |
8566 |
<th>Apple OldWorld machines</th> |
8567 |
<ti> |
8568 |
Apple Machines with an Open Firmware revision less than 3, such as the Beige |
8569 |
G3s, PCI PowerMacs and PCI PowerBooks. PCI based Apple Clones should also |
8570 |
be supported. |
8571 |
</ti> |
8572 |
</tr> |
8573 |
<tr> |
8574 |
<th>Genesi</th> |
8575 |
<ti> |
8576 |
Pegasos I/II, Open Desktop Workstation, Efika |
8577 |
</ti> |
8578 |
</tr> |
8579 |
<tr> |
8580 |
<th>IBM</th> |
8581 |
<ti> |
8582 |
RS/6000, iSeries, pSeries |
8583 |
</ti> |
8584 |
</tr> |
8585 |
<tr> |
8586 |
<th>Memory</th> |
8587 |
<ti>At least 64 MB</ti> |
8588 |
</tr> |
8589 |
<tr> |
8590 |
<th>Diskspace</th> |
8591 |
<ti>1.5 GB (excluding swap space)</ti> |
8592 |
</tr> |
8593 |
<tr> |
8594 |
<th>Swap space</th> |
8595 |
<ti>At least 256 MB</ti> |
8596 |
</tr> |
8597 |
</table> |
8598 |
|
8599 |
<p> |
8600 |
Be sure to read the <uri link="/doc/en/gentoo-ppc-faq.xml">Gentoo PPC FAQ</uri> |
8601 |
for help with some common installation related issues or if you're unsure as to |
8602 |
just what's in that PowerPC machine you've got sitting on your desk right now. |
8603 |
</p> |
8604 |
|
8605 |
</body> |
8606 |
</subsection> |
8607 |
</section> |
8608 |
|
8609 |
<!-- START --> |
8610 |
<section> |
8611 |
<title>The Gentoo Universal Installation CD</title> |
8612 |
<subsection> |
8613 |
<title>Introduction</title> |
8614 |
<body> |
8615 |
|
8616 |
<p> |
8617 |
Gentoo Linux can be installed using a <e>stage3</e> tarball file. |
8618 |
Such a tarball is an archive that contains a minimal environment from |
8619 |
which you can succesfully install Gentoo Linux onto your system. |
8620 |
</p> |
8621 |
|
8622 |
<p> |
8623 |
Installations using a stage1 or stage2 tarball file are not documented in the |
8624 |
Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo |
8625 |
FAQ</uri> on these matters. |
8626 |
</p> |
8627 |
|
8628 |
</body> |
8629 |
</subsection> |
8630 |
<subsection> |
8631 |
<title>Gentoo Universal Installation CD</title> |
8632 |
<body> |
8633 |
|
8634 |
<p> |
8635 |
An Installation CD is a bootable medium which contains a self-sustained Gentoo |
8636 |
environment. It allows you to boot Linux from the CD. During the boot process |
8637 |
your hardware is detected and the appropriate drivers are loaded. The Gentoo |
8638 |
Installation CDs are maintained by Gentoo developers. |
8639 |
</p> |
8640 |
|
8641 |
<p> |
8642 |
There currently are two Installation CDs available: |
8643 |
</p> |
8644 |
|
8645 |
<ul> |
8646 |
<li> |
8647 |
The Universal Installation CD contains everything you need to install |
8648 |
Gentoo. It provides stage3 files for common architectures, source code |
8649 |
for the extra applications you need to choose from and, of course, the |
8650 |
installation instructions for your architecture. |
8651 |
</li> |
8652 |
<li> |
8653 |
The Minimal Installation CD contains only a minimal environment that allows |
8654 |
you to boot up and configure your network so you can connect to the |
8655 |
Internet. It does not contain any additional files and cannot be used |
8656 |
during the current installation approach. |
8657 |
</li> |
8658 |
</ul> |
8659 |
|
8660 |
<p> |
8661 |
Gentoo also provides a Package CD. This is not an Installation CD but an |
8662 |
additional resource that you can exploit during the installation of your Gentoo |
8663 |
system. It contains prebuilt packages (also known as the GRP set) that allow |
8664 |
you to easily and quickly install additional applications (such as |
8665 |
OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and |
8666 |
right before you update your Portage tree. |
8667 |
</p> |
8668 |
|
8669 |
<p> |
8670 |
The use of the Package CD is covered later in this document. |
8671 |
</p> |
8672 |
|
8673 |
</body> |
8674 |
</subsection> |
8675 |
</section> |
8676 |
<!-- STOP --> |
8677 |
<section> |
8678 |
<title>Download, Burn and Boot the Gentoo Universal Installation CD</title> |
8679 |
<subsection> |
8680 |
<title>Downloading and Burning the Installation CD</title> |
8681 |
<body> |
8682 |
|
8683 |
<p> |
8684 |
You can download the Universal Installation CD (and, if you want to, the |
8685 |
Packages CD as well) from one of our <uri |
8686 |
link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in |
8687 |
the <path><keyval id="release-dir"/>installcd</path> directory; the Package CDs |
8688 |
are located in the <path><keyval id="release-dir"/>packagecd</path> directory. |
8689 |
</p> |
8690 |
|
8691 |
<p> |
8692 |
Inside those directories you'll find ISO files. Those are full CD images which |
8693 |
you can write on a CD-R. |
8694 |
</p> |
8695 |
|
8696 |
<p> |
8697 |
After downloading the file, you can verify its integrity to see if it is |
8698 |
corrupted or not: |
8699 |
</p> |
8700 |
|
8701 |
<ul> |
8702 |
<li> |
8703 |
You can check its MD5 checksum and compare it with the MD5 checksum we |
8704 |
provide (for instance with the <c>md5sum</c> tool under Linux/Unix or |
8705 |
<uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows). |
8706 |
Verifying MD5 checksums with Mac OS X is described in the <uri |
8707 |
link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>. |
8708 |
</li> |
8709 |
<li> |
8710 |
You can verify the cryptographic signature that we provide. You need to |
8711 |
obtain the public key we use (0x17072058) before you proceed though. |
8712 |
</li> |
8713 |
</ul> |
8714 |
|
8715 |
<p> |
8716 |
To fetch our public key using the GnuPG application, run the following command: |
8717 |
</p> |
8718 |
|
8719 |
<pre caption="Obtaining the public key"> |
8720 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i> |
8721 |
</pre> |
8722 |
|
8723 |
<p> |
8724 |
Now verify the signature: |
8725 |
</p> |
8726 |
|
8727 |
<pre caption="Verify the cryptographic signature"> |
8728 |
$ <i>gpg --verify <signature file> <downloaded iso></i> |
8729 |
</pre> |
8730 |
|
8731 |
<p> |
8732 |
To burn the downloaded ISO(s), you have to select raw-burning. How you |
8733 |
do this is highly program-dependent. We will discuss <c>cdrecord</c> and |
8734 |
<c>K3B</c> here; more information can be found in our <uri |
8735 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
8736 |
</p> |
8737 |
|
8738 |
<ul> |
8739 |
<li> |
8740 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded iso |
8741 |
file></c> (replace <path>/dev/hdc</path> with your CD-RW drive's device |
8742 |
path). |
8743 |
</li> |
8744 |
<li> |
8745 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
8746 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
8747 |
</li> |
8748 |
</ul> |
8749 |
|
8750 |
</body> |
8751 |
</subsection> |
8752 |
<subsection> |
8753 |
<title>Default: Booting the Installation CD with Yaboot</title> |
8754 |
<body> |
8755 |
|
8756 |
<p> |
8757 |
On NewWorld machines place the Installation CD in the CD-ROM and reboot the |
8758 |
system. When the system-start-bell sounds, simply hold down the 'C' until the |
8759 |
CD loads. |
8760 |
</p> |
8761 |
|
8762 |
<p> |
8763 |
After the Installation CD loaded, you will be greeted by a friendly welcome |
8764 |
message and a <e>boot:</e> prompt at the bottom of the screen. |
8765 |
</p> |
8766 |
|
8767 |
<p> |
8768 |
We provide one generic kernel, <e>apple</e>. This kernel is built with support |
8769 |
for multiple CPUs, but it will boot on single processor machines as well. |
8770 |
</p> |
8771 |
|
8772 |
<p> |
8773 |
You can tweak some kernel options at this prompt. The following table lists |
8774 |
some of the available boot options you can add: |
8775 |
</p> |
8776 |
|
8777 |
<table> |
8778 |
<tr> |
8779 |
<th>Boot Option</th> |
8780 |
<th>Description</th> |
8781 |
</tr> |
8782 |
<tr> |
8783 |
<ti><c>video</c></ti> |
8784 |
<ti> |
8785 |
This option takes one of the following vendor-specific tags: |
8786 |
<c>nvidiafb</c>, <c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>, |
8787 |
<c>aty128</c> or <c>ofonly</c>. You can follow this tag with the resolution |
8788 |
refresh rate and color depth you want to use. For instance, |
8789 |
<c>video=radeonfb:1280x1024@75-32</c> will select the ATI Radeon frame buffer |
8790 |
at a resolution of 1280x1024 with a refresh rate of 75Hz and a color depth of |
8791 |
32 bits. If you are uncertain what to choose, and the default doesn't work, |
8792 |
<c>video=ofonly</c> will most certainly work. |
8793 |
</ti> |
8794 |
</tr> |
8795 |
<tr> |
8796 |
<ti><c>nol3</c></ti> |
8797 |
<ti> |
8798 |
Disables level 3 cache on some PowerBooks (needed for at least the 17") |
8799 |
</ti> |
8800 |
</tr> |
8801 |
<tr> |
8802 |
<ti><c>dofirewire</c></ti> |
8803 |
<ti> |
8804 |
Enables support for IEEE1394 (FireWire) devices, like external harddisks. |
8805 |
</ti> |
8806 |
</tr> |
8807 |
<tr> |
8808 |
<ti><c>dopcmcia</c></ti> |
8809 |
<ti> |
8810 |
If you want to use PCMCIA devices during your installation (like PCMCIA |
8811 |
network cards) you have to enable this option. |
8812 |
</ti> |
8813 |
</tr> |
8814 |
</table> |
8815 |
|
8816 |
<p> |
8817 |
To use the above options, at the <e>boot:</e> prompt, type <e>apple</e> followed |
8818 |
by the desired option. In the example below, we'll force the kernel to use the |
8819 |
Open Firmware framebuffer instead of the device specific driver. |
8820 |
</p> |
8821 |
|
8822 |
<pre caption="Force the use of the Open Firmware framebuffer"> |
8823 |
boot: <i>apple video=ofonly</i> |
8824 |
</pre> |
8825 |
|
8826 |
<p> |
8827 |
If you don't need to add any options, just hit enter at this prompt, and a |
8828 |
complete Gentoo Linux environment will be loaded from the CD. Continue with |
8829 |
<uri link="#booted">And When You're Booted...</uri>. |
8830 |
</p> |
8831 |
|
8832 |
</body> |
8833 |
</subsection> |
8834 |
<subsection> |
8835 |
<title>Alternative: Booting the Installation CD on a Pegasos</title> |
8836 |
<body> |
8837 |
|
8838 |
<p> |
8839 |
On the Pegasos simply insert the CD and at the SmartFirmware boot-prompt type |
8840 |
<c>boot cd /boot/menu</c>. This will open a small bootmenu where you can choose |
8841 |
between several preconfigured video configs. If you need any special boot |
8842 |
options you can append them to the command-line just like with Yaboot above. |
8843 |
For example: <c>boot cd /boot/pegasos video=radeonfb:1280x1024@75 mem=256M</c>. |
8844 |
The default kernel options (in case something goes wrong and you need it) are |
8845 |
preconfigured with <c>console=ttyS0,115200 console=tty0 init=/linuxrc |
8846 |
looptype=squashfs loop=/image.squashfs cdroot root=/dev/ram0</c>. |
8847 |
</p> |
8848 |
|
8849 |
</body> |
8850 |
</subsection> |
8851 |
|
8852 |
<subsection> |
8853 |
<title>Alternative: Booting the Installation CD with BootX</title> |
8854 |
<body> |
8855 |
|
8856 |
<p> |
8857 |
If you have an OldWorld Mac the bootable portion of the livecd can't be used. |
8858 |
The most simple solution is to use MacOS 9 or earlier to bootstrap into a Linux |
8859 |
environment with a tool called BootX. |
8860 |
</p> |
8861 |
|
8862 |
<p> |
8863 |
First, download <uri link="http://penguinppc.org/projects/bootx/">BootX</uri> |
8864 |
and unpack the archive. Copy the the <c>BootX Extension</c> from the unpacked |
8865 |
archive into <c>Extensions Folder</c> and the BootX App Control Panel into |
8866 |
<c>Control Panels</c>, both of which are located in your MacOS System Folder. |
8867 |
Next, create a folder called "Linux Kernels" in your System folder and copy the |
8868 |
<c>apple</c> kernel from the CD to this folder. Finally, copy <c>apple.igz</c> |
8869 |
from the Installation CD <path>boot</path> folder into the MacOS |
8870 |
<c>System Folder</c>. |
8871 |
</p> |
8872 |
|
8873 |
<p> |
8874 |
To prepare BootX, start the BootX App Control Panel. First select the Options |
8875 |
dialog and check <c>Use Specified RAM Disk</c> and select <c>apple.igz</c> from |
8876 |
your System Folder. Continue back to the initial screen and ensure that the |
8877 |
ramdisk size is at least <c>32000</c>. Finally, set the kernel arguments as |
8878 |
shown below: |
8879 |
</p> |
8880 |
|
8881 |
<pre caption="BootX kernel arguments"> |
8882 |
cdroot root=/dev/ram0 init=linuxrc loop=image.squashfs looptype=squashfs console=tty0 |
8883 |
</pre> |
8884 |
|
8885 |
<note> |
8886 |
The kernel parameters in the yaboot section above are also applicable here. You |
8887 |
can append any of those options to the kernel arguments above. |
8888 |
</note> |
8889 |
|
8890 |
<p> |
8891 |
Check once more to make sure the settings are correct and then save the |
8892 |
configuration. This saves typing just in case it doesn't boot or something is |
8893 |
missing. Press the Linux button at the top of the window. If everything goes |
8894 |
correctly, it should boot into the Installation CD. Continue with |
8895 |
<uri link="#booted">And When You're Booted...</uri> |
8896 |
</p> |
8897 |
|
8898 |
</body> |
8899 |
</subsection> |
8900 |
|
8901 |
<subsection id="booted"> |
8902 |
<title>And When You're Booted...</title> |
8903 |
<body> |
8904 |
|
8905 |
<p> |
8906 |
You will be greeted by a root ("#") prompt on the current console. You can also |
8907 |
switch to other consoles by pressing Alt-F2, Alt-F3 and Alt-F4. Get |
8908 |
back to the one you started on by pressing Alt-F1. Due to the keyboard layout, |
8909 |
you may need to press Alt-fn-Fx on Apple machines. |
8910 |
</p> |
8911 |
|
8912 |
<p> |
8913 |
If you are installing Gentoo on a system with a non-US keyboard, use |
8914 |
<c>loadkeys</c> to load the keymap for your keyboard. To list the available |
8915 |
keymaps, execute <c>ls /usr/share/keymaps/i386</c>. On NewWorld machines or the |
8916 |
Pegasos do not use the keymaps in <path>ppc</path> or <path>mac</path> as they |
8917 |
are for ADB-based OldWorld machines. |
8918 |
</p> |
8919 |
|
8920 |
<pre caption="Listing available keymaps"> |
8921 |
<comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided |
8922 |
on the Installation CD are ADB keymaps and unusable with the Installation CD |
8923 |
kernel)</comment> |
8924 |
# <i>ls /usr/share/keymaps/i386</i> |
8925 |
</pre> |
8926 |
|
8927 |
<p> |
8928 |
Now load the keymap of your choice: |
8929 |
</p> |
8930 |
|
8931 |
<pre caption="Loading a keymap"> |
8932 |
# <i>loadkeys be-latin1</i> |
8933 |
</pre> |
8934 |
|
8935 |
<p> |
8936 |
Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
8937 |
</p> |
8938 |
|
8939 |
</body> |
8940 |
</subsection> |
8941 |
<subsection id="hardware"> |
8942 |
<title>Extra Hardware Configuration</title> |
8943 |
<body> |
8944 |
|
8945 |
<p> |
8946 |
When the Installation CD boots, it tries to detect all your hardware devices and |
8947 |
loads the appropriate kernel modules to support your hardware. In the |
8948 |
vast majority of cases, it does a very good job. However, in some cases, it may |
8949 |
not auto-load the kernel modules you need. If the PCI auto-detection missed some |
8950 |
of your system's hardware, you will have to load the appropriate kernel modules |
8951 |
manually. |
8952 |
</p> |
8953 |
|
8954 |
<p> |
8955 |
In the next example we try to load the <c>airport</c> module. This module |
8956 |
supports only the old Airport cards (802.11b). Airport Extreme (802.11g) is not |
8957 |
supported on the InstallCD due to restrictions on firmware distribution. |
8958 |
</p> |
8959 |
|
8960 |
<pre caption="Loading the airport module"> |
8961 |
# <i>modprobe airport</i> |
8962 |
</pre> |
8963 |
|
8964 |
<p> |
8965 |
On older iMacs, sometimes the network card is not detected properly. These use |
8966 |
the BMAC driver: |
8967 |
</p> |
8968 |
|
8969 |
<pre caption="Loading the bmac module"> |
8970 |
# <i>modprobe bmac</i> |
8971 |
</pre> |
8972 |
|
8973 |
</body> |
8974 |
</subsection> |
8975 |
<subsection> |
8976 |
<title>Optional: Tweaking Hard Disk Performance</title> |
8977 |
<body> |
8978 |
|
8979 |
<p> |
8980 |
If you are an advanced user, you might want to tweak the IDE hard disk |
8981 |
performance using <c>hdparm</c>. With the <c>-tT</c> options you can |
8982 |
test the performance of your disk (execute it several times to get a |
8983 |
more precise impression): |
8984 |
</p> |
8985 |
|
8986 |
<pre caption="Testing disk performance"> |
8987 |
# <i>hdparm -tT /dev/hda</i> |
8988 |
</pre> |
8989 |
|
8990 |
<p> |
8991 |
To tweak, you can use any of the following examples (or experiment |
8992 |
yourself) which use <path>/dev/hda</path> as disk (substitute with your |
8993 |
disk): |
8994 |
</p> |
8995 |
|
8996 |
<pre caption="Tweaking hard disk performance"> |
8997 |
<comment>Activate DMA:</comment> |
8998 |
# <i>hdparm -d 1 /dev/hda</i> |
8999 |
<comment>Activate DMA + Safe Performance-enhancing Options:</comment> |
9000 |
# <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i> |
9001 |
</pre> |
9002 |
|
9003 |
</body> |
9004 |
</subsection> |
9005 |
<subsection id="useraccounts"> |
9006 |
<title>Optional: User Accounts</title> |
9007 |
<body> |
9008 |
|
9009 |
<p> |
9010 |
If you plan on giving other people access to your installation |
9011 |
environment or you want to chat using <c>irssi</c> without root privileges (for |
9012 |
security reasons), you need to create the necessary user accounts and change |
9013 |
the root password. |
9014 |
</p> |
9015 |
|
9016 |
<p> |
9017 |
To change the root password, use the <c>passwd</c> utility: |
9018 |
</p> |
9019 |
|
9020 |
<pre caption="Changing the root password"> |
9021 |
# <i>passwd</i> |
9022 |
New password: <comment>(Enter your new password)</comment> |
9023 |
Re-enter password: <comment>(Re-enter your password)</comment> |
9024 |
</pre> |
9025 |
|
9026 |
<p> |
9027 |
To create a user account, we first enter their credentials, followed by |
9028 |
its password. We use <c>useradd</c> and <c>passwd</c> for these tasks. |
9029 |
In the next example, we create a user called "john". |
9030 |
</p> |
9031 |
|
9032 |
<pre caption="Creating a user account"> |
9033 |
# <i>useradd -m -G users john</i> |
9034 |
# <i>passwd john</i> |
9035 |
New password: <comment>(Enter john's password)</comment> |
9036 |
Re-enter password: <comment>(Re-enter john's password)</comment> |
9037 |
</pre> |
9038 |
|
9039 |
<p> |
9040 |
You can change your user id from root to the newly created user by using |
9041 |
<c>su</c>: |
9042 |
</p> |
9043 |
|
9044 |
<pre caption="Changing user id"> |
9045 |
# <i>su - john</i> |
9046 |
</pre> |
9047 |
|
9048 |
</body> |
9049 |
</subsection> |
9050 |
<subsection> |
9051 |
<title>Optional: Viewing Documentation while Installing</title> |
9052 |
<body> |
9053 |
|
9054 |
<p> |
9055 |
If you want to view the Gentoo Handbook (either from-CD or online) during the |
9056 |
installation, make sure you have created a user account (see <uri |
9057 |
link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to |
9058 |
go to a new terminal and log in. |
9059 |
</p> |
9060 |
|
9061 |
<p> |
9062 |
If you want to view the documentation on the CD you can immediately run |
9063 |
<c>links</c> or even <c>links -g</c> for a graphical framebuffer browser to |
9064 |
read it: |
9065 |
</p> |
9066 |
|
9067 |
<pre caption="Viewing the on-CD documentation"> |
9068 |
# <i>links /mnt/cdrom/docs/html/index.html</i> |
9069 |
</pre> |
9070 |
|
9071 |
<p> |
9072 |
However, it is preferred that you use the online Gentoo Handbook as it will be |
9073 |
more recent than the one provided on the CD. You can view it using <c>links</c> |
9074 |
as well, but only after having completed the <e>Configuring your Network</e> |
9075 |
chapter (otherwise you won't be able to go on the Internet to view the |
9076 |
document): |
9077 |
</p> |
9078 |
|
9079 |
<pre caption="Viewing the Online Documentation"> |
9080 |
# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
9081 |
</pre> |
9082 |
|
9083 |
<p> |
9084 |
You can go back to your original terminal by pressing <c>Alt-F1</c>. |
9085 |
</p> |
9086 |
|
9087 |
</body> |
9088 |
</subsection> |
9089 |
<subsection> |
9090 |
<title>Optional: Starting the SSH Daemon</title> |
9091 |
<body> |
9092 |
|
9093 |
<p> |
9094 |
If you want to allow other users to access your computer during the |
9095 |
Gentoo installation (perhaps because those users are going to help you |
9096 |
install Gentoo, or even do it for you), you need to create a user |
9097 |
account for them and perhaps even provide them with your root password |
9098 |
(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user). |
9099 |
</p> |
9100 |
|
9101 |
<p> |
9102 |
To fire up the SSH daemon, execute the following command: |
9103 |
</p> |
9104 |
|
9105 |
<pre caption="Starting the SSH daemon"> |
9106 |
# <i>/etc/init.d/sshd start</i> |
9107 |
</pre> |
9108 |
|
9109 |
<p> |
9110 |
To be able to use sshd, you first need to set up your networking. Continue with |
9111 |
the chapter on <uri link="?part=1&chap=3">Configuring your Network</uri>. |
9112 |
</p> |
9113 |
|
9114 |
</body> |
9115 |
</subsection> |
9116 |
</section> |
9117 |
</sections> |
9118 |
|
9119 |
|
9120 |
|
9121 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-bootloader.xml |
9122 |
|
9123 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-bootloader.xml?rev=1.1&view=markup |
9124 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-bootloader.xml?rev=1.1&content-type=text/plain |
9125 |
|
9126 |
Index: hb-install-ppc64-bootloader.xml |
9127 |
=================================================================== |
9128 |
<?xml version='1.0' encoding='UTF-8'?> |
9129 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
9130 |
|
9131 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
9132 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
9133 |
|
9134 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-bootloader.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
9135 |
|
9136 |
<sections> |
9137 |
|
9138 |
<version>9.0</version> |
9139 |
<date>2007-05-07</date> |
9140 |
|
9141 |
<section> |
9142 |
<title>Making your Choice</title> |
9143 |
<subsection> |
9144 |
<title>Introduction</title> |
9145 |
<body> |
9146 |
|
9147 |
<p> |
9148 |
Now that your kernel is configured and compiled and the necessary system |
9149 |
configuration files are filled in correctly, it is time to install a |
9150 |
program that will fire up your kernel when you start the system. Such a |
9151 |
program is called a <e>bootloader</e>. |
9152 |
</p> |
9153 |
|
9154 |
<p> |
9155 |
On Linux/PPC64 we have only yaBoot as a bootloader until grub2 is |
9156 |
finished. |
9157 |
</p> |
9158 |
|
9159 |
</body> |
9160 |
</subsection> |
9161 |
</section> |
9162 |
<section id="yaboot"> |
9163 |
<title>Using yaBoot</title> |
9164 |
<subsection> |
9165 |
<title>Introduction</title> |
9166 |
<body> |
9167 |
|
9168 |
<impo> |
9169 |
For a 64bit userland use yaboot-static instead of yaboot, because yaboot won't |
9170 |
compile on 64bit userland systems. For a 32bit userland use yaboot as you |
9171 |
normally would. |
9172 |
</impo> |
9173 |
|
9174 |
<p> |
9175 |
There are two ways to configure yaBoot for your system. You can use the new and |
9176 |
improved <c>yabootconfig</c> included with <path>yaboot-1.3.8-r1</path> and |
9177 |
later to automatically set up yaboot. If for some reason you do not want to run |
9178 |
<c>yabootconfig</c> to automatically set up <path>/etc/yaboot.conf</path> or you |
9179 |
are installing Gentoo on a G5 (on which <c>yabootconfig</c> does not always |
9180 |
work), you can just edit the sample file already installed on your system. |
9181 |
</p> |
9182 |
|
9183 |
<pre caption="Installing Necessary File System Tools"> |
9184 |
# <i>emerge hfsutils hfsplusutils</i> |
9185 |
</pre> |
9186 |
|
9187 |
<pre caption="Installing the bootloader"> |
9188 |
<comment>(64bit userland)</comment> |
9189 |
# <i>emerge --update yaboot-static</i> |
9190 |
<comment>(32bit userland)</comment> |
9191 |
# <i>emerge --update yaboot</i> |
9192 |
</pre> |
9193 |
|
9194 |
<impo> |
9195 |
yabootconfig/ybin won't work on IBM. You have to install yaboot another way: |
9196 |
<uri link="#yaboot-ibm">Using yaboot on IBM hardware</uri> |
9197 |
</impo> |
9198 |
|
9199 |
<note> |
9200 |
If your root filesystem uses the JFS filesystem, be sure to add <c>ro</c> as a |
9201 |
kernel parameter. JFS must be able to replay its log in read-only mode before it |
9202 |
gets mounted read-write. |
9203 |
</note> |
9204 |
|
9205 |
<ul> |
9206 |
<li><uri link="#yabootconfig">Default: Using yabootconfig</uri></li> |
9207 |
<li> |
9208 |
<uri link="#manual_yaboot">Alternative: Manual yaBoot Configuration</uri> |
9209 |
</li> |
9210 |
</ul> |
9211 |
|
9212 |
</body> |
9213 |
</subsection> |
9214 |
<subsection id="yabootconfig"> |
9215 |
<title>Default: Using yabootconfig</title> |
9216 |
<body> |
9217 |
|
9218 |
<p> |
9219 |
<c>yabootconfig</c> will auto-detect the partitions on your machine and will |
9220 |
set up dual and triple boot combinations with Linux, Mac OS, and Mac OS |
9221 |
X. |
9222 |
</p> |
9223 |
|
9224 |
<p> |
9225 |
To use <c>yabootconfig</c>, your drive must have a bootstrap partition, and |
9226 |
<path>/etc/fstab</path> must be configured with your Linux partitions. Both of |
9227 |
these should have been done already in the steps above. To start, ensure that |
9228 |
you have the latest version of yaboot installed by running <c>emerge --update |
9229 |
yaboot-static</c>. This is necessary as the latest version will be available via |
9230 |
Portage, but it may not have made it into the stage files. |
9231 |
</p> |
9232 |
|
9233 |
<p> |
9234 |
Now run <c>yabootconfig</c>. The program will run and it will confirm the |
9235 |
location of the bootstrap partition. Type <c>Y</c> if it is correct. If not, |
9236 |
double check <path>/etc/fstab</path>. yabootconfig will then scan your system |
9237 |
setup, create <path>/etc/yaboot.conf</path> and run <c>mkofboot</c> for you. |
9238 |
<c>mkofboot</c> is used to format the bootstrap partition, and install the |
9239 |
yaboot configuration file into it. |
9240 |
</p> |
9241 |
|
9242 |
<p> |
9243 |
You might want to verify the contents of <path>/etc/yaboot.conf</path>. If |
9244 |
you make changes to <path>/etc/yaboot.conf</path> (like setting the |
9245 |
default/boot OS), make sure to rerun <c>ybin -v</c> to apply changes to the |
9246 |
bootstrap partition. |
9247 |
</p> |
9248 |
|
9249 |
<p> |
9250 |
Now continue with <uri link="#reboot">Rebooting your System</uri>. |
9251 |
</p> |
9252 |
|
9253 |
</body> |
9254 |
</subsection> |
9255 |
<subsection id="manual_yaboot"> |
9256 |
<title>Alternative: Manual yaBoot Configuration</title> |
9257 |
<body> |
9258 |
|
9259 |
<p> |
9260 |
Below you find a completed <path>yaboot.conf</path> file. Alter it at |
9261 |
will. |
9262 |
</p> |
9263 |
|
9264 |
<pre caption="/etc/yaboot.conf"> |
9265 |
<comment>## /etc/yaboot.conf |
9266 |
## |
9267 |
## run: "man yaboot.conf" for details. Do not make changes until you have!! |
9268 |
## see also: /usr/share/doc/yaboot/examples for example configurations. |
9269 |
## |
9270 |
## For a dual-boot menu, add one or more of: |
9271 |
## bsd=/dev/hdaX, macos=/dev/hdaY, macosx=/dev/hdaZ |
9272 |
|
9273 |
## our bootstrap partition:</comment> |
9274 |
|
9275 |
boot=/dev/hda2 |
9276 |
|
9277 |
<comment>## ofboot is the Open Firmware way to specify the bootstrap partition. |
9278 |
## If this isn't defined, yaboot fails on the G5 and some G4s (unless |
9279 |
## you pass the necessary arguments to the mkofboot/ybin program). |
9280 |
## hd:X means /dev/sdaX (or /dev/hdaX).</comment> |
9281 |
|
9282 |
ofboot=hd:2 |
9283 |
|
9284 |
<comment>## hd: is open firmware speak for hda</comment> |
9285 |
device=hd: |
9286 |
|
9287 |
delay=5 |
9288 |
defaultos=macosx |
9289 |
timeout=30 |
9290 |
install=/usr/lib/yaboot/yaboot |
9291 |
magicboot=/usr/lib/yaboot/ofboot |
9292 |
|
9293 |
<comment>################# |
9294 |
## This section can be duplicated if you have more than one kernel or set of |
9295 |
## boot options - replace <keyval id="kernel-name"/> with your kernel-version |
9296 |
#################</comment> |
9297 |
image=/boot/<keyval id="kernel-name"/> |
9298 |
label=Linux |
9299 |
root=/dev/hda3 |
9300 |
partition=3 |
9301 |
read-only |
9302 |
|
9303 |
macos=hd:13 |
9304 |
macosx=hd:12 |
9305 |
enablecdboot |
9306 |
enableofboot |
9307 |
</pre> |
9308 |
|
9309 |
<p> |
9310 |
Once <path>yaboot.conf</path> is set up the way you want it, you run <c>mkofboot |
9311 |
-v</c> to install the settings in the bootstrap partition. <e>Don't forget |
9312 |
this!</e> Confirm when <c>mkofboot</c> asks you to create a new filesystem. |
9313 |
</p> |
9314 |
|
9315 |
<p> |
9316 |
If all goes well, and you have the same options as the sample above, your next |
9317 |
reboot will give you a simple, five-entry boot menu. If you update your yaboot |
9318 |
config later on, you'll just need to run <c>ybin -v</c> to update the bootstrap |
9319 |
partition - <c>mkofboot</c> is for initial setup only. |
9320 |
</p> |
9321 |
|
9322 |
<p> |
9323 |
For more information on yaboot, take a look at the <uri |
9324 |
link="http://penguinppc.org/projects/yaboot">yaboot project</uri>. For now, |
9325 |
continue the installation with <uri link="#reboot">Rebooting your System</uri>. |
9326 |
</p> |
9327 |
|
9328 |
</body> |
9329 |
</subsection> |
9330 |
</section> |
9331 |
<section id="yaboot-ibm"> |
9332 |
<title>Using yaboot on IBM hardware</title> |
9333 |
<body> |
9334 |
|
9335 |
<p> |
9336 |
On IBM hardware you cannot run yabootconfig or ybin. You must proceed with the |
9337 |
following steps: |
9338 |
</p> |
9339 |
|
9340 |
<ul> |
9341 |
<li>Install yaboot-static</li> |
9342 |
<li> |
9343 |
Run <c>dd if=/usr/lib/yaboot/yaboot.chrp of=/dev/sdXX</c> (fill in XX with |
9344 |
your disk and partition for the PReP partition; this was in our example |
9345 |
<path>/dev/sda1</path>) |
9346 |
</li> |
9347 |
<li> |
9348 |
Next construct your own <path>yaboot.conf</path> file and place into |
9349 |
<path>/etc</path>. (Take a look at the config above, look into the man page |
9350 |
of <path>yaboot.conf</path> or look at the below <path>yaboot.conf</path> |
9351 |
example.) |
9352 |
</li> |
9353 |
<li> |
9354 |
Assuming your boot device in OF is pointing to the harddrive you prep boot |
9355 |
partition is on then it'll just work, otherwise at IPL time, go into the |
9356 |
multiboot menu and set the boot device to the one with your prep boot |
9357 |
partition |
9358 |
</li> |
9359 |
<li>That's it!</li> |
9360 |
</ul> |
9361 |
|
9362 |
<pre caption="yaboot.conf for IBM hardware"> |
9363 |
device=disk: |
9364 |
partition=2 |
9365 |
root=/dev/sda2 |
9366 |
default=linux |
9367 |
timeout=50 |
9368 |
|
9369 |
image=/boot/<keyval id="kernel-name"/> |
9370 |
label=linux |
9371 |
append="console=ttyS0,9600" |
9372 |
read-only |
9373 |
</pre> |
9374 |
|
9375 |
<p> |
9376 |
For POWER4, POWER5, and blade-based hardware where the PReP disk partition and |
9377 |
the disk partition that contains your kernel are on the same physical disk, you |
9378 |
can use a simplified <path>yaboot.conf</path>. The following should be |
9379 |
sufficient: |
9380 |
</p> |
9381 |
|
9382 |
<pre caption="yaboot.conf for PReP hardware"> |
9383 |
default = linux |
9384 |
timeout = 100 |
9385 |
image=/boot/<keyval id="kernel-name"/> |
9386 |
label=linux |
9387 |
read-only |
9388 |
root = /dev/sda2 |
9389 |
append="root=/dev/sda2" |
9390 |
</pre> |
9391 |
|
9392 |
<p> |
9393 |
To verify that yaboot has been copied to the PReP partition: |
9394 |
</p> |
9395 |
|
9396 |
<pre caption="Verifying the yaboot install on PReP"> |
9397 |
# <i>dd if=/dev/sda1 count=10 | grep ELF</i> |
9398 |
Binary file (standard input) matches |
9399 |
10+0 records in |
9400 |
10+0 records out |
9401 |
</pre> |
9402 |
|
9403 |
<p> |
9404 |
A match signifies that yaboot was installed correctly. |
9405 |
</p> |
9406 |
|
9407 |
</body> |
9408 |
</section> |
9409 |
<section id="reboot"> |
9410 |
<title>Rebooting the System</title> |
9411 |
<subsection> |
9412 |
<body> |
9413 |
|
9414 |
<p> |
9415 |
Exit the chrooted environment and unmount all mounted partitions. Then type in |
9416 |
that one magical command you have been waiting for: <c>reboot</c>. |
9417 |
</p> |
9418 |
|
9419 |
<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
9420 |
# <i>exit</i> |
9421 |
~# <i>cd</i> |
9422 |
~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i> |
9423 |
~# <i>reboot</i> |
9424 |
</pre> |
9425 |
|
9426 |
<p> |
9427 |
Of course, don't forget to remove the bootable CD, otherwise the CD will be |
9428 |
booted again instead of your new Gentoo system. |
9429 |
</p> |
9430 |
|
9431 |
<p> |
9432 |
Once rebooted in your Gentoo installation, finish up with <uri |
9433 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
9434 |
</p> |
9435 |
|
9436 |
</body> |
9437 |
</subsection> |
9438 |
</section> |
9439 |
|
9440 |
</sections> |
9441 |
|
9442 |
|
9443 |
|
9444 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-disk.xml |
9445 |
|
9446 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-disk.xml?rev=1.1&view=markup |
9447 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-disk.xml?rev=1.1&content-type=text/plain |
9448 |
|
9449 |
Index: hb-install-ppc64-disk.xml |
9450 |
=================================================================== |
9451 |
<?xml version='1.0' encoding='UTF-8'?> |
9452 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
9453 |
|
9454 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
9455 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
9456 |
|
9457 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-disk.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
9458 |
|
9459 |
<sections> |
9460 |
|
9461 |
<version>9.0</version> |
9462 |
<date>2007-06-26</date> |
9463 |
|
9464 |
<section> |
9465 |
<title>Introduction to Block Devices</title> |
9466 |
<subsection> |
9467 |
<title>Block Devices</title> |
9468 |
<body> |
9469 |
|
9470 |
<p> |
9471 |
We'll take a good look at disk-oriented aspects of Gentoo Linux |
9472 |
and Linux in general, including Linux filesystems, partitions and block devices. |
9473 |
Then, once you're familiar with the ins and outs of disks and filesystems, |
9474 |
you'll be guided through the process of setting up partitions and filesystems |
9475 |
for your Gentoo Linux installation. |
9476 |
</p> |
9477 |
|
9478 |
<p> |
9479 |
To begin, we'll introduce <e>block devices</e>. The most famous block device is |
9480 |
probably the one that represents the first IDE drive in a Linux system, namely |
9481 |
<path>/dev/hda</path>. If your system uses SCSI drives, then your first hard |
9482 |
drive would be <path>/dev/sda</path>. Serial ATA drives are also |
9483 |
<path>/dev/sda</path> even if they are IDE drives. |
9484 |
</p> |
9485 |
|
9486 |
<p> |
9487 |
The block devices above represent an abstract interface to the disk. User |
9488 |
programs can use these block devices to interact with your disk without worrying |
9489 |
about whether your drives are IDE, SCSI or something else. The program can |
9490 |
simply address the storage on the disk as a bunch of contiguous, |
9491 |
randomly-accessible 512-byte blocks. |
9492 |
</p> |
9493 |
|
9494 |
</body> |
9495 |
</subsection> |
9496 |
<subsection> |
9497 |
<title>Partitions and Slices</title> |
9498 |
<body> |
9499 |
|
9500 |
<p> |
9501 |
Although it is theoretically possible to use a full disk to house your Linux |
9502 |
system, this is almost never done in practice. Instead, full disk block devices |
9503 |
are split up in smaller, more manageable block devices. On most systems, |
9504 |
these are called <e>partitions</e>. Other architectures use a similar technique, |
9505 |
called <e>slices</e>. |
9506 |
</p> |
9507 |
|
9508 |
</body> |
9509 |
</subsection> |
9510 |
</section> |
9511 |
<section> |
9512 |
<title>Designing a Partitioning Scheme</title> |
9513 |
<subsection> |
9514 |
<title>Default Partitioning Scheme</title> |
9515 |
<body> |
9516 |
|
9517 |
<p> |
9518 |
If you are not interested in drawing up a partitioning scheme for your system, |
9519 |
you can use the partitioning scheme we use throughout this book: |
9520 |
</p> |
9521 |
|
9522 |
<table> |
9523 |
<tr> |
9524 |
<th>Partition</th> |
9525 |
<th>Filesystem</th> |
9526 |
<th>Size</th> |
9527 |
<th>Description</th> |
9528 |
</tr> |
9529 |
<tr> |
9530 |
<ti><path>/dev/sda1</path></ti> |
9531 |
<ti>Partition map</ti> |
9532 |
<ti>31.5k</ti> |
9533 |
<ti>Partition map</ti> |
9534 |
</tr> |
9535 |
<tr> |
9536 |
<ti><path>/dev/sda2</path></ti> |
9537 |
<ti>(bootstrap)</ti> |
9538 |
<ti>800k</ti> |
9539 |
<ti>Apple_Bootstrap</ti> |
9540 |
</tr> |
9541 |
<tr> |
9542 |
<ti><path>/dev/sda3</path></ti> |
9543 |
<ti>(swap)</ti> |
9544 |
<ti>512M</ti> |
9545 |
<ti>Swap partition</ti> |
9546 |
</tr> |
9547 |
<tr> |
9548 |
<ti><path>/dev/sda4</path></ti> |
9549 |
<ti>ext3</ti> |
9550 |
<ti>Rest of the disk</ti> |
9551 |
<ti>Root partition</ti> |
9552 |
</tr> |
9553 |
</table> |
9554 |
|
9555 |
<note> |
9556 |
There are some partitions named like this: <path>Apple_Driver43</path>, |
9557 |
<path>Apple_Driver_ATA</path>, <path>Apple_FWDriver</path>, |
9558 |
<path>Apple_Driver_IOKit</path>, and <path>Apple_Patches</path>. If you are not |
9559 |
planning to use MacOS 9 you can delete them, because MacOS X and Linux don't |
9560 |
need them. You might have to use parted in order to delete them, as mac-fdisk |
9561 |
can't delete them yet. |
9562 |
</note> |
9563 |
|
9564 |
<p> |
9565 |
If you are interested in knowing how big a partition should be, or even how |
9566 |
many partitions you need, read on. Otherwise continue now with |
9567 |
<uri link="#mac-fdisk">Apple G5: Using mac-fdisk to Partition your |
9568 |
Disk</uri> or <uri link="#fdisk">IBM pSeries: using fdisk to Partition |
9569 |
your Disk</uri> |
9570 |
</p> |
9571 |
|
9572 |
</body> |
9573 |
</subsection> |
9574 |
<subsection> |
9575 |
<title>How Many and How Big?</title> |
9576 |
<body> |
9577 |
|
9578 |
<p> |
9579 |
The number of partitions is highly dependent on your environment. For instance, |
9580 |
if you have lots of users, you will most likely want to have your |
9581 |
<path>/home</path> separate as it increases security and makes backups easier. |
9582 |
If you are installing Gentoo to perform as a mailserver, your <path>/var</path> |
9583 |
should be separate as all mails are stored inside <path>/var</path>. A good |
9584 |
choice of filesystem will then maximise your performance. Gameservers will have |
9585 |
a separate <path>/opt</path> as most gaming servers are installed there. The |
9586 |
reason is similar for <path>/home</path>: security and backups. You will |
9587 |
definitely want to keep <path>/usr</path> big: not only will it contain the |
9588 |
majority of applications, the Portage tree alone takes around 500 Mbyte |
9589 |
excluding the various sources that are stored in it. |
9590 |
</p> |
9591 |
|
9592 |
<p> |
9593 |
As you can see, it very much depends on what you want to achieve. Separate |
9594 |
partitions or volumes have the following advantages: |
9595 |
</p> |
9596 |
|
9597 |
<ul> |
9598 |
<li> |
9599 |
You can choose the best performing filesystem for each partition or volume |
9600 |
</li> |
9601 |
<li> |
9602 |
Your entire system cannot run out of free space if one defunct tool is |
9603 |
continuously writing files to a partition or volume |
9604 |
</li> |
9605 |
<li> |
9606 |
If necessary, file system checks are reduced in time, as multiple checks can |
9607 |
be done in parallel (although this advantage is more with multiple disks than |
9608 |
it is with multiple partitions) |
9609 |
</li> |
9610 |
<li> |
9611 |
Security can be enhanced by mounting some partitions or volumes read-only, |
9612 |
nosuid (setuid bits are ignored), noexec (executable bits are ignored) etc. |
9613 |
</li> |
9614 |
</ul> |
9615 |
|
9616 |
<p> |
9617 |
However, multiple partitions have one big disadvantage: if not configured |
9618 |
properly, you might result in having a system with lots of free space on one |
9619 |
partition and none on another. There is also a 15-partition limit for SCSI and |
9620 |
SATA. |
9621 |
</p> |
9622 |
|
9623 |
</body> |
9624 |
</subsection> |
9625 |
</section> |
9626 |
<section id="mac-fdisk"> |
9627 |
<title>Default: Using mac-fdisk (Apple G5) to Partition your Disk</title> |
9628 |
<body> |
9629 |
|
9630 |
<p> |
9631 |
At this point, create your partitions using <c>mac-fdisk</c>: |
9632 |
</p> |
9633 |
|
9634 |
<pre caption="Starting mac-fdisk"> |
9635 |
# <i>mac-fdisk /dev/sda</i> |
9636 |
</pre> |
9637 |
|
9638 |
<p> |
9639 |
First delete the partitions you have cleared previously to make room for your |
9640 |
Linux partitions. Use <c>d</c> in <c>mac-fdisk</c> to delete those partition(s). |
9641 |
It will ask for the partition number to delete. |
9642 |
</p> |
9643 |
|
9644 |
<p> |
9645 |
Second, create an <e>Apple_Bootstrap</e> partition by using <c>b</c>. It will |
9646 |
ask for what block you want to start. Enter the number of your first free |
9647 |
partition, followed by a <c>p</c>. For instance this is <c>2p</c>. |
9648 |
</p> |
9649 |
|
9650 |
<note> |
9651 |
This partition is <e>not</e> a "boot" partition. It is not used by Linux at all; |
9652 |
you don't have to place any filesystem on it and you should never mount it. PPC |
9653 |
users don't need an extra partition for <path>/boot</path>. |
9654 |
</note> |
9655 |
|
9656 |
<p> |
9657 |
Now create a swap partition by pressing <c>c</c>. Again <c>mac-fdisk</c> will |
9658 |
ask for what block you want to start this partition from. As we used <c>2</c> |
9659 |
before to create the Apple_Bootstrap partition, you now have to enter |
9660 |
<c>3p</c>. When you're asked for the size, enter <c>512M</c> (or whatever size |
9661 |
you want). When asked for a name, enter <c>swap</c> (mandatory). |
9662 |
</p> |
9663 |
|
9664 |
<p> |
9665 |
To create the root partition, enter <c>c</c>, followed by <c>4p</c> to select |
9666 |
from what block the root partition should start. When asked for the size, enter |
9667 |
<c>4p</c> again. <c>mac-fdisk</c> will interpret this as "Use all available |
9668 |
space". When asked for the name, enter <c>root</c> (mandatory). |
9669 |
</p> |
9670 |
|
9671 |
<p> |
9672 |
To finish up, write the partition to the disk using <c>w</c> and <c>q</c> to |
9673 |
quit <c>mac-fdisk</c>. |
9674 |
</p> |
9675 |
|
9676 |
<note> |
9677 |
To make sure everything is ok, you should run mac-fdisk once more and check |
9678 |
whether all the partitions are there. If you don't see any of the partitions you |
9679 |
created, or the changes you made, you should reinitialize your partitions by |
9680 |
pressing <c>i</c> in mac-fdisk. Note that this will recreate the partition map |
9681 |
and thus remove all your partitions. |
9682 |
</note> |
9683 |
|
9684 |
<p> |
9685 |
Now that your partitions are created, you can now continue with <uri |
9686 |
link="#filesystems">Creating Filesystems</uri>. |
9687 |
</p> |
9688 |
|
9689 |
</body> |
9690 |
</section> |
9691 |
<section id="fdisk"> |
9692 |
<title>IBM pSeries, iSeries and OpenPower: using fdisk to Partition your Disk</title> |
9693 |
<subsection> |
9694 |
<body> |
9695 |
|
9696 |
<note> |
9697 |
If you are planning to use a RAID disk array for your Gentoo installation and |
9698 |
you are using POWER5-based hardware, you should now run <c>iprconfig</c> to |
9699 |
format the disks to Advanced Function format and create the disk array. You |
9700 |
should emerge <c>iprutils</c> after your install is complete. |
9701 |
</note> |
9702 |
|
9703 |
<p> |
9704 |
If you have an ipr-based SCSI adapter, you should start the ipr utilities now. |
9705 |
</p> |
9706 |
|
9707 |
<pre caption="Starting ipr utilities"> |
9708 |
# <i>/etc/init.d/iprinit start</i> |
9709 |
</pre> |
9710 |
|
9711 |
<p> |
9712 |
The following parts explain how to create the example partition layout |
9713 |
described previously, namely: |
9714 |
</p> |
9715 |
|
9716 |
<table> |
9717 |
<tr> |
9718 |
<th>Partition</th> |
9719 |
<th>Description</th> |
9720 |
</tr> |
9721 |
<tr> |
9722 |
<ti><path>/dev/sda1</path></ti> |
9723 |
<ti>PPC PReP Boot partition</ti> |
9724 |
</tr> |
9725 |
<tr> |
9726 |
<ti><path>/dev/sda2</path></ti> |
9727 |
<ti>Swap partition</ti> |
9728 |
</tr> |
9729 |
<tr> |
9730 |
<ti><path>/dev/sda3</path></ti> |
9731 |
<ti>Root partition</ti> |
9732 |
</tr> |
9733 |
</table> |
9734 |
|
9735 |
<p> |
9736 |
Change your partition layout according to your own preference. |
9737 |
</p> |
9738 |
|
9739 |
</body> |
9740 |
</subsection> |
9741 |
<subsection> |
9742 |
<title>Viewing the Current Partition Layout</title> |
9743 |
<body> |
9744 |
|
9745 |
<p> |
9746 |
<c>fdisk</c> is a popular and powerful tool to split your disk into |
9747 |
partitions. Fire up <c>fdisk</c> on your disk (in our example, we |
9748 |
use <path>/dev/sda</path>): |
9749 |
</p> |
9750 |
|
9751 |
<pre caption="Starting fdisk"> |
9752 |
# <i>fdisk /dev/sda</i> |
9753 |
</pre> |
9754 |
|
9755 |
<p> |
9756 |
Once in <c>fdisk</c>, you'll be greeted with a prompt that looks like |
9757 |
this: |
9758 |
</p> |
9759 |
|
9760 |
<pre caption="fdisk prompt"> |
9761 |
Command (m for help): |
9762 |
</pre> |
9763 |
|
9764 |
<p> |
9765 |
Type <c>p</c> to display your disk's current partition configuration: |
9766 |
</p> |
9767 |
|
9768 |
<pre caption="An example partition configuration"> |
9769 |
Command (m for help): p |
9770 |
|
9771 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9772 |
141 heads, 63 sectors/track, 6761 cylinders |
9773 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9774 |
|
9775 |
Device Boot Start End Blocks Id System |
9776 |
/dev/sda1 1 12 53266+ 83 Linux |
9777 |
/dev/sda2 13 233 981571+ 82 Linux swap |
9778 |
/dev/sda3 234 674 1958701+ 83 Linux |
9779 |
/dev/sda4 675 6761 27035410+ 5 Extended |
9780 |
/dev/sda5 675 2874 9771268+ 83 Linux |
9781 |
/dev/sda6 2875 2919 199836 83 Linux |
9782 |
/dev/sda7 2920 3008 395262 83 Linux |
9783 |
/dev/sda8 3009 6761 16668918 83 Linux |
9784 |
|
9785 |
Command (m for help): |
9786 |
</pre> |
9787 |
|
9788 |
<p> |
9789 |
This particular disk is configured to house six Linux filesystems |
9790 |
(each with a corresponding partition listed as "Linux") as well as a |
9791 |
swap partition (listed as "Linux swap"). |
9792 |
</p> |
9793 |
|
9794 |
</body> |
9795 |
</subsection> |
9796 |
<subsection> |
9797 |
<title>Removing all Partitions</title> |
9798 |
<body> |
9799 |
|
9800 |
<p> |
9801 |
We will first remove all existing partitions from the disk. Type |
9802 |
<c>d</c> to delete a partition. For instance, to delete an existing |
9803 |
<path>/dev/sda1</path>: |
9804 |
</p> |
9805 |
|
9806 |
<note> |
9807 |
If you don't want to delete all partitions just delete those you |
9808 |
want to delete. At this point the author recommends a backup of your |
9809 |
data to avoid the lose of it. |
9810 |
</note> |
9811 |
|
9812 |
<pre caption="Deleting a partition"> |
9813 |
Command (m for help): <i>d</i> |
9814 |
Partition number (1-4): <i>1</i> |
9815 |
</pre> |
9816 |
|
9817 |
<p> |
9818 |
The partition has been scheduled for deletion. It will no longer show up |
9819 |
if you type <c>p</c>, but it will not be erased until your changes have |
9820 |
been saved. If you made a mistake and want to abort without saving your |
9821 |
changes, type <c>q</c> immediately and hit enter and your partition will |
9822 |
not be deleted. |
9823 |
</p> |
9824 |
|
9825 |
<p> |
9826 |
Now, assuming that you do indeed want to wipe out all the partitions on |
9827 |
your system, repeatedly type <c>p</c> to print out a partition listing |
9828 |
and then type <c>d</c> and the number of the partition to delete it. |
9829 |
Eventually, you'll end up with a partition table with nothing in it: |
9830 |
</p> |
9831 |
|
9832 |
<pre caption="An empty partition table"> |
9833 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9834 |
141 heads, 63 sectors/track, 6761 cylinders |
9835 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9836 |
|
9837 |
Device Boot Start End Blocks Id System |
9838 |
|
9839 |
Command (m for help): |
9840 |
</pre> |
9841 |
|
9842 |
<p> |
9843 |
Now that the in-memory partition table is empty, we're ready to create |
9844 |
the partitions. We will use a default partitioning scheme as discussed |
9845 |
previously. Of course, don't follow these instructions to the letter if |
9846 |
you don't want the same partitioning scheme! |
9847 |
</p> |
9848 |
|
9849 |
</body> |
9850 |
</subsection> |
9851 |
<subsection> |
9852 |
<title>Creating the PPC PReP boot partition</title> |
9853 |
<body> |
9854 |
|
9855 |
<p> |
9856 |
We first create a small PReP boot partition. Type <c>n</c> to create a new |
9857 |
partition, then <c>p</c> to select a primary partition, followed by |
9858 |
<c>1</c> to select the first primary partition. When prompted for the |
9859 |
first cylinder, hit enter. When prompted for the last cylinder, type |
9860 |
<c>+7M</c> to create a partition 7 Mbyte in size. After you've done |
9861 |
this, type <c>t</c> to set the partition type, <c>1</c> to select the |
9862 |
partition you just created and then type in <c>41</c> to set the |
9863 |
partition type to "PPC PReP Boot". Finally, you'll need to mark the PReP |
9864 |
partition as bootable. |
9865 |
</p> |
9866 |
|
9867 |
<note> |
9868 |
The PReP partition has to be smaller than 8 MByte! |
9869 |
</note> |
9870 |
|
9871 |
<pre caption="Creating the PReP boot partition"> |
9872 |
Command (m for help): <i>p</i> |
9873 |
|
9874 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9875 |
141 heads, 63 sectors/track, 6761 cylinders |
9876 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9877 |
|
9878 |
Device Boot Start End Blocks Id System |
9879 |
|
9880 |
Command (m for help): <i>n</i> |
9881 |
Command action |
9882 |
e extended |
9883 |
p primary partition (1-4) |
9884 |
<i>p</i> |
9885 |
Partition number (1-4): <i>1</i> |
9886 |
First cylinder (1-6761, default 1): |
9887 |
Using default value 1 |
9888 |
Last cylinder or +size or +sizeM or +sizeK (1-6761, default |
9889 |
6761): <i>+8M</i> |
9890 |
|
9891 |
Command (m for help): <i>t</i> |
9892 |
Selected partition 1 |
9893 |
Hex code (type L to list codes): <i>41</i> |
9894 |
Changed system type of partition 1 to 41 (PPC PReP Boot) |
9895 |
|
9896 |
Command (m for help): <i>a</i> |
9897 |
Partition number (1-4): <i>1</i> |
9898 |
Command (m for help): |
9899 |
</pre> |
9900 |
|
9901 |
<p> |
9902 |
Now, when you type <c>p</c>, you should see the following partition information: |
9903 |
</p> |
9904 |
|
9905 |
<pre caption="Created boot partition"> |
9906 |
Command (m for help): <i>p</i> |
9907 |
|
9908 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9909 |
141 heads, 63 sectors/track, 6761 cylinders |
9910 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9911 |
|
9912 |
Device Boot Start End Blocks Id System |
9913 |
/dev/sda1 * 1 3 13293 41 PPC PReP Boot |
9914 |
|
9915 |
Command (m for help): |
9916 |
</pre> |
9917 |
</body> |
9918 |
</subsection> |
9919 |
<subsection> |
9920 |
<title>Creating the Swap Partition</title> |
9921 |
<body> |
9922 |
|
9923 |
<p> |
9924 |
Let's now create the swap partition. To do this, type <c>n</c> to create |
9925 |
a new partition, then <c>p</c> to tell fdisk that you want a primary |
9926 |
partition. Then type <c>2</c> to create the second primary partition, |
9927 |
<path>/dev/sda2</path> in our case. When prompted for the first |
9928 |
cylinder, hit enter. When prompted for the last cylinder, type |
9929 |
<c>+512M</c> to create a partition 512MB in size. After you've done |
9930 |
this, type <c>t</c> to set the partition type, <c>2</c> to select the |
9931 |
partition you just created and then type in <c>82</c> to set the |
9932 |
partition type to "Linux Swap". After completing these steps, typing |
9933 |
<c>p</c> should display a partition table that looks similar to this: |
9934 |
</p> |
9935 |
|
9936 |
<pre caption="Partition listing after creating a swap partition"> |
9937 |
Command (m for help): <i>p</i> |
9938 |
|
9939 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9940 |
141 heads, 63 sectors/track, 6761 cylinders |
9941 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9942 |
|
9943 |
Device Boot Start End Blocks Id System |
9944 |
/dev/sda1 1 3 13293 41 PPC PReP Boot |
9945 |
/dev/sda2 4 117 506331 82 Linux swap |
9946 |
|
9947 |
Command (m for help): |
9948 |
</pre> |
9949 |
|
9950 |
</body> |
9951 |
</subsection> |
9952 |
<subsection> |
9953 |
<title>Creating the Root Partition</title> |
9954 |
<body> |
9955 |
|
9956 |
<p> |
9957 |
Finally, let's create the root partition. To do this, type <c>n</c> to |
9958 |
create a new partition, then <c>p</c> to tell fdisk that you want a |
9959 |
primary partition. Then type <c>3</c> to create the third primary |
9960 |
partition, <path>/dev/sda3</path> in our case. When prompted for the |
9961 |
first cylinder, hit enter. When prompted for the last cylinder, hit |
9962 |
enter to create a partition that takes up the rest of the remaining |
9963 |
space on your disk. After completing these steps, typing <c>p</c> should |
9964 |
display a partition table that looks similar to this: |
9965 |
</p> |
9966 |
|
9967 |
<pre caption="Partition listing after creating the root partition"> |
9968 |
Command (m for help): p |
9969 |
|
9970 |
Disk /dev/sda: 30.7 GB, 30750031872 bytes |
9971 |
141 heads, 63 sectors/track, 6761 cylinders |
9972 |
Units = cylinders of 8883 * 512 = 4548096 bytes |
9973 |
|
9974 |
Device Boot Start End Blocks Id System |
9975 |
/dev/sda1 1 3 13293 41 PPC PReP Boot |
9976 |
/dev/sda2 4 117 506331 82 Linux swap |
9977 |
/dev/sda3 118 6761 29509326 83 Linux |
9978 |
|
9979 |
Command (m for help): |
9980 |
</pre> |
9981 |
</body> |
9982 |
</subsection> |
9983 |
<subsection> |
9984 |
<title>Saving the Partition Layout</title> |
9985 |
<body> |
9986 |
|
9987 |
<p> |
9988 |
To save the partition layout and exit <c>fdisk</c>, type <c>w</c>. |
9989 |
</p> |
9990 |
|
9991 |
<pre caption="Save and exit fdisk"> |
9992 |
Command (m for help): <i>w</i> |
9993 |
</pre> |
9994 |
|
9995 |
<p> |
9996 |
Now that your partitions are created, you can now continue with <uri |
9997 |
link="#filesystems">Creating Filesystems</uri>. |
9998 |
</p> |
9999 |
|
10000 |
</body> |
10001 |
</subsection> |
10002 |
</section> |
10003 |
<section id="filesystems"> |
10004 |
<title>Creating Filesystems</title> |
10005 |
<subsection> |
10006 |
<title>Introduction</title> |
10007 |
<body> |
10008 |
|
10009 |
<p> |
10010 |
Now that your partitions are created, it is time to place a filesystem on them. |
10011 |
If you don't care about what filesystem to choose and are happy with what we use |
10012 |
as default in this handbook, continue with <uri |
10013 |
link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
10014 |
Otherwise read on to learn about the available filesystems... |
10015 |
</p> |
10016 |
|
10017 |
</body> |
10018 |
</subsection> |
10019 |
<subsection> |
10020 |
<title>Filesystems?</title> |
10021 |
<body> |
10022 |
|
10023 |
<note> |
10024 |
Several filesystems are available. ext2, ext3 and ReiserFS support is built in |
10025 |
the Installation CD kernels. JFS and XFS support is available through kernel |
10026 |
modules. |
10027 |
</note> |
10028 |
|
10029 |
<p> |
10030 |
<b>ext2</b> is the tried and true Linux filesystem but doesn't have metadata |
10031 |
journaling, which means that routine ext2 filesystem checks at startup time can |
10032 |
be quite time-consuming. There is now quite a selection of newer-generation |
10033 |
journaled filesystems that can be checked for consistency very quickly and are |
10034 |
thus generally preferred over their non-journaled counterparts. Journaled |
10035 |
filesystems prevent long delays when you boot your system and your filesystem |
10036 |
happens to be in an inconsistent state. |
10037 |
</p> |
10038 |
|
10039 |
<p> |
10040 |
<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata |
10041 |
journaling for fast recovery in addition to other enhanced journaling modes like |
10042 |
full data and ordered data journaling. It uses an HTree index that enables high |
10043 |
performance in almost all situations. In short, ext3 is a very good and reliable |
10044 |
filesystem. |
10045 |
</p> |
10046 |
|
10047 |
<p> |
10048 |
<b>ReiserFS</b> is a B+tree-based filesystem that has very good overall |
10049 |
performance and greatly outperforms both ext2 and ext3 when dealing with small |
10050 |
files (files less than 4k), often by a factor of 10x-15x. ReiserFS also scales |
10051 |
extremely well and has metadata journaling. ReiserFS is solid and usable as |
10052 |
both general-purpose filesystem and for extreme cases such as the creation of |
10053 |
large filesystems, very large files and directories containing tens of |
10054 |
thousands of small files. |
10055 |
</p> |
10056 |
|
10057 |
<p> |
10058 |
<b>XFS</b> is a filesystem with metadata journaling that is fully supported |
10059 |
under Gentoo Linux's xfs-sources kernel. It comes with a robust feature-set and |
10060 |
is optimized for scalability. We only recommend using this filesystem on Linux |
10061 |
systems with high-end SCSI and/or fibre channel storage and a uninterruptible |
10062 |
power supply. Because XFS aggressively caches in-transit data in RAM, improperly |
10063 |
designed programs (those that don't take proper precautions when writing files |
10064 |
to disk and there are quite a few of them) can lose a good deal of data if the |
10065 |
system goes down unexpectedly. |
10066 |
</p> |
10067 |
|
10068 |
<p> |
10069 |
<b>JFS</b> is IBM's high-performance journaling filesystem. It has recently |
10070 |
become production-ready. |
10071 |
</p> |
10072 |
|
10073 |
</body> |
10074 |
</subsection> |
10075 |
<subsection id="filesystems-apply"> |
10076 |
<title>Applying a Filesystem to a Partition</title> |
10077 |
<body> |
10078 |
|
10079 |
<p> |
10080 |
To create a filesystem on a partition or volume, there are tools available for |
10081 |
each possible filesystem: |
10082 |
</p> |
10083 |
|
10084 |
<table> |
10085 |
<tr> |
10086 |
<th>Filesystem</th> |
10087 |
<th>Creation Command</th> |
10088 |
</tr> |
10089 |
<tr> |
10090 |
<ti>ext2</ti> |
10091 |
<ti><c>mke2fs</c></ti> |
10092 |
</tr> |
10093 |
<tr> |
10094 |
<ti>ext3</ti> |
10095 |
<ti><c>mke2fs -j</c></ti> |
10096 |
</tr> |
10097 |
<tr> |
10098 |
<ti>reiserfs</ti> |
10099 |
<ti><c>mkreiserfs</c></ti> |
10100 |
</tr> |
10101 |
<tr> |
10102 |
<ti>xfs</ti> |
10103 |
<ti><c>mkfs.xfs</c></ti> |
10104 |
</tr> |
10105 |
<tr> |
10106 |
<ti>jfs</ti> |
10107 |
<ti><c>mkfs.jfs</c></ti> |
10108 |
</tr> |
10109 |
</table> |
10110 |
|
10111 |
<p> |
10112 |
For instance, to have the root partition (<path>/dev/sda4</path> in our example) |
10113 |
in ext3 (as in our example), you would use: |
10114 |
</p> |
10115 |
|
10116 |
<pre caption="Applying a filesystem on a partition"> |
10117 |
# <i>mke2fs -j /dev/sda4</i> |
10118 |
</pre> |
10119 |
|
10120 |
<p> |
10121 |
Now create the filesystems on your newly created partitions (or logical |
10122 |
volumes). |
10123 |
</p> |
10124 |
|
10125 |
<impo> |
10126 |
If you choose to use ReiserFS for <path>/</path>, do not change its default |
10127 |
block size if you will also be using <c>yaboot</c> as your bootloader, as |
10128 |
explained in <uri link="?part=1&chap=10">Configuring the Bootloader</uri>. |
10129 |
</impo> |
10130 |
|
10131 |
</body> |
10132 |
</subsection> |
10133 |
<subsection> |
10134 |
<title>Activating the Swap Partition</title> |
10135 |
<body> |
10136 |
|
10137 |
<p> |
10138 |
<c>mkswap</c> is the command that is used to initialize swap partitions: |
10139 |
</p> |
10140 |
|
10141 |
<pre caption="Creating a Swap signature"> |
10142 |
# <i>mkswap /dev/sda3</i> |
10143 |
</pre> |
10144 |
|
10145 |
<p> |
10146 |
To activate the swap partition, use <c>swapon</c>: |
10147 |
</p> |
10148 |
|
10149 |
<pre caption="Activating the swap partition"> |
10150 |
# <i>swapon /dev/sda3</i> |
10151 |
</pre> |
10152 |
|
10153 |
<p> |
10154 |
Create and activate the swap with the commands mentioned above. |
10155 |
</p> |
10156 |
|
10157 |
</body> |
10158 |
</subsection> |
10159 |
</section> |
10160 |
<section> |
10161 |
<title>Mounting</title> |
10162 |
<body> |
10163 |
|
10164 |
<p> |
10165 |
Now that your partitions are initialized and are housing a filesystem, it is |
10166 |
time to mount those partitions. Use the <c>mount</c> command. Don't forget to |
10167 |
create the necessary mount directories for every partition you created. As an |
10168 |
example we create a mount point and mount the root partition: |
10169 |
</p> |
10170 |
|
10171 |
<pre caption="Mounting partitions"> |
10172 |
# <i>mkdir /mnt/gentoo</i> |
10173 |
# <i>mount /dev/sda4 /mnt/gentoo</i> |
10174 |
</pre> |
10175 |
|
10176 |
<note> |
10177 |
If you want your <path>/tmp</path> to reside on a separate partition, be sure to |
10178 |
change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. This |
10179 |
also holds for <path>/var/tmp</path>. |
10180 |
</note> |
10181 |
|
10182 |
<p> |
10183 |
Continue with <uri link="?part=1&chap=5">Installing the Gentoo |
10184 |
Installation Files</uri>. |
10185 |
</p> |
10186 |
|
10187 |
</body> |
10188 |
</section> |
10189 |
</sections> |
10190 |
|
10191 |
|
10192 |
|
10193 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-kernel.xml |
10194 |
|
10195 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-kernel.xml?rev=1.1&view=markup |
10196 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-kernel.xml?rev=1.1&content-type=text/plain |
10197 |
|
10198 |
Index: hb-install-ppc64-kernel.xml |
10199 |
=================================================================== |
10200 |
<?xml version='1.0' encoding='UTF-8'?> |
10201 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
10202 |
|
10203 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
10204 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
10205 |
|
10206 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-kernel.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
10207 |
|
10208 |
<sections> |
10209 |
|
10210 |
<version>9.0</version> |
10211 |
<date>2007-08-12</date> |
10212 |
|
10213 |
<section> |
10214 |
<title>Timezone</title> |
10215 |
<body> |
10216 |
|
10217 |
<p> |
10218 |
You first need to select your timezone so that your system knows where it is |
10219 |
located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy |
10220 |
it to <path>/etc/localtime</path>. Please avoid the |
10221 |
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not |
10222 |
indicate the expected zones. For instance, <path>GMT-8</path> is in fact |
10223 |
GMT+8. |
10224 |
</p> |
10225 |
|
10226 |
<pre caption="Setting the timezone information"> |
10227 |
# <i>ls /usr/share/zoneinfo</i> |
10228 |
<comment>(Suppose you want to use GMT)</comment> |
10229 |
# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> |
10230 |
</pre> |
10231 |
|
10232 |
</body> |
10233 |
</section> |
10234 |
<section> |
10235 |
<title>Installing the Sources</title> |
10236 |
<subsection> |
10237 |
<title>Choosing a Kernel</title> |
10238 |
<body> |
10239 |
|
10240 |
<p> |
10241 |
The core around which all distributions are built is the Linux kernel. |
10242 |
It is the layer between the user programs and your system hardware. |
10243 |
Gentoo provides its users several possible kernel sources. A full |
10244 |
listing with description is available at the <uri |
10245 |
link="/doc/en/gentoo-kernel.xml">Gentoo Kernel Guide</uri>. |
10246 |
</p> |
10247 |
|
10248 |
<p> |
10249 |
For PPC64 you should use <c>gentoo-sources</c>. |
10250 |
</p> |
10251 |
|
10252 |
<pre caption="Installing a kernel source"> |
10253 |
# <i>emerge gentoo-sources</i> |
10254 |
</pre> |
10255 |
|
10256 |
<p> |
10257 |
When you take a look in <path>/usr/src</path> you should see a symlink called |
10258 |
<path>linux</path> pointing to your kernel source. In this case, the installed |
10259 |
kernel source points to <c>gentoo-sources-<keyval id="kernel-version"/></c>. |
10260 |
Your version may be different, so keep this in mind. |
10261 |
</p> |
10262 |
|
10263 |
<pre caption="Viewing the kernel source symlink"> |
10264 |
# <i>ls -l /usr/src/linux</i> |
10265 |
lrwxrwxrwx 1 root root 12 Aug 10 11:04 /usr/src/linux -> linux-<keyval id="kernel-version"/> |
10266 |
</pre> |
10267 |
|
10268 |
<p> |
10269 |
Now it is time to configure and compile your kernel source. There is the |
10270 |
ability to use "genkernel" which would create a generic kernel like the |
10271 |
ones used on the installation CDs, but it is not fully functional for PPC64 at |
10272 |
the moment. |
10273 |
</p> |
10274 |
|
10275 |
<p> |
10276 |
Continue now with <uri link="#manual">Manual Configuration</uri>. |
10277 |
</p> |
10278 |
|
10279 |
</body> |
10280 |
</subsection> |
10281 |
</section> |
10282 |
<section id="manual"> |
10283 |
<title>Manual Configuration</title> |
10284 |
<subsection> |
10285 |
<title>Introduction</title> |
10286 |
<body> |
10287 |
|
10288 |
<p> |
10289 |
Manually configuring a kernel is often seen as the most difficult procedure a |
10290 |
Linux user ever has to perform. Nothing is less true -- after configuring a |
10291 |
couple of kernels you don't even remember that it was difficult ;) |
10292 |
</p> |
10293 |
|
10294 |
<p> |
10295 |
However, one thing <e>is</e> true: you must know your system when you |
10296 |
configuring a kernel manually. Most information can be gathered by emerging |
10297 |
pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now |
10298 |
be able to use <c>lspci</c> within the chrooted environment. You may safely |
10299 |
ignore any <e>pcilib</e> warnings (like pcilib: cannot open |
10300 |
/sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run |
10301 |
<c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same. |
10302 |
You can also run <c>lsmod</c> to see what kernel modules the Installation CD |
10303 |
uses (it might provide you with a nice hint on what to enable). |
10304 |
</p> |
10305 |
|
10306 |
<pre caption="Invoking menuconfig"> |
10307 |
# <i>cd /usr/src/linux</i> |
10308 |
<comment>Important: In case you are in 32-bit userland, you must edit the top |
10309 |
level Makefile in /usr/src/linux and change the CROSS_COMPILE option to |
10310 |
CROSS_COMPILE ?= powerpc64-unknown-linux-gnu-. You must do this before you run |
10311 |
make menuconfig or it may result in kernel compilation problems.</comment> |
10312 |
# <i>make menuconfig</i> |
10313 |
</pre> |
10314 |
|
10315 |
<p> |
10316 |
You will be greeted with several configuration sections. We'll first |
10317 |
list some options you must activate (otherwise Gentoo will not function, |
10318 |
or not function properly without additional tweaks). |
10319 |
</p> |
10320 |
|
10321 |
</body> |
10322 |
</subsection> |
10323 |
<subsection> |
10324 |
<title>Activating Required Options</title> |
10325 |
<body> |
10326 |
|
10327 |
<p> |
10328 |
First of all, activate the use of development and experimental |
10329 |
code/drivers. You need this, otherwise some very important code/drivers |
10330 |
won't show up: |
10331 |
</p> |
10332 |
|
10333 |
<pre caption="Selecting experimental code/drivers"> |
10334 |
General setup ---> |
10335 |
[*] Prompt for development and/or incomplete code/drivers |
10336 |
</pre> |
10337 |
|
10338 |
<p> |
10339 |
Now go to <c>File Systems</c> and select support for the filesystems you use. |
10340 |
<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
10341 |
able to mount your partitions. Also select <c>Virtual memory</c>, <c>/proc file |
10342 |
system</c>, and <c>/dev/pts file system for Unix98 PTYs</c>: |
10343 |
</p> |
10344 |
|
10345 |
<pre caption="Selecting necessary file systems"> |
10346 |
File systems ---> |
10347 |
[*] Virtual memory file system support (former shm fs) |
10348 |
[*] /proc file system support |
10349 |
[*] /dev/pts file system for Unix98 PTYs |
10350 |
|
10351 |
<comment>(Select one or more of the following options as needed by your system)</comment> |
10352 |
<*> Reiserfs support |
10353 |
<*> Ext3 journalling file system support |
10354 |
<*> JFS filesystem support |
10355 |
<*> Second extended fs support |
10356 |
<*> XFS filesystem support |
10357 |
</pre> |
10358 |
|
10359 |
<note> |
10360 |
You will find some of the mentioned options under <c>Pseudo |
10361 |
filesystems</c> which is a subpart of <c>File systems</c>. |
10362 |
</note> |
10363 |
|
10364 |
<p> |
10365 |
If you are using PPPoE to connect to the Internet or you are using a |
10366 |
dial-up modem, you will need the following options in the kernel (you |
10367 |
will find the mentioned options under <c>Networking support</c> which is |
10368 |
a subpart of <c>Device Drivers</c>): |
10369 |
</p> |
10370 |
|
10371 |
<pre caption="Selecting PPPoE necessary drivers"> |
10372 |
Network device support ---> |
10373 |
<*> PPP (point-to-point protocol) support |
10374 |
<*> PPP support for async serial ports |
10375 |
<*> PPP support for sync tty ports |
10376 |
</pre> |
10377 |
|
10378 |
<p> |
10379 |
The two compression options won't harm but are not definitely needed, neither |
10380 |
does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c> |
10381 |
when configured to do kernel mode PPPoE. |
10382 |
</p> |
10383 |
|
10384 |
<p> |
10385 |
If you require it, don't forget to include support in the kernel for your |
10386 |
ethernet card. |
10387 |
</p> |
10388 |
|
10389 |
<p> |
10390 |
Disable ADB raw keycodes: |
10391 |
</p> |
10392 |
|
10393 |
<pre caption="Disabling ADB raw keycodes"> |
10394 |
Macintosh Device Drivers ---> |
10395 |
[ ] Support for ADB raw keycodes |
10396 |
</pre> |
10397 |
|
10398 |
<p> |
10399 |
When you're done configuring your kernel, continue with <uri |
10400 |
link="#compiling">Compiling and Installing</uri>. |
10401 |
</p> |
10402 |
|
10403 |
</body> |
10404 |
</subsection> |
10405 |
<subsection id="compiling"> |
10406 |
<title>Compiling and Installing</title> |
10407 |
<body> |
10408 |
|
10409 |
<p> |
10410 |
Now that your kernel is configured, it is time to compile and install it. Exit |
10411 |
the configuration and start the compilation process: |
10412 |
</p> |
10413 |
|
10414 |
<pre caption="Compiling the kernel"> |
10415 |
# <i>make && make modules_install</i> |
10416 |
</pre> |
10417 |
|
10418 |
<p> |
10419 |
When the kernel has finished compiling, copy the kernel image to |
10420 |
<path>/boot</path>. Remember to replace <path><kernel-version></path> |
10421 |
with your actual kernel version: |
10422 |
</p> |
10423 |
|
10424 |
<pre caption="Installing the kernel"> |
10425 |
# <i>cp vmlinux /boot/<kernel-version></i> |
10426 |
</pre> |
10427 |
|
10428 |
<p> |
10429 |
Now continue with <uri link="#kernel_modules">Configuring the Modules</uri>. |
10430 |
</p> |
10431 |
|
10432 |
</body> |
10433 |
</subsection> |
10434 |
</section> |
10435 |
<section id="kernel_modules"> |
10436 |
<title>Configuring the Modules</title> |
10437 |
<body> |
10438 |
|
10439 |
<p> |
10440 |
You should list the modules you want automatically loaded in |
10441 |
<path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra |
10442 |
options to the modules too if you want. |
10443 |
</p> |
10444 |
|
10445 |
<p> |
10446 |
To view all available modules, run the following <c>find</c> command. Don't |
10447 |
forget to substitute "<kernel version>" with the version of the kernel you |
10448 |
just compiled: |
10449 |
</p> |
10450 |
|
10451 |
<pre caption="Viewing all available modules"> |
10452 |
# <i>find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'</i> |
10453 |
</pre> |
10454 |
|
10455 |
<p> |
10456 |
For instance, to automatically load the <c>3c59x.ko</c> module, edit the |
10457 |
<path>kernel-2.6</path> file and enter the module name in it. |
10458 |
</p> |
10459 |
|
10460 |
<pre caption="Editing /etc/modules.autoload.d/kernel-2.6"> |
10461 |
# <i>nano -w /etc/modules.autoload.d/kernel-2.6</i> |
10462 |
</pre> |
10463 |
|
10464 |
<pre caption="/etc/modules.autoload.d/kernel-2.6"> |
10465 |
3c59x |
10466 |
</pre> |
10467 |
|
10468 |
<p> |
10469 |
Continue the installation with <uri link="?part=1&chap=8">Configuring |
10470 |
your System</uri>. |
10471 |
</p> |
10472 |
|
10473 |
</body> |
10474 |
</section> |
10475 |
</sections> |
10476 |
|
10477 |
|
10478 |
|
10479 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-medium.xml |
10480 |
|
10481 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-medium.xml?rev=1.1&view=markup |
10482 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-medium.xml?rev=1.1&content-type=text/plain |
10483 |
|
10484 |
Index: hb-install-ppc64-medium.xml |
10485 |
=================================================================== |
10486 |
<?xml version='1.0' encoding='UTF-8'?> |
10487 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
10488 |
|
10489 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
10490 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
10491 |
|
10492 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-ppc64-medium.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
10493 |
|
10494 |
<sections> |
10495 |
|
10496 |
<version>9.0</version> |
10497 |
<date>2007-06-29</date> |
10498 |
|
10499 |
<section> |
10500 |
<title>Hardware Requirements</title> |
10501 |
<subsection> |
10502 |
<title>Introduction</title> |
10503 |
<body> |
10504 |
|
10505 |
<p> |
10506 |
Before we start, we first list what hardware requirements you need to |
10507 |
successfully install Gentoo on your box. |
10508 |
</p> |
10509 |
|
10510 |
</body> |
10511 |
</subsection> |
10512 |
<subsection> |
10513 |
<title>Hardware Requirements</title> |
10514 |
<body> |
10515 |
|
10516 |
<table> |
10517 |
<tr> |
10518 |
<th>CPU</th> |
10519 |
<ti>Any PowerPC64 CPU</ti> |
10520 |
</tr> |
10521 |
<tr> |
10522 |
<th>Systems</th> |
10523 |
<ti> |
10524 |
IBM RS/6000s, Power Macintosh G5, iMac G5, IBP pSeries and IBM OpenPower |
10525 |
</ti> |
10526 |
</tr> |
10527 |
<tr> |
10528 |
<th>Memory</th> |
10529 |
<ti>64 MB</ti> |
10530 |
</tr> |
10531 |
<tr> |
10532 |
<th>Diskspace</th> |
10533 |
<ti>1.5 GB (excluding swap space)</ti> |
10534 |
</tr> |
10535 |
<tr> |
10536 |
<th>Swap space</th> |
10537 |
<ti>At least 256 MB</ti> |
10538 |
</tr> |
10539 |
</table> |
10540 |
|
10541 |
<p> |
10542 |
For a full list of supported systems, please go to |
10543 |
<uri>http://www.linuxppc64.org/hardware.shtml</uri>. |
10544 |
</p> |
10545 |
|
10546 |
</body> |
10547 |
</subsection> |
10548 |
</section> |
10549 |
|
10550 |
<!-- START --> |
10551 |
<section> |
10552 |
<title>The Gentoo Universal Installation CD</title> |
10553 |
<subsection> |
10554 |
<title>Introduction</title> |
10555 |
<body> |
10556 |
|
10557 |
<p> |
10558 |
Gentoo Linux can be installed using a <e>stage3</e> tarball file. |
10559 |
Such a tarball is an archive that contains a minimal environment from |
10560 |
which you can succesfully install Gentoo Linux onto your system. |
10561 |
</p> |
10562 |
|
10563 |
<p> |
10564 |
Installations using a stage1 or stage2 tarball file are not documented in the |
10565 |
Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo |
10566 |
FAQ</uri> on these matters. |
10567 |
</p> |
10568 |
|
10569 |
</body> |
10570 |
</subsection> |
10571 |
<subsection> |
10572 |
<title>Gentoo Universal Installation CD</title> |
10573 |
<body> |
10574 |
|
10575 |
<p> |
10576 |
An Installation CD is a bootable medium which contains a self-sustained Gentoo |
10577 |
environment. It allows you to boot Linux from the CD. During the boot process |
10578 |
your hardware is detected and the appropriate drivers are loaded. The Gentoo |
10579 |
Installation CDs are maintained by Gentoo developers. |
10580 |
</p> |
10581 |
|
10582 |
<p> |
10583 |
There currently are two Installation CDs available: |
10584 |
</p> |
10585 |
|
10586 |
<ul> |
10587 |
<li> |
10588 |
The Universal Installation CD contains everything you need to install |
10589 |
Gentoo. It provides stage3 files for common architectures, source code |
10590 |
for the extra applications you need to choose from and, of course, the |
10591 |
installation instructions for your architecture. |
10592 |
</li> |
10593 |
<li> |
10594 |
The Minimal Installation CD contains only a minimal environment that allows |
10595 |
you to boot up and configure your network so you can connect to the |
10596 |
Internet. It does not contain any additional files and cannot be used |
10597 |
during the current installation approach. |
10598 |
</li> |
10599 |
</ul> |
10600 |
|
10601 |
<p> |
10602 |
Gentoo also provides a Package CD. This is not an Installation CD but an |
10603 |
additional resource that you can exploit during the installation of your Gentoo |
10604 |
system. It contains prebuilt packages (also known as the GRP set) that allow |
10605 |
you to easily and quickly install additional applications immediately after the |
10606 |
Gentoo installation and right before you update your Portage tree. |
10607 |
</p> |
10608 |
|
10609 |
<p> |
10610 |
The use of the Package CD is covered later in this document. |
10611 |
</p> |
10612 |
|
10613 |
</body> |
10614 |
</subsection> |
10615 |
<subsection> |
10616 |
<title>Choosing a userland</title> |
10617 |
<body> |
10618 |
|
10619 |
<p> |
10620 |
On PPC64, the kernel is 64-bit and the <e>userland</e> can be 32-bit or 64-bit. The |
10621 |
userland is basically the applications you are running, such as |
10622 |
<c>bash</c> or <c>mozilla-firefox</c>. They can be compiled and run in either |
10623 |
64-bit or 32-bit modes. The Gentoo/PPC64 team provides both 32-bit and 64-bit |
10624 |
userlands, so which one should you use? |
10625 |
</p> |
10626 |
|
10627 |
<p> |
10628 |
You may have heard that 64-bit applications are better, but in fact, 32-bit |
10629 |
applications take up slightly less memory and often run a little bit faster than |
10630 |
64-bit applications. |
10631 |
</p> |
10632 |
|
10633 |
<p> |
10634 |
You really only need 64-bit applications when you need more memory than a 32-bit |
10635 |
userland allows, or if you do a lot of 64-bit number crunching. If you run |
10636 |
applications that require more than 4GB of memory or you run scientific |
10637 |
applications, you should choose the 64-bit userland. Otherwise, choose the |
10638 |
32-bit userland, as it is recommended by the Gentoo/PPC64 developers. |
10639 |
</p> |
10640 |
|
10641 |
<p> |
10642 |
Additionally, the 32-bit userland has been available in Portage longer than the |
10643 |
64-bit userland has. This means that there are more applications tested in the |
10644 |
32-bit userland that just work "out of the box." Many applications compiled for |
10645 |
the 64-bit userland may be just as stable as the 32-bit version, but they |
10646 |
haven't been tested yet. Though testing isn't difficult to do, it can be |
10647 |
annoying and time consuming if you want to use many untested 64-bit |
10648 |
applications. Also, some programs just won't run in the 64-bit userland until |
10649 |
their code is fixed, such as OpenOffice. |
10650 |
</p> |
10651 |
|
10652 |
<p> |
10653 |
The Gentoo/PPC64 team provides stages and Package CDs for both 32-bit and 64-bit |
10654 |
userlands, so no matter which one you choose, you'll be able to successfully |
10655 |
install Gentoo and get a full system up and running with minimal fuss. |
10656 |
</p> |
10657 |
|
10658 |
</body> |
10659 |
</subsection> |
10660 |
</section> |
10661 |
<!-- STOP --> |
10662 |
<section> |
10663 |
<title>Download, Burn and Boot a Gentoo Installation CD</title> |
10664 |
<subsection> |
10665 |
<title>Downloading and Burning the Installation CDs</title> |
10666 |
<body> |
10667 |
|
10668 |
<p> |
10669 |
You can download the Universal Installation CD (and, if you want to, the |
10670 |
Packages CD as well) from one of our <uri |
10671 |
link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in |
10672 |
the <path><keyval id="release-dir"/>installcd</path> directory; the Package CDs |
10673 |
are located in the <path><keyval id="release-dir"/>packagecd</path> directory. |
10674 |
</p> |
10675 |
|
10676 |
<p> |
10677 |
Inside those directories you'll find ISO files. Those are full CD images which |
10678 |
you can write on a CD-R. |
10679 |
</p> |
10680 |
|
10681 |
<p> |
10682 |
After downloading the file, you can verify its integrity to see if it is |
10683 |
corrupted or not: |
10684 |
</p> |
10685 |
|
10686 |
<ul> |
10687 |
<li> |
10688 |
You can check its MD5 checksum and compare it with the MD5 checksum we |
10689 |
provide (for instance with the <c>md5sum</c> tool under Linux/Unix or |
10690 |
<uri link="http://www.etree.org/md5com.html">md5sum</uri> for Windows). How |
10691 |
to verify MD5 checksums with Mac OS X is described in the <uri |
10692 |
link="/doc/en/gentoo-ppc-faq.xml#doc_chap1">Gentoo PPC FAQ</uri>. |
10693 |
</li> |
10694 |
<li> |
10695 |
You can verify the cryptographic signature that we provide. You need to |
10696 |
obtain the public key we use (0x17072058) before you proceed though. |
10697 |
</li> |
10698 |
</ul> |
10699 |
|
10700 |
<p> |
10701 |
To fetch our public key using the GnuPG application, run the following command: |
10702 |
</p> |
10703 |
|
10704 |
<pre caption="Obtaining the public key"> |
10705 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 0x17072058</i> |
10706 |
</pre> |
10707 |
|
10708 |
<p> |
10709 |
Now verify the signature: |
10710 |
</p> |
10711 |
|
10712 |
<pre caption="Verify the cryptographic signature"> |
10713 |
$ <i>gpg --verify <signature file> <downloaded iso></i> |
10714 |
</pre> |
10715 |
|
10716 |
<p> |
10717 |
To burn the downloaded ISO(s), you have to select raw-burning. How you |
10718 |
do this is highly program-dependent. We will discuss <c>cdrecord</c> and |
10719 |
<c>K3B</c> here; more information can be found in our <uri |
10720 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
10721 |
</p> |
10722 |
|
10723 |
<ul> |
10724 |
<li> |
10725 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded iso |
10726 |
file></c> (replace <path>/dev/hdc</path> with your CD-RW drive's device |
10727 |
path). |
10728 |
</li> |
10729 |
<li> |
10730 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
10731 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
10732 |
</li> |
10733 |
</ul> |
10734 |
|
10735 |
</body> |
10736 |
</subsection> |
10737 |
<subsection> |
10738 |
<title>Booting the Installation CD on an Apple</title> |
10739 |
<body> |
10740 |
|
10741 |
<p> |
10742 |
Please check the <path>README.kernel</path> on the Installation CD for the |
10743 |
latest information on how to boot various kernels and getting hardware support. |
10744 |
</p> |
10745 |
|
10746 |
<p> |
10747 |
Place the Installation CD in the CD-ROM and reboot the system. Hold down the |
10748 |
'C' key at bootup. You will be greeted by a friendly welcome message and a |
10749 |
<e>boot:</e> prompt at the bottom of the screen. |
10750 |
</p> |
10751 |
|
10752 |
<p> |
10753 |
You are also able to tweak some kernel options at this prompt. The following |
10754 |
table lists the available boot options you can add: |
10755 |
</p> |
10756 |
|
10757 |
<table> |
10758 |
<tr> |
10759 |
<th>Boot Option</th> |
10760 |
<th>Description</th> |
10761 |
</tr> |
10762 |
<tr> |
10763 |
<ti><c>video</c></ti> |
10764 |
<ti> |
10765 |
This option takes one of the following vendor-specific tags: |
10766 |
<c>radeonfb</c>, <c>rivafb</c>, <c>atyfb</c>, <c>aty128</c>, <c>nvidiafb</c> |
10767 |
or <c>ofonly</c>. You can follow this tag with the resolution and |
10768 |
refreshrate you want to use. For instance |
10769 |
<c>video=radeonfb:1280x1024@75</c>. If you are uncertain what to choose, |
10770 |
<c>ofonly</c> will most certainly work. |
10771 |
</ti> |
10772 |
</tr> |
10773 |
<tr> |
10774 |
<ti><c>nol3</c></ti> |
10775 |
<ti> |
10776 |
Disables level 3 cache on some powerbooks (needed for at least the 17") |
10777 |
</ti> |
10778 |
</tr> |
10779 |
<tr> |
10780 |
<ti><c>debug</c></ti> |
10781 |
<ti> |
10782 |
Enables verbose booting, spawns an initrd shell that can be used to debug |
10783 |
the Installation CD |
10784 |
</ti> |
10785 |
</tr> |
10786 |
<tr> |
10787 |
<ti><c>sleep=X</c></ti> |
10788 |
<ti> |
10789 |
Wait X seconds before continuing; this can be needed by some very old SCSI |
10790 |
CD-ROMs which don't speed up the CD quick enough |
10791 |
</ti> |
10792 |
</tr> |
10793 |
<tr> |
10794 |
<ti><c>bootfrom=X</c></ti> |
10795 |
<ti> |
10796 |
Boot from a different device |
10797 |
</ti> |
10798 |
</tr> |
10799 |
</table> |
10800 |
|
10801 |
<p> |
10802 |
At this prompt, hit enter, and a complete Gentoo Linux environment will be |
10803 |
loaded from the CD. Continue with <uri link="#booted">And When You're |
10804 |
Booted...</uri>. |
10805 |
</p> |
10806 |
|
10807 |
</body> |
10808 |
</subsection> |
10809 |
<subsection> |
10810 |
<title>Booting the Installation CD on an IBM pSeries, OpenPower and Power5 |
10811 |
iSeries servers</title> |
10812 |
<body> |
10813 |
|
10814 |
<p> |
10815 |
Please check the <path>README.kernel</path> on the Installation CD for the |
10816 |
latest information on how to boot various kernels and getting hardware support. |
10817 |
</p> |
10818 |
|
10819 |
<p> |
10820 |
Most modern pSeries servers can boot from the CDROM drive through SMS ('1' when |
10821 |
the “IBM IBM IBM” messages flash across the console). On some older pSeries |
10822 |
boxes, sometimes the cds might not autoboot. You might have to set up your |
10823 |
cdrom as a bootable device in the multi-boot menu. (F1 at startup) The other |
10824 |
option is to jump into OF and do it from there: |
10825 |
</p> |
10826 |
|
10827 |
<ol> |
10828 |
<li> |
10829 |
Boot into OF (this is 8 from the serial cons or F8 from a graphics |
10830 |
cons, start hitting the key when you see the keyboard mouse etc etc |
10831 |
messages. |
10832 |
</li> |
10833 |
<li>Run the command 0> boot cdrom:1,yaboot</li> |
10834 |
<li>Stand back and enjoy!</li> |
10835 |
</ol> |
10836 |
|
10837 |
</body> |
10838 |
</subsection> |
10839 |
<subsection id="booted"> |
10840 |
<title>And When You're Booted...</title> |
10841 |
<body> |
10842 |
|
10843 |
<p> |
10844 |
You will be greeted by a root ("#") prompt on the current console. You can also |
10845 |
switch to other consoles by pressing Alt-fn-F2, Alt-fn-F3 and Alt-fn-F4. Get |
10846 |
back to the one you started on by pressing Alt-fn-F1. |
10847 |
</p> |
10848 |
|
10849 |
<p> |
10850 |
If you are installing Gentoo on a system with a non-US keyboard, use |
10851 |
<c>loadkeys</c> to load the keymap for your keyboard. To list the available |
10852 |
keymaps, execute <c>ls /usr/share/keymaps/i386</c>. |
10853 |
</p> |
10854 |
|
10855 |
<pre caption="Listing available keymaps"> |
10856 |
<comment>(PPC uses x86 keymaps on most systems. The mac/ppc keymaps provided |
10857 |
on the Installation CD are ADB keymaps and unusable with the |
10858 |
Installation CD kernel)</comment> |
10859 |
# <i>ls /usr/share/keymaps/i386</i> |
10860 |
</pre> |
10861 |
|
10862 |
<p> |
10863 |
Now load the keymap of your choice: |
10864 |
</p> |
10865 |
|
10866 |
<pre caption="Loading a keymap"> |
10867 |
# <i>loadkeys be-latin1</i> |
10868 |
</pre> |
10869 |
|
10870 |
<p> |
10871 |
Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
10872 |
</p> |
10873 |
|
10874 |
</body> |
10875 |
</subsection> |
10876 |
<subsection id="hardware"> |
10877 |
<title>Extra Hardware Configuration</title> |
10878 |
<body> |
10879 |
|
10880 |
<p> |
10881 |
When the Installation CD boots, it tries to detect all your hardware devices and |
10882 |
loads the appropriate kernel modules to support your hardware. In the vast |
10883 |
majority of cases, it does a very good job. However, in some cases it may not |
10884 |
auto-load the kernel modules you need. If the PCI auto-detection missed some of |
10885 |
your system's hardware, you will have to load the appropriate kernel modules |
10886 |
manually. |
10887 |
</p> |
10888 |
|
10889 |
<p> |
10890 |
In the next example we try to load the <c>8139too</c> module (support for |
10891 |
certain kinds of network interfaces): |
10892 |
</p> |
10893 |
|
10894 |
<pre caption="Loading kernel modules"> |
10895 |
# <i>modprobe 8139too</i> |
10896 |
</pre> |
10897 |
|
10898 |
</body> |
10899 |
</subsection> |
10900 |
<subsection> |
10901 |
<title>Optional: Tweaking Hard Disk Performance</title> |
10902 |
<body> |
10903 |
|
10904 |
<p> |
10905 |
If you are an advanced user, you might want to tweak the IDE hard disk |
10906 |
performance using <c>hdparm</c>. With the <c>-tT</c> options you can |
10907 |
test the performance of your disk (execute it several times to get a |
10908 |
more precise impression): |
10909 |
</p> |
10910 |
|
10911 |
<pre caption="Testing disk performance"> |
10912 |
# <i>hdparm -tT /dev/hda</i> |
10913 |
</pre> |
10914 |
|
10915 |
<p> |
10916 |
To tweak, you can use any of the following examples (or experiment |
10917 |
yourself) which use <path>/dev/hda</path> as disk (substitute with your |
10918 |
disk): |
10919 |
</p> |
10920 |
|
10921 |
<pre caption="Tweaking hard disk performance"> |
10922 |
<comment>Activate DMA:</comment> |
10923 |
# <i>hdparm -d 1 /dev/hda</i> |
10924 |
<comment>Activate DMA + Safe Performance-enhancing Options:</comment> |
10925 |
# <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i> |
10926 |
</pre> |
10927 |
|
10928 |
</body> |
10929 |
</subsection> |
10930 |
<subsection id="useraccounts"> |
10931 |
<title>Optional: User Accounts</title> |
10932 |
<body> |
10933 |
|
10934 |
<p> |
10935 |
If you plan on giving other people access to your installation |
10936 |
environment or you want to chat using <c>irssi</c> without root privileges (for |
10937 |
security reasons), you need to create the necessary user accounts and change |
10938 |
the root password. |
10939 |
</p> |
10940 |
|
10941 |
<p> |
10942 |
To change the root password, use the <c>passwd</c> utility: |
10943 |
</p> |
10944 |
|
10945 |
<pre caption="Changing the root password"> |
10946 |
# <i>passwd</i> |
10947 |
New password: <comment>(Enter your new password)</comment> |
10948 |
Re-enter password: <comment>(Re-enter your password)</comment> |
10949 |
</pre> |
10950 |
|
10951 |
<p> |
10952 |
To create a user account, we first enter their credentials, followed by |
10953 |
its password. We use <c>useradd</c> and <c>passwd</c> for these tasks. |
10954 |
In the next example, we create a user called "john". |
10955 |
</p> |
10956 |
|
10957 |
<pre caption="Creating a user account"> |
10958 |
# <i>useradd -m -G users john</i> |
10959 |
# <i>passwd john</i> |
10960 |
New password: <comment>(Enter john's password)</comment> |
10961 |
Re-enter password: <comment>(Re-enter john's password)</comment> |
10962 |
</pre> |
10963 |
|
10964 |
<p> |
10965 |
You can change your user id from root to the newly created user by using |
10966 |
<c>su</c>: |
10967 |
</p> |
10968 |
|
10969 |
<pre caption="Changing user id"> |
10970 |
# <i>su - john</i> |
10971 |
</pre> |
10972 |
|
10973 |
</body> |
10974 |
</subsection> |
10975 |
<subsection> |
10976 |
<title>Optional: Viewing Documentation while Installing</title> |
10977 |
<body> |
10978 |
|
10979 |
<p> |
10980 |
If you want to view the Gentoo Handbook during the installation, make sure you |
10981 |
have created a user account (see <uri link="#useraccounts">Optional: User |
10982 |
Accounts</uri>). Then press <c>Alt-F2</c> to go to a new terminal and log in. |
10983 |
</p> |
10984 |
|
10985 |
<p> |
10986 |
If you want to view the documentation on the CD you can immediately run |
10987 |
<c>links</c> to read it: |
10988 |
</p> |
10989 |
|
10990 |
<pre caption="Viewing the on-CD documentation"> |
10991 |
# <i>links /mnt/cdrom/docs/handbook/html/index.html</i> |
10992 |
</pre> |
10993 |
|
10994 |
<p> |
10995 |
However, it is preferred that you use the online Gentoo Handbook as it will be |
10996 |
more recent than the one provided on the CD. |
10997 |
</p> |
10998 |
|
10999 |
<pre caption="Viewing the Online Documentation"> |
11000 |
# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
11001 |
</pre> |
11002 |
|
11003 |
<p> |
11004 |
You can go back to your original terminal by pressing <c>Alt-F1</c>. |
11005 |
</p> |
11006 |
|
11007 |
</body> |
11008 |
</subsection> |
11009 |
<subsection> |
11010 |
<title>Optional: Starting the SSH Daemon</title> |
11011 |
<body> |
11012 |
|
11013 |
<p> |
11014 |
If you want to allow other users to access your computer during the |
11015 |
Gentoo installation (perhaps because those users are going to help you |
11016 |
install Gentoo, or even do it for you), you need to create a user |
11017 |
account for them and perhaps even provide them with your root password |
11018 |
(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user). |
11019 |
</p> |
11020 |
|
11021 |
<p> |
11022 |
To fire up the SSH daemon, execute the following command: |
11023 |
</p> |
11024 |
|
11025 |
<pre caption="Starting the SSH daemon"> |
11026 |
# <i>/etc/init.d/sshd start</i> |
11027 |
</pre> |
11028 |
|
11029 |
<p> |
11030 |
To be able to use sshd, you first need to set up your networking. Continue with |
11031 |
the chapter on <uri link="?part=1&chap=3">Configuring your Network</uri>. |
11032 |
</p> |
11033 |
|
11034 |
</body> |
11035 |
</subsection> |
11036 |
</section> |
11037 |
</sections> |
11038 |
|
11039 |
|
11040 |
|
11041 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-bootloader.xml |
11042 |
|
11043 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-bootloader.xml?rev=1.1&view=markup |
11044 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-bootloader.xml?rev=1.1&content-type=text/plain |
11045 |
|
11046 |
Index: hb-install-sparc-bootloader.xml |
11047 |
=================================================================== |
11048 |
<?xml version='1.0' encoding='UTF-8'?> |
11049 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
11050 |
|
11051 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
11052 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
11053 |
|
11054 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-bootloader.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
11055 |
|
11056 |
<sections> |
11057 |
|
11058 |
<version>9.0</version> |
11059 |
<date>2007-05-07</date> |
11060 |
|
11061 |
<section> |
11062 |
<title>Making your Choice</title> |
11063 |
<subsection> |
11064 |
<title>Introduction</title> |
11065 |
<body> |
11066 |
|
11067 |
<p> |
11068 |
Now that your kernel is configured and compiled and the necessary system |
11069 |
configuration files are filled in correctly, it is time to install a |
11070 |
program that will fire up your kernel when you start the system. Such a |
11071 |
program is called a <e>bootloader</e>. |
11072 |
</p> |
11073 |
|
11074 |
</body> |
11075 |
</subsection> |
11076 |
</section> |
11077 |
<section> |
11078 |
<title>Installing the SPARC Bootloader: SILO</title> |
11079 |
<body> |
11080 |
|
11081 |
<p> |
11082 |
It is now time to install and configure <uri |
11083 |
link="http://www.sparc-boot.org">SILO</uri>, the Sparc Improved boot |
11084 |
LOader. |
11085 |
</p> |
11086 |
|
11087 |
<pre caption = "Installing SILO"> |
11088 |
# <i>emerge silo</i> |
11089 |
</pre> |
11090 |
|
11091 |
<p> |
11092 |
Now open up your favorite editor (we use <c>nano</c> as an example) and |
11093 |
create <path>/etc/silo.conf</path>. |
11094 |
</p> |
11095 |
|
11096 |
<pre caption = "Creating /etc/silo.conf"> |
11097 |
# <i>nano -w /etc/silo.conf</i> |
11098 |
</pre> |
11099 |
|
11100 |
<p> |
11101 |
Below you'll find an example <path>silo.conf</path> file. It uses the |
11102 |
partitioning scheme we use throughout this book and |
11103 |
<path>kernel-<keyval id="kernel-version"/></path> as kernelimage. |
11104 |
</p> |
11105 |
|
11106 |
<pre caption = "Example /etc/silo.conf"> |
11107 |
partition = 1 <comment># Boot partition (= root partition)</comment> |
11108 |
root = /dev/sda1 <comment># Root partition</comment> |
11109 |
timeout = 150 <comment># Wait 15 seconds before booting the default section</comment> |
11110 |
|
11111 |
image = /boot/kernel-<keyval id="kernel-version"/> |
11112 |
label = linux |
11113 |
</pre> |
11114 |
|
11115 |
<p> |
11116 |
If you use the example <path>silo.conf</path> delivered by Portage, be |
11117 |
sure to comment out <e>all</e> lines that you do not need. |
11118 |
</p> |
11119 |
|
11120 |
<p> |
11121 |
If the physical disk on which you want to install SILO (as bootloader) differs |
11122 |
from the physical disk on which <path>/etc/silo.conf</path> resides, you must |
11123 |
copy over <path>/etc/silo.conf</path> to a partition on that disk. Assuming that |
11124 |
<path>/boot</path> is a separate partition on that disk, copy over the |
11125 |
configuration file to <path>/boot</path> and run <c>/sbin/silo -f</c>: |
11126 |
</p> |
11127 |
|
11128 |
<pre caption = "Only if /boot and the SILO destination are not on the same disk"> |
11129 |
# <i>cp /etc/silo.conf /boot</i> |
11130 |
# <i>/sbin/silo -f -C /boot/silo.conf</i> |
11131 |
/boot/silo.conf appears to be valid |
11132 |
</pre> |
11133 |
|
11134 |
<p> |
11135 |
Otherwise just run <c>/sbin/silo -f</c>: |
11136 |
</p> |
11137 |
|
11138 |
<pre caption = "Run silo"> |
11139 |
# <i>/sbin/silo -f</i> |
11140 |
/etc/silo.conf appears to be valid |
11141 |
</pre> |
11142 |
|
11143 |
<note> |
11144 |
You have to run <c>silo</c> (with parameters) again each time you update or |
11145 |
reinstall the <c>sys-boot/silo</c> package. |
11146 |
</note> |
11147 |
|
11148 |
<p> |
11149 |
Now continue with <uri link="#reboot">Rebooting the System</uri>. |
11150 |
</p> |
11151 |
|
11152 |
</body> |
11153 |
</section> |
11154 |
<section id="reboot"> |
11155 |
<title>Rebooting the System</title> |
11156 |
<subsection> |
11157 |
<body> |
11158 |
|
11159 |
<p> |
11160 |
Exit the chrooted environment and unmount all mounted partitions. Then type in |
11161 |
that one magical command you have been waiting for: <c>reboot</c>. |
11162 |
</p> |
11163 |
|
11164 |
<pre caption="Exiting the chroot, unmounting all partitions and rebooting"> |
11165 |
# <i>exit</i> |
11166 |
cdimage ~# <i>cd</i> |
11167 |
cdimage ~# <i>umount /mnt/gentoo/boot /mnt/gentoo/dev /mnt/gentoo/proc /mnt/gentoo</i> |
11168 |
cdimage ~# <i>reboot</i> |
11169 |
</pre> |
11170 |
|
11171 |
<p> |
11172 |
Of course, don't forget to remove the bootable CD, otherwise the CD will be |
11173 |
booted again instead of your new Gentoo system. |
11174 |
</p> |
11175 |
|
11176 |
<p> |
11177 |
Once rebooted in your Gentoo installation, finish up with <uri |
11178 |
link="?part=1&chap=11">Finalizing your Gentoo Installation</uri>. |
11179 |
</p> |
11180 |
|
11181 |
</body> |
11182 |
</subsection> |
11183 |
</section> |
11184 |
</sections> |
11185 |
|
11186 |
|
11187 |
|
11188 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-disk.xml |
11189 |
|
11190 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-disk.xml?rev=1.1&view=markup |
11191 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-disk.xml?rev=1.1&content-type=text/plain |
11192 |
|
11193 |
Index: hb-install-sparc-disk.xml |
11194 |
=================================================================== |
11195 |
<?xml version='1.0' encoding='UTF-8'?> |
11196 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
11197 |
|
11198 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
11199 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
11200 |
|
11201 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-disk.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
11202 |
|
11203 |
<sections> |
11204 |
|
11205 |
<version>9.0</version> |
11206 |
<date>2007-06-26</date> |
11207 |
|
11208 |
<section> |
11209 |
<title>Introduction to Block Devices</title> |
11210 |
<subsection> |
11211 |
<title>Block Devices</title> |
11212 |
<body> |
11213 |
|
11214 |
<p> |
11215 |
We'll take a good look at some of the disk-oriented aspects of Gentoo Linux |
11216 |
and Linux in general, including Linux filesystems, partitions, and block |
11217 |
devices. Then, once you're familiar with the ins and outs of disks and |
11218 |
filesystems, you'll be guided through the process of setting up partitions |
11219 |
and filesystems for your Gentoo Linux installation. |
11220 |
</p> |
11221 |
|
11222 |
<p> |
11223 |
To begin, we introduce <e>block devices</e>. The most typical block device is |
11224 |
probably the one that represents the first SCSI hard disk in a Linux system, |
11225 |
namely <path>/dev/sda</path>. |
11226 |
</p> |
11227 |
|
11228 |
<p> |
11229 |
Block devices represent an abstract interface to the disk. User programs can |
11230 |
use these block devices to interact with your disk without worrying about |
11231 |
whether your drives are IDE, SCSI, or something else. The program can simply |
11232 |
address the storage on the disk as a bunch of contiguous, randomly-accessible |
11233 |
512-byte blocks. |
11234 |
</p> |
11235 |
|
11236 |
<p> |
11237 |
Block devices show up as entries in <path>/dev/</path>. Typically, the first |
11238 |
SCSI drive is named <path>/dev/sda</path>, the second <path>/dev/sdb</path>, |
11239 |
and so on. IDE drives are named similarly, however, they are prefixed by hd- |
11240 |
instead of sd-. If you are using IDE drives, the first one will be named |
11241 |
<path>/dev/hda</path>, the second <path>/dev/hdb</path>, and so on. |
11242 |
</p> |
11243 |
|
11244 |
</body> |
11245 |
</subsection> |
11246 |
<subsection> |
11247 |
<title>Partitions</title> |
11248 |
<body> |
11249 |
|
11250 |
<p> |
11251 |
Although it is theoretically possible to use the entire disk to house your Linux |
11252 |
system, this is almost never done in practice. Instead, full disk block devices |
11253 |
are split up in smaller, more manageable block devices. These are known as |
11254 |
<e>partitions</e> or <e>slices</e>. |
11255 |
</p> |
11256 |
|
11257 |
<p> |
11258 |
The first partition on the first SCSI disk is <path>/dev/sda1</path>, the second |
11259 |
<path>/dev/sda2</path> and so on. Similarly, the first two partitions on the |
11260 |
first IDE disk are <path>/dev/hda1</path> and <path>/dev/hda2</path>. |
11261 |
</p> |
11262 |
|
11263 |
<p> |
11264 |
The third partition on Sun systems is set aside as a special "whole disk" |
11265 |
slice. This partition must not contain a file system. |
11266 |
</p> |
11267 |
|
11268 |
<p> |
11269 |
Users who are used to the DOS partitioning scheme should note that Sun |
11270 |
disklabels do not have "primary" and "extended" partitions. Instead, up to |
11271 |
eight partitions are available per drive, with the third of these being |
11272 |
reserved. |
11273 |
</p> |
11274 |
|
11275 |
</body> |
11276 |
</subsection> |
11277 |
</section> |
11278 |
<section> |
11279 |
<title>Designing a Partitioning Scheme</title> |
11280 |
<subsection> |
11281 |
<title>Default Partitioning Scheme</title> |
11282 |
<body> |
11283 |
|
11284 |
<p> |
11285 |
If you are not interested in drawing up a partitioning scheme, |
11286 |
the table below suggests a suitable starting point for most systems. For |
11287 |
IDE-based systems, substitute <c>hda</c> for <c>sda</c> in the following. |
11288 |
</p> |
11289 |
|
11290 |
<p> |
11291 |
Note that a separate <path>/boot</path> partition is generally <e>not</e> |
11292 |
recommended on SPARC, as it complicates the bootloader configuration. |
11293 |
</p> |
11294 |
|
11295 |
<table> |
11296 |
<tr> |
11297 |
<th>Partition</th> |
11298 |
<th>Filesystem</th> |
11299 |
<th>Size</th> |
11300 |
<th>Mount Point</th> |
11301 |
<th>Description</th> |
11302 |
</tr> |
11303 |
<tr> |
11304 |
<ti>/dev/sda1</ti> |
11305 |
<ti>ext3</ti> |
11306 |
<ti><2 GByte</ti> |
11307 |
<ti>/</ti> |
11308 |
<ti> |
11309 |
Root partition. For sparc64 systems with older OBP versions, this |
11310 |
<e>must</e> be less than 2 GBytes in size, and the first partition on the |
11311 |
disk. |
11312 |
</ti> |
11313 |
</tr> |
11314 |
<tr> |
11315 |
<ti>/dev/sda2</ti> |
11316 |
<ti>swap</ti> |
11317 |
<ti>512 MBytes</ti> |
11318 |
<ti>none</ti> |
11319 |
<ti> |
11320 |
Swap partition. For bootstrap and certain larger compiles, at least 512 |
11321 |
MBytes of RAM (including swap) is required. |
11322 |
</ti> |
11323 |
</tr> |
11324 |
<tr> |
11325 |
<ti>/dev/sda3</ti> |
11326 |
<ti>none</ti> |
11327 |
<ti>Whole disk</ti> |
11328 |
<ti>none</ti> |
11329 |
<ti>Whole disk partition. This is required on SPARC systems.</ti> |
11330 |
</tr> |
11331 |
<tr> |
11332 |
<ti>/dev/sda4</ti> |
11333 |
<ti>ext3</ti> |
11334 |
<ti>at least 2 GBytes</ti> |
11335 |
<ti>/usr</ti> |
11336 |
<ti> |
11337 |
/usr partition. Applications are installed here. By default this partition |
11338 |
is also used for Portage data (which takes around 500 Mbyte excluding |
11339 |
source code). |
11340 |
</ti> |
11341 |
</tr> |
11342 |
<tr> |
11343 |
<ti>/dev/sda5</ti> |
11344 |
<ti>ext3</ti> |
11345 |
<ti>at least 1GByte</ti> |
11346 |
<ti>/var</ti> |
11347 |
<ti> |
11348 |
/var partition. Used for program-generated data. By default Portage uses |
11349 |
this partition for temporary space whilst compiling. Certain larger |
11350 |
applications such as Mozilla and OpenOffice.org can require over 1 GByte |
11351 |
of temporary space here when building. |
11352 |
</ti> |
11353 |
</tr> |
11354 |
<tr> |
11355 |
<ti>/dev/sda6</ti> |
11356 |
<ti>ext3</ti> |
11357 |
<ti>remaining space</ti> |
11358 |
<ti>/home</ti> |
11359 |
<ti>/home partition. Used for users' home directories.</ti> |
11360 |
</tr> |
11361 |
</table> |
11362 |
|
11363 |
</body> |
11364 |
</subsection> |
11365 |
</section> |
11366 |
|
11367 |
<section id="fdisk"> |
11368 |
<title>Using fdisk to Partition your Disk</title> |
11369 |
<subsection> |
11370 |
<body> |
11371 |
|
11372 |
<p> |
11373 |
The following parts explain how to create the example partition layout described |
11374 |
previously, namely: |
11375 |
</p> |
11376 |
|
11377 |
<table> |
11378 |
<tr> |
11379 |
<th>Partition</th> |
11380 |
<th>Description</th> |
11381 |
</tr> |
11382 |
<tr> |
11383 |
<ti>/dev/sda1</ti> |
11384 |
<ti>/</ti> |
11385 |
</tr> |
11386 |
<tr> |
11387 |
<ti>/dev/sda2</ti> |
11388 |
<ti>swap</ti> |
11389 |
</tr> |
11390 |
<tr> |
11391 |
<ti>/dev/sda3</ti> |
11392 |
<ti>whole disk slice</ti> |
11393 |
</tr> |
11394 |
<tr> |
11395 |
<ti>/dev/sda4</ti> |
11396 |
<ti>/usr</ti> |
11397 |
</tr> |
11398 |
<tr> |
11399 |
<ti>/dev/sda5</ti> |
11400 |
<ti>/var</ti> |
11401 |
</tr> |
11402 |
<tr> |
11403 |
<ti>/dev/sda6</ti> |
11404 |
<ti>/home</ti> |
11405 |
</tr> |
11406 |
</table> |
11407 |
|
11408 |
<p> |
11409 |
Change the partition layout as required. Remember to keep the root partition |
11410 |
entirely within the first 2 GBytes of the disk for older systems. There is also |
11411 |
a 15-partition limit for SCSI and SATA. |
11412 |
</p> |
11413 |
|
11414 |
</body> |
11415 |
</subsection> |
11416 |
<subsection> |
11417 |
<title>Firing up fdisk</title> |
11418 |
<body> |
11419 |
|
11420 |
<p> |
11421 |
Start <c>fdisk</c> with your disk as argument: |
11422 |
</p> |
11423 |
|
11424 |
<pre caption="Starting fdisk"> |
11425 |
# <i>fdisk /dev/sda</i> |
11426 |
</pre> |
11427 |
|
11428 |
<p> |
11429 |
You should be greeted with the fdisk prompt: |
11430 |
</p> |
11431 |
|
11432 |
<pre caption="The fdisk prompt"> |
11433 |
Command (m for help): |
11434 |
</pre> |
11435 |
|
11436 |
<p> |
11437 |
To view the available partitions, type in <c>p</c>: |
11438 |
</p> |
11439 |
|
11440 |
<pre caption="Listing available partitions"> |
11441 |
Command (m for help): <i>p</i> |
11442 |
|
11443 |
Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders |
11444 |
Units = cylinders of 2048 * 512 bytes |
11445 |
|
11446 |
Device Flag Start End Blocks Id System |
11447 |
/dev/sda1 0 488 499712 83 Linux native |
11448 |
/dev/sda2 488 976 499712 82 Linux swap |
11449 |
/dev/sda3 0 8635 8842240 5 Whole disk |
11450 |
/dev/sda4 976 1953 1000448 83 Linux native |
11451 |
/dev/sda5 1953 2144 195584 83 Linux native |
11452 |
/dev/sda6 2144 8635 6646784 83 Linux native |
11453 |
</pre> |
11454 |
|
11455 |
<p> |
11456 |
Note the <c>Sun disk label</c> in the output. If this is missing, the disk is |
11457 |
using the DOS-partitioning, not the Sun partitioning. In this case, use <c>s</c> |
11458 |
to ensure that the disk has a sun partition table: |
11459 |
</p> |
11460 |
|
11461 |
<pre caption="Creating a Sun Disklabel"> |
11462 |
Command (m for help): s |
11463 |
Building a new sun disklabel. Changes will remain in memory only, |
11464 |
until you decide to write them. After that, of course, the previous |
11465 |
content won't be recoverable. |
11466 |
|
11467 |
Drive type |
11468 |
? auto configure |
11469 |
0 custom (with hardware detected defaults) |
11470 |
a Quantum ProDrive 80S |
11471 |
b Quantum ProDrive 105S |
11472 |
c CDC Wren IV 94171-344 |
11473 |
d IBM DPES-31080 |
11474 |
e IBM DORS-32160 |
11475 |
f IBM DNES-318350 |
11476 |
g SEAGATE ST34371 |
11477 |
h SUN0104 |
11478 |
i SUN0207 |
11479 |
j SUN0327 |
11480 |
k SUN0340 |
11481 |
l SUN0424 |
11482 |
m SUN0535 |
11483 |
n SUN0669 |
11484 |
o SUN1.0G |
11485 |
p SUN1.05 |
11486 |
q SUN1.3G |
11487 |
r SUN2.1G |
11488 |
s IOMEGA Jaz |
11489 |
Select type (? for auto, 0 for custom): <i>0</i> |
11490 |
Heads (1-1024, default 64): |
11491 |
Using default value 64 |
11492 |
Sectors/track (1-1024, default 32): |
11493 |
Using default value 32 |
11494 |
Cylinders (1-65535, default 8635): |
11495 |
Using default value 8635 |
11496 |
Alternate cylinders (0-65535, default 2): |
11497 |
Using default value 2 |
11498 |
Physical cylinders (0-65535, default 8637): |
11499 |
Using default value 8637 |
11500 |
Rotation speed (rpm) (1-100000, default 5400): <i>10000</i> |
11501 |
Interleave factor (1-32, default 1): |
11502 |
Using default value 1 |
11503 |
Extra sectors per cylinder (0-32, default 0): |
11504 |
Using default value 0 |
11505 |
</pre> |
11506 |
|
11507 |
<p> |
11508 |
You can find the correct values in your disk's documentation. The |
11509 |
'auto configure' option does not usually work. |
11510 |
</p> |
11511 |
|
11512 |
</body> |
11513 |
</subsection> |
11514 |
<subsection> |
11515 |
<title>Deleting Existing Partitions</title> |
11516 |
<body> |
11517 |
|
11518 |
<p> |
11519 |
It's time to delete any existing partitions. To do this, type <c>d</c> and hit |
11520 |
Enter. You will then be prompted for the partition number you would like to |
11521 |
delete. To delete a pre-existing <path>/dev/sda1</path>, you would type: |
11522 |
</p> |
11523 |
|
11524 |
<pre caption="Deleting a partition"> |
11525 |
Command (m for help): <i>d</i> |
11526 |
Partition number (1-4): <i>1</i> |
11527 |
</pre> |
11528 |
|
11529 |
<p> |
11530 |
<e>You should not delete partition 3 (whole disk).</e> This is required. If |
11531 |
this partition does not exist, follow the "Creating a Sun Disklabel" |
11532 |
instructions above. |
11533 |
</p> |
11534 |
|
11535 |
<p> |
11536 |
After deleting all partitions except the Whole disk slice, you should have a |
11537 |
partition layout similar to the following: |
11538 |
</p> |
11539 |
|
11540 |
<pre caption="View an empty partition scheme"> |
11541 |
Command (m for help): <i>p</i> |
11542 |
|
11543 |
Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders |
11544 |
Units = cylinders of 2048 * 512 bytes |
11545 |
|
11546 |
Device Flag Start End Blocks Id System |
11547 |
/dev/sda3 0 8635 8842240 5 Whole disk |
11548 |
</pre> |
11549 |
|
11550 |
|
11551 |
</body> |
11552 |
</subsection> |
11553 |
|
11554 |
<subsection> |
11555 |
<title>Creating the Root Partition</title> |
11556 |
<body> |
11557 |
|
11558 |
<p> |
11559 |
We're ready to create the root partition. To do this, type <c>n</c> to create a |
11560 |
new partition, then type <c>1</c> to create the partition. When prompted for |
11561 |
the first cylinder, hit enter. When prompted for the last cylinder, type |
11562 |
<c>+512M</c> to create a partition <c>512MBytes</c> in size. Make sure that the |
11563 |
entire root partition fits within the first 2GBytes of the disk. You can see |
11564 |
output from these steps below: |
11565 |
</p> |
11566 |
|
11567 |
<pre caption="Creating a root partition"> |
11568 |
Command (m for help): <i>n</i> |
11569 |
Partition number (1-8): <i>1</i> |
11570 |
First cylinder (0-8635): <i>(press Enter)</i> |
11571 |
Last cylinder or +size or +sizeM or +sizeK (0-8635, default 8635): <i>+512M</i> |
11572 |
</pre> |
11573 |
|
11574 |
<p> |
11575 |
Now, when you type <c>p</c>, you should see the following partition printout: |
11576 |
</p> |
11577 |
|
11578 |
<pre caption="Listing the partition layout"> |
11579 |
Command (m for help): <i>p</i> |
11580 |
|
11581 |
Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders |
11582 |
Units = cylinders of 2048 * 512 bytes |
11583 |
|
11584 |
Device Flag Start End Blocks Id System |
11585 |
/dev/sda1 0 488 499712 83 Linux native |
11586 |
/dev/sda3 0 8635 8842240 5 Whole disk |
11587 |
</pre> |
11588 |
|
11589 |
</body> |
11590 |
</subsection> |
11591 |
<subsection> |
11592 |
<title>Creating a swap partition</title> |
11593 |
<body> |
11594 |
|
11595 |
<p> |
11596 |
Next, let's create the swap partition. To do this, type <c>n</c> to create a new |
11597 |
partition, then <c>2</c> to create the second partition, <path>/dev/sda2</path> |
11598 |
in our case. When prompted for the first cylinder, hit enter. When prompted for |
11599 |
the last cylinder, type <c>+512M</c> to create a partition 512MB in size. After |
11600 |
you've done this, type <c>t</c> to set the partition type, and then type in |
11601 |
<c>82</c> to set the partition type to "Linux Swap". After completing these |
11602 |
steps, typing <c>p</c> should display a partition table that looks similar to |
11603 |
this: |
11604 |
</p> |
11605 |
|
11606 |
<pre caption="Listing of available partitions"> |
11607 |
Command (m for help): <i>p</i> |
11608 |
|
11609 |
Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders |
11610 |
Units = cylinders of 2048 * 512 bytes |
11611 |
|
11612 |
Device Flag Start End Blocks Id System |
11613 |
/dev/sda1 0 488 499712 83 Linux native |
11614 |
/dev/sda2 488 976 499712 82 Linux swap |
11615 |
/dev/sda3 0 8635 8842240 5 Whole disk |
11616 |
</pre> |
11617 |
|
11618 |
</body> |
11619 |
</subsection> |
11620 |
<subsection> |
11621 |
<title>Creating the /usr, /var and /home partitions</title> |
11622 |
<body> |
11623 |
|
11624 |
<p> |
11625 |
Finally, let's create the /usr, /var and /home partitions. As before, |
11626 |
type <c>n</c> to create a new partition, then type <c>4</c> to create the |
11627 |
third partition, <path>/dev/sda4</path> in our case. When prompted for the |
11628 |
first cylinder, hit enter. When prompted for the last cylinder, enter |
11629 |
<c>+2048M</c> to create a partition 2 GBytes in size. Repeat this process |
11630 |
for <path>sda5</path> and <path>sda6</path>, using the desired sizes. Once |
11631 |
you're done, you should see something like this: |
11632 |
</p> |
11633 |
|
11634 |
<pre caption="Listing complete partition table"> |
11635 |
Command (m for help): <i>p</i> |
11636 |
|
11637 |
Disk /dev/sda (Sun disk label): 64 heads, 32 sectors, 8635 cylinders |
11638 |
Units = cylinders of 2048 * 512 bytes |
11639 |
|
11640 |
Device Flag Start End Blocks Id System |
11641 |
/dev/sda1 0 488 499712 83 Linux native |
11642 |
/dev/sda2 488 976 499712 82 Linux swap |
11643 |
/dev/sda3 0 8635 8842240 5 Whole disk |
11644 |
/dev/sda4 976 1953 1000448 83 Linux native |
11645 |
/dev/sda5 1953 2144 195584 83 Linux native |
11646 |
/dev/sda6 2144 8635 6646784 83 Linux native |
11647 |
</pre> |
11648 |
|
11649 |
</body> |
11650 |
</subsection> |
11651 |
<subsection> |
11652 |
<title>Save and Exit</title> |
11653 |
<body> |
11654 |
|
11655 |
<p> |
11656 |
To save your partition layout and exit <c>fdisk</c>, type <c>w</c>: |
11657 |
</p> |
11658 |
|
11659 |
<pre caption="Save and exit fdisk"> |
11660 |
Command (m for help): <i>w</i> |
11661 |
</pre> |
11662 |
|
11663 |
<p> |
11664 |
Now that your partitions are created, you can now continue with <uri |
11665 |
link="#filesystems">Creating Filesystems</uri>. |
11666 |
</p> |
11667 |
|
11668 |
</body> |
11669 |
</subsection> |
11670 |
</section> |
11671 |
<section id="filesystems"> |
11672 |
<title>Creating Filesystems</title> |
11673 |
<subsection> |
11674 |
<title>Introduction</title> |
11675 |
<body> |
11676 |
|
11677 |
<p> |
11678 |
Now that your partitions are created, it is time to place a filesystem on them. |
11679 |
If you don't care about what filesystem to choose and are happy with what is |
11680 |
used as default in this handbook, continue with <uri |
11681 |
link="#filesystems-apply">Applying a Filesystem to a Partition</uri>. |
11682 |
Otherwise, read on to learn about the available filesystems... |
11683 |
</p> |
11684 |
|
11685 |
</body> |
11686 |
</subsection> |
11687 |
<subsection> |
11688 |
<title>Filesystems?</title> |
11689 |
<body> |
11690 |
|
11691 |
<p> |
11692 |
Several filesystems are available, some are known to be stable on the |
11693 |
SPARC architecture. Ext2 and ext3, for example, are known to work well. |
11694 |
Alternate filesystems may not function correctly. |
11695 |
</p> |
11696 |
|
11697 |
<p> |
11698 |
<b>ext2</b> is the tried-and-true Linux filesystem. It does not support |
11699 |
journaling, which means that periodic checks of ext2 filesystems at startup |
11700 |
can be quite time-consuming. There is quite a selection of newer-generation |
11701 |
journaled filesystems that can be checked for consistency very quickly at |
11702 |
startup, and are therefore generally preferred over their non-journaled |
11703 |
counterparts. In general, journaled filesystems prevent long delays when a |
11704 |
system is booted and the filesystem is in an inconsistent state. |
11705 |
</p> |
11706 |
|
11707 |
<p> |
11708 |
<b>ext3</b> is the journaled version of the ext2 filesystem, providing metadata |
11709 |
journaling for fast recovery in addition to other enhanced journaling modes like |
11710 |
full data and ordered data journaling. It uses an HTree index that enables high |
11711 |
performance in almost all situations. In short, ext3 is a very good and reliable |
11712 |
filesystem. |
11713 |
</p> |
11714 |
|
11715 |
</body> |
11716 |
</subsection> |
11717 |
<subsection id="filesystems-apply"> |
11718 |
<title>Applying a Filesystem to a Partition</title> |
11719 |
<body> |
11720 |
|
11721 |
<p> |
11722 |
To create a filesystem on a partition or volume, tools specific to the chosen |
11723 |
filesystem are available: |
11724 |
</p> |
11725 |
|
11726 |
<table> |
11727 |
<tr> |
11728 |
<th>Filesystem</th> |
11729 |
<th>Creation Command</th> |
11730 |
</tr> |
11731 |
<tr> |
11732 |
<ti>ext2</ti> |
11733 |
<ti><c>mke2fs</c></ti> |
11734 |
</tr> |
11735 |
<tr> |
11736 |
<ti>ext3</ti> |
11737 |
<ti><c>mke2fs -j</c></ti> |
11738 |
</tr> |
11739 |
</table> |
11740 |
|
11741 |
<p> |
11742 |
For instance, to create the root partition (<path>/dev/sda1</path> in our |
11743 |
example) as ext2, and the <path>/usr</path>, <path>/var</path>, and |
11744 |
<path>/home</path> partitions (<path>/dev/sda4</path>, <path>5</path> |
11745 |
and <path>6</path> in our example, respectively) as ext3, you would use: |
11746 |
</p> |
11747 |
|
11748 |
<pre caption="Applying a filesystem on a partition"> |
11749 |
# <i>mke2fs /dev/sda1</i> |
11750 |
# <i>mke2fs -j /dev/sda4</i> |
11751 |
# <i>mke2fs -j /dev/sda5</i> |
11752 |
# <i>mke2fs -j /dev/sda6</i> |
11753 |
</pre> |
11754 |
|
11755 |
</body> |
11756 |
</subsection> |
11757 |
<subsection> |
11758 |
<title>Activating the Swap Partition</title> |
11759 |
<body> |
11760 |
|
11761 |
<p> |
11762 |
<c>mkswap</c> is the command used to initialize swap partitions: |
11763 |
</p> |
11764 |
|
11765 |
<pre caption="Creating a Swap signature"> |
11766 |
# <i>mkswap /dev/sda2</i> |
11767 |
</pre> |
11768 |
|
11769 |
<p> |
11770 |
To activate the swap partition, use <c>swapon</c>: |
11771 |
</p> |
11772 |
|
11773 |
<pre caption="Activating the swap partition"> |
11774 |
# <i>swapon /dev/sda2</i> |
11775 |
</pre> |
11776 |
|
11777 |
<p> |
11778 |
Create and activate the swap with the commands mentioned above. |
11779 |
</p> |
11780 |
|
11781 |
</body> |
11782 |
</subsection> |
11783 |
</section> |
11784 |
<section> |
11785 |
<title>Mounting</title> |
11786 |
<body> |
11787 |
|
11788 |
<p> |
11789 |
Now that your partitions are initialized and are housing a filesystem, it is |
11790 |
time to mount them using the <c>mount</c> command. Don't forget to first |
11791 |
create the necessary mount directories for every partition you created. For |
11792 |
example: |
11793 |
</p> |
11794 |
|
11795 |
<pre caption="Mounting partitions"> |
11796 |
# <i>mount /dev/sda1 /mnt/gentoo</i> |
11797 |
# <i>mkdir /mnt/gentoo/usr</i> |
11798 |
# <i>mount /dev/sda4 /mnt/gentoo/usr</i> |
11799 |
# <i>mkdir /mnt/gentoo/var</i> |
11800 |
# <i>mount /dev/sda5 /mnt/gentoo/var</i> |
11801 |
# <i>mkdir /mnt/gentoo/home</i> |
11802 |
# <i>mount /dev/sda6 /mnt/gentoo/home</i> |
11803 |
</pre> |
11804 |
|
11805 |
<note> |
11806 |
If you want your <path>/tmp</path> to reside on a separate partition, be sure |
11807 |
to change its permissions after mounting: <c>chmod 1777 /mnt/gentoo/tmp</c>. |
11808 |
This also holds for <path>/var/tmp</path>. |
11809 |
</note> |
11810 |
|
11811 |
<p> |
11812 |
We will also have to mount the proc filesystem (a virtual interface with the |
11813 |
kernel) on <path>/proc</path>. But first we will need to place our files on the partitions. |
11814 |
</p> |
11815 |
|
11816 |
<p> |
11817 |
Continue with <uri link="?part=1&chap=5">Installing the Gentoo |
11818 |
Installation Files</uri>. |
11819 |
</p> |
11820 |
|
11821 |
</body> |
11822 |
</section> |
11823 |
</sections> |
11824 |
|
11825 |
|
11826 |
|
11827 |
|
11828 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-kernel.xml |
11829 |
|
11830 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-kernel.xml?rev=1.1&view=markup |
11831 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-kernel.xml?rev=1.1&content-type=text/plain |
11832 |
|
11833 |
Index: hb-install-sparc-kernel.xml |
11834 |
=================================================================== |
11835 |
<?xml version='1.0' encoding='UTF-8'?> |
11836 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
11837 |
|
11838 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
11839 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
11840 |
|
11841 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-kernel.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
11842 |
|
11843 |
<sections> |
11844 |
|
11845 |
<version>9.0</version> |
11846 |
<date>2007-08-12</date> |
11847 |
|
11848 |
<section> |
11849 |
<title>Timezone</title> |
11850 |
<body> |
11851 |
|
11852 |
<p> |
11853 |
You first need to select your timezone so that your system knows where it is |
11854 |
located. Look for your timezone in <path>/usr/share/zoneinfo</path>, then copy |
11855 |
it to <path>/etc/localtime</path>. Please avoid the |
11856 |
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not |
11857 |
indicate the expected zones. For instance, <path>GMT-8</path> is in fact |
11858 |
GMT+8. |
11859 |
</p> |
11860 |
|
11861 |
<pre caption="Setting the timezone information"> |
11862 |
# <i>ls /usr/share/zoneinfo</i> |
11863 |
<comment>(Suppose you want to use GMT)</comment> |
11864 |
# <i>cp /usr/share/zoneinfo/GMT /etc/localtime</i> |
11865 |
</pre> |
11866 |
|
11867 |
</body> |
11868 |
</section> |
11869 |
<section> |
11870 |
<title>Installing the Sources</title> |
11871 |
<subsection> |
11872 |
<title>Choosing a Kernel</title> |
11873 |
<body> |
11874 |
|
11875 |
<p> |
11876 |
The core around which all distributions are built is the Linux kernel. It is the |
11877 |
layer between the user programs and your system hardware. Gentoo provides its |
11878 |
users several possible kernel sources. A full listing with description is |
11879 |
available at the <uri link="/doc/en/gentoo-kernel.xml">Gentoo Kernel |
11880 |
Guide</uri>. |
11881 |
</p> |
11882 |
|
11883 |
<p> |
11884 |
For sparc-based systems we have <c>gentoo-sources</c> (recommended 2.6 kernel |
11885 |
sources). |
11886 |
</p> |
11887 |
|
11888 |
<p> |
11889 |
In the next example we install <c>gentoo-sources</c>. |
11890 |
</p> |
11891 |
|
11892 |
<pre caption="Installing a kernel source"> |
11893 |
# <i>emerge gentoo-sources</i> |
11894 |
</pre> |
11895 |
|
11896 |
<p> |
11897 |
When you take a look in <path>/usr/src</path> you should see a symlink called |
11898 |
<path>linux</path> pointing to your kernel source. In this case, the installed |
11899 |
kernel source points to <c>linux-<keyval id="kernel-version"/></c>. Your version |
11900 |
may be different, so keep this in mind. |
11901 |
</p> |
11902 |
|
11903 |
<pre caption="Viewing the kernel source symlink"> |
11904 |
# <i>ls -l /usr/src/linux</i> |
11905 |
lrwxrwxrwx 1 root root 12 Oct 13 11:04 /usr/src/linux -> linux-<keyval id="kernel-version"/> |
11906 |
</pre> |
11907 |
|
11908 |
<p> |
11909 |
Now it is time to configure and compile your kernel source. |
11910 |
</p> |
11911 |
|
11912 |
</body> |
11913 |
</subsection> |
11914 |
</section> |
11915 |
<section> |
11916 |
<title>Manual Configuration</title> |
11917 |
<subsection> |
11918 |
<title>Introduction</title> |
11919 |
<body> |
11920 |
|
11921 |
<p> |
11922 |
Manually configuring a kernel is often seen as the most difficult procedure a |
11923 |
Linux user ever has to perform. Nothing is less true -- after configuring a |
11924 |
couple of kernels you don't even remember that it was difficult ;) |
11925 |
</p> |
11926 |
|
11927 |
<p> |
11928 |
However, one thing <e>is</e> true: you must know your system when you start |
11929 |
configuring a kernel manually. Most information can be gathered by emerging |
11930 |
pciutils (<c>emerge pciutils</c>) which contains <c>lspci</c>. You will now |
11931 |
be able to use <c>lspci</c> within the chrooted environment. You may safely |
11932 |
ignore any <e>pcilib</e> warnings (like pcilib: cannot open |
11933 |
/sys/bus/pci/devices) that <c>lspci</c> throws out. Alternatively, you can run |
11934 |
<c>lspci</c> from a <e>non-chrooted</e> environment. The results are the same. |
11935 |
You can also run <c>lsmod</c> to see what kernel modules the Installation CD |
11936 |
uses (it might provide you with a nice hint on what to enable). |
11937 |
</p> |
11938 |
|
11939 |
<p> |
11940 |
Now go to your kernel source directory and execute <c>make menuconfig</c>. This |
11941 |
will fire up an ncurses-based configuration menu. |
11942 |
</p> |
11943 |
|
11944 |
<pre caption="Invoking menuconfig"> |
11945 |
# <i>cd /usr/src/linux</i> |
11946 |
# <i>make menuconfig</i> |
11947 |
</pre> |
11948 |
|
11949 |
<p> |
11950 |
You will be greeted with several configuration sections. We'll first list some |
11951 |
options you must activate (otherwise Gentoo will not function, or not function |
11952 |
properly without additional tweaks). |
11953 |
</p> |
11954 |
|
11955 |
</body> |
11956 |
</subsection> |
11957 |
<subsection> |
11958 |
<title>Activating Required Options</title> |
11959 |
<body> |
11960 |
|
11961 |
<p> |
11962 |
First of all, activate the use of development and experimental code/drivers. |
11963 |
You need this, otherwise some very important code/drivers won't show up: |
11964 |
</p> |
11965 |
|
11966 |
<pre caption="Selecting experimental code/drivers"> |
11967 |
General setup ---> |
11968 |
[*] Prompt for development and/or incomplete code/drivers |
11969 |
</pre> |
11970 |
|
11971 |
<p> |
11972 |
Now go to <c>File Systems</c> and select support for the filesystems you use. |
11973 |
<e>Don't</e> compile them as modules, otherwise your Gentoo system will not be |
11974 |
able to mount your partitions. Also select <c>Virtual memory</c> and <c>/proc |
11975 |
file system</c>: |
11976 |
</p> |
11977 |
|
11978 |
<pre caption="Selecting necessary file systems"> |
11979 |
File systems ---> |
11980 |
Pseudo Filesystems ---> |
11981 |
[*] /proc file system support |
11982 |
[*] Virtual memory file system support (former shm fs) |
11983 |
|
11984 |
<comment>(Select one or more of the following options as needed by your system)</comment> |
11985 |
<*> Ext3 journalling file system support |
11986 |
<*> Second extended fs support |
11987 |
</pre> |
11988 |
|
11989 |
<p> |
11990 |
If you are using PPPoE to connect to the Internet or you are using a dial-up |
11991 |
modem, you will need the following options in the kernel: |
11992 |
</p> |
11993 |
|
11994 |
<pre caption="Selecting PPPoE necessary drivers"> |
11995 |
Device Drivers ---> |
11996 |
Networking support ---> |
11997 |
<*> PPP (point-to-point protocol) support |
11998 |
<*> PPP support for async serial ports |
11999 |
<*> PPP support for sync tty ports |
12000 |
</pre> |
12001 |
|
12002 |
<p> |
12003 |
The two compression options won't harm but are not definitely needed, neither |
12004 |
does the <c>PPP over Ethernet</c> option, that might only be used by <c>ppp</c> |
12005 |
when configured to do kernel mode PPPoE. |
12006 |
</p> |
12007 |
|
12008 |
<p> |
12009 |
Now activate the correct bus-support: |
12010 |
</p> |
12011 |
|
12012 |
<pre caption="Activating SBUS/UPA"> |
12013 |
Console drivers ---> |
12014 |
Frame-buffer support ---> |
12015 |
[*] SBUS and UPA framebuffers |
12016 |
[*] Creator/Creator3D support <comment>(Only for UPA slot adapter used in many Ultras)</comment> |
12017 |
[*] CGsix (GX,TurboGX) support <comment>(Only for SBUS slot adapter used in many SPARCStations)</comment> |
12018 |
</pre> |
12019 |
|
12020 |
<p> |
12021 |
Of course you want support for the OBP: |
12022 |
</p> |
12023 |
|
12024 |
<pre caption="Activating OBP Support"> |
12025 |
Misc Linux/SPARC drivers ---> |
12026 |
[*] /dev/openprom device support |
12027 |
</pre> |
12028 |
|
12029 |
<p> |
12030 |
You will also need SCSI-specific support: |
12031 |
</p> |
12032 |
|
12033 |
<pre caption="Activating SCSI-specific support"> |
12034 |
SCSI support ---> |
12035 |
SCSI low-level drivers ---> |
12036 |
<*> Sparc ESP Scsi Driver <comment>(Only for SPARC ESP on-board SCSI adapter)</comment> |
12037 |
<*> PTI Qlogic, ISP Driver <comment>(Only for SBUS SCSI controllers from PTI or QLogic)</comment> |
12038 |
<*> SYM53C8XX Version 2 SCSI support <comment>(Only for Ultra 60 on-board SCSI adapter)</comment> |
12039 |
</pre> |
12040 |
|
12041 |
<p> |
12042 |
To support your network card, select one of the following: |
12043 |
</p> |
12044 |
|
12045 |
<pre caption="Activating networking support"> |
12046 |
Network device support ---> |
12047 |
Ethernet (10 or 100Mbit) ---> |
12048 |
<*> Sun LANCE support <comment>(Only for SPARCStation, older Ultra systems, and as Sbus option)</comment> |
12049 |
<*> Sun Happy Meal 10/100baseT support <comment>(Only for Ultra; also supports "qfe" quad-ethernet on PCI and Sbus)</comment> |
12050 |
<*> DECchip Tulip (dc21x4x) PCI support <comment>(For some Netras, like N1)</comment> |
12051 |
Ethernet (1000Mbit) ---> |
12052 |
<*> Broadcom Tigon3 support <comment>(Modern Netra, Sun Fire machines)</comment> |
12053 |
</pre> |
12054 |
|
12055 |
<p> |
12056 |
When you have a 4-port Ethernet machine (10/100 or 10/100/1000) the port order |
12057 |
is different from the one used by Solaris. You can use <c>sys-apps/ethtool</c> |
12058 |
to check the port link status. |
12059 |
</p> |
12060 |
|
12061 |
<p> |
12062 |
When you're done configuring your kernel, continue with <uri |
12063 |
link="#compiling">Compiling and Installing</uri>. However, after having |
12064 |
compiled the kernel, check its size: |
12065 |
</p> |
12066 |
|
12067 |
<pre caption="Check kernel size"> |
12068 |
# <i>ls -lh vmlinux</i> |
12069 |
-rw-r--r-- 1 root root 2.4M Oct 25 14:38 vmlinux |
12070 |
</pre> |
12071 |
|
12072 |
<p> |
12073 |
If the (uncompressed) size is bigger than 7.5 MB, reconfigure your kernel until |
12074 |
it doesn't exceed these limits. One way of accomplishing this is by having most |
12075 |
kernel drivers compiled as modules. Ignoring this can lead to a non-booting |
12076 |
kernel. |
12077 |
</p> |
12078 |
|
12079 |
<p> |
12080 |
Also, if your kernel is just a tad too big, you can try stripping it using the |
12081 |
<c>strip</c> command: |
12082 |
</p> |
12083 |
|
12084 |
<pre caption="Stripping the kernel"> |
12085 |
# <i>strip -R .comment -R .note vmlinux</i> |
12086 |
</pre> |
12087 |
|
12088 |
</body> |
12089 |
</subsection> |
12090 |
<subsection id="compiling"> |
12091 |
<title>Compiling and Installing</title> |
12092 |
<body> |
12093 |
|
12094 |
<p> |
12095 |
Now that your kernel is configured, it is time to compile and install it. Exit |
12096 |
the configuration and start the compilation process: |
12097 |
</p> |
12098 |
|
12099 |
<pre caption="Compiling the kernel"> |
12100 |
# <i>make && make image modules_install</i> |
12101 |
</pre> |
12102 |
|
12103 |
<p> |
12104 |
When the kernel has finished compiling, copy the kernel image to |
12105 |
<path>/boot</path>. Remember to replace <path><kernel-version></path> |
12106 |
with your actual kernel version. |
12107 |
</p> |
12108 |
|
12109 |
<pre caption="Installing the kernel"> |
12110 |
# <i>cp arch/sparc64/boot/image /boot/<kernel-version></i> |
12111 |
</pre> |
12112 |
|
12113 |
<p> |
12114 |
Now continue with <uri link="#kernel_modules">Installing Separate Kernel |
12115 |
Modules</uri>. |
12116 |
</p> |
12117 |
|
12118 |
</body> |
12119 |
</subsection> |
12120 |
</section> |
12121 |
<section id="kernel_modules"> |
12122 |
<title>Installing Separate Kernel Modules</title> |
12123 |
<subsection> |
12124 |
<title>Configuring the Modules</title> |
12125 |
<body> |
12126 |
|
12127 |
<p> |
12128 |
You should list the modules you want automatically loaded in |
12129 |
<path>/etc/modules.autoload.d/kernel-2.6</path>. You can add extra options to |
12130 |
the modules too if you want. |
12131 |
</p> |
12132 |
|
12133 |
<p> |
12134 |
To view all available modules, run the following <c>find</c> command. Don't |
12135 |
forget to substitute "<kernel version>" with the version of the kernel you |
12136 |
just compiled: |
12137 |
</p> |
12138 |
|
12139 |
<pre caption="Viewing all available modules"> |
12140 |
# <i>find /lib/modules/<kernel version>/ -type f -iname '*.o' -or -iname '*.ko'</i> |
12141 |
</pre> |
12142 |
|
12143 |
<p> |
12144 |
For instance, to automatically load the <c>3c59x.ko</c> module, edit the |
12145 |
<path>kernel-2.6</path> file and enter the module name in it. |
12146 |
</p> |
12147 |
|
12148 |
<pre caption="Editing /etc/modules.autoload.d/kernel-2.6"> |
12149 |
# <i>nano -w /etc/modules.autoload.d/kernel-2.6</i> |
12150 |
</pre> |
12151 |
|
12152 |
<pre caption="/etc/modules.autoload.d/kernel-2.6"> |
12153 |
3c59x |
12154 |
</pre> |
12155 |
|
12156 |
<p> |
12157 |
Continue the installation with <uri link="?part=1&chap=8">Configuring |
12158 |
your System</uri>. |
12159 |
</p> |
12160 |
|
12161 |
</body> |
12162 |
</subsection> |
12163 |
</section> |
12164 |
</sections> |
12165 |
|
12166 |
|
12167 |
|
12168 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-medium.xml |
12169 |
|
12170 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-medium.xml?rev=1.1&view=markup |
12171 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-medium.xml?rev=1.1&content-type=text/plain |
12172 |
|
12173 |
Index: hb-install-sparc-medium.xml |
12174 |
=================================================================== |
12175 |
<?xml version='1.0' encoding='UTF-8'?> |
12176 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
12177 |
|
12178 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
12179 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
12180 |
|
12181 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-sparc-medium.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
12182 |
|
12183 |
<sections> |
12184 |
|
12185 |
<version>9.0</version> |
12186 |
<date>2007-06-29</date> |
12187 |
|
12188 |
<section> |
12189 |
<title>Hardware Requirements</title> |
12190 |
<subsection> |
12191 |
<title>Introduction</title> |
12192 |
<body> |
12193 |
|
12194 |
<p> |
12195 |
Before we start, we first list what hardware requirements you need to |
12196 |
successfully install Gentoo on your box. |
12197 |
</p> |
12198 |
|
12199 |
</body> |
12200 |
</subsection> |
12201 |
<subsection> |
12202 |
<title>Hardware Requirements</title> |
12203 |
<body> |
12204 |
|
12205 |
<table> |
12206 |
<tr> |
12207 |
<th>Sparc System</th> |
12208 |
<ti> |
12209 |
Please check the <uri link="/proj/en/base/sparc/sunhw.xml">Gentoo |
12210 |
Linux/SPARC64 Compatibility list</uri> or the <uri |
12211 |
link="http://www.ultralinux.org/faq.html#s_2">UltraLinux FAQ</uri> |
12212 |
</ti> |
12213 |
</tr> |
12214 |
<tr> |
12215 |
<th>CPU</th> |
12216 |
<ti> |
12217 |
We currently only support sparc64 CPUs |
12218 |
</ti> |
12219 |
</tr> |
12220 |
<tr> |
12221 |
<th>Memory</th> |
12222 |
<ti>64 MB</ti> |
12223 |
</tr> |
12224 |
<tr> |
12225 |
<th>Diskspace</th> |
12226 |
<ti>1.5 GB (excluding swap space)</ti> |
12227 |
</tr> |
12228 |
<tr> |
12229 |
<th>Swap space</th> |
12230 |
<ti>At least 256 MB</ti> |
12231 |
</tr> |
12232 |
</table> |
12233 |
|
12234 |
</body> |
12235 |
</subsection> |
12236 |
</section> |
12237 |
|
12238 |
<!-- START --> |
12239 |
<section> |
12240 |
<title>The Gentoo Universal Installation CD</title> |
12241 |
<subsection> |
12242 |
<title>Introduction</title> |
12243 |
<body> |
12244 |
|
12245 |
<p> |
12246 |
Gentoo Linux can be installed using a <e>stage3</e> tarball file. |
12247 |
Such a tarball is an archive that contains a minimal environment from |
12248 |
which you can succesfully install Gentoo Linux onto your system. |
12249 |
</p> |
12250 |
|
12251 |
<p> |
12252 |
Installations using a stage1 or stage2 tarball file are not documented in the |
12253 |
Gentoo Handbook - please read the <uri link="/doc/en/faq.xml#stage12">Gentoo |
12254 |
FAQ</uri> on these matters. |
12255 |
</p> |
12256 |
|
12257 |
</body> |
12258 |
</subsection> |
12259 |
<subsection> |
12260 |
<title>Gentoo Universal Installation CD</title> |
12261 |
<body> |
12262 |
|
12263 |
<p> |
12264 |
An Installation CD is a bootable medium which contains a self-sustained Gentoo |
12265 |
environment. It allows you to boot Linux from the CD. During the boot process |
12266 |
your hardware is detected and the appropriate drivers are loaded. The Gentoo |
12267 |
Installation CDs are maintained by Gentoo developers. |
12268 |
</p> |
12269 |
|
12270 |
<p> |
12271 |
There currently are two Installation CDs available: |
12272 |
</p> |
12273 |
|
12274 |
<ul> |
12275 |
<li> |
12276 |
The Universal Installation CD contains everything you need to install |
12277 |
Gentoo. It provides stage3 files for common architectures, source code |
12278 |
for the extra applications you need to choose from and, of course, the |
12279 |
installation instructions for your architecture. |
12280 |
</li> |
12281 |
<li> |
12282 |
The Minimal Installation CD contains only a minimal environment that allows |
12283 |
you to boot up and configure your network so you can connect to the |
12284 |
Internet. It does not contain any additional files and cannot be used |
12285 |
during the current installation approach. |
12286 |
</li> |
12287 |
</ul> |
12288 |
<!-- |
12289 |
<p> |
12290 |
Gentoo also provides a Package CD. This is not an Installation CD but an |
12291 |
additional resource that you can exploit during the installation of your Gentoo |
12292 |
system. It contains prebuilt packages (also known as the GRP set) that allow |
12293 |
you to easily and quickly install additional applications (such as |
12294 |
OpenOffice.org, KDE, GNOME, ...) immediately after the Gentoo installation and |
12295 |
right before you update your Portage tree. |
12296 |
</p> |
12297 |
|
12298 |
<p> |
12299 |
The use of the Package CD is covered later in this document. |
12300 |
</p> |
12301 |
--> |
12302 |
</body> |
12303 |
</subsection> |
12304 |
</section> |
12305 |
<!-- STOP --> |
12306 |
<section> |
12307 |
<title>Download, Burn and Boot a Gentoo Installation CD</title> |
12308 |
<subsection> |
12309 |
<title>Downloading and Burning the Installation CDs</title> |
12310 |
<body> |
12311 |
|
12312 |
<p> |
12313 |
You can download the Universal Installation CD <!--(and, if you want to, the |
12314 |
Packages CD as well) -->from one of our <uri |
12315 |
link="/main/en/mirrors.xml">mirrors</uri>. The Installation CDs are located in |
12316 |
the <path><keyval id="release-dir"/>installcd</path> directory<!-- ; the Package |
12317 |
CDs are located in the <path><keyval id="release-dir"/>packagecd</path> |
12318 |
directory -->. |
12319 |
</p> |
12320 |
|
12321 |
<p> |
12322 |
Inside those directories you'll find ISO files. Those are full CD images which |
12323 |
you can write on a CD-R. |
12324 |
</p> |
12325 |
|
12326 |
<p> |
12327 |
In case you wonder if your downloaded file is corrupted or not, you can check |
12328 |
its MD5 checksum and compare it with the MD5 checksum we provide (such as |
12329 |
<path><keyval id="min-cd-name"/>.DIGESTS</path>). You can check the MD5 checksum |
12330 |
with the <c>md5sum</c> tool under Linux/Unix or <uri |
12331 |
link="http://www.etree.org/md5com.html">md5sum</uri> for Windows. |
12332 |
</p> |
12333 |
|
12334 |
<p> |
12335 |
Another way to check the validity of the downloaded file is to use GnuPG to |
12336 |
verify the cryptographic signature that we provide (the file ending with |
12337 |
<path>.asc</path>). Download the signature file and obtain the public key: |
12338 |
</p> |
12339 |
|
12340 |
<pre caption="Obtaining the public key"> |
12341 |
$ <i>gpg --keyserver subkeys.pgp.net --recv-keys 17072058</i> |
12342 |
</pre> |
12343 |
|
12344 |
<p> |
12345 |
Now verify the signature: |
12346 |
</p> |
12347 |
|
12348 |
<pre caption="Verify the cryptographic signature"> |
12349 |
$ <i>gpg --verify <signature file> <downloaded iso></i> |
12350 |
</pre> |
12351 |
|
12352 |
<p> |
12353 |
To burn the downloaded ISO(s), you have to select raw-burning. How you |
12354 |
do this is highly program-dependent. We will discuss <c>cdrecord</c> and |
12355 |
<c>K3B</c> here; more information can be found in our <uri |
12356 |
link="/doc/en/faq.xml#isoburning">Gentoo FAQ</uri>. |
12357 |
</p> |
12358 |
|
12359 |
<ul> |
12360 |
<li> |
12361 |
With cdrecord, you simply type <c>cdrecord dev=/dev/hdc <downloaded |
12362 |
iso></c> (replace <path>/dev/hdc</path> with your CD-RW drive's device |
12363 |
path). |
12364 |
</li> |
12365 |
<li> |
12366 |
With K3B, select <c>Tools</c> > <c>Burn CD Image</c>. Then you can locate |
12367 |
your ISO file within the 'Image to Burn' area. Finally click <c>Start</c>. |
12368 |
</li> |
12369 |
</ul> |
12370 |
|
12371 |
</body> |
12372 |
</subsection> |
12373 |
<subsection> |
12374 |
<title>Booting the Universal Installation CD</title> |
12375 |
<body> |
12376 |
|
12377 |
<p> |
12378 |
Insert the Gentoo Installation CD in the CD-ROM and boot your system. During |
12379 |
startup, press Stop-A to enter OpenBootPROM (OBP). Once you are in the OBP, |
12380 |
boot from the CD-ROM: |
12381 |
</p> |
12382 |
|
12383 |
<pre caption="Booting the Installation CD"> |
12384 |
ok <i>boot cdrom</i> |
12385 |
</pre> |
12386 |
|
12387 |
<p> |
12388 |
You will be greeted by the SILO boot manager (on the Installation CD). You can |
12389 |
hit Enter for more help if you want. Type in <c>gentoo</c> and press enter to |
12390 |
continue booting the system: |
12391 |
</p> |
12392 |
|
12393 |
<pre caption="Continue booting from the Installation CD"> |
12394 |
boot: <i>gentoo</i> |
12395 |
</pre> |
12396 |
|
12397 |
<p> |
12398 |
Once the Installation CD is booted, you will be automatically logged on to the |
12399 |
system. |
12400 |
</p> |
12401 |
|
12402 |
<p> |
12403 |
You should have a root ("#") prompt on the current console. You will also find a |
12404 |
root prompt on the serial console (<path>ttyS0</path>). |
12405 |
</p> |
12406 |
|
12407 |
<p> |
12408 |
Continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
12409 |
</p> |
12410 |
|
12411 |
</body> |
12412 |
</subsection> |
12413 |
<subsection id="hardware"> |
12414 |
<title>Extra Hardware Configuration</title> |
12415 |
<body> |
12416 |
|
12417 |
<p> |
12418 |
If not all hardware is supported out-of-the-box, you will need to load the |
12419 |
appropriate kernel modules. |
12420 |
</p> |
12421 |
|
12422 |
<p> |
12423 |
In the next example we try to load the <c>8139too</c> module (support for |
12424 |
certain kinds of network interfaces): |
12425 |
</p> |
12426 |
|
12427 |
<pre caption="Loading kernel modules"> |
12428 |
# <i>modprobe 8139too</i> |
12429 |
</pre> |
12430 |
|
12431 |
</body> |
12432 |
</subsection> |
12433 |
<subsection id="useraccounts"> |
12434 |
<title>Optional: User Accounts</title> |
12435 |
<body> |
12436 |
|
12437 |
<p> |
12438 |
If you plan on giving other people access to your installation |
12439 |
environment or you want to chat using <c>irssi</c> without root privileges (for |
12440 |
security reasons), you need to create the necessary user accounts and change |
12441 |
the root password. |
12442 |
</p> |
12443 |
|
12444 |
<p> |
12445 |
To change the root password, use the <c>passwd</c> utility: |
12446 |
</p> |
12447 |
|
12448 |
<pre caption="Changing the root password"> |
12449 |
# <i>passwd</i> |
12450 |
New password: <comment>(Enter your new password)</comment> |
12451 |
Re-enter password: <comment>(Re-enter your password)</comment> |
12452 |
</pre> |
12453 |
|
12454 |
<p> |
12455 |
To create a user account, we first enter their credentials, followed by |
12456 |
its password. We use <c>useradd</c> and <c>passwd</c> for these tasks. |
12457 |
In the next example, we create a user called "john". |
12458 |
</p> |
12459 |
|
12460 |
<pre caption="Creating a user account"> |
12461 |
# <i>useradd -m -G users john</i> |
12462 |
# <i>passwd john</i> |
12463 |
New password: <comment>(Enter john's password)</comment> |
12464 |
Re-enter password: <comment>(Re-enter john's password)</comment> |
12465 |
</pre> |
12466 |
|
12467 |
<p> |
12468 |
You can change your user id from root to the newly created user by using |
12469 |
<c>su</c>: |
12470 |
</p> |
12471 |
|
12472 |
<pre caption="Changing user id"> |
12473 |
# <i>su - john</i> |
12474 |
</pre> |
12475 |
|
12476 |
</body> |
12477 |
</subsection> |
12478 |
<subsection> |
12479 |
<title>Optional: Viewing Documentation while Installing</title> |
12480 |
<body> |
12481 |
|
12482 |
<p> |
12483 |
If you want to view the Gentoo Handbook (either from-CD or online) during the |
12484 |
installation, make sure you have created a user account (see <uri |
12485 |
link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to |
12486 |
go to a new terminal and log in. |
12487 |
</p> |
12488 |
|
12489 |
<p> |
12490 |
If you want to view the documentation on the CD you can immediately run |
12491 |
<c>links</c> to read it: |
12492 |
</p> |
12493 |
|
12494 |
<pre caption="Viewing the on-CD documentation"> |
12495 |
# <i>links /mnt/cdrom/docs/handbook/html/index.html</i> |
12496 |
</pre> |
12497 |
|
12498 |
<p> |
12499 |
However, it is preferred that you use the online Gentoo Handbook as it will be |
12500 |
more recent than the one provided on the CD. You can view it using <c>links</c> |
12501 |
as well, but only after having completed the <e>Configuring your Network</e> |
12502 |
chapter (otherwise you won't be able to go on the Internet to view the |
12503 |
document): |
12504 |
</p> |
12505 |
|
12506 |
<pre caption="Viewing the Online Documentation"> |
12507 |
# <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
12508 |
</pre> |
12509 |
|
12510 |
<p> |
12511 |
You can go back to your original terminal by pressing <c>Alt-F1</c>. |
12512 |
</p> |
12513 |
|
12514 |
</body> |
12515 |
</subsection> |
12516 |
<subsection> |
12517 |
<title>Optional: Starting the SSH Daemon</title> |
12518 |
<body> |
12519 |
|
12520 |
<p> |
12521 |
If you want to allow other users to access your computer during the |
12522 |
Gentoo installation (perhaps because those users are going to help you |
12523 |
install Gentoo, or even do it for you), you need to create a user |
12524 |
account for them and perhaps even provide them with your root password |
12525 |
(<e>only</e> do that <e>if</e> you <b>fully trust</b> that user). |
12526 |
</p> |
12527 |
|
12528 |
<p> |
12529 |
To fire up the SSH daemon, execute the following command: |
12530 |
</p> |
12531 |
|
12532 |
<pre caption="Starting the SSH daemon"> |
12533 |
# <i>/etc/init.d/sshd start</i> |
12534 |
</pre> |
12535 |
|
12536 |
<p> |
12537 |
To be able to use sshd, you first need to set up your networking. Continue with |
12538 |
the chapter on <uri link="?part=1&chap=3">Configuring your Network</uri>. |
12539 |
</p> |
12540 |
|
12541 |
</body> |
12542 |
</subsection> |
12543 |
</section> |
12544 |
</sections> |
12545 |
|
12546 |
|
12547 |
|
12548 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-stage.xml |
12549 |
|
12550 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-stage.xml?rev=1.1&view=markup |
12551 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-stage.xml?rev=1.1&content-type=text/plain |
12552 |
|
12553 |
Index: hb-install-stage.xml |
12554 |
=================================================================== |
12555 |
<?xml version='1.0' encoding='UTF-8'?> |
12556 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
12557 |
|
12558 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
12559 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
12560 |
|
12561 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-stage.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
12562 |
|
12563 |
<sections> |
12564 |
|
12565 |
<version>9.0</version> |
12566 |
<date>2007-05-07</date> |
12567 |
|
12568 |
<section> |
12569 |
<title>Installing a Stage Tarball</title> |
12570 |
<subsection> |
12571 |
<title>Setting the Date/Time Right</title> |
12572 |
<body> |
12573 |
|
12574 |
<p> |
12575 |
Before you continue you need to check your date/time and update it. A |
12576 |
misconfigured clock may lead to strange results in the future! |
12577 |
</p> |
12578 |
|
12579 |
<p> |
12580 |
To verify the current date/time, run <c>date</c>: |
12581 |
</p> |
12582 |
|
12583 |
<pre caption="Verifying the date/time"> |
12584 |
# <i>date</i> |
12585 |
Fri Mar 29 16:21:18 UTC 2005 |
12586 |
</pre> |
12587 |
|
12588 |
<p> |
12589 |
If the date/time displayed is wrong, update it using the <c>date |
12590 |
MMDDhhmmYYYY</c> syntax (<b>M</b>onth, <b>D</b>ay, <b>h</b>our, <b>m</b>inute |
12591 |
and <b>Y</b>ear). At this stage, you should use UTC time. You will be able to |
12592 |
define your timezone later on. For instance, to set the date to March 29th, |
12593 |
16:21 in the year 2005: |
12594 |
</p> |
12595 |
|
12596 |
<pre caption="Setting the UTC date/time"> |
12597 |
# <i>date 032916212005</i> |
12598 |
</pre> |
12599 |
|
12600 |
</body> |
12601 |
</subsection> |
12602 |
</section> |
12603 |
<section id="available"> |
12604 |
<title>Default: Using a Stage from the Installation CD</title> |
12605 |
<subsection> |
12606 |
<title>Extracting the Stage Tarball</title> |
12607 |
<body> |
12608 |
|
12609 |
<p> |
12610 |
The stages on the CD reside in the <path>/mnt/cdrom/stages</path> directory. To |
12611 |
see a listing of available stages, use <c>ls</c>: |
12612 |
</p> |
12613 |
|
12614 |
<pre caption="List all available stages"> |
12615 |
# <i>ls /mnt/cdrom/stages</i> |
12616 |
</pre> |
12617 |
|
12618 |
<p> |
12619 |
If the system replies with an error, you may need to mount the CD-ROM first: |
12620 |
</p> |
12621 |
|
12622 |
<pre caption="Mounting the CD-ROM"> |
12623 |
# <i>ls /mnt/cdrom/stages</i> |
12624 |
ls: /mnt/cdrom/stages: No such file or directory |
12625 |
# <i>mount /dev/cdroms/cdrom0 /mnt/cdrom</i> |
12626 |
# <i>ls /mnt/cdrom/stages</i> |
12627 |
</pre> |
12628 |
|
12629 |
<p> |
12630 |
Now go into your Gentoo mountpoint (usually <path>/mnt/gentoo</path>): |
12631 |
</p> |
12632 |
|
12633 |
<pre caption="Changing directory to /mnt/gentoo"> |
12634 |
# <i>cd /mnt/gentoo</i> |
12635 |
</pre> |
12636 |
|
12637 |
<p> |
12638 |
We will now extract the stage tarball of your choice. We will do this with the |
12639 |
<c>tar</c> tool. Make sure you use the same options (<c>xvjpf</c>)! The <c>x</c> |
12640 |
stands for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what happens |
12641 |
during the extraction process (this one is optional), the <c>j</c> for |
12642 |
<e>Decompress with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and |
12643 |
the <c>f</c> to denote that we want to extract a file, not standard input. In |
12644 |
the next example, we extract the stage tarball <path><keyval |
12645 |
id="stage3"/></path>. Be sure to substitute the tarball filename with your |
12646 |
stage. |
12647 |
</p> |
12648 |
|
12649 |
<pre caption="Extracting the stage tarball"> |
12650 |
# <i>tar xvjpf /mnt/cdrom/stages/<keyval id="stage3"/></i> |
12651 |
</pre> |
12652 |
|
12653 |
<p> |
12654 |
Now that the stage is installed, continue with <uri |
12655 |
link="#installing_portage">Installing Portage</uri>. |
12656 |
</p> |
12657 |
|
12658 |
</body> |
12659 |
</subsection> |
12660 |
<subsection> |
12661 |
<title>Unpacking the Stage Tarball</title> |
12662 |
<body> |
12663 |
|
12664 |
<p> |
12665 |
Now unpack your downloaded stage onto your system. We use <c>tar</c> to proceed |
12666 |
as it is the easiest method: |
12667 |
</p> |
12668 |
|
12669 |
<pre caption="Unpacking the stage"> |
12670 |
# <i>tar xvjpf stage3-*.tar.bz2</i> |
12671 |
</pre> |
12672 |
|
12673 |
<p> |
12674 |
Make sure that you use the same options (<c>xvjpf</c>). The <c>x</c> stands |
12675 |
for <e>Extract</e>, the <c>v</c> for <e>Verbose</e> to see what happens during |
12676 |
the extraction process (this one is optional), the <c>j</c> for <e>Decompress |
12677 |
with bzip2</e>, the <c>p</c> for <e>Preserve permissions</e> and the <c>f</c> |
12678 |
to denote that we want to extract a file, not standard input. |
12679 |
</p> |
12680 |
|
12681 |
<p> |
12682 |
Now that the stage is installed, continue with <uri |
12683 |
link="#installing_portage">Installing Portage</uri>. |
12684 |
</p> |
12685 |
|
12686 |
</body> |
12687 |
</subsection> |
12688 |
</section> |
12689 |
<section id="installing_portage"> |
12690 |
<title>Installing Portage</title> |
12691 |
<subsection> |
12692 |
<title>Unpacking a Portage Snapshot</title> |
12693 |
<body> |
12694 |
|
12695 |
<p> |
12696 |
You now have to install a Portage snapshot, a collection of files that inform |
12697 |
Portage what software titles you can install, which profiles are available, etc. |
12698 |
</p> |
12699 |
|
12700 |
</body> |
12701 |
</subsection> |
12702 |
<subsection id="installing_from_InstallCD"> |
12703 |
<title>Unpack the Snapshot from the Installation CD</title> |
12704 |
<body> |
12705 |
|
12706 |
<p> |
12707 |
To install the snapshot, take a look inside <path>/mnt/cdrom/snapshots/</path> |
12708 |
to see what snapshot is available: |
12709 |
</p> |
12710 |
|
12711 |
<pre caption="Checking the /mnt/cdrom/snapshots content"> |
12712 |
# <i>ls /mnt/cdrom/snapshots</i> |
12713 |
</pre> |
12714 |
|
12715 |
<p> |
12716 |
Now extract the snapshot using the following construct. Again, make sure you |
12717 |
use the correct options with <c>tar</c>. Also, the <c>-C</c> is with a capital |
12718 |
<c>C</c>, not <c>c</c>. In the next example we use |
12719 |
<path>portage-<date>.tar.bz2</path> as the snapshot filename. Be sure to |
12720 |
substitute with the name of the snapshot that is on your Installation CD. |
12721 |
</p> |
12722 |
|
12723 |
<pre caption="Extracting a Portage snapshot"> |
12724 |
# <i>tar xvjf /mnt/cdrom/snapshots/portage-<date>.tar.bz2 -C /mnt/gentoo/usr</i> |
12725 |
</pre> |
12726 |
|
12727 |
</body> |
12728 |
</subsection> |
12729 |
<subsection id="copysources"> |
12730 |
<title>Copy Source Code Archives</title> |
12731 |
<body> |
12732 |
|
12733 |
<p> |
12734 |
You also need to copy over all source code from the Universal Installation CD. |
12735 |
</p> |
12736 |
|
12737 |
<pre caption="Copy over source code"> |
12738 |
# <i>mkdir /mnt/gentoo/usr/portage/distfiles</i> |
12739 |
# <i>cp /mnt/cdrom/distfiles/* /mnt/gentoo/usr/portage/distfiles/</i> |
12740 |
</pre> |
12741 |
|
12742 |
</body> |
12743 |
</subsection> |
12744 |
</section> |
12745 |
<section id="compile_options"> |
12746 |
<title>Configuring the Compile Options</title> |
12747 |
<subsection> |
12748 |
<title>Introduction</title> |
12749 |
<body> |
12750 |
|
12751 |
<p> |
12752 |
To optimize Gentoo, you can set a couple of variables which impact Portage |
12753 |
behaviour. All those variables can be set as environment variables (using |
12754 |
<c>export</c>) but that isn't permanent. To keep your settings, Portage provides |
12755 |
you with <path>/etc/make.conf</path>, a configuration file for Portage. It is |
12756 |
this file we will edit now. |
12757 |
</p> |
12758 |
|
12759 |
<note> |
12760 |
A commented listing of all possible variables can be found in |
12761 |
<path>/mnt/gentoo/etc/make.conf.example</path>. For a successful Gentoo |
12762 |
installation you'll only need to set the variables which are mentioned beneath. |
12763 |
</note> |
12764 |
|
12765 |
<p> |
12766 |
Fire up your favorite editor (in this guide we use <c>nano</c>) so we can alter |
12767 |
the optimization variables we will discuss hereafter. |
12768 |
</p> |
12769 |
|
12770 |
<pre caption="Opening /etc/make.conf"> |
12771 |
# <i>nano -w /mnt/gentoo/etc/make.conf</i> |
12772 |
</pre> |
12773 |
|
12774 |
<p> |
12775 |
As you probably noticed, the <path>make.conf.example</path> file is |
12776 |
structured in a generic way: commented lines start with "#", other lines define |
12777 |
variables using the <c>VARIABLE="content"</c> syntax. The <path>make.conf</path> |
12778 |
file uses the same syntax. Several of those variables are discussed next. |
12779 |
</p> |
12780 |
|
12781 |
<warn> |
12782 |
Do not make any modifications to the USE variable if you are performing a stage3 |
12783 |
with GRP installation. You can alter the USE variable after having installed the |
12784 |
packages you want. Gremlins are known to attack your system if you ignore this |
12785 |
warning! |
12786 |
</warn> |
12787 |
|
12788 |
</body> |
12789 |
</subsection> |
12790 |
<subsection> |
12791 |
<title>CHOST</title> |
12792 |
<body> |
12793 |
|
12794 |
<p> |
12795 |
The <c>CHOST</c> variable declares the target build host for your system. This |
12796 |
variable should already be set to the correct value. <brite>Do not edit |
12797 |
it</brite> as that might break your system. If the <c>CHOST</c> variable does |
12798 |
not look correct to you, you might be using the wrong stage3 tarball. |
12799 |
</p> |
12800 |
|
12801 |
</body> |
12802 |
</subsection> |
12803 |
<subsection> |
12804 |
<title>CFLAGS and CXXFLAGS</title> |
12805 |
<body> |
12806 |
|
12807 |
<p> |
12808 |
The <c>CFLAGS</c> and <c>CXXFLAGS</c> variables define the optimization flags |
12809 |
for the <c>gcc</c> C and C++ compiler respectively. Although we define those |
12810 |
generally here, you will only have maximum performance if you optimize these |
12811 |
flags for each program separately. The reason for this is because every program |
12812 |
is different. |
12813 |
</p> |
12814 |
|
12815 |
<p> |
12816 |
In <path>make.conf</path> you should define the optimization flags you think |
12817 |
will make your system the most responsive <e>generally</e>. Don't place |
12818 |
experimental settings in this variable; too much optimization can make |
12819 |
programs behave bad (crash, or even worse, malfunction). |
12820 |
</p> |
12821 |
|
12822 |
<p> |
12823 |
We cannot explain all possible optimization options here, but if you want to |
12824 |
investigate them all, read the <uri link="http://gcc.gnu.org/onlinedocs/">GNU |
12825 |
Online Manual(s)</uri> or the <c>gcc</c> info page (<c>info gcc</c> -- only |
12826 |
works on a working Linux system). For common optimizations and architecture |
12827 |
specific settings, please read <path>/etc/make.conf.example</path>. This |
12828 |
file also contains lots of examples and information; don't forget to read it |
12829 |
too. |
12830 |
</p> |
12831 |
|
12832 |
<p> |
12833 |
A first setting is the <c>-march=</c> or <c>-mcpu=</c> flag, which specifies |
12834 |
the name of the target architecture. Possible options are described in the |
12835 |
<path>make.conf.example</path> file (as comments). |
12836 |
</p> |
12837 |
|
12838 |
<p> |
12839 |
A second one is the <c>-O</c> flag (that is a capital O, not a zero), |
12840 |
which specifies the <c>gcc</c> optimization |
12841 |
class flag. Possible classes are <c>s</c> (for size-optimized), |
12842 |
<c>0</c> (zero - for no optimizations), <c>1</c>, <c>2</c> or <c>3</c> for more |
12843 |
speed-optimization flags (every class has the same flags as the one before, plus |
12844 |
some extras). <c>-O2</c> is the recommended default. |
12845 |
</p> |
12846 |
|
12847 |
<p> |
12848 |
Another popular optimization flag is <c>-pipe</c> (use pipes rather than |
12849 |
temporary files for communication between the various stages of compilation). |
12850 |
It has no impact on the generated code. |
12851 |
</p> |
12852 |
|
12853 |
<p> |
12854 |
Using <c>-fomit-frame-pointer</c> (which doesn't keep the frame pointer in a |
12855 |
register for functions that don't need one) might have serious repercussions on |
12856 |
the debugging of applications. |
12857 |
</p> |
12858 |
|
12859 |
<p> |
12860 |
When you define the <c>CFLAGS</c> and <c>CXXFLAGS</c>, you should combine |
12861 |
several optimization flags. The default values contained in the stage3 archive |
12862 |
you unpacked should be good enough. The following example is just an example: |
12863 |
</p> |
12864 |
|
12865 |
<pre caption="Defining the CFLAGS and CXXFLAGS variable"> |
12866 |
CFLAGS="<keyval id="CFLAGS"/>" |
12867 |
<comment># Use the same settings for both variables</comment> |
12868 |
CXXFLAGS="${CFLAGS}" |
12869 |
</pre> |
12870 |
|
12871 |
</body> |
12872 |
</subsection> |
12873 |
<subsection> |
12874 |
<title>MAKEOPTS</title> |
12875 |
<body> |
12876 |
|
12877 |
<p> |
12878 |
With <c>MAKEOPTS</c> you define how many parallel compilations should occur when |
12879 |
you install a package. A good choice is the number of CPUs in your system plus |
12880 |
one, but this guideline isn't always perfect. |
12881 |
</p> |
12882 |
|
12883 |
<pre caption="MAKEOPTS for a regular, 1-CPU system"> |
12884 |
MAKEOPTS="-j2" |
12885 |
</pre> |
12886 |
|
12887 |
</body> |
12888 |
</subsection> |
12889 |
<subsection> |
12890 |
<title>Ready, Set, Go!</title> |
12891 |
<body> |
12892 |
|
12893 |
<p> |
12894 |
Update your <path>/mnt/gentoo/etc/make.conf</path> to your own preference and |
12895 |
save (<c>nano</c> users would hit <c>Ctrl-X</c>). You are now ready to continue |
12896 |
with <uri link="?part=1&chap=6">Chrooting into the Gentoo Base System</uri>. |
12897 |
</p> |
12898 |
|
12899 |
</body> |
12900 |
</subsection> |
12901 |
</section> |
12902 |
</sections> |
12903 |
|
12904 |
|
12905 |
|
12906 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-system.xml |
12907 |
|
12908 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-system.xml?rev=1.1&view=markup |
12909 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-system.xml?rev=1.1&content-type=text/plain |
12910 |
|
12911 |
Index: hb-install-system.xml |
12912 |
=================================================================== |
12913 |
<?xml version='1.0' encoding='UTF-8'?> |
12914 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
12915 |
|
12916 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
12917 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
12918 |
|
12919 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-system.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
12920 |
|
12921 |
<sections> |
12922 |
|
12923 |
<version>9.0</version> |
12924 |
<date>2007-05-07</date> |
12925 |
|
12926 |
<section> |
12927 |
<title>Chrooting</title> |
12928 |
<subsection> |
12929 |
<title>Mounting the /proc and /dev Filesystems</title> |
12930 |
<body> |
12931 |
|
12932 |
<p> |
12933 |
Mount the <path>/proc</path> filesystem on <path>/mnt/gentoo/proc</path> to |
12934 |
allow the installation to use the kernel-provided information within the |
12935 |
chrooted environment, and then mount-bind the <path>/dev</path> filesystem. |
12936 |
</p> |
12937 |
|
12938 |
<pre caption="Mounting /proc and /dev"> |
12939 |
# <i>mount -t proc none /mnt/gentoo/proc</i> |
12940 |
# <i>mount -o bind /dev /mnt/gentoo/dev</i> |
12941 |
</pre> |
12942 |
|
12943 |
</body> |
12944 |
</subsection> |
12945 |
<subsection> |
12946 |
<title>Entering the new Environment</title> |
12947 |
<body> |
12948 |
|
12949 |
<p> |
12950 |
Now that all partitions are initialized and the base environment |
12951 |
installed, it is time to enter our new installation environment by |
12952 |
<e>chrooting</e> into it. This means that we change from the current |
12953 |
installation environment to your installation system (namely the |
12954 |
initialized partitions). |
12955 |
</p> |
12956 |
|
12957 |
<p> |
12958 |
This chrooting is done in three steps. First we will change the root |
12959 |
from <path>/</path> (on the installation medium) to <path>/mnt/gentoo</path> |
12960 |
(on your partitions) using <c>chroot</c>. Then we will create a new environment |
12961 |
using <c>env-update</c>, which essentially creates environment variables. |
12962 |
Finally, we load those variables into memory using <c>source</c>. |
12963 |
</p> |
12964 |
|
12965 |
<pre caption="Chrooting into the new environment"> |
12966 |
# <i>chroot /mnt/gentoo /bin/bash</i> |
12967 |
# <i>env-update</i> |
12968 |
>>> Regenerating /etc/ld.so.cache... |
12969 |
# <i>source /etc/profile</i> |
12970 |
# <i>export PS1="(chroot) $PS1"</i> |
12971 |
</pre> |
12972 |
|
12973 |
<p> |
12974 |
Congratulations! You are now inside your own Gentoo Linux environment. |
12975 |
Of course it is far from finished, which is why the installation still |
12976 |
has some sections left :-) |
12977 |
</p> |
12978 |
|
12979 |
</body> |
12980 |
</subsection> |
12981 |
<subsection> |
12982 |
<title>Creating the Portage cache</title> |
12983 |
<body> |
12984 |
|
12985 |
<p> |
12986 |
You have already installed the Portage tree, but you should now build the |
12987 |
Portage cache to speed up future emerges. <c>emerge --metadata</c> does this |
12988 |
for you. |
12989 |
</p> |
12990 |
|
12991 |
<pre caption="Creating the Portage cache"> |
12992 |
# <i>emerge --metadata</i> |
12993 |
</pre> |
12994 |
|
12995 |
</body> |
12996 |
</subsection> |
12997 |
</section> |
12998 |
|
12999 |
<section id="configure_USE"> |
13000 |
<title>Configuring the USE Variable</title> |
13001 |
<subsection> |
13002 |
<title>What is the USE Variable?</title> |
13003 |
<body> |
13004 |
|
13005 |
<p> |
13006 |
<c>USE</c> is one of the most powerful variables Gentoo provides to its users. |
13007 |
Several programs can be compiled with or without optional support for certain |
13008 |
items. For instance, some programs can be compiled with gtk-support, or with |
13009 |
qt-support. Others can be compiled with or without SSL support. Some programs |
13010 |
can even be compiled with framebuffer support (svgalib) instead of X11 support |
13011 |
(X-server). |
13012 |
</p> |
13013 |
|
13014 |
<p> |
13015 |
Most distributions compile their packages with support for as much as possible, |
13016 |
increasing the size of the programs and startup time, not to mention an enormous |
13017 |
amount of dependencies. With Gentoo you can define what options a package |
13018 |
should be compiled with. This is where <c>USE</c> comes into play. |
13019 |
</p> |
13020 |
|
13021 |
<p> |
13022 |
In the <c>USE</c> variable you define keywords which are mapped onto |
13023 |
compile-options. For instance, <e>ssl</e> will compile ssl-support in the |
13024 |
programs that support it. <e>-X</e> will remove X-server support (note the |
13025 |
minus sign in front). <e>gnome gtk -kde -qt3 -qt4</e> will compile your |
13026 |
programs with gnome (and gtk) support, and not with kde (and qt) support, |
13027 |
making your system fully tweaked for GNOME. |
13028 |
</p> |
13029 |
|
13030 |
</body> |
13031 |
</subsection> |
13032 |
<subsection> |
13033 |
<title>Modifying the USE Variable</title> |
13034 |
<body> |
13035 |
|
13036 |
<warn> |
13037 |
Do not make any modifications to the USE variable yet if you plan to use our |
13038 |
prebuilt packages (GRP set). You can alter the USE variable after having |
13039 |
installed the packages you want. Gremlins are known to attack your system |
13040 |
if you ignore this warning! |
13041 |
</warn> |
13042 |
|
13043 |
<p> |
13044 |
The default <c>USE</c> settings are placed in |
13045 |
<path>/etc/make.profile/make.defaults</path>. What you place in |
13046 |
<path>/etc/make.conf</path> is calculated against these defaults settings. If |
13047 |
you add something to the <c>USE</c> setting, it is added to the default list. If |
13048 |
you remove something from the <c>USE</c> setting (by placing a minus sign in |
13049 |
front of it) it is removed from the default list (if it was in the default list |
13050 |
at all). <e>Never</e> alter anything inside the <path>/etc/make.profile</path> |
13051 |
directory; it gets overwritten when you update Portage! |
13052 |
</p> |
13053 |
|
13054 |
<p> |
13055 |
A full description on <c>USE</c> can be found in the second part of the Gentoo |
13056 |
Handbook, <uri link="?part=2&chap=2">USE flags</uri>. A full description on |
13057 |
the available USE flags can be found on your system in |
13058 |
<path>/usr/portage/profiles/use.desc</path>. |
13059 |
</p> |
13060 |
|
13061 |
<pre caption="Viewing available USE flags"> |
13062 |
# <i>less /usr/portage/profiles/use.desc</i> |
13063 |
<comment>(You can scroll using your arrow keys, exit by pressing 'q')</comment> |
13064 |
</pre> |
13065 |
|
13066 |
<p> |
13067 |
As an example we show a <c>USE</c> setting for a KDE-based system with DVD, ALSA |
13068 |
and CD Recording support: |
13069 |
</p> |
13070 |
|
13071 |
<pre caption="Opening /etc/make.conf"> |
13072 |
# <i>nano -w /etc/make.conf</i> |
13073 |
</pre> |
13074 |
|
13075 |
<pre caption="USE setting"> |
13076 |
USE="-gtk -gnome qt3 qt4 kde dvd alsa cdr" |
13077 |
</pre> |
13078 |
|
13079 |
</body> |
13080 |
</subsection> |
13081 |
</section> |
13082 |
</sections> |
13083 |
|
13084 |
|
13085 |
|
13086 |
1.1 xml/htdocs/doc/en/handbook/2008.0/hb-install-tools.xml |
13087 |
|
13088 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-tools.xml?rev=1.1&view=markup |
13089 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-tools.xml?rev=1.1&content-type=text/plain |
13090 |
|
13091 |
Index: hb-install-tools.xml |
13092 |
=================================================================== |
13093 |
<?xml version='1.0' encoding='UTF-8'?> |
13094 |
<!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
13095 |
|
13096 |
<!-- The content of this document is licensed under the CC-BY-SA license --> |
13097 |
<!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
13098 |
|
13099 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/hb-install-tools.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
13100 |
|
13101 |
<sections> |
13102 |
|
13103 |
<version>9.0</version> |
13104 |
<date>2007-05-07</date> |
13105 |
|
13106 |
<section> |
13107 |
<title>System Logger</title> |
13108 |
<body> |
13109 |
|
13110 |
<p> |
13111 |
Some tools are missing from the <e>stage3</e> archive because several packages |
13112 |
provide the same functionality. It is now up to you to choose which ones you |
13113 |
want to install. |
13114 |
</p> |
13115 |
|
13116 |
<p> |
13117 |
The first tool you need to decide on has to provide logging facilities for your |
13118 |
system. Unix and Linux have an excellent history of logging capabilities -- if |
13119 |
you want you can log everything that happens on your system in logfiles. This |
13120 |
happens through the <e>system logger</e>. |
13121 |
</p> |
13122 |
|
13123 |
<p> |
13124 |
Gentoo offers several system loggers to choose from. There are <c>sysklogd</c>, |
13125 |
which is the traditional set of system logging daemons, <c>syslog-ng</c>, an |
13126 |
advanced system logger, and <c>metalog</c> which is a highly-configurable |
13127 |
system logger. Others might be available through Portage as well - our number of |
13128 |
available packages increases on a daily basis. |
13129 |
</p> |
13130 |
|
13131 |
<p> |
13132 |
If you plan on using <c>sysklogd</c> or <c>syslog-ng</c> you might want to |
13133 |
install <c>logrotate</c> afterwards as those system loggers don't provide any |
13134 |
rotation mechanism for the log files. |
13135 |
</p> |
13136 |
|
13137 |
<!-- |
13138 |
Even though syslog-ng does not rotate the logs, it does conform to the syslog |
13139 |
RFC (http://www.faqs.org/rfcs/rfc3164.html) and is far more powerful than most other system loggers. That and some architectures really prefer syslog-ng |
13140 |
above others (metalog for instance doesn't work nicely with sparc all the |
13141 |
time). |
13142 |
--> |
13143 |
|
13144 |
<p> |
13145 |
To install the system logger of your choice, <c>emerge</c> it and have it added |
13146 |
to the default runlevel using <c>rc-update</c>. The following example installs |
13147 |
<c>syslog-ng</c>. Of course substitute with your system logger: |
13148 |
</p> |
13149 |
|
13150 |
<pre caption="Installing a system logger"> |
13151 |
# <i>emerge syslog-ng</i> |
13152 |
# <i>rc-update add syslog-ng default</i> |
13153 |
</pre> |
13154 |
|
13155 |
</body> |
13156 |
</section> |
13157 |
<section> |
13158 |
<title>Optional: Cron Daemon</title> |
13159 |
<body> |
13160 |
|
13161 |
<p> |
13162 |
Next is the cron daemon. Although it is optional and not required for your |
13163 |
system, it is wise to install one. But what is a cron daemon? A cron daemon |
13164 |
executes scheduled commands. It is very handy if you need to execute some |
13165 |
command regularly (for instance daily, weekly or monthly). |
13166 |
</p> |
13167 |
|
13168 |
<p> |
13169 |
We only provide <c>vixie-cron</c> for networkless installations. If you want |
13170 |
another cron daemon you can wait and install it later on. |
13171 |
</p> |
13172 |
|
13173 |
<pre caption="Installing a cron daemon"> |
13174 |
# <i>emerge vixie-cron</i> |
13175 |
# <i>rc-update add vixie-cron default</i> |
13176 |
</pre> |
13177 |
|
13178 |
</body> |
13179 |
</section> |
13180 |
<section> |
13181 |
<title>Optional: File Indexing</title> |
13182 |
<body> |
13183 |
|
13184 |
<p> |
13185 |
If you want to index your system's files so you are able to quickly |
13186 |
locate them using the <c>locate</c> tool, you need to install |
13187 |
<c>sys-apps/slocate</c>. |
13188 |
</p> |
13189 |
|
13190 |
<pre caption="Installing slocate"> |
13191 |
# <i>emerge slocate</i> |
13192 |
</pre> |
13193 |
|
13194 |
</body> |
13195 |
</section> |
13196 |
<section> |
13197 |
<title>File System Tools</title> |
13198 |
<subsection> |
13199 |
<body> |
13200 |
|
13201 |
<p> |
13202 |
Depending on what file systems you are using, you need to install the necessary |
13203 |
file system utilities (for checking the filesystem integrity, creating |
13204 |
additional file systems etc.). |
13205 |
</p> |
13206 |
|
13207 |
<p> |
13208 |
The following table lists the tools you need to install if you use a certain |
13209 |
file system. Not all filesystems are available for each and every architecture |
13210 |
though. |
13211 |
</p> |
13212 |
|
13213 |
<table> |
13214 |
<tr> |
13215 |
<th>File System</th> |
13216 |
<th>Tool</th> |
13217 |
<th>Install Command</th> |
13218 |
</tr> |
13219 |
<tr> |
13220 |
<ti>XFS</ti> |
13221 |
<ti>xfsprogs</ti> |
13222 |
<ti><c>emerge xfsprogs</c></ti> |
13223 |
</tr> |
13224 |
<tr> |
13225 |
<ti>ReiserFS</ti> |
13226 |
<ti>reiserfsprogs</ti> |
13227 |
<ti><c>emerge reiserfsprogs</c></ti> |
13228 |
</tr> |
13229 |
<tr> |
13230 |
<ti>JFS</ti> |
13231 |
<ti>jfsutils</ti> |
13232 |
<ti><c>emerge jfsutils</c></ti> |
13233 |
</tr> |
13234 |
</table> |
13235 |
|
13236 |
<p> |
13237 |
If you are an EVMS user, you need to install <c>emvs</c>: |
13238 |
</p> |
13239 |
|
13240 |
<pre caption="Installing EVMS utilities"> |
13241 |
# <i>USE="-gtk" emerge evms</i> |
13242 |
</pre> |
13243 |
|
13244 |
<p> |
13245 |
The <c>USE="-gtk"</c> will prevent the installation of dependencies. If you |
13246 |
want to enable the <c>evms</c> graphical tools, you can recompile <c>evms</c> |
13247 |
later on. |
13248 |
</p> |
13249 |
|
13250 |
</body> |
13251 |
</subsection> |
13252 |
<subsection test="contains('PPC PPC64', func:keyval('arch'))"> |
13253 |
<title>Optional: RAID utilities for IBM hardware</title> |
13254 |
<body> |
13255 |
|
13256 |
<p> |
13257 |
If you are using SCSI RAID on a POWER5-based system, you should consider |
13258 |
installing the <c>iprutils</c> which will allow you to work with the RAID disk |
13259 |
array, get status on the disks in the arrays, and update microcode among other |
13260 |
functions. |
13261 |
</p> |
13262 |
|
13263 |
<pre caption="Installing iprutils"> |
13264 |
# <i>emerge iprutils</i> |
13265 |
</pre> |
13266 |
|
13267 |
</body> |
13268 |
</subsection> |
13269 |
</section> |
13270 |
<section> |
13271 |
<title>Networking Tools</title> |
13272 |
<subsection> |
13273 |
<body> |
13274 |
|
13275 |
<p> |
13276 |
If you don't require any additional networking-related tools (such as <c>ppp</c> |
13277 |
or a dhcp client) continue with <uri link="?part=1&chap=10">Configuring the |
13278 |
Bootloader</uri>. |
13279 |
</p> |
13280 |
|
13281 |
</body> |
13282 |
</subsection> |
13283 |
<subsection> |
13284 |
<title>Optional: Installing a DHCP Client</title> |
13285 |
<body> |
13286 |
|
13287 |
<p> |
13288 |
If you require Gentoo to automatically obtain an IP address for your network |
13289 |
interface(s), you need to install <c>dhcpcd</c> (or any other DHCP Client) |
13290 |
on your system. If you don't do this now, you might not be able to connect |
13291 |
to the internet after the installation! |
13292 |
</p> |
13293 |
|
13294 |
<pre caption="Installing dhcpcd"> |
13295 |
# <i>emerge dhcpcd</i> |
13296 |
</pre> |
13297 |
|
13298 |
</body> |
13299 |
</subsection> |
13300 |
<subsection> |
13301 |
<title>Optional: Installing a PPPoE Client</title> |
13302 |
<body> |
13303 |
|
13304 |
<p> |
13305 |
If you need <c>ppp</c> to connect to the net, you need to install it. |
13306 |
</p> |
13307 |
|
13308 |
<pre caption="Installing ppp"> |
13309 |
# <i>emerge ppp</i> |
13310 |
</pre> |
13311 |
|
13312 |
<p> |
13313 |
Now continue with <uri link="?part=1&chap=10">Configuring the |
13314 |
Bootloader</uri>. |
13315 |
</p> |
13316 |
|
13317 |
</body> |
13318 |
</subsection> |
13319 |
</section> |
13320 |
</sections> |
13321 |
|
13322 |
|
13323 |
|
13324 |
1.1 xml/htdocs/doc/en/handbook/2008.0/index.xml |
13325 |
|
13326 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/index.xml?rev=1.1&view=markup |
13327 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/xml/htdocs/doc/en/handbook/2008.0/index.xml?rev=1.1&content-type=text/plain |
13328 |
|
13329 |
Index: index.xml |
13330 |
=================================================================== |
13331 |
<?xml version='1.0' encoding="UTF-8"?> |
13332 |
<!DOCTYPE guide SYSTEM "/dtd/guide.dtd"> |
13333 |
|
13334 |
<!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/2008.0/index.xml,v 1.1 2008/02/27 22:46:58 nightmorph Exp $ --> |
13335 |
|
13336 |
<guide link="/doc/en/handbook/2007.1/index.xml"> |
13337 |
<title>Gentoo 2007.1 Networkless Handbook</title> |
13338 |
|
13339 |
<author title="Author"> |
13340 |
<mail link="swift"/> |
13341 |
</author> |
13342 |
|
13343 |
<abstract> |
13344 |
The Gentoo 2007.1 Networkless Handbook is an effort to centralize documentation |
13345 |
into a coherent handbook. It contains the networkless installation instructions |
13346 |
for the 2007.1 release and parts on working with Gentoo and Portage. |
13347 |
</abstract> |
13348 |
|
13349 |
<license/> |
13350 |
|
13351 |
<version>9.0</version> |
13352 |
<date>2007-06-06</date> |
13353 |
|
13354 |
<chapter> |
13355 |
<title>The Gentoo Linux 2007.1 Networkless Handbooks</title> |
13356 |
|
13357 |
<section> |
13358 |
<title>Available languages</title> |
13359 |
<body> |
13360 |
|
13361 |
<p> |
13362 |
The Gentoo Linux 2007.1 Networkless Handbook is available in the following |
13363 |
languages: |
13364 |
</p> |
13365 |
|
13366 |
<p> |
13367 |
<uri link="/doc/en/handbook/2007.1/">English</uri> | |
13368 |
<uri link="/doc/id/handbook/2007.1/">Indonesian</uri> | |
13369 |
<uri link="/doc/it/handbook/2007.1/">Italian</uri> | |
13370 |
<uri link="/doc/pl/handbook/2007.1/">Polish</uri> | |
13371 |
<uri link="/doc/zh_cn/handbook/2007.1/">Simplified Chinese</uri> |
13372 |
</p> |
13373 |
|
13374 |
</body> |
13375 |
</section> |
13376 |
<section> |
13377 |
<title>Introduction</title> |
13378 |
<body> |
13379 |
|
13380 |
<p> |
13381 |
Welcome to the Gentoo Linux 2007.1 Networkless Handbooks. These handbooks are |
13382 |
released together with the Gentoo Linux releases and contain the necessary |
13383 |
installation instructions to install Gentoo Linux 2007.1 <brite>without an |
13384 |
internet connection.</brite> |
13385 |
</p> |
13386 |
|
13387 |
<p> |
13388 |
However, if you want to install Gentoo Linux using the latest versions of all |
13389 |
available packages, please use the Installation Instructions in the <uri |
13390 |
link="/doc/en/handbook/">Gentoo Linux Handbook</uri> for your architecture. |
13391 |
</p> |
13392 |
|
13393 |
</body> |
13394 |
</section> |
13395 |
</chapter> |
13396 |
<chapter> |
13397 |
<title>View the Handbook</title> |
13398 |
<section> |
13399 |
<body> |
13400 |
|
13401 |
<table> |
13402 |
<tr> |
13403 |
<th>Format</th> |
13404 |
<th>Description</th> |
13405 |
<th>Links</th> |
13406 |
</tr> |
13407 |
<tr> |
13408 |
<ti>HTML</ti> |
13409 |
<ti>One page per chapter, perfect for online viewing</ti> |
13410 |
<ti> |
13411 |
<uri link="handbook-x86.xml">x86</uri>, |
13412 |
<uri link="handbook-sparc.xml">sparc</uri>, |
13413 |
<uri link="handbook-amd64.xml">amd64</uri>, |
13414 |
<uri link="handbook-ppc.xml">ppc</uri>, |
13415 |
<uri link="handbook-ppc64.xml">ppc64</uri>, |
13416 |
<uri link="handbook-hppa.xml">hppa</uri> |
13417 |
</ti> |
13418 |
</tr> |
13419 |
<tr> |
13420 |
<ti>HTML</ti> |
13421 |
<ti>All in one page</ti> |
13422 |
<ti> |
13423 |
<uri link="handbook-x86.xml?full=1">x86</uri>, |
13424 |
<uri link="handbook-sparc.xml?full=1">sparc</uri>, |
13425 |
<uri link="handbook-amd64.xml?full=1">amd64</uri>, |
13426 |
<uri link="handbook-ppc.xml?full=1">ppc</uri>, |
13427 |
<uri link="handbook-ppc64.xml?full=1">ppc64</uri>, |
13428 |
<uri link="handbook-hppa.xml?full=1">hppa</uri> |
13429 |
</ti> |
13430 |
</tr> |
13431 |
<tr> |
13432 |
<ti>HTML</ti> |
13433 |
<ti>All in one page, printable version</ti> |
13434 |
<ti> |
13435 |
<uri link="handbook-x86.xml?style=printable&full=1">x86</uri>, |
13436 |
<uri link="handbook-sparc.xml?style=printable&full=1">sparc</uri>, |
13437 |
<uri link="handbook-amd64.xml?style=printable&full=1">amd64</uri>, |
13438 |
<uri link="handbook-ppc.xml?style=printable&full=1">ppc</uri>, |
13439 |
<uri link="handbook-ppc64.xml?style=printable&full=1">ppc64</uri>, |
13440 |
<uri link="handbook-hppa.xml?style=printable&full=1">hppa</uri> |
13441 |
</ti> |
13442 |
</tr> |
13443 |
</table> |
13444 |
|
13445 |
</body> |
13446 |
</section> |
13447 |
</chapter> |
13448 |
</guide> |
13449 |
|
13450 |
|
13451 |
|
13452 |
-- |
13453 |
gentoo-doc-cvs@l.g.o mailing list |