BT5 安装 Fcitx

為什麽要安裝這個Fcitx:開源,簡單,安裝方便

BT5 安裝完後發現是英文環境,en-US。


(1)免積分下載fcitx-4.0.0.tar.gz


(2)按照如下指令:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. tar zxvf fcitx-4.0.0.tar.gz  
  2. cd fcitx-4.0.0  
  3. ./configure -prefix=/root/Desktop/fcitx-4.0.0    #-prefix後面跟的是fcitx解壓後的絕對路徑  
  4. apt-get install libcairo2 libcairo2-dev  
  5. apt-get install libpango1.0-0 libpango1.0-dev  
  6. make   #這裏如果出錯是因為沒有上面的包  
  7. make install  

如果到這裏沒出錯,那麽應該是安裝完成了

然后为了后面配置,我们需要进行:

[html]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. sudo apt-get install im-switch fcitx   

否则后面的配置文件都不存在,那还配置个毛。。

(3)在/etc/X11/xinit/xinput.d/下新建一个文件en_US

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. gedit /etc/X11/xinit/xinput.d/en_US  

輸入:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. XMODIFIERS="@im=fcitx"  
  2. XIM=fcitx  
  3. XIM_PROGRAM=/usr/bin/fcitx  
  4. XIM_ARGS=""  
  5. GTK_IM_MODULE=XIM  
  6. QT_IM_MODULE=XIM  
  7. DEPENDS="fcitx"  
這一步是為了創建fcitx對應英文環境的配置文件,如果

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. ls -l /etc/X11/xinit/xinput.d  

會看到:

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. -rw-r--r-- 1 root root  601 2008-01-08 18:41 en_US  

(4)重启XWindow,也就是點擊logout,然後再startx

這一步是為了讓配置文件生效,不要跳過。


(5)编辑/usr/lib/gtk-2.0/2.10.0/immodule-files.d/libgtk2.0-0.immodules

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. "xim" "X Input Method" "gtk20" "/usr/share/locale" "ko:ja:th:zh"  
  2. 将之改成  
  3. "xim" "X Input Method" "gtk20" "/usr/share/locale" "en:ko:ja:th:zh"  


(6)重启XWindow,也就是點擊logout,然後再startx

這一步是也是為了徹底完成安裝,不要跳過。


(7)安装中文所需的Locale包

到這裏Ctrl+Shirt(Ctrl+Space?)能夠調出fcitx,但是會有一些正方形框框,這是因為沒有中文環境的支持

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. sudo apt-get install language-pack-zh  
  2. sudo apt-get install language-pack-gnome-zh  

這樣子就安裝成功中文環境。


(8)修改~/.fcitx/config文件

[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. gedit --encoding=gb18030 ~/.fcitx/config  
[plain]  view plain copy 在CODE上查看代码片 派生到我的代码片
  1. 显示字体(中)=*  
  2. 改成  
  3. 显示字体(中)=AR PL UMing CN  

(9)重启XWindow,也就是點擊logout,然後再startx

這一步是還是為了徹底修復方形框框,不要跳過。


原文链接:http://blog.csdn.net/emaste_r/article/details/14455751

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值