How to install a minimal CentOS 7 server. Page 2

Back to the beginning of the installation On this page

3. Network configuration

4. Configuring / etc / hosts

5. Links

Next we will go to the software selection, by default it comes with a minimal installation.

centOS 7 installation” width=”550″ height=”415″ srcset=”” sizes=”(max-width: 550px) 100vw, 550px”>

Then we can add more if required, but in our case, we only need a minimal installation (basic functionality), so I save the settings by clicking Finish.

Choosing a minimal CentOS 7 installation

Next, we will move to the SYSTEM item, and then indicate the installation destination folder.

Selecting software in centOS 7 installation

Further, if you need to manually partition the disk, then you can choose to configure the partition, in my case, I prefer to automatically configure the partition, then click the Finish button.

Partitioning the disk SYSTEM item when installing CentOS 7

Next, we will configure our network, go to the NETWORK & HOSTNAME item by selecting it.

Choosing NETWORK & HOSTNAME in centOS 7 installation

Next, we will add the hostname as server1.example.com and then we will configure our LAN portion by clicking Configure.

Provide hostname when installing CentOS 7

The next screen will be like this, now we want to add IPv4 settings by selecting it. If you have IPv6, then you add it in the IPv6 settings.

add IPv4 settings in CentOs 7 installation

Then you can manage the network according to the LAN / WAN connection, in my case I use a static IP, so I chose Manual.

Selecting LAN / WAN Connection Type in CentOS 7 Installation

Then add records according to your static IP address, in my case I use the address as 192.168.0.100, netmask as 255.255.255.0, gateway as 192.168.0.1 and DNS server as 8.8.8.8 and 8.8.4.4. These values ​​may vary depending on your network. Then click Save.

Editing LAN / WAN in a CentOS 7 Installation

Next, we need to make a connection, click on the ON switch, as shown in the screenshot below. It will show details according to the settings you entered earlier. Then click Finish.

Enabling LAN / WAN in a CentOS 7 Installation

Now we are ready for the installation process, you can double-check all the settings and then click Start installation again.

CentOS 7 installation process

After clicking the button, the installation process will begin. Now we need to enter USER SETTINGS, ADMINISTRATOR PASSWORD and CREATE USER. I will change the password for root first.

The page for changing password and creating a user when installing CentOS 7

Next Enter any password of your choice and click Finish.

Creating a password when installing CentOS 7

Next, we’ll move on to creating a user.

Creating a user when installing CentOS 7

Next, I will create a user, as in my case I used the full name as root, login as administrator, check the Prompt for a password to use this account option, and then click Finish. Of course, you can use whatever value you choose.

Creating a user and his password when installing CentOS 7

Next, be patient and wait for the installation to complete.

Completing the CentOS 7 installation

After the installation is complete, it will ask you to reboot, just click Reboot.

Reboot after installing CentOS 7

Next, CentOS 7 will boot and a selection menu will appear on the screen: Boot the system or start the recovery process in case of problems.

CentOS 7 Boot Selection Screen

Next, you need to enter the username and password.

Entering username and password CentOS 7

We are now ready to do the login with the user we just created above, or we can use the root credentials.

3. Network configuration

If you want to change or view the network configuration file, just edit the file

nano /etc/sysconfig/network-scripts/ifcfg-eno16777736

It will look similar to the image below:Network configuration in CentOS 7

Change the values ​​as required.

Note: This device name is subject to change, so please check the equivalent file in the / etc / sysconfig / network-scripts directory.

CentOS 7.0 does not minimally come with the Ifconfig command pre-installed, we will install it like this:

yum install net-tools

Optionally, we can install the vim and nano editors on CentOS, like this:

yum install nano vim

4 Adjust / etc / hotsts

We will now log in with root credentials and set up the / etc / hosts file as follows:

nano /etc/hosts

Make the values ​​as follows:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
192.168.0.100   server1.example.com     server1

::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Congratulations! We now have a basic server with a minimal CentOS 7 setup that provides a solid foundation for our other tutorials.

Back to the beginning of the installation

Sidebar