CentOS 6.5 Setup Guide

Introduction
CentOS 6.5 is a popular Linux distribution that is widely used for server deployments. This guide provides a step-by-step process to set up a CentOS 6.5 system, ensuring that it is clean, well-structured, and ready for various server applications.
System Requirements
Before you begin the setup, ensure that your hardware meets the following requirements:
| Component | Minimum Requirement |
|---|---|
| CPU | 1 GHz or faster |
| Memory | 1 GB RAM |
| Storage | 10 GB HDD or SSD |
| Network | 1 GBps or faster |
Installation Process
Boot from the CentOS 6.5 ISO
- Insert the CentOS 6.5 installation disc into your system's optical drive.
- Restart your computer and enter the BIOS settings to change the boot order to boot from the CD/DVD drive.
Select Language and Keyboard Layout
At the installation prompt, select your preferred language and keyboard layout.
Install CentOS 6.5
- Press "Enter" to start the installation process.
- Choose the "Custom (advanced)" installation method to have full control over the installation.
Partitioning the Hard Drive
- Select "Create a new partition" and then "LVM" for logical volume management to improve flexibility and scalability.
- Create a new partition for the root directory () with a recommended size of 10 GB.
- Create additional partitions for
/home,/var, and/tmpas needed.
Format Partitions
Format the partitions with the ext4 file system, which is recommended for CentOS 6.5.
Assign Mount Points
- Assign mount points to the formatted partitions, such as for the root directory,
/homefor user home directories, and/varfor variable data.
- Assign mount points to the formatted partitions, such as for the root directory,
Install Base System
- Select the base system packages to install. Ensure that the following packages are selected:
- Base
- development Tools
- Text-based Internet tools
- System Tools
- Select the base system packages to install. Ensure that the following packages are selected:
Install Additional Packages
After the base system is installed, install additional packages such as Apache, MySQL, and PHP if needed.
Set Hostname and Network Configuration

Set a hostname for your server and configure the network settings to ensure it can connect to the internet.
Create User Accounts
Create user accounts for system administrators and other users, and assign appropriate permissions.
Update System Packages
Update the system packages to ensure that you have the latest security patches and updates.
Install System Updates
Install any available system updates to keep your CentOS 6.5 system secure and up-to-date.
Post-Installation Configuration
Enable SSH Access
Enable SSH access to allow remote administration of the server.
Set Root Password
Set a strong password for the root user to prevent unauthorized access.
Install Security Tools
Install security tools such as Fail2Ban and iptables to enhance the server's security.
Configure Firewall

Configure the firewall to allow necessary traffic and block unauthorized access.
Set Up Logging
Configure system logging to monitor and record system events for troubleshooting and security auditing.
FAQs
Q1: How do I check if my CentOS 6.5 system is running on the latest kernel?
A1: To check the kernel version on your CentOS 6.5 system, open a terminal and run the following command:
uname -r This will display the current kernel version. If it is not the latest, you can check for updates or install the latest kernel using your package manager.
Q2: How can I install Apache web server on CentOS 6.5?
A2: To install Apache on CentOS 6.5, open a terminal and run the following command:
yum install httpd After the installation is complete, start the Apache service with the following command:
service httpd start To enable Apache to start automatically on boot, run:
chkconfig httpd on Finally, to check if Apache is running, visit http://your_server_ip_address in a web browser.

