Home > Store

Practical Guide to Fedora and Red Hat Enterprise Linux, A, 5th Edition

Register your product to gain access to bonus material or receive a coupon.

Practical Guide to Fedora and Red Hat Enterprise Linux, A, 5th Edition

eBook (Watermarked)

  • Sorry, this book is no longer in print.
  • Includes EPUB and PDF
  • About eBook Formats
  • This eBook includes the following formats, accessible from your Account page after purchase:

    ePub EPUB The open industry format known for its reflowable content and usability on supported mobile devices.

    Adobe Reader PDF The popular standard, used most often with the free Acrobat® Reader® software.

    This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.

Not for Sale

Description

  • Copyright 2010
  • Edition: 5th
  • eBook (Watermarked)
  • ISBN-10: 0-13-263945-9
  • ISBN-13: 978-0-13-263945-3

Master All the Techniques You Need to Succeed with Fedora and Red Hat Enterprise Linux

  • Set up key Internet servers, step by step, including Samba, Apache, sendmail, DNS, FTP, and other Internet servers
  • Automate and streamline administration with this edition’s outstanding new chapter on Perl scripting
  • Master GUI-based admin tools and the powerful Linux command line (CLI) 

In this book, one of the world’s leading Linux experts brings together all the knowledge you’ll need to succeed with Fedora or Red Hat Enterprise Linux in any real-world environment. Best-selling author Mark Sobell explains Linux clearly and effectively, focusing on skills you’ll actually use as an administrator, user, or programmer.

Sobell assumes no prior Linux knowledge. He starts at the beginning and walks you through every topic and task that matters, using easy-to-understand examples. Step by step, you’ll learn how to install and configure Linux from the accompanying DVD, navigate its graphical user interfaces, provide file/print sharing and Internet services, make sure Linux desktops and networks are as secure as possible, work with the powerful command line, administer Linux efficiently, and even automate administration with Perl scripts.

Mark Sobell has taught hundreds of thousands of Linux and UNIX professionals. He knows every Linux nook and cranny—and he never forgets what it’s like to be new to Linux. Whatever you’ll want to do with Linux—now or in the future—this book gives you everything you’ll need.

Compared with the other Linux books out there, A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Fifth Edition, delivers

  • Complete, up-to-the-minute coverage of Fedora 12 and RHEL 5
  • Deeper coverage of the command line and the newest GUIs, including desktop customization
  • More practical coverage of file sharing using Samba, NFS, and FTP
  • More and better coverage of automating administration with Perl
  • More usable, realistic coverage of Internet server configuration, including Apache, sendmail, NFS, DNS/BIND, and LDAP
  • More state-of-the-art security techniques, including SELinux (Security Enhanced Linux), ACLs (Access Control Lists), firewall setup using both the Red Hat GUI and iptables, and a full chapter on OpenSSH
  • More and better coverage of system/network administration tasks, including new coverage of network monitoring with Cacti
  • Complete instructions on keeping Linux systems up-to-date using yum
  • And much more, including a 500+ term glossary and a comprehensive index  

Sample Content

Table of Contents

Preface xxxvii

Chapter 1: Welcome to Linux 1

The GNU—Linux Connection 2

The Linux 2.6 Kernel 5

The Heritage of Linux: UNIX 5

What Is So Good About Linux? 6

Overview of Linux 10

Additional Features of Linux 14

Conventions Used in This Book 16

Chapter Summary 19

Exercises 19

Part I: Installing Fedora and Red Hat Enterprise Linux 21

Chapter 2: Installation Overview 23

The Desktop Live CD and the Install DVD 24

Planning the Installation 24

The Installation Process 39

The Medium: Where Is the Source Data? 40

Downloading a CD/DVD (FEDORA) 41

Checking and Burning the CD/DVD 45

Rescue Selection of the Install DVD 46

Gathering Information About the System 46

Finding the Installation Manual 47

More Information 48

Chapter Summary 48

Exercises 49

Advanced Exercises 49

Chapter 3: Step-by-Step Installation 51

Running a Fedora Live Session 52

Installing Fedora/RHEL 55

Installation Tasks 68

The X Window System 84

Chapter Summary 85

Exercises 85

Advanced Exercises 86

Part II: Getting Started with Fedora and Red Hat Enterprise Linux 87

Chapter 4: Introduction to Fedora and Red Hat Enterprise Linux 89

Curbing Your Power (Superuser/root Privileges) 90

A Tour of the Fedora/RHEL Desktop 90

Getting the Most Out of the Desktop 109

Updating, Installing, and Removing Software Packages 122

Where to Find Documentation 124

More About Logging In 132

Working from the Command Line 138

Controlling Windows: Advanced Operations 141

Chapter Summary 143

Exercises 144

Advanced Exercises 145

