Wednesday, September 30, 2009

CentOS Installation

I have been use RedHat Linux since I was 14.
I am not able to use RedHat in some of my project when they separate Distributions to RHEL and Fedora.

Luckly we have CentOS

CentOS is an Enterprise Linux distribution based on the freely available sources from Red Hat Enterprise Linux.
Each CentOS version is supported for 7 years (by means of security updates).
A new CentOS version is released every 2 years and each CentOS version is periodically updated (roughly every 6 months) to support newer hardware.
This results in a secure, low-maintenance, reliable, predictable and reproducible Linux environment.

In another sample word: It is a Free Red Hat Enterprise Linux!

To install CentOS first you have to well know your hardware then choice the right release:
For most of us you have to choice between i386 and x86_64.

If your hardware support 64 bit than I will recommend x86_64 release.

Always go to the latest Minor release for less problem at:

As example I will choice CentOS 5.3 x86_64

Find a mirror server that close to your location for best speed.
I download from
because I am using bell service.

Just download the first CD ISO file, example CentOS-5.3-x86_64-bin-1of7.iso
The reason is even you download all ISOs you still need download a lot of update/patch after installation.
So my suggestion is just download the first CD ISO and do basic installation.
Update and Install new packages online.

After download the ISO file use CD/DVD burner write it on a disc (Google it if you need).
I am using CDBurnerXP it is free and small.

Boot from the disc.
Flow the step to installation

1.At Disk and format part my settings (for 500GB hard driver):
/boot 100M
SWAP 4096M (For 2G Memory)
Other partition use LVM, so you can add space later:
/ 9984M
/usr 9984M
/var 20000M
/tmp 9984M
/home else

You can modify it as you need, but do not set too small please.

2.At GRUB settings:
CentOS /dev/VolGroup00/LogVol00
write it down for recover

3.At IP settings:

I always point a static IPv4 address as example:
Disable IPv6 support


You can use any name you need.

4.My region for time Zone: America/Toronto

5.Also setup a enough long password for root

6.Most important part, in the Package settings:

Deselect everything like: Desktop - Gnome, Server, Cluster ...
So you do not need CD 2 ~ x
And select "Customize Now:" if you want deselect more default packages like: PPP dialup, Bluetooth ...

Keet "Base" please.

Finished the installation will give you a reboot.

Then your basic CentOS is ready.

Login as root and input commands for GUI:

# yum groupinstall "X Window System"
# yum groupinstall "GNOME Desktop Environment"

To have GUI at every reboot:

# vi /etc/inittab


Reboot again your GUI CentOS is ready.

In the next update I will write hwo to config HTTP (apache/web) service in CentOS.

Please feel free to ask any question you have.

No comments:

Post a Comment