Please consider the latest edition.
Linux Server Hacks is a collection of 100 industrial-strength hacks, providing tips and tools that solve practical problems for Linux system administrators. Every hack can be read in just a few minutes but will save hours of searching for the right answer. Some of the hacks are subtle, many of them are non-obvious, and all of them demonstrate the power and flexibility of a Linux system. You'll find hacks devoted to tuning the Linux kernel to make your system run more efficiently, as well as using CVS or RCS to track the revision to system files. You'll learn alternative ways to do backups, how to use system monitoring tools to track system performance and a variety of secure networking solutions. Linux Server Hacks also helps you manage large-scale Web installations running Apache, MySQL, and other open source tools that are typically part of a Linux system.
-
Chapter 1 Server Basics
-
Hacks #1-22
-
Removing Unnecessary Services
-
Forgoing the Console Login
-
Common Boot Parameters
-
Creating a Persistent Daemon with init
-
n>&m: Swap Standard Output and Standard Error
-
Building Complex Command Lines
-
Working with Tricky Files in xargs
-
Immutable Files in ext2/ext3
-
Speeding Up Compiles
-
At Home in Your Shell Environment
-
Finding and Eliminating setuid/setgid Binaries
-
Make sudo Work Harder
-
Using a Makefile to Automate Admin Tasks
-
Brute Forcing Your New Domain Name
-
Playing Hunt the Disk Hog
-
Fun with /proc
-
Manipulating Processes Symbolically with procps
-
Managing System Resources per Process
-
Cleaning Up after Ex-Users
-
Eliminating Unnecessary Drivers from the Kernel
-
Using Large Amounts of RAM
-
hdparm: Fine Tune IDE Drive Parameters
-
-
Chapter 2 Revision Control
-
Hacks #23-36
-
Getting Started with RCS
-
Checking Out a Previous Revision in RCS
-
Tracking Changes with rcs2log
-
Getting Started with CVS
-
CVS: Checking Out a Module
-
CVS: Updating Your Working Copy
-
CVS: Using Tags
-
CVS: Making Changes to a Module
-
CVS: Merging Files
-
CVS: Adding and Removing Files and Directories
-
CVS: Branching Development
-
CVS: Watching and Locking Files
-
CVS: Keeping CVS Secure
-
CVS: Anonymous Repositories
-
-
Chapter 3 Backups
-
Hacks #37-44
-
Backing Up with tar over ssh
-
Using rsync over ssh
-
Archiving with Pax
-
Backing Up Your Boot Sector
-
Keeping Parts of Filesystems in sync with rsync
-
Automated Snapshot-Style Incremental Backups with rsync
-
Working with ISOs and CDR/CDRWs
-
Burning a CD Without Creating an ISO File
-
-
Chapter 4 Networking
-
Hacks #45-53
-
Creating a Firewall from the Command Line of any Server
-
Simple IP Masquerading
-
iptables Tips & Tricks
-
Forwarding TCP Ports to Arbitrary Machines
-
Using Custom Chains in iptables
-
Tunneling: IPIP Encapsulation
-
Tunneling: GRE Encapsulation
-
Using vtun over ssh to Circumvent NAT
-
Automatic vtund.conf Generator
-
-
Chapter 5 Monitoring
-
Hacks #54-65
-
Steering syslog
-
Watching Jobs with watch
-
What's Holding That Port Open?
-
Checking On Open Files and Sockets with lsof
-
Monitor System Resources with top
-
Constant Load Average Display in the Titlebar
-
Network Monitoring with ngrep
-
Scanning Your Own Machines with nmap
-
Disk Age Analysis
-
Cheap IP Takeover
-
Running ntop for Real-Time Network Stats
-
Monitoring Web Traffic in Real Time with httptop
-
-
Chapter 6 SSH
-
Hacks #66-71
-
Quick Logins with ssh Client Keys
-
Turbo-mode ssh Logins
-
Using ssh-Agent Effectively
-
Running the ssh-Agent in a GUI
-
X over ssh
-
Forwarding Ports over ssh
-
-
Chapter 7 Scripting
-
Hacks #72-75
-
Get Settled in Quickly with movein.sh
-
Global Search and Replace with Perl
-
Mincing Your Data into Arbitrary Chunks (in bash)
-
Colorized Log Analysis in Your Terminal
-
-
Chapter 8 Information Servers
-
Hacks #76-100
-
Running BIND in a chroot Jail
-
Views in BIND 9
-
Setting Up Caching DNS with Authority for Local Domains
-
Distributing Server Load with Round-Robin DNS
-
Running Your Own Top-Level Domain
-
Monitoring MySQL Health with mtop
-
Setting Up Replication in MySQL
-
Restoring a Single Table from a Large MySQL Dump
-
MySQL Server Tuning
-
Using proftpd with a mysql Authentication Source
-
Optimizing glibc, linuxthreads, and the Kernel for a Super MySQL Server
-
Apache Toolbox
-
Display the Full Filename in Indexes
-
Quick Configuration Changes with IfDefine
-
Simplistic Ad Referral Tracking
-
Mimicking FTP Servers with Apache
-
Rotate and compress Apache Server Logs
-
Generating an SSL cert and Certificate Signing Request
-
Creating Your Own CA
-
Distributing Your CA to Client Browsers
-
Serving multiple sites with the same DocumentRoot
-
Delivering Content Based on the Query String Using mod_rewrite
-
Using mod_proxy on Apache for Speed
-
Distributing Load with Apache RewriteMap
-
Ultrahosting: Mass Web Site Hosting with Wildcards, Proxy, and Rewrite
-
-
Colophon
- Title:
- Linux Server Hacks
- By:
- Rob Flickenger
- Publisher:
- O'Reilly Media
- Formats:
-
- Ebook
- Safari Books Online
- Print Release:
- January 2003
- Ebook Release:
- June 2009
- Pages:
- 240
- Print ISBN:
- 978-0-596-00461-3
- | ISBN 10:
- 0-596-00461-3
- Ebook ISBN:
- 978-0-596-10403-0
- | ISBN 10:
- 0-596-10403-0
Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. Sarah Sherman was the production editor and copyeditor for Linux Server Hacks. Colleen Gorman, Mary Brady, and Claire Cloutier provided quality control. John Bickelhaupt wrote the index.
Edie Freedman designed the cover of this book. The tool on the cover of Linux Server Hacks is an ax. The cover image is an original photograph from the CMCD collection. Emma Colby produced the cover layout with Quark-XPress 4.1 using Adobe's ITC Garamond and Helvetica Neue fonts.
David Futato designed the interior layout. This book was converted to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Helvetica Neue Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia FreeHand 9 and Adobe Photoshop 6.
