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

目录
相关文章
Ubuntu20.04安装fcitx后无法使用ibus的拼音输入法问题(配置完ibus重启之后还是用不了)
Ubuntu20.04安装fcitx后无法使用ibus的拼音输入法问题(配置完ibus重启之后还是用不了)
|
Ubuntu Windows
关于 ubuntu上qt5.9.3使用openssl出现“openssl unsupport platform” 的解决方法
关于 ubuntu上qt5.9.3使用openssl出现“openssl unsupport platform” 的解决方法
关于 ubuntu上qt5.9.3使用openssl出现“openssl unsupport platform” 的解决方法
Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题
Mac电脑 - 解决 brew install 报错Error: /usr/local/Homebrew is not writable. 的问题
748 0
|
Ubuntu NoSQL API
Ubuntu下安装GTK的三种方法
我利用此方法成功在UBUNTU 10.04下安装GTK 2.20.1。 一、安装 1、安装gcc/g++/gdb/make 等基本编程工具 $sudo apt-get install build-essential 2、安装 libgtk2.
2840 0
|
Windows
win10安装wget
win10安装wget
170 0
win10安装wget
|
关系型数据库 MySQL
wsl install lamp
sudo apt-get update sudo apt-get install lamp-server^   /etc/init.d/apache2 start /etc/init.d/mysql start   sudo apt-get -y install mysql-client mysql-server sudo apt-get -y install php7.
1780 0
|
Web App开发 安全 测试技术

热门文章

最新文章