How to Install CentOS 7 Step by Step Guide

How to Install CentOS 7 Step by Step Guide

 

Red Hat Enterprise Linux 7 or commonly known as RHEL 7 is the enterprise Linux distribution by Red Hat. It’s not freely available on the internet. But RHEL is not free. So I am going to install CentOS 7. CentOS 7 is an RHEL 7 alternative. CentOS 7 is basically RHEL 7 without the RHEL 7 logo. It comes with the same features, same stability, same software and it’s compatible with RHEL 7.

This is a step-by-step tutorial on how to install RHEL 7 or CentOS 7 with screenshots. To follow this tutorial, you need to have the following requirements:

  • A computer or a VM for installation RHEL7 or CentOS 7.
  • RHEL 7 or CentOS 7 installation iso file.
  • A little bit patience.

 

Downloading the installation image:

You can download CentOS 7 iso image from https://www.centos.org/  or RHEL from the official website of Red Hat.

Booting:

Now burn the iso to a DVD or create a bootable USB. You can boot the iso directly on any virtualization package such as VirtualBox, VMWare, Hyper-V etc. It doesn’t matter what you use, the installation procedures should be the same.

Installation:

Once the installer starts, you should see the following options.

install

Select “Install CentOS 7” and press Enter.

The graphical installer should start in a few seconds as shown in the screenshot below.

continue

Select your language and click on “Continue”.

You should see the window as shown in the screenshot below.

screenshot

Most of it is pretty self-explanatory. The most important part here is partition selection and software selection.

I am going to install a minimal CentOS 7 installation. That is, I won’t install any GUI (graphical user interface).

The first thing to do is set up the partition. I am installation it on a VM, so I am going to give it the whole disk. Click on “Installation Destination”.

You should see a window as follows:

you-should-see-a-window-as-follows

Configure your partition here and click on “Done”. If you’re using a VM as I am, then you can just click on “Done” and not do anything else.

“Software Selection” is “Minimal install” by default. So I am not going to worry about it. But you may want to install a graphical user interface, in that case, just click on it and select “Server with GUI” and click on “Done”.

server-with-gui

Once you’re happy, click on “Begin Installation”. You should see the following window.

root-password

Here, you should enter a root password and create an ordinary user.

First create a root account by clicking on the “Root Password” option at the top.

You should see this window. Type in the password and click on “Done”.

done

Now click on “User Creation” and set up a user account.

user-creation

Mark and enable the option, “Make this user administrator”. So this user account will have sudo enabled. Otherwise you will have to reconfigure it later for sudo privilege and it’s a bit of extra work.

Click on “Done” once you’re okay with the information you provided.

Now wait and let the installation finish.

Once it’s complete, click on “Reboot”.

reboot

You should see the login prompt once the system boots up.

login

Enter your username and password to login.

Congrats! You’ve successfully installed CentOS 7 or RHEL 7 on your machine.