- Introduction
- Table of contents
- Introduction
- CentOS 7 system requirements
- CentOS 7 ISO Image Destinations
- CentOS-7-x86_64-DVD
- NetInstall
- Everything
- LiveGNOME and LiveKDE
- Minimal
- Download CentOS 7
- Creating a bootable CentOS7 USB disk
- Let’s start installing CentOS 7
- Setting up CentOS 7
- Network Manager Service
- Setting up a CentOS 7 network
- Download files over the network
- Installing and configuring NTPD
- Download with wget
- Download CentOS Image
- After installation
- Installing CentOS 7
- Creating a bootable flash drive for CentOS 7 or burning to CD/DVD
- Creating a bootable flash drive for CentOS 7
- Burning CentOS 7 to CD/DVD
- Installing CentOS 7
- Conclusion
Introduction
Installing CentOS has become easier over the years. In this and neighboring articles you will find several examples with illustrations.
- Home
- Categories
- Operating systems
- Installing CentOS 7
What should be done before configuring any server? That’s right, you first need to install the operating system on which it will work. We will install CentOS 7 server in configuration minimal
from a bootable flash drive or CD/DVD.
![]()
Table of contents
<!—
—>
Introduction
CentOS
is one of the most reliable Linux distributions. The abbreviation in the name stands for Community ENTerprise Operating System. CentOS based
on a commercial distribution of Red Hat Enterprise Linux (RHEL) and uses Yum to download and install updates from the repository.
CentOS 7 system requirements
Also, all specifications for all versions of the operating system can be viewed on the official website
.
CentOS 7 ISO Image Destinations
CentOS-7-x86_64-DVD
This ISO image is standard and contains all the packages that you can select when installing the system. Start your acquaintance with CentOS with it
NetInstall
The NetInstall image is intended for installing a system over a network or for recovering a damaged system.
You will be given the choice of the location from which the packages will be installed. This is very convenient if you have a local repository with the required number of packages.
Everything
The Everything ISO image contains the most complete set of operating system packages. The size of this image is about 8 GB.
LiveGNOME and LiveKDE
These two images are a CenOS 7 LiveCD. The difference between them is only in the KDE or GNOME graphical environment. You can test the system without installing it on your hard drive.
Minimal
The minimum ISO image is nothing superfluous and it will only be enough for the basic functionality of the system with the most minimal set of packages.
Everything else you will have to install yourself from the repositories. But nothing superfluous and unnecessary 🙂
Download CentOS 7
Creating a bootable CentOS7 USB disk
I think the most successful program for burning ISO images is Rufus 3.11
.
It is very easy to use and intuitive. If the link to download the program did not work, then you will always find the latest version here
.
Let’s start installing CentOS 7
When we boot from the image, select the item Install CentOS 7
and initialize the installation of the system
Select the system installation language and press
Now in order DATE & TIME
Specify the region, city, time and date. Function Network Time
allows you to choose synchronization with NTP servers. Nothing complicated, however, like the whole installation process. Press the button to return to the previous menu
In Section KEYBOARD
through the button we open the list of languages, look for the required language and add it. As the desired language was added, go to the previous menu.
Section LANGUAGE SUPPORT
there’s nothing tricky either 🙂
Go to the tab IPv4 Settings and specify the required parameters
Now we need to select the CentOS installation location INSTALLATION DESTINATION
select a disk and go to the previous menu.
To manually partition a disk, you need to know which partition is for what. When creating partitions, do not forget to select the type LVM
(except the boot-xfs partition)!
- /
root section. Under it, it is worth allocating at least 20-30 GB, since system files are stored in it. - /home
this is the user directory section. This section stores the user’s desktop, documents, images, etc. If this is not a desktop machine, but a server, then
Allocate no more than 10 GB to the partition. - /swap
this is the swap file. It is calculated something like this: 1 GB of RAM = 2 GB - /boot
section for loading the system, from the master’s shoulder we will throw him 1 GB: D. - /var
a very important section in terms of information security, since all logs are written to it, SQL databases and downloaded RPM packages are stored. All that remains, we allocate under this section.
V SOFTWARE SELECTION
we can check the required packages, but for now I’ll leave everything as it is by default.
Starting the installation of CentOS 7
During installation, we will need to create a user and set a password for root.
Upon completion of the installation of the system, we go into reboot
With default settings, our server is accessible via SSH. That’s actually the whole installation 🙂
Setting up CentOS 7
Network Manager Service
Network Manager is needed to automatically connect to the network. This is a very necessary service for a home computer, but we do not need it on the server, as we clearly know
how we need to configure the network connection.
systemctl stop NetworkManager systemctl disable NetworkManager systemctl restart network
Setting up a CentOS 7 network
Configuring the network by editing the config /etc/sysconfig/network-scripts/ifcfg-eth0
. Sample file below
DEVICE=eth0 BOOTPROTO=none ONBOOT= IPADDR=192.168.0.100 NETMASK=255.255.255.0 GATEWAY=192.168.1.1
We also need to specify the server name in the files /etc/sysconfig/network
and /etc/hostname
vi /etc/sysconfig/network
=yes =hostname
vi /etc/hostname
hostname.itlocate.ru
Configure DNS in file DNS in /etc/resolv.conf
vi /etc/resolv.conf
nameserver 192.168.1.10 nameserver 192.168.1.11
After all this, we need to restart the network interface service
systemctl restart network
Download files over the network
Install wget package
yum update #if you haven't already :) yum -y install wget
Installing and configuring NTPD
Ntpd (Network Time Protocol daemon) is a service for synchronizing time with a server.
yum -y install ntp timedatectl set-timezone Europe/Moscow #set the timezone
Now we need to register these same servers. Open the ntp.conf file
vi /etc/ntp.conf
server ntp1.server1.ru iburst server ntp1.server1.ru iburst server ntp3.server2.ru iburst server ntp4.server3.ru iburst
But, having installed the NTPD service, now you can synchronize the time from our server, in order to disable this function, execute the following command:
restrict default ignore
If someone still needs to receive time from our server, then you can add it to the exceptions
restrict 192.168.0.133 noquery notrap
In the local network, you can register as follows
restrict 192.168.0.123 mask 255.255.255.0 nomodify notrap
The firewall can cut synchronization, so let’s add the NTPD service to the exceptions
firewall-cmd --add-service=ntp --permanent firewall-cmd --reload
Start the service and add it to startup
systemctl start ntpd systemctl enable ntpd
You can test as follows
ntpq -p # server list date -R # print the current date and time
Download with wget
Install
wget
sudo yum -y install wget
Download example with
wget
. I am in
Helsinki
so the nearest repository is ftp.funet.fi
Some other repository from the list may be closer to you
As a result
CentOS-7-x86_64-DVD-2009.iso
downloaded to current directory
If you want to save the image to some other directory — use the -P option
In the following command, I selected a different repository from the list and a different image — this time NetInstall
wget -P ~/Downloads http://mirror.hosthink.net/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-NetInstall-2009.iso
Image
CentOS-7-x86_64-NetInstall-2009.iso
will be downloaded to the ~/Downloads directory
wget -x http://mirror.hosthink.net/centos/7.9.2009/isos/x86_64/CentOS-7-x86_64-NetInstall-2009.iso
A hierarchy of directories will be created in the current directory
And the image will be downloaded into it
CentOS-7-x86_64-NetInstall-2009.iso
Download CentOS Image
CentOS repositories can be explored at
centos.org
List of x86_64 repositories for CentOS 7 can be found

