The Definitive Guide to CentOS

Book description

CentOS is just like Red Hat, but without the price tag and with the virtuous license. When belts have to be tightened, we want to read about an OS with all the features of a commercial Linux variety, but without the pain. The Definitive Guide to CentOS is the first definitive reference for CentOS and focuses on CentOS alone, the workhorse Linux distribution, that does the heavy lifting in small and medium-size enterprises without drawing too much attention to itself.

  • Provides tutorial and hands-on learning but is also designed to be used as a reference

  • Bases all examples on real-world tasks that readers are likely to perform

  • Serves up hard-won examples and hints and tips from the author's experiences of CentOS in production

Table of contents

  1. Cover Page
  2. Title Page
  3. Copyright
  4. Dedication
  5. Contents at a Glance
  6. Contents
  7. Foreword
  8. About the Authors
  9. About the Technical Reviewer
  10. Acknowledgments
  11. Introduction
    1. Who This Book Is For
    2. How the Book Is Laid Out
  12. PART 1: Getting Started with CentOS
    1. CHAPTER 1: Introducing CentOS
      1. What Is Enterprise Linux?
        1. Extended Support
        2. Low-Risk Security Updates
        3. ABI/API Stability
        4. Regular Updates and Bug Fixes
        5. Certification
        6. Summary of Enterprise Linux's Benefits
      2. What Is CentOS?
      3. How to Read This Book
    2. CHAPTER 2: Installing CentOS
      1. Hardware Requirements
      2. Getting CentOS
        1. Checking the Checksums
        2. Burning the ISOs
      3. Performing a Super-Quick CentOS Install
      4. Setting Other Installation Options
        1. Securely Erasing Your Disks
        2. Creating a Custom Partition Layout
        3. Using Software RAID
        4. Setting IP Manually
      5. Summary
    3. CHAPTER 3: Getting Started with CentOS
      1. CentOS Filesystem Layout
        1. Relative and Absolute Paths
        2. Filesystem Layout
        3. /
        4. /root
        5. /etc
        6. /proc
        7. /var
        8. /boot
        9. /bin and /sbin
        10. /dev
        11. /home
        12. /lib
        13. /lost+found
        14. /media
        15. /mnt
        16. /usr
        17. /opt
        18. /srv
        19. /sys
        20. /tmp
        21. Getting Your Hands on a Command Prompt
      2. Getting an SSH Client
      3. Using SSH
      4. You're Logged In; Now What?
      5. First, the Prompt
      6. Important Commands
        1. pwd
        2. ls
        3. mkdir
        4. cd
        5. rmdir
        6. rm
        7. touch
        8. nano
        9. cat
      7. Summary
    4. CHAPTER 4: Using Yum
      1. What Are RPMs?
      2. What Are Yum Repositories?
      3. CentOS Repositories
        1. Official CentOS Repositories
        2. Third-Party Repositories
      4. Getting Started with Yum
        1. Updating Your Server
        2. Installing a Package
        3. Installing a Group of Packages
        4. Searching for Packages
      5. Adding a Custom Repository
        1. Setting It Up with RPM
        2. How to Do It Without an RPM
      6. Yumex
      7. Summary
  13. PART 2: Going into Production
    1. CHAPTER 5: Using Apache
      1. How Does the Server Work?
        1. A Brief Introduction to SSL
      2. Why Run Your Own Server?
        1. What It Involves
        2. When to Let Someone Else Do It
        3. What Is a Virtual Private Server (VPS)?
        4. Picking a Web Server
      3. Installing Apache
        1. Configuring the Firewall
        2. Making Sure Apache Starts Each Time the Server Reboots
        3. Starting Up and Testing Apache
      4. Configuring Apache
        1. Where Is Everything?
        2. Getting Started
        3. Configuring ServerAdmin
        4. Configuring ServerName
        5. Saving the Configuration File
        6. Testing Your New Configuration File
        7. Restarting Apache
      5. .htaccess
        1. Enabling .htaccess
        2. How to Password Protect a Directory
        3. Configuring Password Protection
        4. Creating User Accounts
      6. Improving Performance
        1. Compression
        2. Enabling Compression in Apache
        3. Why You Don't Compress Everything
      7. Improving Server Performance
        1. Things to Watch Out For
        2. Log Files
      8. Setting Up Virtual Hosts
        1. Getting Started with Virtual Hosts
        2. Creating Your First Virtual Host
        3. Using vhosts.d
      9. Using SSL
        1. Installing mod_ssl
      10. Getting Your Shiny New Certificate
        1. Signing Your Own Certificate
        2. What to Do with an Intermediary Certificate
        3. Putting Your New Certificate to Work
        4. Removing the Password Protection from the Key
      11. Summary
    2. CHAPTER 6: Setting Up Mail
      1. How Do Mail Servers Work?
        1. Why Run Your Own Mail Server?
        2. Caveats
        3. When Not to Run Your Own Mail Server
        4. Which Mail Server to Choose
      2. Installing the Mail Server
        1. Configuring the Firewall
        2. Making Sure Postfix Starts During Boot
      3. Configuring Postfix
        1. Configuring Your System to Send Mail
        2. Configuring Your System to Receive Mail
        3. Setting Up Users to Receive Mails
        4. Taking a Few Antispam Measures
        5. Receiving Mails for Several Domains
      4. Authenticating Users
        1. Encrypted Connections
        2. Usernames, Passwords, and Such
      5. Retrieving Mails
        1. Configuring Your Firewall
        2. Configuring Dovecot
      6. Using Webmail
      7. Summary
    3. CHAPTER 7: Understanding DNS
      1. What Is DNS?
        1. DNS Was Born
        2. The WHOIS System
        3. The Root DNS Servers
        4. The Resolver
        5. The Hosts File
        6. nsswitch
      2. NSCD
      3. What Is BIND?
        1. Primary and Secondary Name Servers
        2. Installing BIND
      4. Setting Up a Caching Name Server
        1. Making DNS Available to Other Machines
        2. Configuring BIND to Host Domains
        3. A Records
        4. CNAME Records
        5. MX Records
        6. NS Records
        7. Quick Round-Up
      5. Creating a Master Server
      6. Creating a Slave Zone
      7. Allowing Zone Transfers
      8. Gotchas
        1. Forgetting to Increment the Serial Number
        2. Forgetting the Dot in the Record
      9. Summary
    4. CHAPTER 8: Setting Up DHCP
      1. How Does DHCP Work?
      2. DHCP and CentOS
      3. Installing DHCP
        1. Configuring the Firewall
      4. Configuring DHCP
        1. A Minimal Configuration
        2. Extended Configuration
        3. Defining Static IP Addresses
        4. Grouping Statements
        5. Shared Networks
        6. Relaying DHCP Requests
      5. PXE Booting
        1. Configuring dhcpd for PXE Boot
      6. DHCP Integration with DNS
      7. Summary
    5. CHAPTER 9: Sharing Files with Samba
      1. Windows Networking Basics
        1. The Basic Protocols
        2. Workgroups
        3. Windows Domains
        4. Active Directory
      2. Samba and CentOS Basics
      3. Preparing to Set Up Samba
      4. Installing Samba
      5. Configuring Samba
        1. Example Configuration
        2. Minimal Stand-Alone Samba Setup
        3. Shares and Security
        4. Extended Stand-Alone Example
        5. Samba As a Domain Member
      6. Summary
    6. CHAPTER 10: Setting Up Virtual Private Networks
      1. What Is a Virtual Private Network?
      2. Using SSH for Virtual Private Networks
      3. Using IPSec
        1. IPSec Explained
        2. Virtual Private Networks with IPSec
      4. Configuring OpenVPN
        1. Looking at an Example
        2. Configuring the Server Side
        3. Configuring the Client
        4. Some Security Considerations
        5. Doing It the Even Easier Way
      5. Summary
  14. PART 3: Enterprise Features
    1. CHAPTER 11: Using Core Builds
      1. What Are Core Builds?
        1. What Can't Core Builds Do?
        2. Why Create a Core Build?
      2. What Are Kickstart Files?
        1. Anatomy of a Kickstart File
        2. The Command Section
        3. %packages Section
        4. The Scripts Section
        5. Using a Kickstart File on a Web Server
        6. Dynamically Creating Kickstart Files
      3. Installing CentOS over HTTP
      4. Updating Your Kickstart File to Install CentOS via HTTP
      5. Summary
    2. CHAPTER 12: Using High Availability
      1. Clustering and High Availability
      2. Theory of HA
        1. Split Brain and Fencing
        2. Resources
        3. Service or Virtual IP Address
      3. HA Cluster Suite Components
      4. HA Clustering with CentOS
      5. Preparing Your Cluster
        1. Installing CCS
        2. Installing HPS
      6. Configuring CCS
      7. Configuring HPS
      8. Building Clusters Using CCS
        1. Creating a Basic Cluster with CCS
        2. Advanced Configurations Using CCS
        3. Advanced Example with CCS
      9. Building Clusters Using HPS
        1. Creating a Basic Cluster with HPS
        2. Advanced Configurations Using HPS
        3. Advanced Setup with HPS
      10. Summary
    3. CHAPTER 13: Monitoring Your Network Using Nagios
      1. How Nagios Works
      2. Installing Nagios
      3. Initial Setup of Nagios
      4. Nagios Configuration Overview
      5. Objects and Templates
      6. Basic Nagios Configuration
      7. Contacts and Notifications
      8. Advanced Nagios Configuration
      9. Summary
  15. Index

Product information

  • Title: The Definitive Guide to CentOS
  • Author(s): Peter Membrey, Tim Verhoeven, Ralph Angenendt
  • Release date: July 2009
  • Publisher(s): Apress
  • ISBN: 9781430219309