
|


How do these hacks stand up? Comment on a hack from the book by choosing the associated "Discuss" link below. You can also view the code from any of the hacks by clicking on the "Listing" or "Code" links. A number of hacks have been selected to be featured online in their entirety; you may view those hacks by clicking on the hack titles that are linked.
You can also download all the scripts and other files for this book here.
Server Basics
HACK
#1 |
 |
|
Removing Unnecessary Services
Fine tune your server to provide only the services you really want to serve
[Discuss (4) | Link to this hack]
|
 |
HACK
#5 |
 |
|
Swap Standard Output and Standard Error
Direct standard out and standard error to wherever you need them to go
[Discuss (0) | Link to this hack]
|
 |
HACK
#6 |
 |
|
Building Complex Command Lines
Build simple commands into full-fledged paragraphs for complex (but meaningful) reports
[Discuss (4) | Link to this hack]
|
 |
HACK
#11 |
 |
|
Finding and Eliminating setuid/setgid Binaries
Eliminate potential root exploits before they have a chance to happen
[Discuss (1) | Link to this hack]
|
 |
HACK
#12 |
 |
|
Make sudo Work Harder
Use sudo to let other users do your evil bidding, without giving away the machine
[Discuss (0) | Link to this hack]
|
 |
HACK
#14 |
 |
|
Brute Forcing Your New Domain Name
Find exactly the domain you'd like to register, whatever it turns out to be
[Discuss (0) | Link to this hack]
|
 |
HACK
#17 |
 |
|
Manipulating Processes Symbolically with procps
Signal and renice processes by name, terminal, or username (instead of PID)
[Discuss (2) | Link to this hack]
|
 |
HACK
#18 |
 |
|
Managing System Resources per Process
Prevent user processes from running away with all system resources
[Discuss (0) | Link to this hack]
|
 |
HACK
#19 |
 |
|
Cleaning Up after Ex-Users
Make sure you close the door all the way when a user takes their leave
[Discuss (0) | Link to this hack]
|
 |
HACK
#20 |
 |
|
Eliminating Unnecessary Drivers from the Kernel
Keep your kernel optimized for quick booting and long-term stability
[Discuss (0) | Link to this hack]
|
 | Revision Control
Backups
HACK
#37 |
 |
|
Backing Up with tar over ssh
Copy arbitrary bits of the filesystem between servers using ssh and tar
[Discuss (1) | Link to this hack]
|
 |
HACK
#44 |
 |
|
Burning a CD Without Creating an ISO File
Create a CD from another CD, the live filesystem, or even an http download
[Discuss (0) | Link to this hack]
|
 | Networking
HACK
#52 |
 |
|
Using vtun over ssh to Circumvent NAT
Connect two networks together using vtun and a single ssh connection
[Discuss (0) | Link to this hack]
|
 | Monitoring
HACK
#56 |
 |
|
What's Holding That Port Open?
Associate a process with the port it is bound to easily with netstat
[Discuss (2) | Link to this hack]
|
 |
HACK
#57 |
 |
|
Checking On Open Files and Sockets with lsof
Easily see which files, directories, and sockets your running processes are holding open
[Discuss (0) | Link to this hack]
|
 |
HACK
#61 |
 |
|
Scanning Your Own Machines with nmap
Find out when servers and services come online anywhere on your network
[Discuss (0) | Link to this hack]
|
 |
HACK
#64 |
 |
|
Running ntop for Real-Time Network Stats
See who's doing what on your network over time with ntop
[Discuss (0) | Link to this hack]
|
 | SSH
HACK
#71 |
 |
|
Forwarding Ports over ssh
Keep network traffic to arbitrary ports secure with ssh port forwarding
[Discuss (0) | Link to this hack]
|
 | Scripting
HACK
#75 |
 |
|
Colorized Log Analysis in Your Terminal
View your log files in an xterm window in full, living color
[Discuss (0) | Link to this hack]
|
 | Information Servers
HACK
#76 |
 |
