CentOS fcitx installation method because the minimum installation is selected, many packages need to be installed. 1. First, uninstall ibus. yum remove ibus II. Fcitx, depending on: intltool, perl-XML-Parser, libtoolize, gettext, gettext-devel, libXft, libXft-devel, libXpm and libXpm-devel, these software packages and some compilation tools and libraries. 1, install intltool download: ftp://ftp.gnome.org/pub/GNOME/sources/intltool/0.40/ installation :. /configure -- prefix =/usr -- mandir =/usr/share/man & make install 2. You can use the yum install xxx package name to install them in advance, solve the dependency problem. (This step is important !) Yum installperl-XML-plugin-devel libXpm-devel automake autoconf libXtst-devel gtk +-devel gcc zlib-devel libpng-devel gtk2-devel glib-devel III. Download and install fcitx1, download the latest Fcitx source code package: wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz22133 uncompress to/usr/src directory: tar jxvf fcitx-3.6.3.tar.bz2-C/usr/src3, enter Directory: cd/usr/src/fcitx-3.6.34, generate ". configure "file :. /autogen. sh5. Start Compilation: ./Configure6. formal installation: makemake install7. test whether the installation is successful: Enter fcitx-h. If the installation is successful, you can obtain the Help file, as shown in the following figure: [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/fcitxXIM_ARGS = "-d" GTK_IM_MODULE = fcitxQT_IM_MODULE = fcitx 2. then, in the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate one: mv/etc/alternatives/xinputrc. bakrm-rf/etc/alternatives/xinputrcln-s/etc/X11/xinit/xinput. d/fcitx. conf/etc/alternatives/xinputrc Note: If your desktop is in an English environment, you must use the user directory. bashrc Configuration Add the following content: 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. NOTE: If your input method is installed, you cannot press ctrl + space to perform other operations, is because you still lack a library file yum install gtk2-immodule-xim installed can be used 4, uninstall the method to enter the Directory: cd/usr/src/fcitx-3.6.3 uninstall: make uninstall attachment: my fcitx configuration file is vim ~ /. Fcitx/config 5. configuration file [Program] display font (medium) = display font (English) = Courier display font size = 20 Main Window Font size = 12 whether to use AA font = 1 [Output] number followed by halfwidth symbol = 1Enter key behavior = 1 semicolon input English = 0 uppercase letter input English = 1 forbidden paging by association = 1LumaQQ supported = 0 [interface] Number of candidate words = 9 whether to use the 3D interface in the main window = 0 enter a 3D interface = 1 whether to use the hidden mode in the main window = 0 hide input entries = 0 # The fixed width of input entries is only applicable to the code table input method, 0 indicates the input is not fixed width = 600 after the serial number add = 0 display typing speed = 1 cursor color = 92 210 131 main window background color = 220 220 220 Main Window line color = 100 180 255 main Window input method name color = 170 170 170 150 200 0 0 150 input window background color = 255 240 240 input window prompt color = 240 0 0 input window user input color = 0 0 255 input window serial number color = 200 0 0 input window first candidate color = 0 150 100 # This color value is only used in the pinyin user self-created input window user phrase color = 0 0 255 input window prompt encoding color = 100 100 255 # use the color of all five or pinyin single words/system phrases in this color input window other text color = 0 0 0 input window line color = 100 200 255 input window arrow color = 255 150 255 virtual keyboard window background color = 220 220 220 virtual keyboard window letter color = 80 0 0 0 virtual keyboard window symbol color = 0 0 0 # In addition to "Chinese and English quick switch, other hotkeys can be set to two, separated by space in the middle [Hot Key] open/close input method = CTRL_SPACE # Chinese and English quick switch key can be set to L_CTRL R_CTRL L_SHIFT R_SHIFT Chinese and English quick switch key = L_CTRL double-click switch between Chinese and English = 0 Press key time interval = 250 cursor follow = CTRL_KGBK support = CTRL_M Lenovo support = CTRL_L reverse lookup pinyin = CTRL_ALT_E full halfwidth = SHIFT_SPACE Chinese Punctuation = ALT_SPACE Previous Page =-Next page = third-party candidate word selection key = SHIFT [input method] Use pinyin = 1 use double spell = 0 use location = 1 use code table = 1 prompt phrase = 0 [pinyin] use full spell = 0 pinyin automatic group word = 1 save automatic group word = 0 add pinyin commonly used words = CTRL_8 Delete pinyin commonly used words = CTRL_7 Delete pinyin user phrase = CTRL_DELETE # pinyin set word key, the equals sign is followed by a key. Do not use spaces or pinyin to set the character key = [] # how to adjust the re-code: 0-> not adjusted 1-> quickly adjusted 2-> adjusted by frequency the method of adjusting the unique characters of the pinyin alphabet = 2. Adjusted the method of adjusting the duplicate characters of the pinyin phrase = 1. Adjusted the method of adjusting the duplicate characters of the commonly used words of the pinyin phrase = 0. Fuzzy and ang = 0 are fuzzy en and eng = 0 are fuzzy ian and iang = 0 are fuzzy in and ing = 0 are fuzzy ou and u = 0 are fuzzy uan and uang = 0 are fuzzy? fuzzy c and ch = 0 whether fuzzy f and h = 0