Wednesday, July 20, 2011

CentOS installation

1.0           Purpose

The purpose of this guideline is to describe process followed for the Installation and Setup of Linux CentOS Operating System.

2.0           CentOS Installation

1)      Requirements
Download the iso image of centos 5.2 from the below link.
2)      Pre-requisites   
a) Fully Qualifed Domain name (FQDN)
b) IP Address
c) Netmask
d) Gateway
e) DNS Server.
3)      Preliminary Note:
In this document we use the hostname as “server1.example.com” with the IP address 192.168.0.100 and the gateway as 192.168.0.1
4)      Install the Base System
Boot from your first CentOS 5.2 CD (CD 1) or the CentOS 5.2 DVD. Press <ENTER> at the boot prompt:

           It can take a long time to test the installation media so we skip this test here:
Note : Please skip the media check
The welcome screen of the CentOS installer appears. Click on Next:






Choose your language next:


 Select your keyboard layout:
            Note : Select US Keyboard


I'm installing CentOS 5.2 on a fresh system, so I answer Yes to the question Would you like to initialize this drive, erasing ALL DATA?

Now we must select a partitioning scheme for our installation. For simplicity's select Remove linux partitions on selected drives and create default layout. This will result in a small /boot and a large / partition as well as a swap partition. Then  hit Next:


Answer the following question (Are you sure you want to do this?) with Yes:

On to the network settings. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so use static IP address. Click on the Edit button at the top right
In the window that pops up uncheck Use dynamic IP configuration (DHCP) and Enable IPv4 support and give your network card a static IP address and a suitable netmask

Set the hostname manually, e.g. server1.example.com, and enter a gateway (e.g. 192.168.0.1) and up to two DNS servers (e.g. 213.191.92.86 and 145.253.2.75):


Choose your time zone:
Note : Select Asia/ Calcutta


Give root a password:
Note: Use Password as “password”
Now we select the software we want to install. Select nothing but Server (uncheck everything else). Also don't check Packages from CentOS Extras. Then check Customize now, and click on Next:

Now we must select the package groups we want to install.

Required Packages:
1)      EditorsText-based Internet
2)      Development Libraries
3)      Development Tools
4)      DNS Name Server
5)      Mail Server  (Press F2 to see the sub-packages. Select only POSTFIX)
6)      MySQL Database
7)      Server Configuration Tools
8)      Web Server, Administration Tools
9)      Base and System Tools (unselect all other package groups) and click on Next:

The installer checks the dependencies of the selected packages:








Click on Next to start the installation:

The hard drive is being formatted:


The installation begins. This will take a few minutes:

Finally, the installation is complete, and you can remove your CD or DVD from the computer and reboot it:
After the reboot, you will see this screen. Select Firewall configuration and hit Run Tool:

Disable firewall and SElinux

Then leave the Setup Agent by selecting Exit:
Then log in as root and reboot the system so that your changes can be applied:
Reboot
 

3.0           Review

Installation of the Linux Operating System and Standard Package installed will be as per the above guideline.

No comments:

Post a Comment