|
|
|
Copyright
|
|
|
|
Praise for A Practical Guide to Red Hat Linux, Second Edition
|
|
|
|
Preface
|
|
|
|
Chapter 1. Welcome to Linux
|
|
|
|
|
The GNULinux Connection
|
|
|
|
|
The Linux 2.6 Kernel
|
|
|
|
|
The Heritage of Linux: UNIX
|
|
|
|
|
What Is So Good About Linux?
|
|
|
|
|
Overview of Linux
|
|
|
|
|
Additional Features of Linux
|
|
|
|
|
Conventions Used in This Book
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
Part I: Installing Red Hat Linux
|
|
|
|
|
Chapter 2. Installation Overview
|
|
|
|
|
More Information
|
|
|
|
|
Planning the Installation
|
|
|
|
|
How the Installation Works
|
|
|
|
|
The Medium: Where Is the Source Data?
|
|
|
|
|
Downloading, Burning, and Installing a CD Set or a DVD (FEDORA)
|
|
|
|
|
Rescue CD
|
|
|
|
|
Gathering Information About the System
|
|
|
|
|
Finding the Installation Manual
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 3. Step-by-Step Installation
|
|
|
|
|
Installing Red Hat Linux
|
|
|
|
|
Installation Tasks
|
|
|
|
|
The X Window System
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part II: Getting Started with Red Hat Linux
|
|
|
|
|
Chapter 4. Introduction to Red Hat Linux
|
|
|
|
|
Curbing Your Power: Superuser/root Access
|
|
|
|
|
A Tour of the Red Hat Linux Desktop
|
|
|
|
|
Getting the Facts: Where to Find Documentation
|
|
|
|
|
More About Logging In
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 5. The Linux Utilities
|
|
|
|
|
Special Characters
|
|
|
|
|
Basic Utilities
|
|
|
|
|
Working with Files
|
|
|
|
|
(Pipe): Communicates Between Processes
|
|
|
|
|
Four More Utilities
|
|
|
|
|
Compressing and Archiving Files
|
|
|
|
|
Locating Commands
|
|
|
|
|
Obtaining
User
and System Information
|
|
|
|
|
Communicating with Other Users
|
|
|
|
|
Email
|
|
|
|
|
Tutorial: Creating and Editing a File with vim
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 6. The Linux Filesystem
|
|
|
|
|
The Hierarchical Filesystem
|
|
|
|
|
Directory Files and Ordinary Files
|
|
|
|
|
Pathnames
|
|
|
|
|
Directory Commands
|
|
|
|
|
Working with Directories
|
|
|
|
|
Access Permissions
|
|
|
|
|
ACLs: Access Control Lists
|
|
|
|
|
Links
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 7. The Shell
|
|
|
|
|
The Command Line
|
|
|
|
|
Standard Input and Standard Output
|
|
|
|
|
Running a Program in the Background
|
|
|
|
|
Filename Generation/Pathname Expansion
|
|
|
|
|
Builtins
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part III: Digging into Red Hat Linux
|
|
|
|
|
Chapter 8. Linux Guis: X, Gnome, and KDE
|
|
|
|
|
X Window System
|
|
|
|
|
Using GNOME
|
|
|
|
|
Using KDE
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 9. The Bourne Again Shell
|
|
|
|
|
Background
|
|
|
|
|
Shell Basics
|
|
|
|
|
Parameters and Variables
|
|
|
|
|
Special Characters
|
|
|
|
|
Processes
|
|
|
|
|
History
|
|
|
|
|
Aliases
|
|
|
|
|
Functions
|
|
|
|
|
Controlling bash Features and Options
|
|
|
|
|
Processing the Command Line
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 10. Networking and the Internet
|
|
|
|
|
Types of Networks and How They Work
|
|
|
|
|
Communicate Over a Network
|
|
|
|
|
Network Utilities
|
|
|
|
|
Distributed Computing
|
|
|
|
|
Usenet
|
|
|
|
|
WWW: World Wide Web
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part IV: System Administration
|
|
|
|
|
Chapter 11. System Administration: Core Concepts
|
|
|
|
|
System Administrator and Superuser
|
|
|
|
|
Rescue Mode
|
|
|
|
|
SELinux
|
|
|
|
|
System Operation
|
|
|
|
|
System Administration Utilities
|
|
|
|
|
Setting Up a Server
|
|
|
|
|
nsswitch.conf: Which Service to Look at First
|
|
|
|
|
PAM
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 12. Files, Directories, and Filesystems
|
|
|
|
|
Important Files and Directories
|
|
|
|
|
File Types
|
|
|
|
|
Filesystems
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 13. Downloading and Installing Software
|
|
|
|
|
yum: Keeps the System Up-to-Date (FEDORA)
|
|
|
|
|
pirut: Adds and Removes Software Packages (FEDORA)
|
|
|
|
|
BitTorrent (FEDORA)
|
|
|
|
|
rpm: Red Hat Package Manager
|
|
|
|
|
Installing Non-rpm Software
|
|
|
|
|
Keeping Software Up-to-Date
|
|
|
|
|
wget: Downloads Files Noninteractively
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 14. Printing with CUPS
|
|
|
|
|
Introduction
|
|
|
|
|
JumpStart I: Configuring a Local Printer Using system-config-printer
|
|
|
|
|
JumpStart II: Configuring a Remote Printer Using CUPS
|
|
|
|
|
Traditional UNIX Printing
|
|
|
|
|
Configuring Printers Using CUPS
|
|
|
|
|
The KDE Printing Manager
|
|
|
|
|
Integration with Windows
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 15. Rebuilding the Linux Kernel
|
|
|
|
|
Preparing the Source Code
|
|
|
|
|
Read the Documentation
|
|
|
|
|
Configuring and Compiling the Linux Kernel
|
|
|
|
|
Installing the Kernel and Associated Files
|
|
|
|
|
Rebooting
|
|
|
|
|
Boot Loader
|
|
|
|
|
dmesg: Displays Kernel Messages
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 16. Administration Tasks
|
|
|
|
|
Configuring User and Group Accounts
|
|
|
|
|
Backing Up Files
|
|
|
|
|
Scheduling Tasks
|
|
|
|
|
System Reports
|
|
|
|
|
Keeping Users Informed
|
|
|
|
|
Creating Problems
|
|
|
|
|
Solving Problems
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 17. Configuring a LAN
|
|
|
|
|
Setting Up the Hardware
|
|
|
|
|
Configuring the Systems
|
|
|
|
|
Setting Up Servers
|
|
|
|
|
More Information
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part V: Using Clients and Setting Up Servers
|
|
|
|
|
Chapter 18. OpenSSH: Secure Network Communication
|
|
|
|
|
Introduction
|
|
|
|
|
About OpenSSH
|
|
|
|
|
OpenSSH Clients
|
|
|
|
|
sshd: OpenSSH Server
|
|
|
|
|
Troubleshooting
|
|
|
|
|
Tunneling/Port Forwarding
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 19. FTP: Transferring Files Across a Network
|
|
|
|
|
Introduction
|
|
|
|
|
More Information
|
|
|
|
|
FTP Client
|
|
|
|
|
FTP Server (vsftpd)
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 20. sendmail: Setting Up Mail Clients, Servers, and More
|
|
|
|
|
Introduction
|
|
|
|
|
JumpStart I: Configuring sendmail on a Client
|
|
|
|
|
JumpStart II: Configuring sendmail on a Server
|
|
|
|
|
How sendmail Works
|
|
|
|
|
Configuring sendmail
|
|
|
|
|
Additional Email Tools
|
|
|
|
|
Authenticated Relaying
|
|
|
|
|
Alternatives to sendmail
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 21. NIS: Network Information Service
|
|
|
|
|
Introduction to NIS
|
|
|
|
|
How NIS Works
|
|
|
|
|
Setting Up an NIS Client
|
|
|
|
|
Setting Up an NIS Server
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 22. NFS: Sharing Filesystems
|
|
|
|
|
Introduction
|
|
|
|
|
More Information
|
|
|
|
|
Setting Up an NFS Client
|
|
|
|
|
Setting Up an NFS Server
|
|
|
|
|
automount: Automatically Mounts Directory Hierarchies
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 23. Samba: Integrating Linux and Windows
|
|
|
|
|
Introduction
|
|
|
|
|
About Samba
|
|
|
|
|
JumpStart: Configuring a Samba Server Using system-config-samba
|
|
|
|
|
swat: Configures a Samba Server
|
|
|
|
|
Manually Configuring a Samba Server
|
|
|
|
|
Accessing Linux Shares from Windows
|
|
|
|
|
Accessing Windows Shares from Linux
|
|
|
|
|
Troubleshooting
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 24. DNS/BIND: Tracking Domain
Names
and Addresses
|
|
|
|
|
Introduction to DNS
|
|
|
|
|
About DNS
|
|
|
|
|
JumpStart I: Setting Up a DNS Cache
|
|
|
|
|
JumpStart II: Setting Up a Domain Using system-config-bind (FEDORA)
|
|
|
|
|
Setting Up BIND
|
|
|
|
|
Troubleshooting
|
|
|
|
|
A Full-Functioned Nameserver
|
|
|
|
|
A Slave Server
|
|
|
|
|
A Split Horizon Server
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 25. iptables: Setting Up a Firewall
|
|
|
|
|
How iptables Works
|
|
|
|
|
About iptables
|
|
|
|
|
JumpStart: Building a Firewall Using
system-config-securitylevel
|
|
|
|
|
Anatomy of an iptables Command
|
|
|
|
|
Building a Set of Rules
|
|
|
|
|
system-config-securitylevel: Generates a Set of Rules
|
|
|
|
|
Sharing an Internet Connection Using NAT
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 26. Apache (httpd): Setting Up a Web Server
|
|
|
|
|
Introduction
|
|
|
|
|
About Apache
|
|
|
|
|
JumpStart I: Getting Apache Up and Running
|
|
|
|
|
JumpStart II: Setting Up Apache Using system-config-httpd
|
|
|
|
|
Filesystem Layout
|
|
|
|
|
Configuration Directives
|
|
|
|
|
The Red Hat httpd.conf File
|
|
|
|
|
Redirects
|
|
|
|
|
Multiviews
|
|
|
|
|
Server-Generated Directory Listings (Indexing)
|
|
|
|
|
Virtual Hosts
|
|
|
|
|
Troubleshooting
|
|
|
|
|
Modules
|
|
|
|
|
webalizer: Analyzes Web Traffic
|
|
|
|
|
MRTG: Monitors Traffic Loads
|
|
|
|
|
Error Codes
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part VI: Programming
|
|
|
|
|
Chapter 27. Programming Tools
|
|
|
|
|
Programming in C
|
|
|
|
|
Using Shared Libraries
|
|
|
|
|
make: Keeps a Set of Programs Current
|
|
|
|
|
Debugging C Programs
|
|
|
|
|
Threads
|
|
|
|
|
System Calls
|
|
|
|
|
Source Code Management
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
|
Chapter 28. Programming the Bourne Again Shell
|
|
|
|
|
Control Structures
|
|
|
|
|
File Descriptors
|
|
|
|
|
Parameters and Variables
|
|
|
|
|
Builtin Commands
|
|
|
|
|
Expressions
|
|
|
|
|
Shell Programs
|
|
|
|
|
Chapter Summary
|
|
|
|
|
Exercises
|
|
|
|
|
Advanced Exercises
|
|
|
|
Part VII: Appendixes
|
|
|
|
|
Appendix A. Regular Expressions
|
|
|
|
|
Characters
|
|
|
|
|
Delimiters
|
|
|
|
|
Simple Strings
|
|
|
|
|
Special Characters
|
|
|
|
|
Rules
|
|
|
|
|
Bracketing Expressions
|
|
|
|
|
The Replacement String
|
|
|
|
|
Extended Regular Expressions
|
|
|
|
|
Appendix Summary
|
|
|
|
|
Appendix B. Help
|
|
|
|
|
Solving a Problem
|
|
|
|
|
Finding Linux-Related Information
|
|
|
|
|
Specifying a Terminal
|
|
|
|
|
Appendix C. Security
|
|
|
|
|
Encryption
|
|
|
|
|
File Security
|
|
|
|
|
Email Security
|
|
|
|
|
Network Security
|
|
|
|
|
Host Security
|
|
|
|
|
Security Resources
|
|
|
|
|
Appendix Summary
|
|
|
|
|
Appendix D. The Free Software Definition
|
|
|
|
|
Appendix E. The Linux 2.6 Kernel
|
|
|
|
|
Native Posix Thread Library (NPTL)
|
|
|
|
|
IPSecurity (IPSec)
|
|
|
|
|
Asynchronous I/O (AIO)
|
|
|
|
|
0(1) Scheduler
|
|
|
|
|
OProfile
|
|
|
|
|
kksymoops
|
|
|
|
|
Reverse Map Virtual Memory (RMAP VM)
|
|
|
|
|
HugeTLBFS: Translation Look-Aside Buffer Filesystem
|
|
|
|
|
remap_file_pages
|
|
|
|
|
2.6 Network Stack Features (IGMPv3, IPv6, and Others)
|
|
|
|
|
Internet Protocol Virtual Server (IPVS)
|
|
|
|
|
Access Control Lists (ACLs)
|
|
|
|
|
4GB-4GB Memory Split: Physical Address Extension (PAE)
|
|
|
|
|
Scheduler Support for HyperThreaded CPUs
|
|
|
|
|
Block I/O (BIO) Block Layer
|
|
|
|
|
Support for Filesystems Larger Than 2 Terabytes
|
|
|
|
|
New I/O Elevators
|
|
|
|
|
Interactive Scheduler Response Tuning
|
|
|
|
Glossary
|
|
|
|
Index
|