CentOS is one of the popular Linux distribution. It is closely tie to RedHat Linux. In fact, it is derived from the sources of Red Hat Enterprise Linux (RHEL). If you are looking for a stable and manageable Linux distribution without the requirement of the commercial support of Red Hat, CentOS is the perfect choice.
In this article, y0u will find the step by step instruction on how to install CentOS Linux 7 with screenshots.
Download the install media (iso)
You can download the CentOS install media directly from CentOS or from one of their Mirrors.
One of the mirror I often use (Cogent)
Prepare the install media
After you download the ISO file, you can either burn it to a DVD disc if you are installing on a bare metal machine or you can attach it to a storage accessible by the Virtual Environment.
Once that is done, boot the system (bare metal or virtual) with the install media. In this tutorial, I am using a Virtual Environment and access the console via noVNC.
Once you boot off the install media, you will see the initial CentOS 7 install screen. Choose Install CentOS 7 to continue.
In the next CentOS 7 installation welcome screen, select your Installation language and click Continue
Installation Summary Screen. In here, you can choose different options or configure your server. Let’s start with the date and time.
Select the time zone and time display preference. Click Done with finish.
Next, choose Installation Destination.
In the Installation Destination screen, choose the drive you like to install CentOS. In my situation, I only one drive to choose from. So I basically just click Done in here.
Now, choose Network & HOST Name
In the Network & Host Name screen, turn on the Ethernet(eth0). If you are using DHCP, all you need is just wait for the server to get the IP information by itself. If you are going to use Static IP for the server, click the Configure… button at the lower right hand corner and change the IPv4 Settings from Automatic (DHCP) to Manual. Add the IP address, subnet mask and Gateway follow by adding DNS servers IP in the Additional DNS Server box. Click Save once you are done with entering the IP information.
Before you click the Done button, be sure to change the Host Name at the bottom left of the Window and click Apply.
I usually leave all the rest of the options/settings to the default settings and click Begin Installation to start the CentOS 7 installation.
On the next screen, click ROOT PASSWORD and USER CREATION to set the root password as well as create a regular user. It is better to login to the server with a regular user instead of root for security reason.
After you finish setting up the new users and root password, just wait for the system to finish install the files . At the end, just hit the Reboot button to finish the installation.
Allow the system to finish reboot. If everything is correct, it should stop at the server log in prompt.
Go ahead and login to the server now and perform a System Update with the following command.
It may take a while for the system to download and install all the update.
sudo yum -y update
After the update is done, reboot the server to load the new kernel.