Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 382525
Collapse All | Expand All

(-)doc/en/guide-localization.xml (-29 / +35 lines)
Lines 25-30 Link Here
25
<author title="Editor">
25
<author title="Editor">
26
  <mail link="nightmorph"/>
26
  <mail link="nightmorph"/>
27
</author>
27
</author>
28
<author title="Editor">
29
  <mail link="klondike"/>
30
</author>
28
31
29
<abstract>
32
<abstract>
30
This guide should help users localize their Gentoo Linux distribution to any
33
This guide should help users localize their Gentoo Linux distribution to any
Lines 44-50 Link Here
44
In order to keep time properly, you need to select your timezone so that your
47
In order to keep time properly, you need to select your timezone so that your
45
system knows where it is located. Look for your timezone in
48
system knows where it is located. Look for your timezone in
46
<path>/usr/share/zoneinfo</path>. You then set your timezone in
49
<path>/usr/share/zoneinfo</path>. You then set your timezone in
47
<path>/etc/conf.d/clock</path>. Please avoid the
50
<path>/etc/timezone</path>. Please avoid the
48
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
51
<path>/usr/share/zoneinfo/Etc/GMT*</path> timezones as their names do not
49
indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
52
indicate the expected zones. For instance, <path>GMT-8</path> is in fact GMT+8.
50
</p>
53
</p>
Lines 55-62 Link Here
55
<comment>(First copy the proper zone to localtime)</comment>
58
<comment>(First copy the proper zone to localtime)</comment>
56
# <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
59
# <i>cp /usr/share/zoneinfo/Europe/Brussels /etc/localtime</i>
57
<comment>(Now specify your timezone)</comment>
60
<comment>(Now specify your timezone)</comment>
58
# <i>nano -w /etc/conf.d/clock</i>
61
# <i>nano -w /etc/timezone</i>
59
TIMEZONE="Europe/Brussels"
62
Europe/Brussels
60
63
61
# <i>date</i>
64
# <i>date</i>
62
Wed Mar  8 00:46:05 CET 2006
65
Wed Mar  8 00:46:05 CET 2006
Lines 88-102 Link Here
88
UTC (or GMT, Greenwich Mean Time) and then your timezone is
91
UTC (or GMT, Greenwich Mean Time) and then your timezone is
89
taken into account to determine the actual, local time.  If,
92
taken into account to determine the actual, local time.  If,
90
for some reason, you need your hardware clock not to be in UTC,
93
for some reason, you need your hardware clock not to be in UTC,
91
you will need to edit <path>/etc/conf.d/clock</path> and change the
94
you will need to edit <path>/etc/conf.d/hwclock</path> (or, if you use Gentoo
92
value of <c>CLOCK</c> from <c>UTC</c> to <c>local</c>.
95
BSD <path>/etc/conf.d/adjkerntz</path>) and change the
96
value of <c>clock</c> from <c>UTC</c> to <c>local</c>.
93
</p>
97
</p>
94
98
95
<pre caption="local vs. GMT clock">
99
<pre caption="local vs. GMT clock">
96
<comment>(recommended:)</comment>
100
<comment>(recommended:)</comment>
97
CLOCK="UTC"
101
clock="UTC"
98
<comment>(or:)</comment>
102
<comment>(or:)</comment>
99
CLOCK="local"
103
clock="local"
100
</pre>
104
</pre>
101
105
102
</body>
106
</body>
Lines 222-228 Link Here
222
226
223
<note>
227
<note>
224
Use <c>de_DE@euro</c> as your LANG if you want to use the Euro currency symbol
228
Use <c>de_DE@euro</c> as your LANG if you want to use the Euro currency symbol
225
(€).
229
(€) on non UTF-8 based locales.
226
</note>
230
</note>
227
231
228
<p>
232
<p>
Lines 347-353 Link Here
347
351
348
<p>
352
<p>
349
The keyboard layout used by the console is set in
353
The keyboard layout used by the console is set in
350
<path>/etc/conf.d/keymaps</path> by the <c>KEYMAP</c> variable.
354
<path>/etc/conf.d/keymaps</path> by the <c>keymap</c> variable.
351
Valid values can be found in
355
Valid values can be found in
352
<path>/usr/share/keymaps/<c>{arch}</c>/</path>.
356
<path>/usr/share/keymaps/<c>{arch}</c>/</path>.
353
<path>i386</path> has further subdivisions into layout
357
<path>i386</path> has further subdivisions into layout
Lines 357-365 Link Here
357
</p>
361
</p>
358
362
359
<pre caption="Setting the console keymap">
363
<pre caption="Setting the console keymap">
360
KEYMAP="de"
364
keymap="de"
361
KEYMAP="de-latin1"
365
keymap="de-latin1"
362
KEYMAP="de-latin1-nodeadkeys"
366
keymap="de-latin1-nodeadkeys"
363
</pre>
367
</pre>
364
368
365
</body>
369
</body>
Lines 378-390 Link Here
378
</p>
382
</p>
379
383
380
<pre caption="Setting the X keymap">
384
<pre caption="Setting the X keymap">
381
 Section "InputDevice"
