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输入法的方法如下。
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
- 重载 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 搜狗输入法的坑旅的更多相关文章
- Ubuntu 常用工具、指令安装
修改source list,使用阿里云的软件源 sed -i s/archive.ubuntu.com/mirrors.aliyun.com/g /etc/apt/sources.list sed - ...
- CentOS 笔记(五) 常用工具
远程 :XShell6 ,PuTTy FPT:Xfpt ,pscp.exe
- CentOS 6.3 中安装VirtualBOX增强工具失败:Building the main Guest Additions module[FAILED]
在VirtualBox里安装CentOS系统,会遇到“增强工具”无法正常安装,主要的原因是出在Kernel 库找不到. 错误提示如下: 通过查看日志文件: cat /var/log/vboxadd- ...
- ios开发环境配置及cordova安装与常用命令
一.ios开发环境配置 1.首先要有台Mac Book,如果有Mac Book,跳过步骤2.3.4,如果没有,执行步骤2.3.4: 2.下载并安装VMware Workstation,最好是下最新版本 ...
- 安装Goland开发工具
安装Goland开发工具 开发工具: 文本类的编辑器:记事本,notepad,sublime text,atom... 通过命令执行程序 IED:集成开发环境(integrated develop ...
- 记录redis安装及常用命令
Redis安装及常用命令 一.安装 1.下载,解压,进入redis解压目录,make. make PREFIX=目录/redis install :安装到指定目录文件名为redis. 2.将解压目录里 ...
- win10纯净版安装及其常用软件集锦(2020新年湘岳阳万江波整理)
win10纯净版安装及其常用软件集锦 1.安装win10纯净版:链接:https://pan.baidu.com/s/1L9yl-LNxxDQbEN_TGswzcA 提取码:u0pt 2.安装WPS2 ...
- 关于ubuntu服务器上部署postgresql 以及安装pgadmin4管理工具(web版)
进入目录:cd pgadmin4 source bin/activate cd pgadmin4-1.6/ 启动pgadmin4:python web/pgAdmin4.py pgadmi ...
- Git安装和常用命令
Git是目前世界上最先进的分布式版本控制系统!!! Git能自动帮我们记录每次文件的改动,还可以让同事协作编辑. 接下来,简单的介绍下Git的安装和常用命令: Git安装: 1.Windows系统,进 ...
随机推荐
- dpkg: 处理归档 /var/cache/apt/archives/swig2.0_2.0.12-1ubuntu4_amd64.deb (--unpack)时出错:
问题: sudo apt-get upgrade 正在读取软件包列表... 完成 正在分析软件包的依赖关系树 正在读取状态信息... 完成 正在计算更新... 完成下列软件包的版本将保持不变: lib ...
- 开源一款ftp软件——filezilla
filezilla是一款高性能ftp/sftp文件工具,关于它的具体的介绍可参见其官网:https://www.filezilla.cn/.其原作者是Tim Kosse (tim.kosse@file ...
- caffe学习记录2——blobs
参考:caffe官网 2016-01-23 10:08:22 1 blobs,layers,nets是caffe模型的骨架 2 blobs是作者写好的数据存储的“容器”,可以有效实现CPU和GPU之 ...
- times(NULL) Segmentation fault
****************************************************************************** * times(NULL) Segment ...
- 实战maven私有仓库三部曲之二:上传到私有仓库
在上一章<实战maven私有仓库三部曲之一:搭建和使用>我们搭建了maven私有仓库,并体验了私有仓库缓存jar包的能力,避免了局域网内开发人员去远程中央仓库下载的痛苦等待,本章我们再来体 ...
- AspectJ语法
AspectJ语法 看了很多AOP的文章了,AOP这两年发展的很慢,没有什么新意,现在到处都是SOA,SCA了,不过研究了一下,觉得还是很有帮助的.尤其是增加系统的契约性和模块的独立性来说,很有帮助. ...
- Break point and VC bound
Restriction of Break Point e.g: k=2 说明在所有的dichotomy中,任意两个点不能被shatter(shatter就是能够出现所有种排列组合),即不能出现这两个点 ...
- [LOJ6145][2017 山东三轮集训 Day7]Easy
loj description 一棵树,每次给出\(l,r,x\),求从点\(x\)出发到达\([l,r]\)中任意一点的最短距离. sol 动态点分治. 建出点分树后,在每个节点上用以点编号为下标的 ...
- 三分钟教你同步 Visual Studio Code 设置
简介 Visual Studio Code(以下简称vsCode)现在已经渐渐成为前端开发的主力工具,谁让它这么轻便,功能又这么轻便呢.用vscode Coding的小伙伴们也一定会装很多插件吧. ...
- FileStream读写文件
读文件示例 try { // 打开文件 FileStream fs = new FileStream("D:\\not.txt", FileMode.Open, FileAcces ...