CentOS6.4 install Fcitx4.0

Source: Internet
Author: User
CentOS64 Fcitx40 installation 1. first install Chinese support: surootyuminstall & quot; @ ChineseSupport & quot; exityumremoveibus logout and login 2. install fcitx to download the fcitx input method source code. Baidu can search for it, I downloaded Fcitx CentOS 6.4 provided by Huajun Software Park to install Fcitx4.0. first, install Chinese support: su rootyum install "@ Chinese Support" exit yum remove ibus log out and log on again. 2. install fcitx to download the fcitx input method source code. baidu search for it, I downloaded the official version of "Fcitx little penguin input method 4.0" provided by Huajun Software Park ". First install the library on which fcitx depends: yum install gettext-devel libXft-devel libXpm-devel unzip source package: unzip fcitx-4.0.0.tar.ziptar zxf fcitx-4.0.0.tar.gzcd fcitx-4.0.0. /configuremakemake install to test whether the installation is successful: enter fcitx-h. if the installation is successful, you can obtain the help file as follows: [root @ CentOS ~] # Fcitx-hUsage: fcitx [OPTION]-d run as daemon (default)-D don't run as daemon-c (re) create config file in home directory and then exit-n [im name] run as specified name-v display the version information and exit-h display this help and exit 3. configure Fcitx as the default method 1: (This method is recommended !) 1. create a configuration file vim/etc/X11/xinit/xinput. d/fcitx. conf, content: XIM = fcitxXIM_PROGRAM =/usr/local/bin/fcitx # note that this file must exist, make sure that its location is XIM_ARGS = "-d" GTK_IM_MODULE = fcitx QT_IM_MODULE = fcitx2. then, in the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate it: mv/etc/alternatives/xinputrc. bakln-s/etc/X11/xinit/xinput. d/fcitx. conf/etc/alternatives/xinputrc3. log out and log on to the system. In the menu system-preference-input method, select "Enable input method feature" and select "use fcitx ". After logging on, press ctrl + space to activate the fcitx input method. Note: If your desktop is in an English environment, you need to use the user directory. add the following content to the bashrc configuration file: export LANG = "zh_CN.UTF-8" export LC_CTYPE = "zh_CN.UTF-8" export XIM = fcitxexport XIM_PROGRAM = export GTK_IM_MODULE = ximexport XMODIFIERS = "@ im = fcitx" Method 2: (This method is available in CentOS 5.3, there is a problem in 5.5 .) 1. create a configuration file: vim/etc/X11/xinit/xinput. d/fcitx, content: XIM = fcitxXIM_PROGRAM = fcitxGTK_IM_MOUDLE = fcitxQT_IM_MOUDLE = fcitx save and quit, restart the computer 2. check whether Fcitx is running at startup. Enter fcitx in the terminal. the prompt is: Start FCITX error. Another XIM daemon named SCIM is running? That's right. go directly to "4" 3. if no prompt is displayed, ln-s/etc/X11/xinit/Xinput. d/fcitx/$ HOME /. xinputrc 4. input: fcitx-nb. you can see that the input box is running in the background after fcitx is started by default. Therefore, the input box is invisible and can be called up using the following command. Ctrl + space to switch the input method. Configure the fcitx input method to modify vim ~ The preference settings in the/. fcitx/config file. 3. uninstall the method into the directory: cd/usr/src/fcitx-3.6.3 uninstall: make uninstall note: If your input method is installed, but you cannot press ctrl + space Miscellaneous, it's because you still have a library file yum install gtk2-immodule-xim that I 've stuck in this place for a long time, hateful!
 
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.