Linux Server Hacks, Volume Two
Linux Server Hacks, Volume Two Tips & Tools for Connecting, Monitoring, and Troubleshooting By William von Hagen, Brian K. Jones
December 2005
Pages: 478

Cover | Table of Contents | Colophon


Table of Contents

  1. Copyright

  2. Credits

    1. About the Authors

    2. Contributors

    3. Acknowledgments

  3. Preface

    1. Why Linux Server Hacks, Volume Two?

    2. How to Use This Book

    3. How This Book Is Organized

    4. Conventions Used in This Book

    5. Using Code Examples

    6. How to Contact Us

    7. SafariŽ Enabled

    8. Got a Hack?

  1. Chapter 1Linux Authentication

    1. Hacks 1–9: Introduction

    2. Disable User Accounts Instantly

    3. Edit Your Password File for Greater Access Control

    4. Deny All Access in One Second or Less

    5. Customize Authentication with PAMs

    6. Authenticate Linux Users with a Windows Domain Controller

    7. Centralize Logins with LDAP

    8. Secure Your System with Kerberos

    9. Authenticate NFS-Lovers with NIS

    10. Sync LDAP Data with NIS

  2. Chapter 2Remote GUI Connectivity

    1. Hacks 10–19: Introduction

    2. Access Systems Remotely with VNC

    3. Access VNC Servers over the Web

    4. Secure VNC via SSH

    5. Autostart VNC Servers on Demand

    6. Put Your Desktops on a Thin Client Diet

    7. Run Windows over the Network

    8. Secure, Lightweight X Connections with FreeNX

    9. Secure VNC Connections with FreeNX

    10. Secure Windows Terminal Connections with FreeNX

    11. Remote Administration with Webmin

  3. Chapter 3System Services

    1. Hacks 20–28: Introduction

    2. Quick and Easy DHCP Setup

    3. Integrate DHCP and DNS with Dynamic DNS Updates

    4. Synchronize Your Watches!

    5. Centralize X Window System Font Resources

    6. Create a CUPS Print Server

    7. Configure Linux Connections to Remote CUPS Printers

    8. Integrate Windows Printing with CUPS

    9. Centralize Macintosh Printing with CUPS

    10. Define a Secure CUPS Printer

  4. Chapter 4Cool Sysadmin Tools and Tips

    1. Hacks 29–45: Introduction

    2. Execute Commands Simultaneously on Multiple Servers

    3. Collaborate Safely with a Secured Wiki

    4. Edit Your GRUB Configuration with grubby

    5. Give Your Tab Key a Workout

    6. Keep Processes Running After a Shell Exits

    7. Disconnect Your Console Without Ending Your Session

    8. Use script to Save Yourself Time and Train Others

    9. Install Linux Simply by Booting

    10. Turn Your Laptop into a Makeshift Console

    11. Usable Documentation for the Inherently Lazy

    12. Exploit the Power of Vim

    13. Move Your PHP Web Scripting Skills to the Command Line

    14. Enable Quick telnet/SSH Connections from the Desktop

    15. Speed Up Compiles

    16. Avoid Common Junior Mistakes

    17. Get Linux Past the Gatekeeper

    18. Prioritize Your Work

  5. Chapter 5Storage Management and Backups

    1. Hacks 46–55: Introduction

    2. Create Flexible Storage with LVM

    3. Combine LVM and Software RAID

    4. Create a Copy-on-Write Snapshot of an LVM Volume

    5. Clone Systems Quickly and Easily

    6. Make Disk-to-Disk Backups for Large Drives

    7. Free Up Disk Space Now

    8. Share Files Using Linux Groups

    9. Refine Permissions with ACLs

    10. Make Files Easier to Find with Extended Attributes

    11. Prevent Disk Hogs with Quotas

  6. Chapter 6Standardizing, Sharing, and Synchronizing Resources

    1. Hacks 56–62: Introduction

    2. Centralize Resources Using NFS

    3. Automount NFS Home Directories with autofs

    4. Keep Filesystems Handy, but Out of Your Way

    5. Synchronize root Environments with rsync

    6. Share Files Across Platforms Using Samba

    7. Quick and Dirty NAS

    8. Share Files and Directories over the Web

  7. Chapter 7Security

    1. Hacks 63–68: Introduction

    2. Increase Security by Disabling Unnecessary Services

    3. Allow or Deny Access by IP Address

    4. Detect Network Intruders with snort

    5. Tame Tripwire

    6. Verify Fileystem Integrity with Afick

    7. Check for Rootkits and Other Attacks

  8. Chapter 8Troubleshooting and Performance

    1. Hacks 69–77: Introduction

    2. Find Resource Hogs with Standard Commands

    3. Reduce Restart Times with Journaling Filesystems

    4. Grok and Optimize Your System with sysctl

    5. Get the Big Picture with Multiple Displays

    6. Maximize Resources with a Minimalist Window Manager

    7. Profile Your Systems Using /proc

    8. Kill Processes the Right Way

    9. Use a Serial Console for Centralized Access to Your Systems

    10. Clean Up NIS After Users Depart

  9. Chapter 9Logfiles and Monitoring

    1. Hacks 78–88: Introduction

    2. Avoid Catastrophic Disk Failure

    3. Monitor Network Traffic with MRTG

    4. Keep a Constant Watch on Hosts

    5. Remotely Monitor and Configure a Variety of Networked Equipment

    6. Force Standalone Apps to Use syslog

    7. Monitor Your Logfiles

    8. Send Log Messages to Your Jabber Client

    9. Monitor Service Availability with Zabbix

    10. Fine-Tune the syslog Daemon

    11. Centralize System Logs Securely

    12. Keep Tabs on Systems and Services

  10. Chapter 10System Rescue, Recovery, and Repair

    1. Hacks 89–100: Introduction

    2. Resolve Common Boot and Startup Problems

    3. Rescue Me!

    4. Bypass the Standard Init Sequence for Quick Repairs

    5. Find Out Why You Can't Unmount a Partition

    6. Recover Lost Partitions

    7. Recover Data from Crashed Disks

    8. Repair and Recover ReiserFS Filesystems

    9. Piece Together Data from the lost+found

    10. Recover Deleted Files

    11. Permanently Delete Files

    12. Permanently Erase Hard Disks

    13. Recover Lost Files and Perform Forensic Analysis

  1. Colophon

Return to Linux Server Hacks, Volume Two