| … | |
… | |
| 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.109 2012/02/22 21:27:45 swift Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-config.xml,v 1.114 2012/04/09 10:03:26 nightmorph 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>16</version> |
17 | <version>20</version> |
| 18 | <date>2012-02-22</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> |
| … | |
… | |
| 436 | <subsection> |
436 | <subsection> |
| 437 | <title>System Information</title> |
437 | <title>System Information</title> |
| 438 | <body> |
438 | <body> |
| 439 | |
439 | |
| 440 | <p> |
440 | <p> |
| 441 | Gentoo uses <path>/etc/rc.conf</path> for general, system-wide configuration. |
441 | Gentoo uses <path>/etc/rc.conf</path> to configure the services, startup, |
| 442 | Open up <path>/etc/rc.conf</path> and enjoy all the comments in that file :) |
442 | and shutdown of your system. Open up <path>/etc/rc.conf</path> and enjoy all |
|
|
443 | the comments in the file. |
| 443 | </p> |
444 | </p> |
| 444 | |
445 | |
| 445 | <pre caption="Opening /etc/rc.conf"> |
446 | <pre caption="Configuring services"> |
| 446 | # <i>nano -w /etc/rc.conf</i> |
447 | # <i>nano -w /etc/rc.conf</i> |
| 447 | </pre> |
448 | </pre> |
| 448 | |
449 | |
| 449 | <p> |
450 | <p> |
| 450 | When you're finished configuring <path>/etc/rc.conf</path>, save and exit. |
451 | When you're finished configuring these two files, save them and exit. |
| 451 | </p> |
|
|
| 452 | |
|
|
| 453 | <p> |
|
|
| 454 | As you can see, this file is well commented to help you set up the necessary |
|
|
| 455 | configuration variables. You can configure your system to use unicode and |
|
|
| 456 | define your default editor and your display manager (like gdm or kdm). |
|
|
| 457 | </p> |
452 | </p> |
| 458 | |
453 | |
| 459 | <p> |
454 | <p> |
| 460 | Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration. |
455 | Gentoo uses <path>/etc/conf.d/keymaps</path> to handle keyboard configuration. |
| 461 | Edit it to configure your keyboard. |
456 | Edit it to configure your keyboard. |
| … | |
… | |
| 505 | <path>/etc/localtime</path> automatically. For instance, if you used the |
500 | <path>/etc/localtime</path> automatically. For instance, if you used the |
| 506 | 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 |
| 507 | <path>/etc/timezone</path> file. |
502 | <path>/etc/timezone</path> file. |
| 508 | </p> |
503 | </p> |
| 509 | |
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 | <warn> |
|
|
538 | We strongly suggest that you should use at least one UTF-8 locale because some |
|
|
539 | applications may require it. |
|
|
540 | </warn> |
|
|
541 | |
|
|
542 | <p> |
|
|
543 | The next step is to run <c>locale-gen</c>. It will generates all the locales you |
|
|
544 | have specified in the <path>/etc/locale.gen</path> file. |
|
|
545 | </p> |
|
|
546 | |
|
|
547 | <pre caption="Running locale-gen"> |
|
|
548 | # <i>locale-gen</i> |
|
|
549 | </pre> |
|
|
550 | |
|
|
551 | <p> |
|
|
552 | Once done, you now have the possibility to set the system-wide locale settings |
|
|
553 | in the <path>/etc/env.d/02locale</path> file: |
|
|
554 | </p> |
|
|
555 | |
|
|
556 | <pre caption="Setting the default system locale in /etc/env.d/02locale"> |
|
|
557 | LANG="de_DE.UTF-8" |
|
|
558 | LC_COLLATE="C" |
|
|
559 | </pre> |
|
|
560 | |
|
|
561 | <p> |
|
|
562 | And reload your environment: |
|
|
563 | </p> |
|
|
564 | |
|
|
565 | <pre caption="Reload shell environment"> |
|
|
566 | # env-update && source /etc/profile |
|
|
567 | </pre> |
|
|
568 | |
|
|
569 | <p> |
|
|
570 | We made a full <uri link="../guide-localization.xml#doc_chap3">Localization |
|
|
571 | Guide</uri> to help you through this process. You can also read our detailed |
|
|
572 | <uri link="../utf-8.xml#doc_chap2">UTF-8 Guide</uri> for very specific |
|
|
573 | informations to enable UTF-8 on your system. |
|
|
574 | </p> |
|
|
575 | |
| 510 | <p test="not(func:keyval('arch')='PPC64')"> |
576 | <p test="not(func:keyval('arch')='PPC64')"> |
| 511 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
577 | Please continue with <uri link="?part=1&chap=9">Installing Necessary System |
| 512 | Tools</uri>. |
578 | Tools</uri>. |
| 513 | </p> |
579 | </p> |
| 514 | |
580 | |