BT5 安装 Fcitx

简介: 為什麽要安裝這個Fcitx:開源,簡單,安裝方便BT5 安裝完後發現是英文環境,en-US。(1)免積分下載fcitx-4.

為什麽要安裝這個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

目录
打赏
0
0
0
0
1
分享
相关文章
BT5 R1不能启动ibus输入法解决方案
HiRoot@bt:~# 系统设置-开机和关机-自动启动,添加程序,添加一个路径为usr/bin/ibus-daemon -x -r -d 并勾选在终端下运行。 确定 重启OK
861 0
bt 下载
bt 下载
265 0
Ubuntu20.04安装fcitx后无法使用ibus的拼音输入法问题(配置完ibus重启之后还是用不了)
Ubuntu20.04安装fcitx后无法使用ibus的拼音输入法问题(配置完ibus重启之后还是用不了)
破解WIFI:Ubuntu Kylin14.04(64位) 安装Minidwep-gtk(Aircrack-ng、Reaver)
1. 安装依赖    sudo apt-get install libssl0.9.8     sudo apt-get install build-essential libssl-dev iw     sudo apt-get install libpcap-dev sqlite3 libsqlite3-dev libpcap0.
3132 0
Install KDE Plasma and XRDP on Ubuntu Server
Install KDE Plasma and XRDP on Ubuntu Server
354 0
Install KDE Plasma and XRDP on Ubuntu Server
AI助理

你好,我是AI助理

可以解答问题、推荐解决方案等