A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition

Book description

The Publisher regrets that the CD/DVD content for this title cannot be made available Online.

Master All the Techniques You Need to Succeed with Fedora™ or Red Hat® Enterprise Linux®

  • The #1 Fedora and RHEL resource—a tutorial AND on-the-job reference

  • Master Linux administration and security using the command line, GUI tools, Python, systemd, and firewalld

  • Set up key Internet servers, step by step, including Samba, Apache, MariaDB/MySQL, sendmail, OpenSSH, DNS, LDAP, and more

  • Brand-new chapter on Virtual Machines and Cloud Computing!

  • In this comprehensive guide, one of the world’s leading Linux experts brings together all the knowledge and real-world insights you need to master and succeed with today’s versions of Fedora or Red Hat Enterprise Linux. Best-selling author Mark Sobell explains Linux clearly and effectively, focusing on skills you’ll actually need as a user, programmer, or administrator.

    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, navigate its graphical user interface, provide file/printer sharing, configure network servers, secure Linux desktops and networks, work with the command line, administer Linux efficiently, and automate administration using Python and bash.

    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 want to do with Linux—now or in the future—you’ll find it in this book.

    Compared with other Linux books, A Practical Guide to Fedora™and Red Hat®Enterprise Linux ®, Seventh Edition, delivers

  • Complete, up-to-the-minute coverage of Fedora 19 and RHEL 7 (beta)

  • New programming chapters that cover Python and MariaDB/MySQL, plus a new tutorial on using GnuPG to encrypt communications

  • Information on state-of-the-art security: SELinux, ACLs, firewalld (firewall-config and firewall-cmd), iptables (system-config-firewall), GnuPG, and OpenSSH

  • New chapter on VMs (virtual machines) and cloud computing, including VMware, QEMU/KVM, virt-manager, virsh, GNOME Boxes, and AWS (Amazon Web Services)

  • Expanded command-line coverage, including a new chapter that details 32 important utilities

  • Practical information on Internet server configuration, including Apache, sendmail, NFSv4, DNS/BIND, the new LDAP Dynamic Server, and IPv6

  • Complete “meat-and-potatoes” information on system/network administration, now including GRUB 2, the XFS filesystem, the new Anaconda Installer, the systemd init daemon, firewalld, and NetworkManager

  • Detailed instructions on keeping Linux systems up to date, finding software packages, and working with repositories using yum and rpm

  • Full coverage of the LPI Linux Essentials exam objectives plus extensive coverage of the CompTIA Linux+ exam objectives; Appendix E provides a map from objectives to pages in the book

  • New coverage of find, sort, xz (compression), free, xargs, and the nano editor

  • And much more, including a 500+ term glossary and comprehensive indexes

  • Table of contents

    1. About This eBook
    2. Title Page
    3. Copyright Page
    4. Praise for Previous Editions of A Practical Guide to Fedora and Red Hat Enterprise Linux
    5. Praise for Other Books by Mark G. Sobell
    6. Dedication Page
    7. Brief Contents
    8. JumpStarts
    9. Contents
    10. Preface
      1. This Book Includes a Fedora 19 (Schrödinger’s Cat) DVD
      2. Features of This Book
      3. Key Topics Covered in This Book
      4. Supplements
      5. Thanks
    11. 1. Welcome to Linux
      1. The History of UNIX and GNU–Linux
      2. Overview of Linux
      3. Choosing an Operating System
      4. Chapter Summary
      5. Exercises
    12. Part I: Installing Fedora and Red Hat Enterprise Linux
      1. 2. Installation Overview
        1. Conventions Used in This Book
        2. LPI and CompTIA Certification Icons
        3. More Information
        4. Planning the Installation
        5. The Installation Process
        6. Downloading an Installation Image File and Writing to/Burning the Installation Medium
        7. Gathering Information About the System
        8. Chapter Summary
        9. Exercises
        10. Advanced Exercises
      2. 3. Step-by-Step Installation
        1. The New Anaconda Installer
        2. Running a Fedora Live Session
        3. Installing Fedora/RHEL
        4. Installation Tasks
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
    13. Part II: Using Fedora and Red Hat Enterprise Linux
      1. 4. Introduction to Fedora and Red Hat Enterprise Linux
        1. Curbing Your Power (Superuser/root Privileges)
        2. Logging In on the System
        3. The GNOME 3 Standard and Classic Desktops
        4. Working with the Desktop
        5. Using the Nautilus File Manager
        6. The Settings Window
        7. Getting Help
        8. Updating, Installing, and Removing Software Packages
        9. Working from the Command Line
        10. More About Logging In and Passwords
        11. Chapter Summary
        12. Exercises
        13. Advanced Exercises
      2. 5. The Shell
        1. Special Characters
        2. Ordinary Files and Directory Files
        3. The Command Line
        4. Standard Input and Standard Output
        5. Running a Command in the Background
        6. Filename Generation/Pathname Expansion
        7. Builtins
        8. Chapter Summary
        9. Exercises
        10. Advanced Exercises
      3. 6. The Linux Filesystem
        1. The Hierarchical Filesystem
        2. Ordinary Files and Directory Files
        3. Pathnames
        4. Working with Directories
        5. Access Permissions
        6. ACLs: Access Control Lists
        7. Links
        8. Chapter Summary
        9. Exercises
        10. Advanced Exercises
      4. 7. The Linux Utilities
        1. Basic Utilities
        2. Working with Files
        3. Compressing and Archiving Files
        4. Displaying User and System Information
        5. Miscellaneous Utilities
        6. Editing Files
        7. Chapter Summary
        8. Exercises
        9. Advanced Exercises
      5. 8. Networking and the Internet
        1. Introduction to Networking
        2. Types of Networks and How They Work
        3. Communicate over a Network
        4. Network Utilities
        5. Distributed Computing
        6. WWW: World Wide Web
        7. Chapter Summary
        8. Exercises
        9. Advanced Exercises
    14. Part III: System Administration
      1. 9. The Bourne Again Shell (bash)
        1. Background
        2. Startup Files
        3. Commands That Are Symbols
        4. Redirecting Standard Error
        5. Writing and Executing a Shell Script
        6. Control Operators: Separate and Group Commands
        7. Job Control
        8. Manipulating the Directory Stack
        9. Parameters and Variables
        10. Special Characters
        11. Locale
        12. Time
        13. Processes
        14. History
        15. Aliases
        16. Functions
        17. Controlling bash: Features and Options
        18. Processing the Command Line
        19. Chapter Summary
        20. Exercises
        21. Advanced Exercises
      2. 10. System Administration: Core Concepts
        1. Running Commands with root Privileges
        2. The systemd init Daemon
        3. SysVinit (rc) Scripts: Start and Stop System Services
        4. System Operation
        5. System Administration Tools
        6. Setting Up a Server
        7. DHCP: Configures Network Interfaces
        8. nsswitch.conf: Which Service to Look at First
        9. Getting Help
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      3. 11. Files, Directories, and Filesystems
        1. Important Files and Directories
        2. File Types
        3. Filesystems
        4. The XFS Filesystem
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
      4. 12. Finding, Downloading, and Installing Software
        1. Introduction
        2. JumpStart: Installing and Removing Software Packages Using yum
        3. Finding the Package That Holds an Application or File You Need
        4. yum: Keeps the System Up-to-Date
        5. BitTorrent
        6. RPM: The RPM Package Manager
        7. Installing Non-rpm Software
        8. Keeping Software Up-to-Date
        9. curl: Downloads Files Noninteractively
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      5. 13. Printing with CUPS
        1. Introduction
        2. The System Configures a Local Printer Automatically
        3. JumpStart I: Configuring a Printer Using system-config-printer
        4. JumpStart II: Setting Up a Local or Remote Printer
        5. Working with the CUPS Web Interface
        6. Configuring Printers
        7. Traditional UNIX Printing
        8. Printing from Windows
        9. Printing to Windows
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      6. 14. Building a Linux Kernel
        1. Downloading, Installing, and Prepping the Kernel Source Code
        2. Configuring and Compiling the Linux Kernel
        3. Installing the Kernel, Modules, and Associated Files
        4. GRUB: The Linux Boot Loader
        5. dmesg: Displays Kernel Messages
        6. Chapter Summary
        7. Exercises
        8. Advanced Exercises
      7. 15. Administration Tasks
        1. Configuring User and Group Accounts
        2. Backing Up Files
        3. Scheduling Tasks
        4. System Reports
        5. Maintaining the System
        6. Chapter Summary
        7. Exercises
        8. Advanced Exercises
      8. 16. Configuring and Monitoring a LAN
        1. More Information
        2. Setting Up the Hardware
        3. Configuring the Systems
        4. NetworkManager: Configures Network Connections
        5. Setting Up Servers
        6. Introduction to Cacti
        7. Chapter Summary
        8. Exercises
        9. Advanced Exercises
      9. 17. Setting Up Virtual Machines Locally and in the Cloud
        1. VMs (Virtual Machines)
        2. QEMU/KVM
        3. VMware Player: Installing Fedora on VMware
        4. Cloud Computing
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
    15. Part IV: Using Clients and Setting Up Servers
      1. 18. OpenSSH: Secure Network Communication
        1. Introduction to OpenSSH
        2. Running the ssh, scp, and sftp OpenSSH Clients
        3. Setting Up an OpenSSH Server (sshd)
        4. Troubleshooting
        5. Tunneling/Port Forwarding
        6. Chapter Summary
        7. Exercises
        8. Advanced Exercises
      2. 19. FTP: Transferring Files Across a Network
        1. Introduction to FTP
        2. Running the ftp and sftp FTP Clients
        3. Setting Up an FTP Server (vsftpd)
        4. Chapter Summary
        5. Exercises
        6. Advanced Exercises
      3. 20. sendmail: Setting Up Mail Servers, Clients, and More
        1. Introduction to sendmail
        2. Setting Up a sendmail Mail Server
        3. JumpStart I: Configuring sendmail on a Client
        4. JumpStart II: Configuring sendmail on a Server
        5. Working with sendmail Messages
        6. Configuring sendmail
        7. SpamAssassin
        8. Additional Email Tools
        9. Authenticated Relaying
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      4. 21. NIS and LDAP
        1. Introduction to NIS
        2. Running an NIS Client
        3. Setting Up an NIS Server
        4. LDAP
        5. Setting Up an LDAP Server
        6. Tools for Working with LDAP
        7. Chapter Summary
        8. Exercises
        9. Advanced Exercises
      5. 22. NFS: Sharing Directory Hierarchies
        1. Introduction to NFS
        2. Running an NFS Client
        3. Setting Up an NFS Server
        4. automount: Mounts Directory Hierarchies on Demand
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
      6. 23. Samba: Linux and Windows File and Printer Sharing
        1. Introduction to Samba
        2. Running Samba Clients
        3. Setting Up a Samba Server
        4. Troubleshooting
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
      7. 24. DNS/BIND: Tracking Domain Names and Addresses
        1. Introduction to DNS
        2. Setting Up a DNS Server
        3. Configuring a DNS Server
        4. Setting Up Different Types of DNS Servers
        5. Chapter Summary
        6. Exercises
        7. Advanced Exercises
      8. 25. firewalld and iptables: Setting Up a Firewall
        1. The firewalld Service
        2. JumpStart: Building a Firewall Using firewall-config
        3. firewall-config: The Firewall Configuration Window
        4. firewall-cmd: Controlling firewalld from the Command Line
        5. Introduction to iptables
        6. Building a Set of Rules Using iptables
        7. Copying Rules to and from the Kernel
        8. system-config-firewall: Generates a Set of Rules
        9. Sharing an Internet Connection Using NAT
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      9. 26. Apache (httpd): Setting Up a Web Server
        1. Introduction
        2. Running an Apache Web Server
        3. Filesystem Layout
        4. Configuration Directives
        5. Advanced Configuration
        6. Troubleshooting
        7. Modules
        8. webalizer: Analyzes Web Traffic
        9. MRTG: Monitors Traffic Loads
        10. Error Codes
        11. Chapter Summary
        12. Exercises
        13. Advanced Exercises
    16. Part V: Programming Tools
      1. 27. Programming the Bourne Again Shell (bash)
        1. Control Structures
        2. File Descriptors
        3. Parameters
        4. Variables
        5. Builtin Commands
        6. Expressions
        7. Implicit Command-Line Continuation
        8. Shell Programs
        9. Chapter Summary
        10. Exercises
        11. Advanced Exercises
      2. 28. The Python Programming Language
        1. Introduction
        2. Scalar Variables, Lists, and Dictionaries
        3. Control Structures
        4. Reading from and Writing to Files
        5. Regular Expressions
        6. Defining a Function
        7. Using Libraries
        8. Lambda Functions
        9. List Comprehensions
        10. Chapter Summary
        11. Exercises
        12. Advanced Exercises
      3. 29. The MariaDB SQL Database Management System
        1. History
        2. Notes
        3. Installing a MariaDB Server and Client
        4. Setting Up MariaDB
        5. Examples
        6. Chapter Summary
        7. Exercises
        8. Advanced Exercises
    17. Part VI: Appendixes
      1. A. Regular Expressions
        1. Characters
        2. Delimiters
        3. Simple Strings
        4. Special Characters
        5. Rules
        6. Bracketing Expressions
        7. The Replacement String
        8. Extended Regular Expressions
        9. Appendix Summary
      2. B. Help
        1. Solving a Problem
        2. Finding Linux-Related Information
        3. Specifying a Terminal
      3. C. Security Including GPG
        1. Encryption
        2. File Security
        3. Email Security
        4. Network Security
        5. Host Security
        6. Tutorial: Using GPG to Secure a File
        7. Security Resources
        8. Appendix Summary
      4. D. Keeping the System Up-to-Date Using apt-get
        1. Using apt-get to Install, Remove, and Update Packages
        2. Using apt-get to Upgrade the System
        3. Other apt-get Commands
        4. Repositories
        5. sources.list: Specifies Repositories for apt-get to Search
      5. E. LPI and CompTIA Certification
        1. More Information
        2. Linux Essentials
        3. Certification Exam 1 Objectives: LX0-101
        4. Certification Exam 2 Objectives: LX0-102
      6. Glossary
    18. JumpStart Index
    19. File Tree Index
    20. Utility Index
    21. Main Index
    22. DVD-ROM Warranty

    Product information

    • Title: A Practical Guide to Fedora™ and Red Hat® Enterprise Linux®, Seventh Edition
    • Author(s): Mark G. Sobell
    • Release date: December 2013
    • Publisher(s): Pearson
    • ISBN: 9780133477443