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

來源:互聯網
上載者:User

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/

使用預設Firefox進入這個網站。。只有Firefox安裝了外掛程式Gnome Shell Integration 才能正常訪問 會安裝到

TaskBar  設定頭部表徵圖

Topicons   會把fcitxIME表徵圖移動到頂部欄上

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安裝IME  國內一位兄台的源  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. 安裝搜狗IME
# yum install sogou-pinyin sogou-pinyin-skins
3. 配置fcitx
以登陸使用者運行以下命令,關閉ibus鍵盤監聽  這個是普通使用者執行。。root不行
# gsettings set org.gnome.settings-daemon.plugins.keyboard active false
切換IME
# imsettings-switch fcitx
最後,最好重啟系統,IME會自動啟動。
4. “美化”
- IME表徵圖在底部的通知欄,安裝gnome3的 top-icon 擴充,可以使表徵圖移到頂部工作列;
- 安裝 gnome-shell 的 InputMethod Panel 擴充,使用與gnome3風格統一的IME樣式;
- sogou-pinyin-skins 包提供了 58 款皮膚,右擊IME表徵圖,可以選擇喜歡的皮膚

 

9. 安裝cinnamon 

yum install cinnamon*

IME有問題

vi ~/.bashrc

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

搜狗IME不能自啟動的話

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  搜狗IME

CentOS 7下安裝fcitxIME的方法如下。

加入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是一個私人製作的第三方源,其中包含了fcitxIME以及基於fcitx的搜狗IME。 項目地址: 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
安裝搜狗IME 安裝
$ yum install sogou-pinyin sogou-pinyin-skins
配置

首先關閉gnome-shell 對鍵盤的監聽,然後切換IME為fcitx: (啟用鍵盤鍵盤監聽後,依然可以用鍵盤預設的ibusIME)

$ gsettings set org.gnome.settings-daemon.plugins.keyboard active false$ imsettings-switch fcitx
 重載 fcitx, 啟動搜狗面板 

$ fcitx -r; fcitx-configtool 
$ sogou-qimpanel

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

似乎需要重啟,或者退出使用者重新登陸。 安裝其他IME

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

$ yum install fcitx-googlepinyin fcitx-cloudpinyin # Google拼音IME$ yum install fcitx-rime fcitx-cloudpinyin # 中州韻IME$ yum install fcitx-libpinyin fcitx-cloudpinyin # libpinyinIME$ yum install fcitx-sunpinyin sunpinyin-data fcitx-cloudpinyin # sunpinyinIME
清理工作 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即可。

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.