1. 程式人生 > >CentOS 7 需要安裝的常用工具,及centos安裝fcitx 搜狗輸入法的坑旅

CentOS 7 需要安裝的常用工具,及centos安裝fcitx 搜狗輸入法的坑旅

spl gnome2 cloud 進入 load rhel 美化 任務 hit

https://blog.csdn.net/tham_/article/details/41868831

Centos常用設置

1.當最大化時隱藏標題欄

或者使用tweak tool 在字體中將標題欄字體設置為0...建議這個方法.


2.添加epel源

yum -y --nogpgcheck install http://download.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-2.noarch.rpm

3 添加 elrepo 源:
1 導入 key:
wget -c https://www.elrepo.org/RPM-GPG-KEY-elrepo.org

rpm --import RPM-GPG-KEY-elrepo.org
2 添加源:rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm

4 更新資源

yum -y install yum-fastestmirror //安裝插件fastestmirror,可以讓yum管理器自動搜索最快源下載
yum makecache //重建repolist資源緩存
yum update //更新。

5.安裝基本工具

gnome2 的 “註冊表編輯器” gconf-editor 正在被 dconf-editor 所取代,更多的隱藏設置也可以通過 dconf-editor 進行修改。不過目前您修改 gconf-editor 同樣生效。

yum install dconf-editor

yum install gconf-editor

yum install ntfs-3g 讀取ntfs硬盤

yum -y install alacarte 自定義應用程序快捷方式

6.安裝shell擴展
yum install gnome-tweak-tool

https://extensions.gnome.org/

使用默認火狐進入這個網站。。只有火狐安裝了插件Gnome Shell Integration 才能正常訪問 會安裝到

TaskBar 設置頭部圖標

Topicons 會把fcitx輸入法圖標移動到頂部欄上

alt+f2 輸入r 重起gnome shell

7.安裝rar工具 註意不要下載錯版本。這裏用的是64位的

wget http://rarlab.com/rar/rarlinux-x64-5.1.1.tar.gz
tar -zxvf rarlinux-x64-5.1.1.tar.gz
cd rar
su root
make
make install


8安裝輸入法 國內一位兄臺的源 https://copr.fedoraproject.org/coprs/mosquito/myrepo/。感謝分享

1 安裝源

# wget https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo -O /etc/yum.repos.d/mosquito-myrepo-epel-7.repo
2. 安裝搜狗輸入法
# yum install sogou-pinyin sogou-pinyin-skins
3. 配置fcitx
以登陸用戶運行以下命令,關閉ibus鍵盤監聽 這個是普通用戶執行。。root不行
# gsettings set org.gnome.settings-daemon.plugins.keyboard active false
切換輸入法
# imsettings-switch fcitx
最後,最好重啟系統,輸入法會自動啟動。
4. “美化”
- 輸入法圖標在底部的通知欄,安裝gnome3的 top-icon 擴展,可以使圖標移到頂部任務欄;
- 安裝 gnome-shell 的 InputMethod Panel 擴展,使用與gnome3風格統一的輸入法樣式;
- sogou-pinyin-skins 包提供了 58 款皮膚,右擊輸入法圖標,可以選擇喜歡的皮膚

9. 安裝cinnamon

yum install cinnamon*

輸入法有問題

vi ~/.bashrc

if [ $DESKTOP_SESSION == "cinnamon" ]; then
export GTK_IM_MODULE=xim
fi

搜狗輸入法不能自啟動的話

sudo rm /etc/xdg/autostart/fcitx-ui-sogou-qimpanel.desktop

cat /home/zhepama/.config/autostart/sogou-qimpanel.desktop
[Desktop Entry]
Type=Application
Exec=sogou-qimpanel
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[zh_CN]=sogou-qimpanel
Name=sogou-qimpanel
Comment[zh_CN]=sogou-qimpanel
Comment=sogou-qimpanel

10.關閉selinux

vi /etc/selinux/config

#SELINUX=enforcing #註釋掉

#SELINUXTYPE=targeted #註釋掉

SELINUX=disabled #增加

:wq! #保存退出

11.完成內核更新後。 再執行。。
vi /etc/grub.d/40_custom

menuentry "win7"{
set root=(hd0,1)
chainloader +1
}

grub2-mkconfig -o /boot/grub2/grub.cfg

12 禁用觸摸版 在系統工具==啟動應用程序中 添加啟動項目

/usr/local/bin/FingerSensingPad.sh off

CentOS 7下安裝fcitx 搜狗輸入法

CentOS 7下安裝fcitx輸入法的方法如下。

加入EPEL源

EPEL7幾乎是CentOS必備的源:

$ wget http://dl.fedoraproject.org/pub/epel/7/x86_64/e/epel-release-7-1.noarch.rpm
$ sudo rpm -ivh epel-release-7-1.noarch.rpm
$ sudo rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

添加mosquito-myrepo源

mosquito-myrepo是一個私人制作的第三方源,其中包含了fcitx輸入法以及基於fcitx的搜狗輸入法。

  • 項目地址: https://copr.fedoraproject.org/coprs/mosquito/myrepo/
  • 支持的發行版: Fedora 19/20/21/rawhide 以及RHEL/CentOS 7
$ yum-config-manager --add-repo=https://copr.fedoraproject.org/coprs/mosquito/myrepo/repo/epel-7/mosquito-myrepo-epel-7.repo

安裝搜狗輸入法 安裝

$ yum install sogou-pinyin sogou-pinyin-skins

配置

首先關閉gnome-shell 對鍵盤的監聽,然後切換輸入法為fcitx: (啟用鍵盤鍵盤監聽後,依然可以用鍵盤默認的ibus輸入法

$ gsettings set org.gnome.settings-daemon.plugins.keyboard active false
$ imsettings-switch fcitx

  1. 重載 fcitx, 啟動搜狗面板
    $ fcitx -r; fcitx-configtool
    $ sogou-qimpanel

安裝完後,fcitx 及搜狗輸入法會出現在右下角的通知欄,這時候需要重啟gnome-3桌面 按住”alt+F2" 輸入 r ,fcitx狀態即可出現在上面的狀態欄。

似乎需要重啟,或者退出用戶重新登陸。

安裝其他輸入法

搜狗輸入法基本夠用了,也可以安裝其他中文輸入法:

$ yum install fcitx-googlepinyin fcitx-cloudpinyin # 谷歌拼音輸入法
$ yum install fcitx-rime fcitx-cloudpinyin # 中州韻輸入法
$ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyin輸入法
$ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyin輸入法

清理工作

mosquito-myrepo在不斷地支持更多的軟件,這也進一步造成該repo中的軟件與base、EPEL中的軟件存在版本沖突,在該repo的項目主頁中建議安裝yum的優先級插件yum-plugin-priorities,這在一定程度上會緩解版本沖突問題,但無法從根本上避免。

鑒於多個repo的版本沖突會造成一些麻煩,最好的辦法還是在安裝完需要的軟件之後就禁用該repo,需要的時候再啟用。

編輯/etc/yum.repos.d/mosquito-myrepo-epel-7.repo,將其中的enable=1改成enable=0即可。

CentOS 7 需要安裝的常用工具,及centos安裝fcitx 搜狗輸入法的坑旅