| |
| |
Preface | |
| |
| |
| |
Welcome to Linux | |
| |
| |
The GNU Linux 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 | |
| |
| |
| |
Installing Fedora and Red Hat Enterprise Linux | |
| |
| |
| |
Installation Overview | |
| |
| |
The Desktop Live CD and the Install DVD | |
| |
| |
Planning the Installation | |
| |
| |
The Installation Process | |
| |
| |
The Medium: Where Is the Source Data? | |
| |
| |
Downloading a CD/DVD (FEDORA) | |
| |
| |
Checking and Burning the CD/DVD | |
| |
| |
Rescue Selection of the Install DVD | |
| |
| |
Gathering Information About the System | |
| |
| |
Finding the Installation Manual | |
| |
| |
More Information | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Step-by-Step Installation | |
| |
| |
Running a Fedora Live Session | |
| |
| |
Installing Fedora/RHEL | |
| |
| |
Installation Tasks | |
| |
| |
The X Window System | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Getting Started with Fedora and Red Hat Enterprise Linux | |
| |
| |
| |
Introduction to Fedora and Red Hat Enterprise Linux | |
| |
| |
Curbing Your Power (Superuser/root Privileges) | |
| |
| |
A Tour of the Fedora/RHEL Desktop | |
| |
| |
Getting the Most Out of the Desktop | |
| |
| |
Updating, Installing, and Removing Software Packages | |
| |
| |
Where to Find Documentation | |
| |
| |
More About Logging In | |
| |
| |
Working from the Command Line | |
| |
| |
Controlling Windows: Advanced Operations | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 Using vim | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 | |
| |
| |
| |
The Shell | |
| |
| |
The Command Line | |
| |
| |
Standard Input and Standard Output | |
| |
| |
Running a Program in the Background | |
| |
| |
Filename Generation/Pathname Expansion | |
| |
| |
Builtins | |
| |
| |
Chapter Summary | |
| |
| |
Utilities and Builtins Introduced in This Chapter | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Digging into Fedora and Red Hat Enterprise Linux | |
| |
| |
| |
Linux GUIs: X and GNOME | |
| |
| |
X Window System | |
| |
| |
The Nautilus File Browser Window | |
| |
| |
The Nautilus Spatial View | |
| |
| |
GNOME Utilities | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 | |
| |
| |
| |
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 | |
| |
| |
| |
System Administration | |
| |
| |
| |
System Administration: Core Concepts | |
| |
| |
System Administrator and Superuser | |
| |
| |
Rescue Mode | |
| |
| |
SELinux | |
| |
| |
The Upstart Event-Based init Daemon (FEDORA) | |
| |
| |
System Operation | |
| |
| |
System Administration Utilities | |
| |
| |
Setting Up a Server | |
| |
| |
Nsswitch.conf: Which Service to Look at First | |
| |
| |
PAM | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Files, Directories, and Filesystems | |
| |
| |
Important Files and Directories | |
| |
| |
File Types | |
| |
| |
Filesystems | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Downloading and Installing Software | |
| |
| |
Yum: Keeps the System Up-to-Date | |
| |
| |
Adding and Removing Software Packages | |
| |
| |
BitTorrent | |
| |
| |
Rpm: Red Hat Package Manager | |
| |
| |
Installing Non-rpm Software | |
| |
| |
Keeping Software Up-to-Date | |
| |
| |
Wget: Downloads Files Noninteractively | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Printing with CUPS | |
| |
| |
Introduction | |
| |
| |
JumpStart I: Configuring a Local Printer | |
| |
| |
System-config-printer: Configuring a Printer | |
| |
| |
JumpStart II: Setting Up a Local or Remote Printer Using the CUPS Web Interface | |
| |
| |
Traditional UNIX Printing | |
| |
| |
Configuring Printers | |
| |
| |
Printing from Windows | |
| |
| |
Printing to Windows | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Rebuilding the Linux Kernel | |
| |
| |
Preparing the Source Code | |
| |
| |
Read the Documentation | |
| |
| |
Configuring and Compiling the Linux Kernel | |
| |
| |
Installing the Kernel and Associated Files | |
| |
| |
Rebooting the System | |
| |
| |
Boot Loader | |
| |
| |
Dmesg: Displays Kernel Messages | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Administration Tasks | |
| |
| |
Configuring User and Group Accounts | |
| |
| |
Backing Up Files | |
| |
| |
Scheduling Tasks | |
| |
| |
System Reports | |
| |
| |
Parted: Reports on and Partitions a Hard Disk | |
| |
| |
Keeping Users Informed | |
| |
| |
Creating Problems | |
| |
| |
Solving Problems | |
| |
| |
MySQL | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Configuring and Monitoring a LAN | |
| |
| |
Setting Up the Hardware | |
| |
| |
Configuring the Systems | |
| |
| |
NetworkManager: Configures Network Connections | |
| |
| |
The Network Configuration Window (system-config-network) | |
| |
| |
Iwconfig: Configures a Wireless NIC | |
| |
| |
Setting Up Servers | |
| |
| |
Introduction to Cacti | |
| |
| |
More Information | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Using Clients and Setting Up Servers | |
| |
| |
| |
OpenSSH: Secure Network Communication | |
| |
| |
Introduction | |
| |
| |
About OpenSSH | |
| |
| |
OpenSSH Clients | |
| |
| |
Sshd: OpenSSH Server | |
| |
| |
Troubleshooting | |
| |
| |
Tunneling/Port Forwarding | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
FTP: Transferring Files Across a Network | |
| |
| |
Introduction | |
| |
| |
More Information | |
| |
| |
FTP Client | |
| |
| |
FTP Server (vsftpd) | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 | |
| |
| |
| |
NIS and LDAP | |
| |
| |
Introduction to NIS | |
| |
| |
How NIS Works | |
| |
| |
Setting Up an NIS Client | |
| |
| |
Setting Up an NIS Server | |
| |
| |
LDAP | |
| |
| |
Setting Up an LDAP Server | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 | |
| |
| |
| |
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 | |
| |
| |
| |
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 | |
| |
| |
Setting Up BIND | |
| |
| |
Troubleshooting | |
| |
| |
A Full-Functioned Nameserver | |
| |
| |
A Slave Server | |
| |
| |
A Split Horizon Server | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Iptables: Setting Up a Firewall | |
| |
| |
How iptables Works | |
| |
| |
About iptables | |
| |
| |
JumpStart: Building a Firewall Using system-config-firewall | |
| |
| |
Anatomy of an iptables Command | |
| |
| |
Building a Set of Rules | |
| |
| |
System-config-firewall: Generates a Set of Rules | |
| |
| |
Sharing an Internet Connection Using NAT | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
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 Fedora/RHEL 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 | |
| |
| |
| |
Programming Tools | |
| |
| |
| |
Programming the Bourne Again Shell | |
| |
| |
Control Structures | |
| |
| |
File Descriptors | |
| |
| |
Parameters and Variables | |
| |
| |
Builtin Commands | |
| |
| |
Expressions | |
| |
| |
Shell Programs | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
The Perl Scripting Language | |
| |
| |
Introduction to Perl | |
| |
| |
Variables | |
| |
| |
Control Structures | |
| |
| |
Working with Files | |
| |
| |
Sort | |
| |
| |
Subroutines | |
| |
| |
Regular Expressions | |
| |
| |
CPAN Modules | |
| |
| |
Examples | |
| |
| |
Chapter Summary | |
| |
| |
Exercises | |
| |
| |
Advanced Exercises | |
| |
| |
| |
Appendixes | |
| |
| |
| |
Regular Expressions | |
| |
| |
Characters | |
| |
| |
Delimiters | |
| |
| |
Simple Strings | |
| |
| |
Special Characters | |
| |
| |
Rules | |
| |
| |
Bracketing Expressions | |
| |
| |
The Replacement String | |
| |
| |
Extended Regular Expressions | |
| |
| |
Appendix Summary | |
| |
| |
| |
Help | |
| |
| |
Solving a Problem | |
| |
| |
Finding Linux-Related Information | |
| |
| |
Specifying a Terminal | |
| |
| |
| |
Security | |
| |
| |
Encryption | |
| |
| |
File Security | |
| |
| |
Email Security | |
| |
| |
Network Security | |
| |
| |
Host Security | |
| |
| |
Security Resources | |
| |
| |
Appendix Summary | |
| |
| |
| |
The Free Software Definition | |
| |
| |
Glossary | |
| |
| |
Index | |