After getting a copy of the CentOS 4 Linux or Red Hat Enterprise Linux 4, the steps below describes how to install it from scratch.

Boot1. Boot your computer from the CentOS 4 CD 1 and press Enter on the CentOS boot up screen. This will install CentOS in graphical mode.
CD Check2. Choose Skip in the CD Found window. This will skip the CD media test.
Welcome3. Click Next in the Welcome to CentOS-4 i386 window.
Language Selection4. Choose a language in the Language Selection window and click Next.
Keyboard Configuration5. Choose a keyboard in the Keyboard Configuration window and click Next.
Installation Type6. Choose Server in the Installation Type window and click Next.
Disk Partitioning Setup7. Click Next in the Disk Partitioning Setup window and answer Yes on the Warning window.
Automatic Partitioning8. Click Next in the Automatic Partitioning window and answer Yes on the Warning window.
Disk Setup9. Click Next in the Disk Setup window.
The automatically generated partitions works fine but you can fine tune it from this window. Learn more about Linux partitions here.
Boot Loader Configuration
10. Click Next in the Boot Loader Configuration window.
Network Configuration
11. Configure your network setting in the Network Configuration window.
Let’s say you have a network settings like the one below
Host Name
IP Address
Subnet Mask
Primary DNS
Secondary DNS
Tertiary DNS
Network ConfigurationFirst, click the Edit button. In the Edit Interface eth0 window, uncheck the Configure using DHCP and fill up the IP Address and Netmask. Click OK when you’re done.
Network ConfigurationNext fill in the rest of the information in the Network Configuration window. Click Next when you’re done.
Firewall Configuration12. Set Enable SELinux? to Disabled and click Next on the Firewall Configuration window.

ImportantIt is important to disable Security Enhanced Linux. Setting it to disabled does not make your system any less secure, but it will make your system more predictable. Otherwise, you might find your self spending hours fixing problems caused by it. Here’s one example from the Red Hat Knowledgebase.

Additional Language Support13. Choose the default language for your system and add any other languages in the Additional Language Support window. Click Next when you’re done.
Time Zone Selection14. Choose a time zone in the Time Zone Selection window and click Next when you’re done.
Set Root Password15. In the Set Root Password window, specify a strong password at least six characters long and click Next when you’re done.
Package Group Selection
16. In the Package Group Selection window, check the following packages to add it to the installation
  • X Window SystemX Window System
  • Gnome Desktop EnvironmentGnome Desktop Environment
  • Graphical InternetGraphical Internet
  • Mail ServerMail Server
  • Development ToolsDevelopment Tools
Click Details corresponding to X Window System and check system-switch-mail-gnome.
Click Details corresponding to Mail Server and check postfix and squirrelmail
About to Install17. Click Next in the About to Install window. It will show you the CDs required, click Continue to proceed. This will start the installation process.
Congratulations18. Congratulations, the installation is complete. Remove the CD and click Reboot to proceed to configuration.

Visit the forum to ask for help or to give a comment.

Posted on 3/5/2007 and last updated on 11/7/2009
Filed under CentOS 4 , Red Hat Enterprise Linux 4