请选择 进入手机版 | 继续访问电脑版
 找回密码
 立即注册

QQ登录

只需要一步,快速开始

搜索
开启左侧

centos7安装、引导、美化

马上注册,分享更多源码,享用更多功能,让你轻松玩转云大陆。

您需要 登录 才可以下载或查看,没有帐号?立即注册

x
安装

    Another app is currently holding the yum lock; waiting for it to exit...
#rm -f /var/run/yum.pid安装 清华大学源、eple

    安装mirrors源
# 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
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/os/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/updates/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/extras/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
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
baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/$releasever/centosplus/$basearch/
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
    安装epel
[epel]
name=Extra Packages for Enterprise Linux 7 - $basearch
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch
failovermethod=priority
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7

[epel-debuginfo]
name=Extra Packages for Enterprise Linux 7 - $basearch - Debug
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/$basearch/debug
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-debug-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1

[epel-source]
name=Extra Packages for Enterprise Linux 7 - $basearch - Source
baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/SRPMS
#mirrorlist=https://mirrors.fedoraproject.org/metalink?repo=epel-source-7&arch=$basearch
failovermethod=priority
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7
gpgcheck=1识别ntfs、exfat文件格式

    安装ntfs-3g
yum install ntfs-3g
    安装nux-dextop.repo
yum install -y http://li.nux.ro/download/nux/dextop/el7/x86_64/nux-dextop-release-0-5.el7.nux.noarch.rpm
    安装 exfat-utils、fuse-exfat
yum install exfat-utils fuse-exfat自动寻找win10引导

grub2-mkconfig -o /boot/grub2/grub.cfg安装 Chrome浏览器

    下载 google-chrome-stable_current_x86_64.rpm安装 rpm -ivh google-chrome-stable_current_x86_64.rpm 安装错误信息:


[root@client Downloads]# rpm -ivh google-chrome-stable_current_x86_64.rpm
warning: google-chrome-stable_current_x86_64.rpm: Header V4 DSA/SHA1 Signature, key ID 7fac5991: NOKEY
error: Failed dependencies:
    libXss.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libappindicator3.so.1()(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libnss3.so(NSS_3.22)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
    libssl3.so(NSS_3.28)(64bit) is needed by google-chrome-stable-67.0.3396.87-1.x86_64
解决办法:repoquery --nvr --whatprovides <依赖文件>,依次安装所有输出包。
[root@lenmomDesktop Downloads]# repoquery --nvr --whatprovides  libappindicator3.so.1
libappindicator-gtk3-12.10.0-13.el7
[root@lenmomDesktop Downloads]# yum install -y libappindicator-gtk3-12.10.0-13.el7
    再次安装 rpm -ivh google-chrome-stable_current_x86_64.rpm
root用户 不能启动,在//usr/share/applications/google-chrome.desktop中,Exec=/usr/bin/google-chrome-stable --no-sandbox
升级系统、卸载旧系统

    升级系统
yum makecache
yum update
    卸载旧系统
rpm -qa | grep kernel
sudo yum remove -y 旧内核名字替换hosts文件 到/etc/

https://github.com/googlehosts/hosts/blob/master/hosts-files/hostsshell Extension

    打开Tweaks应用, Extensions->User themes 启用 打开 应用商店 ,Add-ons->Shell EXtension->Dash to Dock 安装,设置Bottom;Appearance->Customize opacity为Fixed,透明度0%
      Hide Top Bar

安装主题

    下载 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了
隐藏任务栏

rm -rf /usr/share/gnome-shell/extensions/window-list@gnome-shell-extensions.gcampax.github.com
按 alt+f2 输入 r 回车
更改输入法颜色

gedit /usr/share/themes/X-Arc-Plus/gnome-shell/gnome-shell.css
.candidate-box {
  transition-duration: 0s;
  padding: 0.3em 0.5em 0.3em 0.5em;
  border-radius: 2px; }
  .candidate-box:hover {
    background-color: rgba(236, 239, 241, 0.2);
    color: #5d585d; }
  .candidate-box:active, .candidate-box:selected {
    background-color: rgba(148, 211, 255, 0.4);
    color: #131313; }
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

  • 0 关注
  • 0 粉丝
  • 2 帖子
广告招商