KUROBOX/2006-12-14

Last-modified: 2006-12-15 (金) 00:22:27

日本語環境の設定

日本人として、日本語が扱えないのは不便なので、日本語環境の設定をする。

ロケールサポートの有効化

ロケールをインストールする。

# apt-get install locales

locales をインストールすると自動的にロケール設定ダイアログが表示される。

Configuring locales

Locale is a framework to switch between multiple languages for users who can
select to use their language, country, characters, collation order, etc.
Choose which locales to generate.  The selection will be saved to
`/etc/locale.gen', which you can also edit manually (you need to run
`locale-gen' afterwards).
Select locales to be generated.
   [ ] he_IL ISO-8859-8                                                 \
   [ ] he_IL.UTF-8 UTF-8                                                \
   [ ] hi_IN UTF-8                                                      \
   [ ] hr_HR ISO-8859-2                                                 \
   [ ] hr_HR.UTF-8 UTF-8                                                \
   [ ] hu_HU ISO-8859-2                                                 \
   [ ] hu_HU.UTF-8 UTF-8                                                \
   [ ] id_ID ISO-8859-1                                                 \
   [ ] id_ID.UTF-8 UTF-8                                                \
   [ ] is_IS ISO-8859-1                                                 \
   [ ] is_IS.UTF-8 UTF-8                                                \
   [ ] it_CH ISO-8859-1                                                 \
   [ ] it_CH.UTF-8 UTF-8                                                \
   [ ] it_IT ISO-8859-1                                                 \
   [ ] it_IT.UTF-8 UTF-8                                                \
   [ ] it_IT.UTF-8@euro UTF-8                                           #
   [ ] it_IT@euro ISO-8859-15                                           \
   [ ] iw_IL ISO-8859-8                                                 \
   [ ] iw_IL.UTF-8 UTF-8                                                \
   [*] ja_JP.EUC-JP EUC-JP                                              \
   [*] ja_JP.UTF-8 UTF-8                                                \
   [ ] ka_GE GEORGIAN-PS                                                \
   [ ] kl_GL ISO-8859-1                                                 \
   [ ] kl_GL.UTF-8 UTF-8                                                \
   [ ] kn_IN UTF-8                                                      \
   [ ] ko_KR.EUC-KR EUC-KR                                              \
                             <Ok>                                  <Cancel>

ja_JP.EUC-JP EUC-JP と ja_JP.UTF-8 UTF-8 を選択する。

 
Many packages in Debian use locales to display text in the correct language for
users. You can change the default locale if you're not a native English speaker.
These choices are based on which locales you have chosen to generate.
Note: This will select the language for your whole system. If you're running a
multi-user system where not all of your users speak the language of your choice, then
they will run into difficulties and you might want not to set a default locale.
Which locale should be the default in the system environment?
                                     None
                                     ja_JP.EUC-JP
                                     ja_JP.UTF-8
                       <Ok>                            <Cancel>

念のために None を選択する。

ユーザのロケールの設定

ユーザのロケールを設定する。
.bash_profile に以下の内容を追記する。

LANG=ja_JP.UTF-8
export LANG

日本語の man ページをインストール

マニュアルはできるだけ日本語で読みたいので manpages-ja をインストールする。

# apt-get install manpages-ja