CentOS7工作站配置
CentOS7虽然是服务器系统,但是也可以打造成个人开发用的工作站,完全可以代替windows和ubuntu,个人感觉比Ubuntu好使,最起码界面不卡,操作比较流畅,这是我之前配置CentOS7的详细步骤过程,先在这里分享一下。
文章目录
1. 配置阿里云yum源
cd /etc/yum.repos.d/
mv CentOS-Base.repo CentOS-Base.repo.backup
wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
yum clean all
yum makecache
yum update
2. 安装EPEL源
yum -y install epel-release
yum repolist
yum -y install yum-utils
3. 安装为知笔记
yum install yum-plugin-copr
yum copr enable mosquito/wiznote
yum install wiznote
yum install wiznote-beta
4. 安装wps
# 先要下载wps的字体库
unzip wps_symbol_fonts.zip -d /usr/share/fonts/wps-office
tar zxvf wps_symbol_fonts.tar.gz -C /usr/share/fonts/
cd /usr/share/fonts/
chmod 755 wps_symbol_fonts
cd /usr/share/fonts/wps_symbol_fonts
chmod 644 *
cd /usr/share/fonts/wps_symbol_fonts
mkfontdir
mkfontscale
fc-cache
# 再安装wps的rpm包
yum install wps-office-10.1.0.5707-1.a21.x86_64.rpm
5. 安装chrome浏览器
# 方法一
https://www.chrome64bit.com/index.php/google-chrome-64-bit-for-linux
yum install google-chrome-stable_current_x86_64.rpm
# 方法二
# 在/etc/yum.repos.d/目录下新建文件google-chrome.repo
#-------------------------------------------------------------
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/$basearch
enabled=1
gpgcheck=0
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub
#-------------------------------------------------------------
yum install google-chrome-stable
6. 支持ntfs格式硬盘
yum install ntfs-3g.x86_64
7. 安装媒体播放器
yum -y install http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
yum install libdvdcss gstreamer{,1}-plugins-ugly gstreamer-plugins-bad-nonfree gstreamer1-plugins-bad-freeworld libde265 x265
yum install vlc smplayer
8. 安装python相关
yum -y install python-pip
9. 简便安装主题
# 安装 Numix 主题和图标
yum install numix-gtk-theme numix-icon-theme-circle
# 安装 paper 图标
yum install paper-icon-theme
# 安装 xenlism 主题、图标和壁纸
yum install xenlism-wildfire*
# 安装 arc 主题(个人喜欢arc的主题)
yum install arc-theme
10. 手动安装主题
gnome是通过gnome-tweak-tool(优化工具)来管理的,可以在左上角的应用程序->工具里找到。也可以直接在终端输入gnome-tweak-tool来启动它。
10.1 主题目录
- 存放主题的地方
/usr/share/themes (公共) ~/.themes(用户) - 存放图标、光标样式的地方
/usr/share/icons - 存放扩展的地方
/usr/share/gnome-shell/extentions(公共)
~/.local/share/gnome-shell/extentions(用户)
10.2 安装主题
- X-Arc-Collection (包括GTK+ 和 shell 主题)
下载链接: https://www.gnome-look.org/p/1167049/ - macOS High Sierra主题下的图标(MacOSX-icon-theme)和光标样式(MacOSX-cursors)
下载链接: https://www.gnome-look.org/p/1013714/ - 安装
将X-Arc-Collection解压可得到它提供的四种主题,个人比较喜欢X-Arc-Plus,只要将
X-Arc-Plus整个目录放到/usr/share/themes下就OK了。
同样将MacOSX-icon-theme以及MacOSX-cursors解压,然后放到/usr/share/icons目录下就ok了。 - 注意事项
- 需要在优化工具->扩展中启用User themes. 否则shell 主题选择不了。
- 重启下桌面(Alt + F2) 然后在弹出框中输入r即可。
做完以上步骤后开启优化工具,将GTK+、图标、鼠标、shell 主题修改即可。
10.3 安装扩展
-
dash to dock
是一个可以将应用程序固定到左侧、底部。非常好用的扩展。
下载地址 http://micheleg.github.io/dash-to-dock/
dash to dock 设置里面有一个外观选项, 可以将dock的黑色背景设置成透明的。 -
DynamicTopBar
下载地址 https://github.com/AMDG2/GnomeShell_DynamicTopBar
可以将桌面顶部变得透明。
至于怎么安装扩展,官网写的很详细看下就懂了,就不啰嗦了。
Centos默认开启了Window list扩展,使得底部有一个白条,影响美观,将它关闭即可。