CentOS中文輸入法配置指令碼(fcitx)

2021-10-21 17:44:41 字數 1076 閱讀 3088

###############by西北苦命漢#################

##############centos中文輸入法配置##########

#!/bin/bash

#lang="zh_cn.gb18030"

function show(

)echo

-e "\033[34m 正在檢查網路狀態,請等待! \033[0m"

-e "\033[34m 開始部署環境 \033[0m"

|| show

if[ `id -u` -ne 0 ]

then

echo

-e "\033[31m 此指令碼需管理員執行,當前使用者非管理員! \033[0m"

exit

fiflag=0

rpm -e --nodeps ibus |

|yum -y install epel-release |

| flag=1

yum -y install fcitx fcitx-pinyin fcitx-configtool |

| flag=1

echo

"export gtk_im_module=fcitx" > /etc/profile.d/fcitx.sh

echo

"export qt_im_module=fcitx" >> /etc/profile.d/fcitx.sh

echo

"export xmodifiers=@im=fcitx" >> /etc/profile.d/fcitx.shif[

$flag

-eq 0 ]

then

echo

-e "\033[32m 指令碼執行成功!\033[0m \033[34m 還需要您手動配置:\n1.請手動將fcitx加入開機自啟動中!\n2.重啟系統!\033[0m"

else

echo

-e "\033[31m 指令碼執行遇到錯誤! \033[0m"

fi

centos 中文輸入法

centos 中文輸入法 首先必須保證系統支援中文 fonts chinese 3.02 12.el5.noarch.rpm fonts iso8859 2 100dpi 1.0 17.1.noarch.rpm 安裝上這兩個包 就可以了 安裝輸入法 安裝scim 需要scim scim libs s...

centos中文輸入法安裝

一 系統語言的修改 編譯該目錄下的內容 vi etc sysconfig i18n 英文系統 lang en us.utf 8 sysfont latarcyrheb sun16 中文系統 lang zh cn.gb18030 language zh cn.gb18030 zh cn.gb2312 ...

CentOS 安裝中文輸入法

centos 6.3用yum安裝中文輸入法 1.需要root許可權,所以要用root登入 或su root 2.yum install chinese support 3.exit 4.回到桌面,system preferences input method 在centos 5上 system pr...