| 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-config.xml,v 1.111 2012/04/06 12:09:19 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.112 2012/04/08 20:20:55 cam Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <abstract> |
11 | <abstract> |
| 12 | You need to edit some important configuration files. In this chapter |
12 | You need to edit some important configuration files. In this chapter |
| 13 | you receive an overview of these files and an explanation on how to |
13 | you receive an overview of these files and an explanation on how to |
| 14 | proceed. |
14 | proceed. |
| 15 | </abstract> |
15 | </abstract> |
| 16 | |
16 | |
| 17 | <version>18</version> |
17 | <version>19</version> |
| 18 | <date>2012-04-06</date> |
18 | <date>2012-04-08</date> |
| 19 | |
19 | |
| 20 | <section> |
20 | <section> |
| 21 | <title>Filesystem Information</title> |
21 | <title>Filesystem Information</title> |
| 22 | <subsection> |
22 | <subsection> |
| 23 | <title>What is fstab?</title> |
23 | <title>What is fstab?</title> |
| 24 | <body> |
24 | <body> |
| 25 | |
25 | |
| 26 | <p> |
26 | <p> |
| 27 | Under Linux, all partitions used by the system must be listed in |
27 | Under Linux, all partitions used by the system must be listed in |
| 28 | <path>/etc/fstab</path>. This file contains the mount points of those partitions |
28 | <path>/etc/fstab</path>. This file contains the mount points of those partitions |
| 29 | (where they are seen in the file system structure), how they should be mounted |
29 | (where they are seen in the file system structure), how they should be mounted |
| 30 | and with what special options (automatically or not, whether users can mount |
30 | and with what special options (automatically or not, whether users can mount |
| 31 | them or not, etc.) |
31 | them or not, etc.) |
| 32 | </p> |
32 | </p> |
| 33 | |
33 | |
| … | |
… | |
| 490 | |
490 | |
| 491 | <p> |
491 | <p> |
| 492 | When you're finished configuring <path>/etc/conf.d/hwclock</path>, save and |
492 | When you're finished configuring <path>/etc/conf.d/hwclock</path>, save and |
| 493 | exit. |
493 | exit. |
| 494 | </p> |
494 | </p> |
| 495 | |
495 | |
| 496 | <p> |
496 | <p> |
| 497 | You should define the timezone that you previously copied to |
497 | You should define the timezone that you previously copied to |
| 498 | <path>/etc/localtime</path> in the <path>/etc/timezone</path> file so that |
498 | <path>/etc/localtime</path> in the <path>/etc/timezone</path> file so that |
| 499 | further upgrades of the <c>sys-libs/timezone-data</c> package can update |
499 | further upgrades of the <c>sys-libs/timezone-data</c> package can update |
| 500 | <path>/etc/localtime</path> automatically. For instance, if you used the |
500 | <path>/etc/localtime</path> automatically. For instance, if you used the |
| 501 | Europe/Brussels timezone, you would write <c>Europe/Brussels</c> in the |
501 | Europe/Brussels timezone, you would write <c>Europe/Brussels</c> in the |
| 502 | <path>/etc/timezone</path> file. |
502 | <path>/etc/timezone</path> file. |
| 503 | </p> |
503 | </p> |
| 504 | |
504 | |
|
|
505 | </body> |
|
|
506 | </subsection> |
|
|
507 | |
|
|
508 | <subsection> |
|
|
509 | <title>Configure locales</title> |
|
|
510 | <body> |
|
|
511 | |
|
|
512 | <p> |
|
|
513 | You will probably only use one or maybe two locales on your system. You have to |
|
|
514 | specify locales you will need in <path>/etc/locale.gen</path>. |
|
|
515 | </p> |
|
|
516 | |
|
|
517 | <pre caption="Opening /etc/locale.gen"> |
|
|
518 | # <i>nano -w /etc/locale.gen</i> |
|
|
519 | </pre> |
|
|
520 | |
|
|
521 | <p> |
|
|
522 | The following locales are an example to get both English (United States) and |
|
|
523 | German (Germany) with the accompanying character formats (like UTF-8). |
|
|
524 | </p> |
|
|
525 | |
|
|
526 | <pre caption="Specify your locales"> |
|
|
527 | en_US ISO-8859-1 |
|
|
528 | en_US.UTF-8 UTF-8 |
|
|
529 | de_DE ISO-8859-1 |
|
|
530 | de_DE@euro ISO-8859-15 |
|
|
531 | </pre> |
|
|
532 | |
|
|
533 | <note> |
|
|
534 | You can select your desired locales in the list given by running <c>locale -a</c>. |
|
|
535 | </note> |
|
|
536 | |
|
|
537 | <p> |
|
|
538 | The next step is to run <c>locale-gen</c>. It will generates all the locales you |
|
|
539 | have specified in the <path>/etc/locale.gen</path> file. |
|
|
540 | </p> |
|
|
541 | |
|
|
542 | <pre caption="Running locale-gen"> |
|
|
543 | # <i>locale-gen</i> |
|
|
544 | </pre> |
|
|
545 | |
|
|
546 | <p> |
|
|
547 | Once done, you now have the possibility to set the system-wide locale settings |
|
|
548 | in the <path>/etc/env.d/02locale</path> file: |
|
|
549 | </p> |
|
|
550 | |
|
|
551 | <pre caption="Setting the default system locale in /etc/env.d/02locale"> |
|
|
552 | LANG="de_DE.UTF-8" |
|
|
553 | LC_COLLATE="C" |
|
|
554 | </pre> |
|
|
555 | |
|
|
556 | <p> |
|
|
557 | And reload your environment: |
|
|
558 | </p> |
|
|
559 | |
|
|
560 | <pre caption="Reload shell environment"> |
|
|
561 | # env-update && source /etc/profile |
|
|
562 | </pre> |
|
|
563 | |
|
|
564 | <p> |
|
|
565 | We made a full <uri link="../guide-localization.xml#doc_chap3">Localization |
|
|
566 | Guide</uri> to help you through this process. You can also read our detailed |
|
|
567 | <uri link="../utf-8.xml#doc_chap2">UTF-8 Guide</uri> for very specific |
|
|
568 | informations to enable UTF-8 on your system. |
|
|
569 | </p> |
|
|
570 | |
| 505 | <p test="not(func:keyval('arch')='PPC64')"> |
571 | <p test="not(func:keyval('arch')='PPC64')"> |
| 506 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
572 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
| 507 | Tools</uri>. |
573 | Tools</uri>. |
| 508 | </p> |
574 | </p> |
| 509 | |
575 | |
| 510 | </body> |
576 | </body> |
| 511 | </subsection> |
577 | </subsection> |
| 512 | <subsection test="func:keyval('arch')='PPC64'"> |
578 | <subsection test="func:keyval('arch')='PPC64'"> |
| 513 | <title>Configuring the Console</title> |
579 | <title>Configuring the Console</title> |
| 514 | <body> |
580 | <body> |
| 515 | |
581 | |
| 516 | <p> |
582 | <p> |
| 517 | If you are using a virtual console, you must uncomment the appropriate line in |
583 | If you are using a virtual console, you must uncomment the appropriate line in |
| 518 | <path>/etc/inittab</path> for the virtual console to spawn a login prompt. |
584 | <path>/etc/inittab</path> for the virtual console to spawn a login prompt. |
| 519 | </p> |
585 | </p> |