Mirror for downloading CentOS 7
After installation
I recommend doing the following
sudo yum -y update
yum install -y redhat-lsb-core net-tools epel-release kernel-headers kernel-devel
yum groupinstall -y «Development Tools»
If you need to enable the interface on boot:
sudo sed -i sONBOOT=noONBOOT=yes /etc/sysconfig/network-scripts/ifcfg-enp0s3
Details in the article
«Setting up CentOS after installation»
Installing CentOS 7
So. We have prepared a bootable USB flash drive or CD / DVD with CentOS 7. Now we can proceed directly to installing the operating system on our PC or server.
We install a flash drive or disk in our PC or server. We set the BIOS to boot from our source.

Install GUI is loading. The system asks in which language do we want to continue the installation? I usually choose English, and I advise you. choose the same.

After selecting the language, we immediately proceed to the main points of installation and configuration. Everything in order:
DATE & TIME
— setting time, date, time zone
KEYBOARD
— setting input methods (selection of input languages)
LANGUAGE SUPPORT
— what languages will the system support

SECURITY POLICY
— Security Settings
INSTALLATION SOURCE
— from where the installation will lead
SOFTWARE SELECTION
— choice of installation packages
INSTALLATION DESTANATION
— where we will install (on which device)
NETWORK & HOSTNAME
— network settings

Press INSTALLATION DESTANATION
and select the hard drive on which we will install our operating system

Go to network settings. We have determined a network card, it shows its MAC and speed. To activate it, move the slider on the right from OFF
on ON


Also, to automatically start the network connection, go to the tab General
and check the box » Automatically connect to this network when it is avalible
» — Automatically connect to the network when possible.

On tab SOFTWARE SELECTION
we have no choice as we are installing version minimal

Go to Vladka LANGUAGE SUPPORT
and add the languages that we need the system to support. For example, I added Russian
.

After you have made the basic settings on the main page at the bottom right, click Begin Installation
.
Immediately after pressing this button, the operating system started to install. And while she is copying files, we are offered to come up with ROOT
password and create a user to work with the system.


Well, the password from ROOT is set in the same way
. After creating a password and a user, all that remains is to wait until the system is installed. As soon as the system is installed, it will prompt you to click on the button Reboot at the bottom right
.
We remove our device from which the installation was performed, a flash drive or disk, and press the button Reboot
and wait for the operating system to load.

After the reboot, all that remains is to log in to the system and check if we have installed it?

Creating a bootable flash drive for CentOS 7 or burning to CD/DVD
Go to the Yandex mirror using the link — http://mirror.yandex.ru/centos/7/isos/x86_64/
and choose CentOS-7-x86_64-Minimal-1611.iso or CentOS-7-x86_64-Minimal-1611.torrent
The versions above are current at the time of writing. Perhaps when you download the image, there will be more recent builds.
So, you have downloaded the image. now we need to write it to external media to install it on the server. For this, a USB flash drive with a capacity of 1 GB or more, or a CD, or a DVD, is suitable.
Creating a bootable flash drive for CentOS 7
So, first of all, download the Win32 Disk Imager program and install it.
We insert a blank flash drive, run the program and indicate — on the left the path to our image, or click on the «folder» icon and select our image, Device: device (flash drive) on which the image will be written

Press Write
and wait for the end of the recording.
The CentOS 7 bootable flash drive is ready.
Burning CentOS 7 to CD/DVD
If you do not have a flash drive or you need a disk, then you can burn centos 7 to it.
To do this, we need the disc itself, which will be recorded and a free program CDBurnerXP
which does an excellent job of this. Download the program, install and run it.

In the main program window, select » Burn ISO image
» and press OK

We are waiting for the completion of the recording process. All. Our disk with CentOS 7 is ready. We can start installing.
Installing CentOS 7





I advise you to enable the necessary network interfaces in advance











Conclusion

Your obedient servant is a computer scientist of a wide profile: a system administrator, a webmaster, an Internet marketer and many other things.

