Let your English and Chinese in Linux can be beautiful display __linux
Source: Internet
Author: User
Want to let your fcitx Wubi Input method, start automatically after boot?
Do you want your FCITX to run automatically when you log off the x desktop and then login again?
Want your Linux to be able to display clear Chinese and English fonts at the same time?
Here's how to tell you the solution:
1, to let FCITX start automatically after the boot, it must be in the X initialization, the start of the Fcitx script.
The initialization of x is accomplished by reading some of the system's initialization configuration files and executing the scripts in the file. and/etc/x11/xinit/xinitrc.d/xinput file, is in the boot, will be executed by the system of an initialization file (in fact, not only this file, as long as you find a system will be executed on the boot of the file can), open this xinput file, Add the following lines to the tail:
Export xmodifiers= "@im =FCITX"
Export Xim=fcitix
Export XIM_PROGRAM=FCITX
fcitx&
Then, when the X is initialized after power-on, the above code is executed to start the Fcitix.
2, however, the XInput file is executed only when the Power-on initialization x desktop is initiated. If you log off the X graphics desktop and re-enter it, you will find that the input method is missing. So we're going to find another file that will be executed when the system is re logged in. There are a lot of these files too, so you might be able to see assorted files on the web, but, after my explanation, you should be careful not to start the same program in multiple files that might be executed concurrently, so it's easy to collide. One of the files I chose is/etc/profile. The following lines are added to the tail:
Export LC_ALL=ZH_CN. GBK
Export xmodifiers= @im =chinput
chinput&
Export xmodifiers= "@im =FCITX"
Export Xim=fcitix
Export XIM_PROGRAM=FCITX
fcitx&
Why is there more than three lines ahead. Since logoff, the Chinese Input method server Chinput, also stopped, and after the login, will not automatically start. So, add the top three lines and tell the system to start the Chinese input system because FCITX relies on chinput. This chinput is installed before installing FCITX, why to install, please see other articles of my blog.
3, in addition, to tell you a good news, my previous article once said, I manually installed Microsoft's Chinese font SIMSUN.TTC, although the Chinese became very beautiful, but the English became blurred. Last night, I found a good package to solve this problem, please open http://download.linuxsir.org/fontconfig/, there are a lot of software available to download, Download one of the compressed packages named linuxsir-fontconfig-3.2.run.tar.gz. Then untie, run, install the process, there will be some questions, it will also ask whether to install FCITX, if you have installed FCITX, select No. After installation, restart the system, at this time, the Chinese have become beautiful, English has become clear, but the English space is very large, it is difficult to see. Do not worry, then to change the system font, choose Good English, you can. In fact, no matter which font to choose, Chinese fonts are already SIMSUN.TTC.
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.