Book description
"Where has this book been all my professional life? It is about time someone wrote this book. The author covers many basic, practical issues that other authors omit in a format that makes for a great troubleshooting reference and for casual perusing. There are a lot of books available that give a broad overview of system and network administration, and there are a lot of detailed books on each specific topic covered in this book, but I don't know of any other place where I can get so much useful, practical information on such a wide range of topics in such a concise and readable form. I will highly recommend it to my friends and colleagues who are trying to manage their own systems. I am anxious to show it to our instructors who teach data communications and networks as a possible text or lab manual."
—Ron McCarty, instructor and program chair, Computer Science, Penn State Erie
"This book takes a very unique approach and is very flexible. It offers a great deal to the home user, students, small businesses—all the way to any Linux sys admin that needs a handy reference. I found it very refreshing in terms of style, stated goals, presentation, ease of use, direction, and the "present and future" value of the content. In other words the author is very current and knowledgeable. I would recommend this book to every level from programmer to manager."
—Joe Brazeal, Information Technician III, Southwest Power Pool
"This book is an excellent resource for new Linux administrators. I was impressed with the comprehensive set of 35 topic chapters, making this book a very useful reference. I know of no other work like this."
—George Vish II, Linux curriculum program manager and senior education consultant, Hewlett-Packard Education
"I would recommend this book to novice Linux users and administrators. It covers a lot of topics, and makes it easy for readers to follow along."
—Bret Strong, education consultant, Hewlett-Packard Company
"Linux Quick Fix Notebook is a well-written guide to designing, installing, and maintaining Linux servers. Many Linux reference texts are just simple rewrites of Linux ¨man¨ and ¨info¨ pages, but this book addresses the real issues that systems administrators encounter when working with Linux. The author provides a pedagogical guide to learning Linux server administration. In addition, the book includes step-by-step information so that users can quickly take advantage of the best that open source software has to offer today. I would recommend this book to both beginning and intermediate users of Linux."
—Joseph Naberhaus, Professor of Networking, Universidad Del Mar
An indispensable guide for every Linux administrator
Instant access to precise, step-by-step solutions for every essential Linux administration task
From basic configuration and troubleshooting to advanced security and optimization
If you're responsible for delivering results with Linux, Linux® Quick Fix Notebook brings together all the step-by-step instructions, precise configuration commands, and real-world guidance you need. This distilled, focused, task-centered guide was written for sysadmins, netadmins, consultants, power users...everyone whose livelihood depends on making Linux work, and keeping it working.
This book's handy Q&A format gives you instant access to specific answers, without ever forcing you to wade through theory or jargon. Peter Harrison addresses virtually every aspect of Linux administration, from software installation to security, user management to Internet services—even advanced topics such as software RAID and centralized LDAP authentication. Harrison's proven command-line examples work quickly and efficiently, no matter what Linux distribution you're using. Here's just some of what you'll learn how to do:
Build Linux file/print servers and networks from scratch
Troubleshoot Linux and interpret system error messages
Control every step of the boot process
Create, manage, secure, and track user accounts
Install, configure, and test Linux-based wireless networks
Protect your network with Linux iptables firewalls
Set up Web, e-mail, DNS, DHCP, and FTP servers
And much more...
© Copyright Pearson Education. All rights reserved.
Table of contents
- Copyright
- Praise for Linux Quick Fix Notebook
- Bruce Perens’ Open Source Series
- About Prentice Hall Professional Technical Reference
- Preface
- Acknowledgments
- About the Author
-
I. The Linux File Server Project
- 1. Why Host Your Own Site?
-
2. Introduction to Networking
- The OSI Networking Model
- An Introduction to TCP/IP
- How IP Addresses Are Used to Access Network Devices
- How Subnet Masks Group IP Addresses into Networks
- The Physical and Link Layers
-
Networking Equipment Terminology
- Network Interface Cards
- The Two Broad Types of Networking Equipment
- Connectivity Using Hubs
- Using Switches as a Faster Alternative to Hubs
- Local Area Networks
- How Routers Interconnect LANs
- How Simple Routing Works
- Default Gateways, the Routers of Last Resort
- Firewalls Help Provide a Secure Routing Environment
- Additional Introductory Topics
- Conclusion
-
3. Linux Networking
- How to Configure Your NIC’s IP Address
- How to Activate/Shut Down Your NIC
- How to View Your Current Routing Table
- How to Change Your Default Gateway
- How to Configure Two Gateways
- How to Delete a Route
- Changing NIC Speed and Duplex
- How to Convert Your Linux Server into a Router
- Configuring Your /etc/hosts File
- Conclusion
-
4. Simple Network Troubleshooting
- Sources of Network Slowness
- Sources of a Lack of Connectivity
- Doing Basic Cable and Link Tests
- Testing Your NIC
- How to See MAC Addresses
- Using ping to Test Network Connectivity
- Using telnet to Test Network Connectivity
- Linux telnet Troubleshooting
- telnet Troubleshooting Using Windows
- Testing Web Sites with the curl and wget Utilities
- The netstat Command
- The Linux iptables Firewall
-
Using traceroute to Test Connectivity
- Sample traceroute Output
- Possible traceroute Messages
- traceroute Time Exceeded False Alarms
- traceroute Internet Slowness False Alarm
- traceroute Dies at the Router Just Before the Server
- Always Get a Bidirectional traceroute
- ping and traceroute Troubleshooting Example
- traceroute Web Sites
- Possible Reasons for a Failed traceroute
- Using MTR to Detect Network Congestion
- Viewing Packet Flows with tcpdump
- Viewing Packet Flows with tethereal
- Basic DNS Troubleshooting
- Using nmap
- Determining the Source of an Attack
- Who Has Used My System?
- Conclusion
- 5. Troubleshooting Linux with syslog
-
6. Installing RPM Software
- Where to Get Commonly Used RPMs
- Getting RPMs Using Web-Based FTP
- Getting RPMs Using Command-Line Anonymous FTP
- Getting RPMs Using wget
- Automatic Updates with yum
- How to Install RPMs Manually
- How to Install Source RPMs
- RPM Installation Errors
- How to List Installed RPMs
- Listing Files Associated with RPMs
- Uninstalling RPMs
- Which RPMs Start at Boot Time?
- Installing Software Using tar Files
- Conclusion
- 7. The Linux Boot Process
- 8. Configuring the DHCP Server
- 9. Linux Users and sudo
-
10. Windows, Linux, and Samba
- Download and Install Packages
- How to Get Samba Started
- The Samba Configuration File
-
How SWAT Makes Samba Simpler
- Basic SWAT Setup
- Controlling SWAT
-
Encrypting SWAT
- Create an stunnel User
- Create the Certificates
- Modify Certificate File Permissions
- Create an /etc/stunnel/stunnel.conf Configuration File
- Create a New /etc/xinetd.d File for Secure SWAT
- Edit the /etc/services File to Create a Secure SWAT Entry
- Activate swat-stunnel
- Test Secure SWAT
- Test the Secure SWAT Login
- Troubleshooting Secure SWAT
- How to Make SWAT Changes Immediate
- Creating a Starter Configuration
- Samba Passwords
- How to Create a Samba PDC Administrator User
- How to Add Workstations to Your Samba Domain
- How to Add Users to Your Samba Domain
- Domain Groups and Samba
- How to Delete Users from Your Samba Domain
- How to Modify Samba Passwords
- Conclusion
- 11. Sharing Resources Using Samba
- 12. Samba Security and Troubleshooting
-
13. Linux Wireless Networking
- Wireless Linux-Compatible NICs
- Common Wireless Networking Terms
- Networking with Linux Wireless Tools
- Networking with Linux-WLAN
- Troubleshooting Your Wireless LAN
- Wireless Networks In Businesses
- Conclusion
-
II. The Linux Web Site Project
-
14. Linux Firewalls Using iptables
- What Is iptables?
- Download and Install the iptables Package
- How to Start iptables
- Determining the Status of iptables
- Packet Processing in iptables
- Targets and Jumps
- Important iptables Command Switch Operations
- Using User-Defined Chains
- Saving Your iptables Scripts
- Fedora’s iptables Rule Generator
- Recovering from a Lost Script
- Loading Kernel Modules Needed by iptables
-
Sample iptables Scripts
- Basic Operating System Defense
- Basic iptables Initialization
- Advanced iptables Initialization
- Allowing DNS Access to Your Firewall
- Allowing WWW and SSH Access to Your Firewall
- Allowing Your Firewall to Access the Internet
- Allow Your Home Network to Access the Firewall
- Masquerading (Many to One NAT)
- Port Forwarding Type NAT (DHCP DSL)
- Static NAT
- Troubleshooting iptables
- Conclusion
- 15. Linux FTP Server Setup
- 16. TELNET, TFTP, and xinetd
-
17. Secure Remote Logins and File Copying
- A Quick Introduction to SSH Encryption
- Starting OpenSSH
- Testing the Status of SSH
- The /etc/ssh/sshd_config File
- Using SSH to Log Into a Remote Machine
- What to Expect with Your First Login
- Deactivating TELNET After Installing SSH
- Executing Remote Commands on Demand with SSH
- SCP: A Secure Alternative to FTP
- SFTP: Another Secure Alternative to FTP
- Using SSH and SCP Without a Password
- Conclusion
-
18. Configuring DNS
- Introduction to DNS
- Downloading and Installing the BIND Packages
- Starting BIND
- The /etc/resolv.conf File
- Configuring a Caching Name Server
- Important File Locations
-
Configuring a Regular Name Server
- Configuring resolv.conf
- Configuring named.conf
- Configuring the Zone Files
- Sample Forward Zone File
- Sample Reverse Zone File
- What You Need to Know About NAT and DNS
- Loading Your New Configuration Files
- Make Sure Your /etc/hosts File is Correctly Updated
- Configure Your Firewall
- Fix Your Domain Registration
- Troubleshooting BIND
- Migrating Your Web Site In-House
- DHCP Considerations for DNS
- Simple DNS Security
- Conclusion
- 19. Dynamic DNS
-
20. The Apache Web Server
- Downloading and Installing the Apache Package
- Starting Apache
- Configuring DNS for Apache
- DHCP and Apache
- General Configuration Steps
- Configuration: Multiple Sites and IP Addresses
- Using Data Compression on Web Pages
- Apache Running on a Server Behind a NAT Firewall
- Protecting Web Page Directories with Passwords
- The /etc/httpd/conf.d Directory
- Troubleshooting Apache
- Conclusion
-
21. Configuring Linux Mail Servers
-
Configuring sendmail
- How sendmail Works
- Installing sendmail
- Starting sendmail
- How to Restart sendmail After Editing Your Configuration Files
- The /etc/mail/sendmail.mc File
- Configuring DNS for sendmail
- How to Configure Linux sendmail Clients
- Converting From a Mail Client to a Mail Server
- The /etc/mail/relay-domains File
- The /etc/mail/access File
- The /etc/mail/local-host-names File
- Which User Should Really Receive the Mail?
- sendmail Masquerading Explained
- Using sendmail to Change the Sender’s E-mail Address
- Troubleshooting sendmail
- Fighting Spam
- Configuring Your POP Mail Server
- Conclusion
-
Configuring sendmail
-
22. Monitoring Server Performance
- SNMP
- MRTG
- Webalizer
- The top Command
- The vmstat Command
- The free Utility
- Conclusion
-
23. Advanced MRTG for Linux
- Locating and Viewing the Contents of Linux MIBs
- Testing Your MIB Value
- Differences in MIB and MRTG Terminology
- The CPU and the Memory Monitoring MIB
- The TCP/IP Monitoring MIB
- Manually Configuring Your MRTG File
- Implementing Advanced Server Monitoring
- Monitoring Non-Linux MIB Values
- Troubleshooting
- Conclusion
- 24. The NTP Server
-
14. Linux Firewalls Using iptables
-
III. Advanced Topics
- 25. Network-Based Linux Installation
-
26. Linux Software RAID
- RAID Types
- Before You Start
-
Configuring Software RAID
- RAID Partitioning
- Edit the RAID Configuration File
- Create the RAID Set
- Confirm RAID Is Correctly Initialized
- Format the New RAID Set
- Load the RAID Driver for the New RAID Set
- Create a Mount Point for the RAID Set
- Edit the /etc/fstab File
- Start the New RAID Set’s Driver
- Mount the New RAID Set
- Check the Status of the New RAID
- Conclusion
-
27. Expanding Disk Capacity
- Adding Disks to Linux
-
Expanding Partitions with LVM
- LVM Terms
-
Configuring LVM Devices
- Back up Your Data
- Unmount Your /home Filesystem
- Determine the Partition Types
- Start fdisk
- Set the ID Type to 8e
- Make Sure the Change Occurred
- Save the Partition Changes
- Define Each Physical Volume
- Run VGscan
- Create a Volume Group for the PVs
- Create a Logical Volume from the Volume Group
- Format the Logical Volume
- Create a Mount Point
- Update the /etc/fstab File
- Mount the Volume
- Restore Your Data
- Get Out of Single User Mode
- Conclusion
- 28. Managing Disk Usage with Quotas
- 29. Remote Disk Access With NFS
- 30. Centralized Logins Using NIS
-
31. Centralized Logins Using LDAP and RADIUS
- The LDAP Directory Structure
- Scenario
- Downloading and Installing the LDAP Packages
- Configuring the LDAP Server
- Configuring the LDAP Client
- Configuring Encrypted LDAP Communication
- Troubleshooting LDAP Logins
- Common LDAP Administrative Tasks
- Configuring RADIUS for LDAP
- Conclusion
- 32. Controlling Web Access with Squid
-
33. Modifying the Linux Kernel to Improve Performance
- The Pros and Cons of Kernel Upgrades
- Download and Install the Kernel Sources Package
- Kernel Modules
- Creating a Custom Kernel
- Updating GRUB
- Updating the Kernel Using RPMs
- Conclusion
-
34. Basic MySQL Configuration
- Preparing MySQL for Applications
- Installing MySQL
- Starting MySQL
- The /etc/my.cnf File
- The Location of MySQL Databases
- Creating a MySQL Root Account
- Accessing the MySQL Command Line
- Creating and Deleting MySQL Databases
- Granting Privileges to Users
- Running MySQL Scripts to Create Data Tables
- Viewing Your New MySQL Databases
- Configuring Your Application
- Recovering and Changing Your MySQL Root Password
- MySQL Database Backup
- MySQL Database Restoration
- Very Basic MySQL Network Security
- Basic MySQL Troubleshooting
- Conclusion
-
35. Configuring Linux VPNs
- VPN Guidelines
- Scenario
- Download and Install the Openswan Package
- How to Get Openswan Started
- Get the Status of the Openswan Installation
- VPN Configuration Steps Using RSA Keys
- Possible Changes to IP Tables NAT/Masquerade Rules
- How to Ensure Openswan Starts When Rebooting
- Using Pre-Shared Keys (PSK)
- Troubleshooting Openswan
- Conclusion
- I. Miscellaneous Linux Topics
- II. Codes, Scripts, and Configurations
- III. Fedora Version Differences
- IV. syslog Configuration and Cisco Devices
Product information
- Title: Linux® Quick Fix Notebook
- Author(s):
- Release date: March 2005
- Publisher(s): Pearson
- ISBN: 0131861506
You might also like
book
Rationale Entscheidungen unter Unsicherheit
In den Abhandlungen der Akademie der Wissenschaften in Hamburg werden in unregelmäßiger Folge Monographien oder Tagungsberichte …
book
IT-Management
In den 15 Beiträgen dieses Buches erhalten Sie praktisches Fachwissen zu den bedeutendsten Themen des heutigen …
video
GenAI Essentials for Everyone - Overview
Our team of experts has hand-selected and organized the most crucial concepts and practical applications of …
book
Webmaster in a Nutshell, Third Edition
First, there was HTML. Then along came JavaScript. Close on the heels of JavaScript came CSS …