linux fcitx改mac输入法,Linux安装fcitx输入法
1以root用戶登錄,拷貝相應安裝包(fcitx-4.0.032bit.tar,fcitx-4.0.064bit.tar)到/usr/src目錄下
2.在root用戶下,執行安裝腳本fcitx.sh
#!/bin/bash
#author:caoqing
#date:3/3/2013
function?syq
{
clear
cd?/usr/src
if?[?-e?fcitx-4.0.032bit.tar?];then
tar?xvf?fcitx-4.0.032bit.tar
cd?fcitx*?&&
./configure?&&
make?&&
make?install
else
echo?"the?package?is?not?exist!!!"
fi
}
function?whh
{
clear
cd?/usr/src
if?[?-e??fcitx-4.0.064bit.tar?];then
tar?xvf?fcitx-4.0.064bit.tar
cd?fcitx*?&&
./configure?&&
make?&&
make?install
else
echo?"the?package?is?not?exist!!!"
fi
}
function?menu
{
clear
echo
echo?-e?"\t\t\tFcitx?Installtion\n"
echo?-e?"\t1.32bitfcitx?installtion"
echo?-e?"\t2.64bitfcitx?installtion"
echo?-e?"\t0.Exit?program\n\n"
echo?-en?"\t\tEnter?option:?"
read?-n?1?option
}
while?[?1?]
do
menu
case?$option?in
0)
break;;
1)
syq;;
2)
whh;;
*)
clear
echo?"sorry,worry?selection";;
esac
echo?-en?"\n\n\t\t\tHit?any?key?to?continue"
read?-n?1?line
done
clear
if?[?$LANG?=?zh_CN.UTF-8?]?||?[?$LANG?=?en_US.UTF-8?]?&&?!?grep?-q?"GB18030"?~/.bash_profile
then
echo?'export.GB18030'>>~/.bash_profile
echo?'export?XIM=fcitx'>>~/.bash_profile
echo?'export?XIM_PROGRAM=fcitx'>>~/.bash_profile
echo?'export?GTK_IM_MODULE=xim'>>~/.bash_profile
echo?'export?XMODIFIERS="@im=fcitx"'>>~/.bash_profile
fi
if?[?-e?/etc/X11/xinit/xinput.d/fcitx.conf?];then
exit?0
else
echo?'XMODIFIERS="@im=fcitx"'>/etc/X11/xinit/xinput.d/fcitx.conf
echo?'XIM=fcitx'>>/etc/X11/xinit/xinput.d/fcitx.conf
echo?'XIM_PROGRAM=/usr/local/bin/fcitx'>>/etc/X11/xinit/xinput.d/fcitx.conf
echo?'XIM_ARGS="-d"'>>/etc/X11/xinit/xinput.d/fcitx.conf
echo?'GTK_IM_MOUDLE=fcitx'>>/etc/X11/xinit/xinput.d/fcitx.conf
echo?'QT_IM_MOUDLE=fcitx'>>/etc/X11/xinit/xinput.d/fcitx.conf
fi
cd?/etc/alternatives
mv?/etc/alternatives/xinputrc?/etc/alternatives/xinputrc.bak
rm?-rf?xinputrc
ln?-s?/etc/X11/xinit/xinput.d/fcitx.conf?xinputrc
3.完成安裝后,修改對應用戶(df8003,oracle)環境變量,執行
echo?'export.GB18030'>>~/.bash_profile
echo?'export?XIM=fcitx'>>~/.bash_profile
echo?'export?XIM_PROGRAM=fcitx'>>~/.bash_profile
echo?'export?GTK_IM_MODULE=xim'>>~/.bash_profile
echo?'export?XMODIFIERS="@im=fcitx"'>>~/.bash_profile
完成后注銷
附錄:
1.安裝fcitx依賴包:gtk2-immodule-xim?gtk2-immodules?gcc?libXrender-devel?cairo-devel??pango-devel?intltool?im-chooser
2.測試是否安裝成功:輸入fcitx?-h,如果安裝成功,可以得到幫助文件
3.查詢fcitx是否開機運行,終端下輸入:fcitx
4.fcitx啟動后,界面上沒有顯示輸入法圖標,輸入:?fcitx?-nb?,即可看到輸入框
5.卸載方法,進入目錄:cd?/usr/src/fcitx*,執行make?uninstall
6.ctrl+空格,切換輸入法;ctrl,中英文切換
7.配置fcitx輸入法修改vim?~/.fcitx/config文件中的相應偏好設置
8.查看源碼,安裝配置說明,登錄Fcitx輸入法官方網站:http://www.fcitx.org
總結
以上是生活随笔為你收集整理的linux fcitx改mac输入法,Linux安装fcitx输入法的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: h5页面苹果手机不兼容普通点击事件
- 下一篇: 虹软java接摄像头_虹软人脸识别SDK