日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > linux >内容正文

linux

linux fcitx改mac输入法,Linux安装fcitx输入法

發布時間:2023/12/15 linux 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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输入法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。