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

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的搜狗输入法。

$ 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即可。

原文地址:https://www.cnblogs.com/lenmom/p/9191704.html