Buying Options
BSD Hacks
Print $24.95
Add to Cart
Print+Ebook $27.45
Add to Cart
Ebook $19.99
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £18.99
Add to Cart
What is this?
Description
Looking for a unique set of practical tips, tricks, and tools for administrators and power users of BSD systems? From hacks to customize the user environment to networking, securing the system, and optimization, BSD Hacks takes a creative approach to saving time and accomplishing more with fewer resources. If you want more than the average BSD user--to explore and experiment, unearth shortcuts, create useful tools--this book is a must-have.
Full Description
Table of Contents
  1. Chapter 1 Customizing the User Environment

    1. Introduction

    2. Get the Most Out of the Default Shell

    3. Useful tcsh Shell Configuration File Options

    4. Create Shell Bindings

    5. Use Terminal and X Bindings

    6. Use the Mouse at a Terminal

    7. Get Your Daily Dose of Trivia

    8. Lock the Screen

    9. Create a Trash Directory

    10. Customize User Configurations

    11. Maintain Your Environment on Multiple Systems

    12. Use an Interactive Shell

    13. Use Multiple Screens on One Terminal

  2. Chapter 2 Dealing with Files and Filesystems

    1. Introduction

    2. Find Things

    3. Get the Most Out of grep

    4. Manipulate Files with sed

    5. Format Text at the Command Line

    6. Delimiter Dilemma

    7. DOS Floppy Manipulation

    8. Access Windows Shares Without a Server

    9. Deal with Disk Hogs

    10. Manage Temporary Files and Swap Space

    11. Recreate a Directory Structure Using mtree

    12. Ghosting Systems

  3. Chapter 3 The Boot and Login Environments

    1. Introduction

    2. Customize the Default Boot Menu

    3. Protect the Boot Process

    4. Run a Headless System

    5. Log a Headless Server Remotely

    6. Remove the Terminal Login Banner

    7. Protecting Passwords With Blowfish Hashes

    8. Monitor Password Policy Compliance

    9. Create an Effective, Reusable Password Policy

    10. Automate Memorable Password Generation

    11. Use One Time Passwords

    12. Restrict Logins

  4. Chapter 4 Backing Up

    1. Introduction

    2. Back Up FreeBSD with SMBFS

    3. Create Portable POSIX Archives

    4. Interactive Copy

    5. Secure Backups Over a Network

    6. Automate Remote Backups

    7. Automate Data Dumps for PostgreSQL Databases

    8. Perform Client-Server Cross-Platform Backups with Bacula

  5. Chapter 5 Networking Hacks

    1. Introduction

    2. See Console Messages Over a Remote Login

    3. Spoof a MAC Address

    4. Use Multiple Wireless NIC Configurations

    5. Survive Catastrophic Internet Loss

    6. Humanize tcpdump Output

    7. Understand DNS Records and Tools

    8. Send and Receive Email Without a Mail Client

    9. Why Do I Need sendmail?

    10. Hold Email for Later Delivery

    11. Get the Most Out of FTP

    12. Distributed Command Execution

    13. Interactive Remote Administration

  6. Chapter 6 Securing the System

    1. Introduction

    2. Strip the Kernel

    3. FreeBSD Access Control Lists

    4. Protect Files with Flags

    5. Tighten Security with Mandatory Access Control

    6. Use mtree as a Built-in Tripwire

    7. Intrusion Detection with Snort, ACID, MySQL, and FreeBSD

    8. Encrypt Your Hard Disk

    9. Sudo Gotchas

    10. sudoscript

    11. Restrict an SSH server

    12. Script IP Filter Rulesets

    13. Secure a Wireless Network Using PF

    14. Automatically Generate Firewall Rules

    15. Automate Security Patches

    16. Scan a Network of Windows Computers for Viruses

  7. Chapter 7 Going Beyond the Basics

    1. Introduction

    2. Tune FreeBSD for Different Applications

    3. Traffic Shaping on FreeBSD

    4. Create an Emergency Repair Kit

    5. Use the FreeBSD Recovery Process

    6. Use the GNU Debugger to Analyze a Buffer Overflow

    7. Consolidate Web Server Logs

    8. Script User Interaction

    9. Create a Trade Show Demo

  8. Chapter 8 Keeping Up-to-Date

    1. Introduction

    2. Automated Install

    3. FreeBSD from Scratch

    4. Safely Merge Changes to /etc

    5. Automate Updates

    6. Create a Package Repository

    7. Build a Port Without the Ports Tree

    8. Keep Ports Up-to-Date with CTM

    9. Navigate the Ports System

    10. Downgrade a Port

    11. Create Your Own Startup Scripts

    12. Automate NetBSD Package Builds

    13. Easily Install Unix Applications on Mac OS X

  9. Chapter 9 Grokking BSD

    1. Introduction

    2. How'd He Know That?

    3. Create Your Own Manpages

    4. Get the Most Out of Manpages

    5. Apply, Understand, and Create Patches

    6. Display Hardware Information

    7. Determine Who Is on the System

    8. Spelling Bee

    9. Leave on Time

    10. Run Native Java Applications

    11. Rotate Your Signature

    12. Useful One-Liners

    13. Fun with X

    View Full Table of Contents
    Product Details
    Title:
    BSD Hacks
    By:
    Dru Lavigne
    Publisher:
    O'Reilly Media
    Formats:
    • Print
    • Ebook
    • Safari Books Online
    Print Release:
    May 2004
    Ebook Release:
    February 2009
    Pages:
    448
    Print ISBN:
    978-0-596-00679-2
    | ISBN 10:
    0-596-00679-9
    Ebook ISBN:
    978-0-596-10447-4
    | ISBN 10:
    0-596-10447-2
    Customer Reviews
    About the Author
    1. Dru Lavigne

      Dru is an instructor at Marketbridge Technologies in Ottawa and the maintainer of the Open Protocol Resource. In her non-existent spare time, you can find her shooting Remic's Rapids or cycling through Gatineau Park.

      View Dru Lavigne's full profile page.

    Colophon

    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. The image on the cover of BSD Hacks is a pitchfork. A pitchfork (also known as a garden or spading fork) is a versatile agricultural hand tool. It can be used for a range of tasks, including aerating soil, pitching hay, and mixing compost. In addition to its practical uses, the pitchfork is also symbolic; for example, it is often included in depictions of the Devil, and it is a central feature of Grant Wood's American Gothic. A pitchfork can have two, three, or four curved prongs, but most pitchforks manufactured today (such as the one depicted in the cover image) have four. Genevieve d'Entremont was the production editor and copyeditor for BSD Hacks. Reg Aubry proofread the book. Matt Hutchinson and Claire Cloutier provided quality control. Judy Hoer wrote the index.

    Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is a photograph from the Stockbyte Work Tools CD. Emma Colby produced the cover layout with QuarkXPress 4.1 using Adobe's Helvetica Neue and ITC Garamond fonts.

    David Futato designed the interior layout. This book was converted by Joe Wizda 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. This colophon was written by Genevieve d'Entremont.

    • Book cover of BSD Hacks