Chapter 5: The Linux Utilities 147

Special Characters 148

Basic Utilities 149

Working with Files 151

| (Pipe): Communicates Between Processes 158

Four More Utilities 159

Compressing and Archiving Files 161

Locating Commands 166

Obtaining User and System Information 168

Communicating with Other Users 172

Email 174

Tutorial: Creating and Editing a File Using vim 174

Chapter Summary 181

Exercises 184

Advanced Exercises 185

Chapter 6: The Linux Filesystem 187

The Hierarchical Filesystem 188

Directory Files and Ordinary Files 188

Pathnames 193

Directory Commands 195

Working with Directories 200

Access Permissions 202

ACLs: Access Control Lists 207

Links 212

Chapter Summary 218

Exercises 220

Advanced Exercises 222

Chapter 7: The Shell 223

The Command Line 224

Standard Input and Standard Output 230

Running a Program in the Background 241

Filename Generation/Pathname Expansion 243

Builtins 247

Chapter Summary 248

Utilities and Builtins Introduced in This Chapter 249

Exercises 249

Advanced Exercises 251

Part III: Digging into Fedora and Red Hat Enterprise Linux 253

Chapter 8: Linux GUIs: X and GNOME 255

X Window System 256

The Nautilus File Browser Window 264

The Nautilus Spatial View 270

GNOME Utilities 272

Chapter Summary 276

Exercises 277

Advanced Exercises 277

Chapter 9: The Bourne Again Shell 279

Background 280

Shell Basics 281

Parameters and Variables 299

Special Characters 313

Processes 314

History 316

Aliases 332

Functions 335

Controlling bash Features and Options 338

Processing the Command Line 342

Chapter Summary 351

Exercises 353

Advanced Exercises 355

Chapter 10: Networking and the Internet 357

Types of Networks and How They Work 359

Communicate Over a Network 374

Network Utilities 376

Distributed Computing 383

Usenet 392

WWW: World Wide Web 395

Chapter Summary 397

Exercises 398

Advanced Exercises 399

Part IV: System Administration 401

Chapter 11: System Administration: Core Concepts 403

System Administrator and Superuser 405

Rescue Mode 411

SELinux 414

The Upstart Event-Based init Daemon (FEDORA) 417

System Operation 424

System Administration Utilities 436

Setting Up a Server 441

nsswitch.conf: Which Service to Look at First 455

PAM 458

Chapter Summary 464

Exercises 464

Advanced Exercises 465

Chapter 12: Files, Directories, and Filesystems 467

Important Files and Directories 468

File Types 480

Filesystems 485

Chapter Summary 495

Exercises 495

Advanced Exercises 496

Chapter 13: Downloading and Installing Software 497

yum: Keeps the System Up-to-Date 498

Adding and Removing Software Packages 505

BitTorrent 507

rpm: Red Hat Package Manager 510

Installing Non-rpm Software 513

Keeping Software Up-to-Date 515

wget: Downloads Files Noninteractively 517

Chapter Summary 518

Exercises 518

Advanced Exercises 518

Chapter 14: Printing with CUPS 519

Introduction 520

JumpStart I: Configuring a Local Printer 521

system-config-printer: Configuring a Printer 522

JumpStart II: Setting Up a Local or Remote Printer Using the CUPS Web Interface 527

Traditional UNIX Printing 530

Configuring Printers 532

Printing from Windows 538

Printing to Windows 540

Chapter Summary 540

Exercises 541

Advanced Exercises 541

Chapter 15: Rebuilding the Linux Kernel 543

Preparing the Source Code 544

Read the Documentation 546

Configuring and Compiling the Linux Kernel 547

Installing the Kernel and Associated Files 550

Rebooting the System 550

Boot Loader 551

dmesg: Displays Kernel Messages 553

Chapter Summary 553

Exercises 554

Advanced Exercises 554

Chapter 16: Administration Tasks 555

Configuring User and Group Accounts 556

Backing Up Files 558

Scheduling Tasks 565

System Reports 566

parted: Reports on and Partitions a Hard Disk 568

Keeping Users Informed 572

Creating Problems 572

Solving Problems 574

MySQL 584

Chapter Summary 592

Exercises 593

Advanced Exercises 593

Chapter 17: Configuring and Monitoring a LAN 595

Setting Up the Hardware 596

Configuring the Systems 598

NetworkManager: Configures Network Connections 599

The Network Configuration Window (system-config-network) 601

iwconfig: Configures a Wireless NIC 605

Setting Up Servers 606

Introduction to Cacti 607

More Information 617

Chapter Summary 617

Exercises 618

Advanced Exercises 618

Part V: Using Clients and Setting Up Servers 619

Chapter 18: OpenSSH: Secure Network Communication 621

Introduction 622

