Centos6 fcitx installation ups and downs
20:56:17 | category: centos | Tag: | large-sized subscribe
Because the minimum installation is selected, many packages need to be installed.
I. Uninstall ibus first(This guy did it .. You can also choose not to delete ..)
Yum remove ibus
Install Chinese support: su rootyum install "@ Chinese support" exit to log out and then log on
II,Fcitx depends on:
Intltool, Perl-XML-parser, libtoolize, gettext, gettext-devel, libxft, libxft-devel, libxpm and libxpm-devel. These software packages include 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 to solve the dependency problem. (This step is important !)
Yum install
Perl-XML-parser
Libtoolize
Gettext
Gettext-devel
Libxft
Libxft-devel
Libxpm
Libxpm-devel
Automake
Autoconf
Libxtst-devel
GTK +-devel
Gcc
Zlib-devel
Libpng-devel
Gtk2-devel
Glib-devel
3. Download and install fcitx
1. download the latest fcitx source package: wget http://www.fcitx.org/download/fcitx-3.6.3.tar.bz2
2. Decompress to the/usr/src directory: Tar jxvf fcitx-3.6.3.tar.bz2-C/usr/src
3. Go to the directory: CD/usr/src/fcitx-3.6.3
4. Generate the ". Configure" file:./autogen. Sh
5. Start Compilation:./configure
6. formal installation:
Make
Make install
7. test whether the installation is successful: Enter fcitx-H. If the installation is successful, you should be able to get the help file, as shown below:
[Root @ centos ~] # Fcitx-H
Usage: 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 input method
Method 1: (this method is recommended !)
1. Create the configuration file Vim/etc/X11/xinit/xinput. d/fcitx. conf with the following content:
Xim = fcitx
Xim_program =/usr/local/bin/fcitx
Xim_args = "-d"
Gtk_im_module = fcitx
Qt_im_module = fcitx
2. In the/etc/alternatives/directory, delete the symbolic link xinputrc and recreate it:
MV/etc/alternatives/xinputrc. Bak
Rm-RF/etc/alternatives/xinputrc
Ln-S/etc/X11/xinit/xinput. d/fcitx. CONF/etc/alternatives/xinputrc
NOTE: If your desktop is in an English environment, you must add the following content to the user's user directory. bashrc configuration file:
Export lang = zh_CN.UTF-8 ″
Export lc_ctype = "zh_CN.UTF-8 ″
Export xim = fcitx
Export xim_program = fcitx
Export gtk_im_module = xim
Export xmodifiers = "@ im = fcitx"
* *** (My buddy has been stuck here for a while ...)
NOTE: If your input method is installed, you cannot press Ctrl + space to execute other operations, because you still lack a library file.
Yum install gtk2-immodule-xim
After installation, you can use it.
The reason why fcitx has something to do with gtk2-immodule-xim should be that the fcitx interface is based on the GTK development library, so it is necessary that if this library is not installed, the surface image is cltr + space is invalid.
Method 2: (this method can be used in centos 5.3, and there is a problem in centos 5.5 .)
1. Create a configuration file: Vim/etc/X11/xinit/xinput. d/fcitx. The content is as follows:
Xim = fcitx
Xim_program = fcitx
Gtk_im_moudle = fcitx
Qt_im_moudle = fcitx
Save and quit, restart your 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. Enter fcitx-Nb to see the input box.
After fcitx is started by default, it runs in the background. 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 execute other operations, because you still lack a library file.
Yum install gtk2-immodule-xim
After installation, you can use it.
Iv. Uninstall Methods
Go to directory: CD/usr/src/fcitx-3.6.3
Uninstall: Make uninstall
Appendix: My fcitx configuration file is Vim ~ /. Fcitx/config
V. Configuration File
[Program]
Show font (medium) =
Show font (English) = courier
Show font size = 20
Font size of the Main Window = 12
Whether to use AA font = 1
[Output]
Digit followed by halfwidth symbol = 1
Enter key behavior = 1
Semicolon = 0
Uppercase letters = 1
Page flip prohibited by Lenovo mode = 1
Lumaqq support = 0
[Interface]
Number of candidate words = 9
Whether to use the 3D interface for the Main Window = 0
Input entry: use 3D interface = 1
Hidden mode of the Main Window = 0
Whether to hide input entries automatically = 0
# The input fixed width is only applicable to the code table input method. 0 indicates that the input width is not fixed.
Input fixed width = 600
Add after serial number = 0
Show 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 150 0 0 255
Input window background color = 240 240 240
Input window color = 255 0 0
Input window user input color = 0 0 255
Input window No. Color = 200 0 0
First candidate color in the input window = 0 150 100
# This color value is only used for user self-creation in pinyin.
Input window user phrase color = 0 0 255
Input window prompts encoding color = 100 100 255
# This color is used for five or more Chinese/system phrases.
Other text colors in the input window = 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
Letter color of the virtual keyboard window = 80 0 0
Virtual Keyboard window symbol color = 0 0 0
# Except for "quick switch between Chinese and English", other hotkeys can be set to two, separated by Spaces
[Hotkey]
Enable/disable input = ctrl_space
# You can set the shortcut key 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
Key interval = 250
Cursor follows = ctrl_k
GBK supports = ctrl_m
Lenovo supports = ctrl_l
Lookup pinyin = ctrl_alt_e
Full halfwidth = shift_space
Chinese Punctuation = alt_space
Previous Page =-
Next page =
Third candidate word selection key = Shift
[Input method]
Use Pinyin = 1
Use double fight = 0
Location = 1
Usage code table = 1
The phrase in the prompt dictionary is 0.
[Pinyin]
Use full join = 0
Pinyin automatic group word = 1
Save automatic group word = 0
Add commonly used Chinese characters in pinyin = ctrl_8
Delete common pinyin characters = ctrl_7
Delete pinyin user phrase = ctrl_delete
# Pinyin is a fixed word key, followed by an equal sign. Do not have spaces
Pinyin: fixed word key = []
# How to adjust the re-code: 0-> do not adjust 1-> quickly adjust 2-> adjust by Frequency
Pinyin single-character duplicate code adjustment method = 2
Pinyin phrase re-encoding adjustment method = 1
Method for adjusting the frequently-used Chinese characters in pinyin = 0
Whether to blur an and Ang = 0
Whether to blur en and ENG = 0
Whether to blur Ian and IANG = 0
Whether to blur in and ing = 0
Whether to blur ou and u = 0
Whether to blur UAN and Uang = 0
Whether to blur C and CH = 0
Whether to blur F and H = 0
Whether to blur l and n = 0
Whether to blur S and SH = 0
Whether to blur Z and ZH = 0