| 1 | <?xml version='1.0' encoding='UTF-8'?> |
1 | <?xml version='1.0' encoding='UTF-8'?> |
| 2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
2 | <!DOCTYPE sections SYSTEM "/dtd/book.dtd"> |
| 3 | |
3 | |
| 4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
4 | <!-- The content of this document is licensed under the CC-BY-SA license --> |
| 5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
5 | <!-- See http://creativecommons.org/licenses/by-sa/2.5 --> |
| 6 | |
6 | |
| 7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-medium.xml,v 1.60 2008/04/01 08:53:46 nightmorph Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-ppc-medium.xml,v 1.61 2008/05/02 08:04:23 nightmorph Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>9.0</version> |
11 | <version>9.1</version> |
| 12 | <date>2008-04-01</date> |
12 | <date>2008-05-02</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Hardware Requirements</title> |
15 | <title>Hardware Requirements</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Introduction</title> |
17 | <title>Introduction</title> |
| 18 | <body> |
18 | <body> |
| 19 | |
19 | |
| 20 | <p> |
20 | <p> |
| 21 | Before we start, we first list what hardware requirements you need to |
21 | Before we start, we first list what hardware requirements you need to |
| 22 | successfully install Gentoo on your box. |
22 | successfully install Gentoo on your box. |
| 23 | </p> |
23 | </p> |
| 24 | |
24 | |
| 25 | </body> |
25 | </body> |
| 26 | </subsection> |
26 | </subsection> |
| 27 | <subsection> |
27 | <subsection> |
| … | |
… | |
| 411 | |
411 | |
| 412 | <p> |
412 | <p> |
| 413 | Now load the keymap of your choice: |
413 | Now load the keymap of your choice: |
| 414 | </p> |
414 | </p> |
| 415 | |
415 | |
| 416 | <pre caption="Loading a keymap"> |
416 | <pre caption="Loading a keymap"> |
| 417 | # <i>loadkeys be-latin1</i> |
417 | # <i>loadkeys be-latin1</i> |
| 418 | </pre> |
418 | </pre> |
| 419 | |
419 | |
| 420 | <p> |
420 | <p> |
| 421 | Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
421 | Now continue with <uri link="#hardware">Extra Hardware Configuration</uri>. |
| 422 | </p> |
422 | </p> |
| 423 | |
423 | |
| 424 | </body> |
424 | </body> |
| 425 | </subsection> |
425 | </subsection> |
| 426 | <subsection id="hardware"> |
|
|
| 427 | <title>Extra Hardware Configuration</title> |
|
|
| 428 | <body> |
|
|
| 429 | |
426 | |
| 430 | <p> |
|
|
| 431 | When the Installation CD boots, it tries to detect all your hardware devices and |
|
|
| 432 | loads the appropriate kernel modules to support your hardware. In the |
|
|
| 433 | vast majority of cases, it does a very good job. However, in some cases, it may |
|
|
| 434 | not auto-load the kernel modules you need. If the PCI auto-detection missed some |
|
|
| 435 | of your system's hardware, you will have to load the appropriate kernel modules |
|
|
| 436 | manually. |
|
|
| 437 | </p> |
|
|
| 438 | |
|
|
| 439 | <p> |
|
|
| 440 | In the next example we try to load the <c>airport</c> module. This module |
|
|
| 441 | supports only the old Airport cards (802.11b). Airport Extreme (802.11g) is not |
|
|
| 442 | supported on the InstallCD due to restrictions on firmware distribution. |
|
|
| 443 | </p> |
|
|
| 444 | |
|
|
| 445 | <pre caption="Loading the airport module"> |
|
|
| 446 | # <i>modprobe airport</i> |
|
|
| 447 | </pre> |
|
|
| 448 | |
|
|
| 449 | <p> |
|
|
| 450 | On older iMacs, sometimes the network card is not detected properly. These use |
|
|
| 451 | the BMAC driver: |
|
|
| 452 | </p> |
|
|
| 453 | |
|
|
| 454 | <pre caption="Loading the bmac module"> |
|
|
| 455 | # <i>modprobe bmac</i> |
|
|
| 456 | </pre> |
|
|
| 457 | |
|
|
| 458 | </body> |
|
|
| 459 | </subsection> |
427 | <subsection> |
|
|
428 | <include href="hb-install-bootconfig.xml"/> |
| 460 | <subsection> |
429 | </subsection> |
| 461 | <title>Optional: Tweaking Hard Disk Performance</title> |
|
|
| 462 | <body> |
|
|
| 463 | |
430 | |
| 464 | <p> |
|
|
| 465 | If you are an advanced user, you might want to tweak the IDE hard disk |
|
|
| 466 | performance using <c>hdparm</c>. With the <c>-tT</c> options you can |
|
|
| 467 | test the performance of your disk (execute it several times to get a |
|
|
| 468 | more precise impression): |
|
|
| 469 | </p> |
|
|
| 470 | |
|
|
| 471 | <pre caption="Testing disk performance"> |
|
|
| 472 | # <i>hdparm -tT /dev/hda</i> |
|
|
| 473 | </pre> |
|
|
| 474 | |
|
|
| 475 | <p> |
|
|
| 476 | To tweak, you can use any of the following examples (or experiment |
|
|
| 477 | yourself) which use <path>/dev/hda</path> as disk (substitute with your |
|
|
| 478 | disk): |
|
|
| 479 | </p> |
|
|
| 480 | |
|
|
| 481 | <pre caption="Tweaking hard disk performance"> |
|
|
| 482 | <comment>Activate DMA:</comment> |
|
|
| 483 | # <i>hdparm -d 1 /dev/hda</i> |
|
|
| 484 | <comment>Activate DMA + Safe Performance-enhancing Options:</comment> |
|
|
| 485 | # <i>hdparm -d 1 -A 1 -m 16 -u 1 -a 64 /dev/hda</i> |
|
|
| 486 | </pre> |
|
|
| 487 | |
|
|
| 488 | </body> |
|
|
| 489 | </subsection> |
|
|
| 490 | <subsection id="useraccounts"> |
|
|
| 491 | <title>Optional: User Accounts</title> |
|
|
| 492 | <body> |
|
|
| 493 | |
|
|
| 494 | <p> |
|
|
| 495 | If you plan on giving other people access to your installation |
|
|
| 496 | environment or you want to chat using <c>irssi</c> without root privileges (for |
|
|
| 497 | security reasons), you need to create the necessary user accounts and change |
|
|
| 498 | the root password. |
|
|
| 499 | </p> |
|
|
| 500 | |
|
|
| 501 | <p> |
|
|
| 502 | To change the root password, use the <c>passwd</c> utility: |
|
|
| 503 | </p> |
|
|
| 504 | |
|
|
| 505 | <pre caption="Changing the root password"> |
|
|
| 506 | # <i>passwd</i> |
|
|
| 507 | New password: <comment>(Enter your new password)</comment> |
|
|
| 508 | Re-enter password: <comment>(Re-enter your password)</comment> |
|
|
| 509 | </pre> |
|
|
| 510 | |
|
|
| 511 | <p> |
|
|
| 512 | To create a user account, we first enter their credentials, followed by |
|
|
| 513 | its password. We use <c>useradd</c> and <c>passwd</c> for these tasks. |
|
|
| 514 | In the next example, we create a user called "john". |
|
|
| 515 | </p> |
|
|
| 516 | |
|
|
| 517 | <pre caption="Creating a user account"> |
|
|
| 518 | # <i>useradd -m -G users john</i> |
|
|
| 519 | # <i>passwd john</i> |
|
|
| 520 | New password: <comment>(Enter john's password)</comment> |
|
|
| 521 | Re-enter password: <comment>(Re-enter john's password)</comment> |
|
|
| 522 | </pre> |
|
|
| 523 | |
|
|
| 524 | <p> |
|
|
| 525 | You can change your user id from root to the newly created user by using |
|
|
| 526 | <c>su</c>: |
|
|
| 527 | </p> |
|
|
| 528 | |
|
|
| 529 | <pre caption="Changing user id"> |
|
|
| 530 | # <i>su - john</i> |
|
|
| 531 | </pre> |
|
|
| 532 | |
|
|
| 533 | </body> |
|
|
| 534 | </subsection> |
|
|
| 535 | <subsection> |
|
|
| 536 | <title>Optional: Viewing Documentation while Installing</title> |
|
|
| 537 | <body> |
|
|
| 538 | |
|
|
| 539 | <p> |
|
|
| 540 | If you want to view the Gentoo Handbook (either from-CD or online) during the |
|
|
| 541 | installation, make sure you have created a user account (see <uri |
|
|
| 542 | link="#useraccounts">Optional: User Accounts</uri>). Then press <c>Alt-F2</c> to |
|
|
| 543 | go to a new terminal and log in. |
|
|
| 544 | </p> |
|
|
| 545 | |
|
|
| 546 | <p> |
|
|
| 547 | If you want to view the documentation on the CD you can immediately run |
|
|
| 548 | <c>links</c> or even <c>links -g</c> for a graphical framebuffer browser to |
|
|
| 549 | read it: |
|
|
| 550 | </p> |
|
|
| 551 | |
|
|
| 552 | <pre caption="Viewing the on-CD documentation"> |
|
|
| 553 | # <i>links /mnt/cdrom/docs/html/index.html</i> |
|
|
| 554 | </pre> |
|
|
| 555 | |
|
|
| 556 | <p> |
|
|
| 557 | However, it is preferred that you use the online Gentoo Handbook as it will be |
|
|
| 558 | more recent than the one provided on the CD. You can view it using <c>links</c> |
|
|
| 559 | as well, but only after having completed the <e>Configuring your Network</e> |
|
|
| 560 | chapter (otherwise you won't be able to go on the Internet to view the |
|
|
| 561 | document): |
|
|
| 562 | </p> |
|
|
| 563 | |
|
|
| 564 | <pre caption="Viewing the Online Documentation"> |
|
|
| 565 | # <i>links http://www.gentoo.org/doc/en/handbook/<keyval id="online-book"/></i> |
|
|
| 566 | </pre> |
|
|
| 567 | |
|
|
| 568 | <p> |
|
|
| 569 | You can go back to your original terminal by pressing <c>Alt-F1</c>. |
|
|
| 570 | </p> |
|
|
| 571 | |
|
|
| 572 | </body> |
|
|
| 573 | </subsection> |
|
|
| 574 | <subsection> |
|
|
| 575 | <title>Optional: Starting the SSH Daemon</title> |
|
|
| 576 | <body> |
|
|
| 577 | |
|
|
| 578 | <p> |
|
|
| 579 | If you want to allow other users to access your computer during the |
|
|
| 580 | Gentoo installation (perhaps because those users are going to help you |
|
|
| 581 | install Gentoo, or even do it for you), you need to create a user |
|
|
| 582 | account for them and perhaps even provide them with your root password |
|
|
| 583 | (<e>only</e> do that <e>if</e> you <b>fully trust</b> that user). |
|
|
| 584 | </p> |
|
|
| 585 | |
|
|
| 586 | <p> |
|
|
| 587 | To fire up the SSH daemon, execute the following command: |
|
|
| 588 | </p> |
|
|
| 589 | |
|
|
| 590 | <pre caption="Starting the SSH daemon"> |
|
|
| 591 | # <i>/etc/init.d/sshd start</i> |
|
|
| 592 | </pre> |
|
|
| 593 | |
|
|
| 594 | <p> |
|
|
| 595 | To be able to use sshd, you first need to set up your networking. Continue with |
|
|
| 596 | the chapter on <uri link="?part=1&chap=3">Configuring your Network</uri>. |
|
|
| 597 | </p> |
|
|
| 598 | |
|
|
| 599 | </body> |
|
|
| 600 | </subsection> |
|
|
| 601 | </section> |
431 | </section> |
| 602 | </sections> |
432 | </sections> |