CentOS安装配置
Contents
之前从来没有尝试过CentOS linux,之所以用这个系统一方面是想装CUDA 10.0,另一方是尝试以下Red Hat系的系统。安装过程十分方便,把DVD版本的景象写入U盘即可(我推荐一个工具rufus,以dd形式写入就行),之后就是图形化的安装界面了,本文主要介绍一些安装后个人喜欢的软件和配置。
1.配置软件源
首先备份 CentOS-Base.repo
|
|
下载对应版本的 CentOS-Base.repo , 放入 /etc/yum.repos.d/
我的系统是CentOS7,放入以下文件命名为CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#
[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#released updates
[updates]
name=CentOS-$releasever - Updates
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
# mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
baseurl=https://mirrors.ustc.edu.cn/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
更新软件源
之前总是cant resolve 正常的网址,所以这次就先在/etc/resolv.conf中加一句
|
|
添加好用的软件源
EPEL [与官方源不冲突]
|
|
ELRepo [包含各种硬件驱动]
|
|
Nux Dextop [多媒体相关软件包][与EPEL个别软件冲突]
|
|
2. 安装一些软件
chrome
https://www.google.cn/chrome/下载rpm
|
|
下载SwitchOmega插件
https://github.com/FelisCatus/SwitchyOmega/releases
crx后缀改为zip解压后安装
anaconda:不多说了,下载安装
|
|
idea pycharm
jetbrains官网下载
ss-qt5
|
|
git
|
|
compton 为了透明的窗口效果
|
|
hugo
|
|
sublime text
Install the GPG key:
|
|
Stable
|
|
Dev
|
|
Update yum and install Sublime Text
|
|
R & Rstudio
|
|
3.改字体
希望所有字体都是文泉驿
在系统设置里改就行
4. 设置自动更新的桌面
具体见下一篇文章
5. tensorflow GPU 环境设置
具体见下两篇文章
参考
- CentOS 源使用帮助http://mirrors.ustc.edu.cn/help/centos.html
- CentOS 7 下软件安装方法和策略 https://www.jianshu.com/p/e35863947b30
- CentOS7安装和使用DNF https://my.oschina.net/liuyuantao/blog/756133
- ss-qt5安装指南 https://github.com/shadowsocks/shadowsocks-qt5/wiki/%E5%AE%89%E8%A3%85%E6%8C%87%E5%8D%97
- gohugoio/hugo https://github.com/gohugoio/hugo/releases
- Sublime Text https://www.sublimetext.com/docs/3/linux_repositories.html#yum