This article is mainly written for those who are accustomed to the original en operating system, but also for other reasons to enter the Chinese character of friends
Distribution or Gentoo, other distributions can refer to their respective profiles and related software.
First, you need to install the relevant fonts, the commands are as follows:
# emerge arphicfonts wqy-bitmapfont
cjkuni-fonts corefonts ttf-bitstream-vera
Some fonts may be "~ 6" to masked, you can use the prefix to add accept--keywords= "~x86" to install
# ACCEPT_KEYWORDS="~x86" emerge arphicfonts
wqy-bitmapfont cjkuni-fonts corefonts ttf-bitstream-vera
Next, revise your Locale.gen file and add the following
en_US ISO-8859-1
en_US.UTF-8 UTF-8
zh_CN GB18030
zh_CN.GBK GBK
zh_CN.GB2312 GB2312
zh_CN.UTF-8 UTF-8
Then run the Locale-gen to get the corresponding locale. Next, create a 100i18n environment variable file.
# nano /etc/env.d/100i18n
and add the following contents to the
LANG=en_US.UTF-8
LC_CTYPE=zh_CN.UTF-8
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_PAPER="en_US.UTF-8"
LC_NAME="en_US.UTF-8"
LC_ADDRESS="en_US.UTF-8"
LC_TELEPHONE="en_US.UTF-8"
LC_MEASUREMENT="en_US.UTF-8"
LC_IDENTIFICATION="en_US.UTF-8"
Exit after saving, and then update the system's environment variables
# env-update
When you are done, restart your computer
Next is the input of the installation of the hair, scim good, I always use it,
# emerge scim-pinyin
Then you need to adjust your KDE or Gnome display font, select the common encoding of Chinese fonts, such as italics, XXFarEastFont-Arial, Chinese display will not appear garbled.