Chinese Debian Mini Howto
Version 0.3. Last update: April 16, 2006.
Copyright (c) 2006 Qiming LI (Qiming.Li AT IEEE dot ORG).
Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.2or any later version published by the Free Software Foundation;with no Invariant Sections, no Front-Cover Texts, and no Back-CoverTexts. A copy of the license is included in the section entitled "GNUFree Documentation License".
0. Introduction
The purpose of this mini howto is to help users of Debian GNU/Linux to build a minimum Chinese environment, so that they can read and input Chinese in their systems. To support Chinese language display and input under Debian GNU/Linux, you will need to do the following basic steps.
- Generate relevant locales
- Install Chinese fonts
- Install an input method (IM) engine
- Set locale
- Adjust application settings (if necessary)
In the rest of this text, I will explain these steps one by one.Most of the commands below need to be run in a terminal with root privilege.
1. Generating
LocalesRun dpkg-reconfigure locales, and choose the following items.
- en_US ISO-8859-1
- zh_CN GB2312
- zh_CN.GBK GBK
- zh_CN.UTF-8 UTF-8
- zh_TW BIG5
- zh_TW.UTF-8 UTF-8
Some of these are optional. For example, if you are using Simplified Chinese only,you would not need the last two items.After this you will be prompted for the default locale you want to use.
NOTE: Sometimes you need to reboot to get the new locales working.To avoid potential problems, it is strongly recommended that you get this correct from the beginning when you install your system.
2. Installing Chinese Fonts
Install at least the following free fonts.Each entry below is of the form package_name (font_name).
- ttf-arphic-gbsn00lp (AR PL SungtiL GB)
- ttf-arphic-gkai00mp (AR PL KaitiM GB)
- ttf-arphic-bsmi00lp (AR PL Mingti2L Big5)
- ttf-arphic-bkai00mp (AR PL KaitiM Big5)
The first two are for Simplified Chinese, and the other two for