| … | |
… | |
| 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-system.xml,v 1.94 2006/07/13 15:01:27 rane Exp $ --> |
7 | <!-- $Header: /var/cvsroot/gentoo/xml/htdocs/doc/en/handbook/hb-install-system.xml,v 1.95 2006/07/19 12:01:39 rane Exp $ --> |
| 8 | |
8 | |
| 9 | <sections> |
9 | <sections> |
| 10 | |
10 | |
| 11 | <version>2.20</version> |
11 | <version>2.21</version> |
| 12 | <date>2006-07-13</date> |
12 | <date>2006-07-18</date> |
| 13 | |
13 | |
| 14 | <section> |
14 | <section> |
| 15 | <title>Chrooting</title> |
15 | <title>Chrooting</title> |
| 16 | <subsection> |
16 | <subsection> |
| 17 | <title>Optional: Selecting Mirrors</title> |
17 | <title>Optional: Selecting Mirrors</title> |
| … | |
… | |
| 340 | <subsection> |
340 | <subsection> |
| 341 | <title>Optional: GLIBC Locales</title> |
341 | <title>Optional: GLIBC Locales</title> |
| 342 | <body> |
342 | <body> |
| 343 | |
343 | |
| 344 | <p> |
344 | <p> |
| 345 | You will probably only use one or maybe two locales on your system. Up until now |
345 | You will probably only use one or maybe two locales on your system. You can |
| 346 | after compiling <c>glibc</c> a full set of all available locales will be |
|
|
| 347 | created. As of now you can activate the <c>userlocales</c> USE flag and specify |
|
|
| 348 | only the locales you will need in <path>/etc/locales.build</path>. Only do this |
346 | specify locales you will need in <path>/etc/locales.ge</path>. |
| 349 | if you know what locales to choose. |
|
|
| 350 | </p> |
|
|
| 351 | |
|
|
| 352 | <pre caption="Activate the userlocales USE flag especially for glibc"> |
|
|
| 353 | # <i>mkdir -p /etc/portage</i> |
|
|
| 354 | # <i>echo "sys-libs/glibc userlocales" >> /etc/portage/package.use</i> |
|
|
| 355 | </pre> |
|
|
| 356 | |
|
|
| 357 | <p> |
347 | </p> |
| 358 | Now specify the locales you want to be able to use: |
|
|
| 359 | </p> |
|
|
| 360 | |
348 | |
| 361 | <pre caption="Opening /etc/locales.build"> |
349 | <pre caption="Opening /etc/locale.gen"> |
| 362 | # <i>nano -w /etc/locales.build</i> |
350 | # <i>nano -w /etc/locale.gen</i> |
| 363 | </pre> |
351 | </pre> |
| 364 | |
352 | |
| 365 | <p> |
353 | <p> |
| 366 | The following locales are an example to get both English (United States) and |
354 | The following locales are an example to get both English (United States) and |
| 367 | German (Germany) with the accompanying character formats (like UTF-8). |
355 | German (Germany) with the accompanying character formats (like UTF-8). |
| 368 | </p> |
356 | </p> |
| 369 | |
357 | |
| 370 | <pre caption="Specify your locales"> |
358 | <pre caption="Specify your locales"> |
| 371 | en_US/ISO-8859-1 |
359 | en_US ISO-8859-1 |
| 372 | en_US.UTF-8/UTF-8 |
360 | en_US.UTF-8 UTF-8 |
| 373 | de_DE/ISO-8859-1 |
361 | de_DE ISO-8859-1 |
| 374 | de_DE@euro/ISO-8859-15 |
362 | de_DE@euro ISO-8859-15 |
|
|
363 | </pre> |
|
|
364 | |
|
|
365 | <p> |
|
|
366 | The next step is to run <c>locale-gen</c>. It will generate all the locales you |
|
|
367 | have specified in the <path>/etc/locale.gen</path> file. |
| 375 | </pre> |
368 | </p> |
| 376 | |
369 | |
| 377 | <p> |
370 | <p> |
| 378 | Now continue with <uri link="?part=1&chap=7">Configuring the Kernel</uri>. |
371 | Now continue with <uri link="?part=1&chap=7">Configuring the Kernel</uri>. |
| 379 | </p> |
372 | </p> |
| 380 | |
373 | |