This page looks best with JavaScript enabled

A Few Things to Do After Installing CentOS

 ·  ☕ 2 min read

1. Replacing the Repository Mirror

First, back up the official repository.

1
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup

Download the new repository to /etc/yum.repos.d/

CentOS 5

1
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo

CentOS 6

1
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo

CentOS 7

1
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

Generate the metadata cache.

1
yum makecache

2. Accessing NTFS File Systems

The Linux kernel currently only supports reading Microsoft’s NTFS file system. ntfs-3g is an open-source implementation of Microsoft’s NTFS file system that supports both reading and writing.

ntfs-3g lives in the epel-release repository. Run the following command to find the epel repository:

1
yum search epel

Install the epel-release repository:

1
yum install epel-release.noarch

Install ntfs-3g by running:

1
yum install ntfs-3g

3. Repairing Grub to Boot Windows

Because the Linux system cannot recognize the partitions of the Windows operating system, you still need to install ntfs-3g first.

Restoring the grub configuration file takes only one command:

1
grub2-mkconfig -o  /boot/grub2/grub.cfg

4. Installing Google Chrome

Add the repository.

1
2
3
4
5
6
7
8
cat << EOF > /etc/yum.repos.d/google-chrome.repo
[google-chrome]
name=google-chrome
baseurl=http://dl.google.com/linux/chrome/rpm/stable/x86_64
enabled=1
gpgcheck=1
gpgkey=https://dl.google.com/linux/linux_signing_key.pub
EOF

For installation you can choose the stable or beta version:

1
yum install google-chrome-stable

Or

1
yum install google-chrome-beta

5. Installing VS Code

Add the repository.

1
2
rpm --import https://packages.microsoft.com/keys/microsoft.asc
sh -c 'echo -e "[code]\nname=Visual Studio Code\nbaseurl=https://packages.microsoft.com/yumrepos/vscode\nenabled=1\ngpgcheck=1\ngpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/vscode.repo'

Install:

yum install code

WeChat Official Account
WRITTEN BY
WeChat Official Account