Cheap VPS & Xen Server

Residential Proxy Network - Hourly & Monthly Packages

How To Install a CentOS 7.1 Minimal Server


This document describes the installation of a CentOS 7.1 server. The purpose of this guide is to provide a minimal setup that can be used as basis for our other tutorials here at Kreationnext like the perfect server guides or the SAMBA , LAMP and LEMP server tutorials.

Requirements

To get started with the CentOS 7.1 installation, we will need the installer ISO file. This can either be the CentOS minimal ISO or the DVD ISO file. If you plan to install just this one server then choose the minimal ISO as it is a smaller, the installer will download the required packages during installation later. I will install several servers with CentOS 7.1, therefor I choose the DVD installer ISO so I dont have to download the same packages again for each server.

  • Download the CentOS 7.1 DVD from a mirror next to you http://www.centos.org/download/. I will use this mirror:
    http://ftp.hosteurope.de/mirror/centos.org/7.1.1503/isos/x86_64/CentOS-7-x86_64-DVD-1503-01.iso

I will do the installation on a vmware virtual machine. The installation steps on a physical server are the same. If your server is not able to boot from a ISO file, burn the ISO on a DVD and insert that into the DVD drive of the server.

Preliminary Note

This tutorial is based on CentOS 7.1 server, I use 192.168.0.100 as my IP address in this tutorial and server1.example.com as the hostname. These settings might differ for you, so you have to replace them where appropriate.

Install the Base System

Boot from your CentOS 7 DVD. Select Install CentOS 7.1

centos_11

Next press ENTER

centos_21

Next, you can customize the CentOS 7.1 installation setup-launguage. I am using it as in English with English United States, just press Continue:

centos_3

Next we will get the following screen

centos_4

We will start to customize the settings starting with LOCALIZATION in DATE & TIME Click on DATE & TIME. Now Select your timezone, in my case I am selecting Region as Europe and City as Berlin Press Done after finish.

centos_6

It will make the server DATE & TIME as Europe/Berlin timezone. Next we will customize our KEYBOARD press over that.

centos_41

Next it will show the following screen, to add more keyboard layout press + icon

centos_7

It will show the following window, just add more languages as you need. In my case I am adding German, further press Add.

centos_8

Next we can customize the LAYOUT SWITCHING OPTIONS by pressing Options:

centos_9

Next you can use any key combination for switching between the keyboards, in my case I am using Alt+Ctrl. Further after selection press Done

centos_10

Next press Done

centos_111

Next we will add LANGUAGE SUPPORT by selecting it.

centos_12

By default CentOS comes with English, we can add more language support. Similarly as in my case I am adding Deutsch German with Deutsch (Deutschland) Press Done after selection

centos_13

Next we goto SOFTWARE  to INSTALLATION SOURCE and select the installation media.

centos_14

Next you will see that source of installation will be Auto-detected installation media, if you have any other source of installation like any network install then you can put the path On the network with and without proxy from Proxy Setup. Additionally we can add Additional repositories as per our choice and needs. After press Done.

centos_15

Next we will proceed for SOFTWARE SELECTION, by default it comes with Minimal Install.

centos_17

Next we can add more if required, but in my case I need only Minimal Install(Basic Functionality) so I will save the settings by pressing Done.

centos_161

Next we will move towards SYSTEM and  then to INSTALLATION DESTINATION.

centos_171

Next if you need a manual partitioning scheme then you can select I will configure partitioning, in my case I will prefer Automatically configure partitioning after that press Done.

centos_18

Next we will customize our NETWORK & HOSTNAME by selecting that.

18

Further we will add the hostname as server1.example.com and then we will customize our ethernet  part by  pressing Configure.

centos_191

Next screen will be like that, now we want to add IPv4 Settings by selecting the same. If you have IPv6 then you add it in IPv6 Settings.

centos_20

Next you can manage the network as per your LAN/WAN connection in my case I am using static IP so I will select Manual

centos_211

Next add the entries as per your static IP environment, in my case I am using Address as 192.168.0.100, Netmask as 255.255.255.0, Gateway as 192.168.0.1 and DNS servers as 8.8.8.8  8.8.4.4 These values may vary according to your network environment. After that press Save.

centos_22

Next we need to make the connection ON as shown in screenshot below. It will show the details as per settled by you previously. Further press Done.

centos_23

Now we are ready for the installation process, you can crosscheck all the settings again and then press Begin Installation.

centos_24

It will start the process of installation. Now we need to provide USER SETTINGS with ROOT PASSWORD and USER CREATION. I will first go for root password.

centos_26

Next Enter any password of your choice and press Done

centos_27

Next we will go for USER CREATION.

centos_28

Next I will create user, as in my case I used Full name as Administrator, Username as administrator, check the option Require the password to use this account and then press Done. Off-course you can use any value as per your choice.

centos_29

Further have patience and wait for the completion of the setup.

centos_30

After completion of the installation, it will ask for reboot, just press Reboot.

centos_31

Next It will boot and your login screen will be onscreen.

centos_32

centos_33

Now we are ready to do login with the users just created above or we can use root credentials.

Network Configuration

Fisrt I will install two commandline editos to be able to edit configuration files on the shell:

yum install nano vim

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

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

It will be like this when you configured a static IP address:

TYPE="Ethernet"
BOOTPROTO="none"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens33"
UUID="acbc0204-057f-4eaa-9c6e-343d207ac403"
ONBOOT="yes"
DNS1="8.8.8.8"
DNS2="8.8.4.4"
DOMAIN="example.com"
HWADDR=00:0C:29:A5:A5:31
IPADDR=192.168.0.100
PREFIX=24
GATEWAY=192.168.1.1
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes

Or like this when you use DHCP:

TYPE="Ethernet"
BOOTPROTO="dhcp"
DEFROUTE="yes"
IPV4_FAILURE_FATAL="no"
IPV6INIT="yes"
IPV6_AUTOCONF="yes"
IPV6_DEFROUTE="yes"
IPV6_FAILURE_FATAL="no"
NAME="ens33"
UUID="b0842d73-974a-4305-90af-568db9b39cce"
DEVICE="ens33"
ONBOOT="yes"
HWADDR="00:50:56:15:23:79"
PEERDNS="yes"
PEERROUTES="yes"
IPV6_PEERDNS="yes"
IPV6_PEERROUTES="yes"
IPV6_PRIVACY="no"

Change the values if required.

Note: The above DEVICE name may vary so please check the equivalent file in the directory /etc/sysconfig/network-scripts.

CentOS 7.1 minimal don’t come pre-installed with the ifconfig command we will install it as follows:

yum install net-tools

Adjust /etc/hosts

Now we will login with root credentials and adjust the file /etc/hosts as follows:

nano /etc/hosts

Make the values like this:

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! Now we have basic minimal CentOS 7.1 server setup which provides a solid basis for our other tutorials.

  • CentOS : http://www.centos.org/

Comments

comments