|
Running BIND in a chroot Jail
Keep your named isolated from the rest of the system with the judicious use of chroot
[Discuss (0) | Link to this hack]
|
 |
HACK
#77 |
 |
|
Views in BIND 9
Change the results that your DNS server returns depending on where the requests are coming from
[Discuss (0) | Link to this hack]
|
 |
HACK
#78 |
 |
|
Setting Up Caching DNS with Authority for Local Domains
Get BIND running quickly with a forwarding, caching server
[Discuss (0) | Link to this hack]
|
 |
HACK
#82 |
 |
|
Setting Up Replication in MySQL
Keep live copies of your database running to increase performance and provide redundancy
[Discuss (2) | Link to this hack]
|
 |
HACK
#83 |
 |
|
Restoring a Single Table from a Large MySQL Dump
Here is a method for restoring a single mysql table from a huge mysqldump
[Discuss (1) | Link to this hack]
|
 |
HACK
#84 |
 |
|
MySQL Server Tuning
Try these practical steps to help make your MySQL server run as efficiently as it can
[Discuss (0) | Link to this hack]
|
 |
HACK
#85 |
 |
|
Using proftpd with a mysql Authentication Source
Eliminate the need for user accounts for ftp users with proftpd and mysql
[Discuss (0) | Link to this hack]
|
 |
HACK
#86 |
 |
|
Optimizing glibc, linuxthreads, and the Kernel for a Super MySQL Server
Make sure that your database system's OS is running as efficiently as possible with these tweaks
[Discuss (0) | Link to this hack]
|
 |
HACK
#87 |
 |
|
Apache Toolbox
Use this great installation script to automatically download, configure, compile, and install Apache (and friends)
[Discuss (0) | Link to this hack]
|
 |
HACK
#88 |
 |
|
Display the Full Filename in Indexes
Stop truncating the filenames in your auto-indexed directories
[Discuss (0) | Link to this hack]
|
 |
HACK
#89 |
 |
|
Quick Configuration Changes with IfDefine
Make changes to your running Apache configuration without editing httpd.conf
[Discuss (0) | Link to this hack]
|
 |
HACK
#93 |
 |
|
Generating an SSL cert and Certificate Signing Request
Make an SSL key, CSR, and cert for use with Apache
[Discuss (0) | Link to this hack]
|
 |
HACK
#94 |
 |
|
Creating Your Own CA
Become your own Certificate Authority, and sign your own (or others') SSL certs
[Discuss (0) | Link to this hack]
|
 |
HACK
#95 |
 |
|
Distributing Your CA to Client Browsers
Installing your shiny new CA cert to client browsers is just a click away
[Discuss (0) | Link to this hack]
|
 |
HACK
#96 |
 |
|
Serving multiple sites with the same DocumentRoot
Through creative use of mod_rewrite, several sites can share a DocumentRoot and yet still appear to be independent sites
[Discuss (0) | Link to this hack]
|
 |
HACK
#97 |
 |
|
Delivering Content Based on the Query String Using mod_rewrite
Control content delivery based on a URL's query string without a CGI script
[Discuss (0) | Link to this hack]
|
 |
HACK
#98 |
 |
|
Using mod_proxy on Apache for Speed
Offload complex dynamic requests to another apache (or another machine entirely)
[Discuss (0) | Link to this hack]
|
 |
HACK
#99 |
 |
|
Distributing Load with Apache RewriteMap
Scale to any number of web application servers with RewriteMap
[Discuss (0) | Link to this hack]
|
 |
HACK
#100 |
 |
|
Ultrahosting: Mass Web Site Hosting with Wildcards, Proxy, and Rewrite
Support thousands of internal web servers without lifting a finger
[Discuss (0) | Link to this hack]
|
 |
|
O'Reilly Home | Privacy Policy

© 2007 O'Reilly Media, Inc.
Website:
| Customer Service:
| Book issues:
All trademarks and registered trademarks appearing on oreilly.com are the property of their respective owners.
|
|
|