This paper is participating in the30 years of Linux”Topic essay activity

The cause of

There was a server in the group several years ago, and the system was changed at the end of last year. At the beginning, the ubuntu16.04 system was pre-installed, but some bugs appeared in the process of using the system, so the system was reinstalled, and the version was still ubuntu16.04. However, I encountered various problems in the process of reinstalling the system. At first, I wanted to upgrade the version, so I chose Ubuntu18 Server version. However, during the installation process, there were errors, so I chose Ubuntu20, which still reported errors, and finally SWITCHED back to Ubuntu16.

process

Until this summer vacation, the system did not pop Windows all kinds of bugs, graphics card this time and a problem. Machine a total of four GeForce GTX TITAN X graphics cards, the use of the process of the graphics card suddenly down, use the commandnvidia-smiDisplay card status error:

Note: the screenshots are made under centos. The previous Ubuntu screenshots are not retained, but the errors are the same.

After the host is restarted, the graphics card can be detected, but the same error will occur if you run the nvidia-smi command multiple times.

So I switched to another system, this time Centos7 (HKUST mirror source).

Error on Querying NVIDIA Devices. Use — Debug Flag for Details, Therefore.. That’s it

Mirror to choose

Log in to the USTC image source and search for the centos keyword

Version selection

There are four image formats: DVD, Everying, Minimal, and NetInstall

  • DVD: Contains many basic RPM packages that can be installed using the RPM tool.
  • Everything: Contains all software components and is large.
  • Minimal: Minimal version, contains core components and is small in size.
  • NetInstall: indicates the network installation version

Here we choose the DVD version of Centos7 image, with many RPM packages built in, you can still install some basic packages according to your own needs when you are not connected to the Internet.

Make a USB boot drive

Burn tool: UltraISO

Start UltraISO as an administrator (Free trial version)

Follow the above steps to finally write to the U disk.

Host BOIS setup (Short steps, no maps)

During the startup, press and hold down F2 continuously to go to the setting screen, and select the USB Boot option from Boot option. After the Settings are set and saved, the system will restart automatically. Then, press F12 continuously to enter the boot option selection screen. At this time, you can see your usb boot option. The BOIS Settings and startup keys may vary depending on the host vendor. For details, refer to the following information.

The installation process

Note: No photos are taken during the operation of the physical machine. The screenshot is from the network view. Select a language after entering the installation screen and use the default language

Configure the time zone

Just select Shanghai on the map page of the jump.

Select an Installation position

Autonomous partition (no more maps)

Mandatory partitions /boot and swap

The size of /boot is 512 MB and stores startup files.

Generally, the size of a swap partition is twice that of the physical memory. For example, if the physical memory is 16 GB, you can set the size of a swap partition to 32 GB. If the physical memory is insufficient, the swap partition space will be used.

The/root directory, /home /usr /opt directory, etc., can be allocated according to their own requirements.

Setting the root password

The installation

The system automatically restarts after the installation is complete

Yum source set

Centos installs some software using yum tools, similar to Ubuntu’s apt-get.

Modify the yum image source

First, back up the original files, then download netease’s image source, generate cache, and finally update

[root@localhost ~]# mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.bak
[root@localhost ~]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# wget http://mirrors.163.com/.help/CentOS7-Base-163.repo
[root@localhost yum.repos.d]# yum makecache
[root@localhost yum.repos.d]# yum -y update
Copy the code

The last

Here, we have completed the installation of the system, more environment according to their own needs to install.

Don’t say, graphics card driver configuration installation here is not introduced, because I found that graphics card driver or the same hung (꒦_꒦), I want to go to the card test, graphics card driver installation and test results will be given in another article. (The more likes, the faster the update.)

Refer to the post

2. Yum configuration