About OpenSSH 622

OpenSSH Clients 625

sshd: OpenSSH Server 633

Troubleshooting 637

Tunneling/Port Forwarding 638

Chapter Summary 641

Exercises 641

Advanced Exercises 642

Chapter 19: FTP: Transferring Files Across a Network 643

Introduction 644

More Information 645

FTP Client 645

FTP Server (vsftpd) 654

Chapter Summary 666

Exercises 667

Advanced Exercises 667

Chapter 20: sendmail: Setting Up Mail Clients, Servers, and More 669

Introduction 670

JumpStart I: Configuring sendmail on a Client 672

JumpStart II: Configuring sendmail on a Server 673

How sendmail Works 674

Configuring sendmail 677

Additional Email Tools 682

Authenticated Relaying 689

Alternatives to sendmail 691

Chapter Summary 692

Exercises 692

Advanced Exercises 693

Chapter 21: NIS and LDAP 695

Introduction to NIS 696

How NIS Works 696

Setting Up an NIS Client 699

Setting Up an NIS Server 703

LDAP 710

Setting Up an LDAP Server 713

Chapter Summary 723

Exercises 724

Advanced Exercises 724

Chapter 22: NFS: Sharing Filesystems 727

Introduction 728

More Information 730

Setting Up an NFS Client 730

Setting Up an NFS Server 736

automount: Automatically Mounts Directory Hierarchies 744

Chapter Summary 746

Exercises 746

Advanced Exercises 747

Chapter 23: Samba: Integrating Linux and Windows 749

Introduction 750

About Samba 751

JumpStart: Configuring a Samba Server Using system-config-samba 753

swat: Configures a Samba Server 755

Manually Configuring a Samba Server 759

Accessing Linux Shares from Windows 765

Accessing Windows Shares from Linux 766

Troubleshooting 768

Chapter Summary 770

Exercises 771

Advanced Exercises 771

Chapter 24: DNS/BIND: Tracking Domain Names and Addresses 773

Introduction to DNS 774

About DNS 785

JumpStart I: Setting Up a DNS Cache 787

JumpStart II: Setting Up a Domain Using system-config-bind 789

Setting Up BIND 793

Troubleshooting 805

A Full-Functioned Nameserver 807

A Slave Server 810

A Split Horizon Server 811

Chapter Summary 816

Exercises 816

Advanced Exercises 817

Chapter 25: iptables: Setting Up a Firewall 819

How iptables Works 820

About iptables 822

JumpStart: Building a Firewall Using system-config-firewall 824

Anatomy of an iptables Command 825

Building a Set of Rules 826

system-config-firewall: Generates a Set of Rules 833

Sharing an Internet Connection Using NAT 835

Chapter Summary 839

Exercises 839

Advanced Exercises 839

Chapter 26: Apache (httpd): Setting Up a Web Server 841

Introduction 842

About Apache 842

JumpStart I: Getting Apache Up and Running 844

JumpStart II: Setting Up Apache Using system-config-httpd 846

Filesystem Layout 848

Configuration Directives 850

The Fedora/RHEL httpd.conf File 870

Redirects 873

Multiviews 874

Server-Generated Directory Listings (Indexing) 874

Virtual Hosts 874

Troubleshooting 875

Modules 876

webalizer: Analyzes Web Traffic 881

MRTG: Monitors Traffic Loads 882

Error Codes 882

Chapter Summary 883

Exercises 884

Advanced Exercises 884

Part VI: Programming Tools 885

Chapter 27: Programming the Bourne Again Shell 887

Control Structures 888

File Descriptors 921

Parameters and Variables 924

Builtin Commands 936

Expressions 950

Shell Programs 958

Chapter Summary 968

Exercises 970

Advanced Exercises 972

Chapter 28: The Perl Scripting Language 975

Introduction to Perl 976

Variables 983

Control Structures 991

Working with Files 1000

Sort 1003

Subroutines 1005

Regular Expressions 1007

CPAN Modules 1013

Examples 1015

Chapter Summary 1019

Exercises 1019

Advanced Exercises 1020

Part VII: Appendixes 1021

Appendix A: Regular Expressions 1023

Characters 1024

Delimiters 1024

Simple Strings 1024

Special Characters 1024

Rules 1027

Bracketing Expressions 1028

The Replacement String 1028

Extended Regular Expressions 1029

Appendix Summary 1031

Appendix B: Help 1033

Solving a Problem 1034

Finding Linux-Related Information 1035

Specifying a Terminal 1040

Appendix C: Security 1043

Encryption 1044

File Security 1049

Email Security 1049

Network Security 1050

Host Security 1053

Security Resources 1058

Appendix Summary 1061

Appendix D: The Free Software Definition 1063

Glossary 1067

Index 1117

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020