Back to the beginning of the installation On this page
3. Network configuration
4. Configuring / etc / hosts
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.
Next, we will move to the SYSTEM item, and then indicate the installation destination folder.
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.
Next, we will configure our network, go to the NETWORK & HOSTNAME item by selecting it.
Next, we will add the hostname as server1.example.com and then we will configure our LAN portion by clicking Configure.
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.
Then you can manage the network according to the LAN / WAN connection, in my case I use a static IP, so I chose Manual.
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 126.96.36.199 and 188.8.131.52. These values may vary depending on your network. Then click Save.
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.
Now we are ready for the installation process, you can double-check all the settings and then click Start installation again.
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.
Next Enter any password of your choice and click Finish.
Next, we’ll move on to creating a user.
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.
Next, be patient and wait for the installation to complete.
After the installation is complete, it will ask you to reboot, just click Reboot.
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.
Next, you need to enter the username and password.
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
It will look similar to the image below:
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:
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.
- CentOS: http://www.centos.org/
Back to the beginning of the installation