385
Section "InputClass"
382
     Identifier  "Keyboard1"
386
	Identifier "keyboard-all"
383
     ...
387
	Driver "evdev"
384
     Option "XkbLayout"    "de"
388
	Option "XkbLayout" "de"
385
     #Option "XkbModel"     "pc105"    <comment>## this is for international keyboards.</comment>
389
	#Option "XkbModel" "pc105"
386
     # Option "XkbVariant"  "nodeadkeys" <comment>## this would be used for xterm input</comment>
390
	MatchIsKeyboard "on"
387
     ...
391
EndSection
388
</pre>
392
</pre>
389
393
390
<p>
394
<p>
Lines 408-418 Link Here
408
</p>
412
</p>
409
413
410
<pre caption="Switching between two keyboard layouts">
414
<pre caption="Switching between two keyboard layouts">
411
 Section "InputDevice"
415
Section "InputClass"
412
     Identifier  "Keyboard1"
416
	Identifier "keyboard-all"
413
     ...
417
	Driver "evdev"
414
     Option "XkbLayout"    "us,ru"
418
	Option "XkbLayout"    "us,ru"
415
     Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
419
	Option "XkbOptions"   "grp:alt_shift_toggle,grp_led:scroll"
420
	MatchIsKeyboard "on"
421
EndSection
416
</pre>
422
</pre>
417
423
418
<p>
424
<p>
Lines 448-472 Link Here
448
454
449
<p>
455
<p>
450
In order to get your console to display the Euro symbol, you will need to set
456
In order to get your console to display the Euro symbol, you will need to set
451
<c>CONSOLEFONT</c> in <path>/etc/conf.d/consolefont</path> to a file found in
457
<c>consolefont</c> in <path>/etc/conf.d/consolefont</path> to a file found in
452
<path>/usr/share/consolefonts/</path> (without the <c>.psfu.gz</c>).
458
<path>/usr/share/consolefonts/</path> (without the <c>.psfu.gz</c>).
453
<c>lat9w-16</c> has the Euro symbol.
459
<c>lat9w-16</c> has the Euro symbol.
454
</p>
460
</p>
455
461
456
<pre caption="Setting the console font">
462
<pre caption="Setting the console font">
457
CONSOLEFONT="lat9w-16"
463
consolefont="lat9w-16"
458
</pre>
464
</pre>
459
465
460
<p>
466
<p>
461
You should verify that <c>CONSOLEFONT</c> is in the boot runlevel:
467
You should verify that <c>consolefont</c> is in the boot runlevel:
462
</p>
468
</p>
463
469
464
<pre caption="Verify the proper runlevel">
470
<pre caption="Verify the proper runlevel">
465
# <i>rc-update -v show | grep -i consolefont</i>
471
# <i>rc-update -v show | grep consolefont</i>
466
</pre>
472
</pre>
467
473
468
<p>
474
<p>
469
If no runlevel is displayed for <c>CONSOLEFONT</c>, then add it to the proper level:
475
If no runlevel is displayed for <c>consolefont</c>, then add it to the proper level:
470
</p>
476
</p>
471
477
472
<pre caption="Add consolefont to boot">
478
<pre caption="Add consolefont to boot">

Return to bug 382525