Wednesday, February 16, 2011

Cent os setup Procedure







Cent OS is a best Linux distributor in the World of Linux. Its free for all.

Before we start installation Cent OS, here is some information about Cent OS:
1. Download link for latest Version
2. Wiki for Cent OS

I want to say first that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!


1 Requirements

To install such a system you will need the following:

a. Download the CentOS 5.xx DVD or the CentOS 5.1 CDs from a mirror next to you
b. a fast internet connection.


2 Preliminary Note

In this tutorial I use
a. hostname myhost1.myserver.com

b. IP address 192.168.16.100
gateway 192.168.16.1

c. Primary dns 8.8.8.8 and Secondary dns 4.2.2.2

These settings might differ for you, so you have to replace them where appropriate.


3 Install The Base System

Step1
Boot from your first CentOS 5.xx CD (CD 1) or the CentOS 5.xx DVD. Press at the boot prompt:



Step2.
TEST CD?DVDS
It can take a long time to test the installation media so we skip this test.



Step3:
The welcome screen of the CentOS installer appears.
Click on Next:
Choose your language next:
Select your keyboard layout:



Step4: (Partition !!!! so important !!!!!!)

I'm installing CentOS 5.1 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 sake I 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. Of course, you're free to partition your hard drive however you like it. Then I hit Next:

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



Step5:
On to the network settings. The default setting here is to configure the network interfaces with DHCP, but we are installing a server, so static IP addresses are not a bad idea...

Click on the Edit button at the top right.

In the window that pops up
  • uncheck Use dynamic IP configuration (DHCP) and Enable IPv6 support and give your network card a static IP address (in this tutorial I'm using the IP address 192.168.16.100 for demonstration purposes and a suitable netmask 255.255.255.0 etc.


Step6:
Set the hostname manually, e.g. myhost1.myserver.com,



Step7:
Enter a gateway (e.g. 192.168.16.1) and up to two DNS servers (e.g. 8.8.8.8 and 8.8.4.4):


Step8:
Choose your time zone:


Step9: (Password!!! )
Give root a password:


That all for installation!!!