Debian font installation

Source: Internet
Author: User
Debian font installation-Linux Release Technology-Debian information. The following is a detailed description. After two days, I finally installed fcitx and wrote the entire installation process here based on the principle of getting to the network and putting to the network. I have found many articles about fcitx on the Internet, many of which I have not used. Maybe there is a great way to get to Rome. Now I get through this road. In fact, in essence, there are only two points: 1. Get the fcitx package 2. Set the fcitx to start automatically. Of course, the most important thing is to switch it out for use. At the beginning, during the setup process, I was able to start but could not be activated. when the system was started directly into the graphic interface, I saw little penguins appear, but when I opened a terminal, ctrl + sapce cannot activate fcitx, but enter fcitx in the command prompt, prompting that it has been started. If you exit the graphic interface to the character mode and then startx, ctrl + space can activate fcitx. The Methods circulating on the Internet are nothing more than from/etc/evironment (the command dpkg reconfigure locales can be set) and/etc/X11/xsession. d/directory (under which files are created), and ~ (/Root) directory. bashrc. i18n file). After repeated filtering and summarization, the methods related to fcitx are as follows:

(1) apt-get install fcitx

(2) cd/etc/X11/Xsession. d

Create the file 25xchinput-start and write the following content:
Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Export XMODIFIERS = "@ im = fcitx"
Export GTK_IM_MODULE = fcitx
Export LANG = 'zh _ CN'
Export LANGUAGE = "en_CN: en_US: en_GB: en"
Export XMODIFERS = @ im = fcitx
Fcitx &

(3) apt-get install locales
Run dpkg-reconfigure locales (set the framework for multilingual switching), select zh-CU GB2312 \ zh_CU.GBK GBK \ zh_CU.UTF-8 UTF-8 (Press ENTER) (if only one of them can be selected, I chose both.) Select en_US (Press ENTER)

In this way, a locale under/etc/will be formed. gen file, content is en_US.ISO-8859-1, zh_CU.GB2312, zh_CU.GBK, zh_CU.UIF-8 and the formation of environment under/etc/(ADD) content is LANG = en_USctrl + ALT + BACKSpace restart Xwindow open a terminal, it is found that the title of the Terminal window is compiled into a Terminal by the previous "Terminal". ctrl + space can activate fcitx.

Of course, I have installed a Chinese font!

Note: Although fcitx is easy to use, the problem of how to enter Chinese Characters Under VI has not been solved. If you have any experts, you can leave a message!

This problem has also been solved. After vim is installed, vi automatically supports Chinese. It's strange!

The following is my search on the Internet. It may be helpful on another road to Rome:

Modify. xinitrc as follows:
Export LC_CTYPE = zh_CN
Export XMODIFIERS = "@ im = fcitx"
Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Fcitx &

Note that LC_CTYPE must be zh_CN or it cannot be displayed (For me half a day) in addition, XMODIFIERS = "@ im = fcitx" is optional for setting the next two. You can note that if there is a problem, write it again.

LC_CTYPE = zh_CN can make other programs appear on the English interface without Chinese garbled characters. If you are still used to the program's aw menu is Chinese, use LANG = Haha ...... CN or LC_ALL = zh_CN.

1). apt-get install fcitx

2). vi/etc/X11/Xsession. d/95 xinput
Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Export XMODIFIERS = "@ im = fcitx"
Export GTK_IM_MODULE = fcitx
Export LANG = 'zh _ CN. gbk' LC_ALL = 'zh _ CN. gbk'
Fcitx &

For the installation of fcitx, you need to know the meaning of each configuration item for the input method, and each configuration item must be related to the language configuration of the system. The language configuration is different, even with the same configuration, it cannot work normally, but some of them are not explained. Unfortunately, I got two days away.

Solution 1: create a file/etc/X11/Xsession. d/25xchinput-start and write it in it.

Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Export XMODIFIERS = "@ im = fcitx"
Export GTK_IM_MODULE = fcitx
Export LANG = 'zh _ CN'
Fcitx & in this way, fcitx can automatically Modify file permissions with X startup, otherwise errors will occur during startup.
Chmod + x 25xchinput-start

Another solution: Create ~ /. Add gnomerc

Export XIM = fcitx
Export XIM_PROGRAM = fcitx
Export XMODIFIERS = "@ im = fcitx"
Export GTK_IM_MODULE = fcitx
Export LANG = 'zh _ CN'
Fcitx &

After the system is restarted, it runs normally.

The configuration file of fcitx is in ~ /. Fcitx directory, you can configure according to your own needs. The LANG = 'zh _ cn' value corresponds to the default language selected by dpkg-reconfigure locales and is also related to the language selected for login. For example, there are also zh_CN.GBK, zh_CN.GB2312, and zh_CN.UTF8 .. When I select dpkg-reconfigure locales, the default value is zh_CN. It is normal to log on to zh_CN.GBK and zh_CN respectively. It cannot be used in English or zh_CN.UTF8. For example, I set LANG = en_US, that is, the desktop is in English .. Add the following in bahsrc or. bash_profile:

Export LANG = en_US
Export LC_CTYPE = "zh_CN"
Export XMODIFIERS = "@ im = fcitx"

If you like UTF-8, add it to. bashrc or. bash_profile.

Export LANG = zh_CN.UTF-8
Export LC_CTYPE = "zh_CN"
Export XMODIFIERS = "@ im = fcitx"

If some brothers say that the GB18030 code is better, you can also add the following section in. bashrc or. bash_profile. Almost all of them.

Export LANG = zh_CN.GB18030
Export LC_CTYPE = "zh_CN"
Export XMODIFIERS = "@ im = fcitx"

The latest fcitx includes pinyin, location, five strokes, two strokes, and other input methods. Install fcitx: apt-get install fcitx and set it to start fcitx with X by running the/etc/X11/Xsession command. create a file in the d/directory: cd/etc/X11/Xsession. d/nano 95fcitx_start: export XMODIFIERS = "@ im = fcitx" fcitx

Save and restart Xwindow. Press Ctrl + Space key to activate Xwindow.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.