BUY THIS BOOK
Add to Cart

PDF $23.99

Safari Books Online

What is this?

Looking to Reprint or License this content?

Knoppix Hacks 100 Industrial-Strength Tips and Tools

By Kyle Rankin
October 2004
Pages: 336
Series: Hacks
ISBN 10: 0-596-00787-6 | ISBN 13: 9780596007874
starstarstarstarstar (Average of 6 Customer Reviews)

This book has been updated—the edition you're requesting is OUT OF PRINT. Please visit the catalog page of the latest edition.

The latest edition is also available on Safari Books Online.

Description

Knoppix Hacks is an invaluable collection of one hundred industrial-strength hacks for new Linux users, power users, and system administrators using--or considering using--the Knoppix Live CD. These tips and tools show how to use the enormous amount of software on this live CD to troubleshoot, repair, upgrade, disinfect, and generally be productive without Windows--without the difficulty of installing Linux itself.
Full Description

Knoppix is a portable Linux distribution with a collection of hundreds of programs and utilities--a veritable Swiss Army knife in CD form. This practical and flexible Linux distribution runs on the fly from a single CD with no need to install anything to your hard drive. Knoppix's excellent hardware detection, collection of programs, and ease of use help explain why Knoppix is radically changing the face of Linux. Though Knoppix is the most popular live CD Linux distribution available, until now there have been no books on the topic. A weighty theoretical tome or a book for dummies won't do--the perfect Knoppix book, like Knoppix itself, must be as useful and clever as a Swiss Army knife. Clearly, Knoppix calls for an O'Reilly Hacks book. Knoppix Hacks is a collection of one hundred industrial-strength hacks for new Linux users, power users, and system administers using--or considering using--the Knoppix Live CD. These tips and tools show how to use the enormous amount of software on this CD to troubleshoot, repair, upgrade, disinfect, and generally be productive without Windows. With Knoppix you can:
  • Test drive a Linux desktop without the need to install Linux
  • Troubleshoot and repair Linux and Windows systems
  • Create a thin client network with just one CD
  • Replace a web server or firewall in an emergency
  • Perform a security audit on your entire network
  • Virus scan a Windows computer from the safety of Linux
  • Customize Knoppix for personal or business use
  • Easily install the popular Debian GNU/Linux distribution with all of your hardware detected and configured
Knoppix Hacks provides ingenious fixes, clever customizations, and time and resource-saving tips. If you want more than the average Knoppix user, this invaluable book is a must-have.



Featured customer reviews

Write a Review


Review of Knoppix Hacks,  July 15 2005
Rating: StarStarStarStarStar
Submitted by Soumyadip Modak   [Respond | View]

Knoppix is a Live-CD distribution. You burn it to a CD, put the CD into the CD drive and reboot into a Linux environment. When you are done, take out the CD and reboot. It is a swiss army knife of utilities useful for many tasks. However very few books have been so far written exploring its full power. One of the best books on Knoppix is Knoppix Hacks. The author, Kyle Rankin, explores all the factes of this versatile distribution in his book. The book is an essential reference for anyone who has to fix computers, whether SysAdmin, or the family “Computer Guy”.

The book has 9 chapters, each covering a certain aspect of Knoppix. It’s grouped by subject, and each hack stands on its own, without depending on any other hack. However there are a lot of cross references. The book includes a CD of Knoppix 3.4, which is currently a little dated, the latest version of Knoppix (at the time of writing) being 3.6.

The first chapter introduces Knoppix as the premier Live CD Linux distribution. It teaches newbies to download the iso image, burn it to a disk, boot off the CD and then describes various kernel options that can be passed at boot time to get Knoppix to detect all the hardware.

In the next two chapters users are then quickly introduced to the KDE desktop. Office applications, multimedia, Internet and email applications are described. Users are taught to customise Knoppix and save their settings and documents onto permanent storage. Advanced topics like connected to the Internet via GPRS/Bluetooth, setting up Knoppix on a kiosk or as a terminal server and installing extra packages onto ramdisk are also covered.

Chapter 4 teaches how to install Knoppix onto the hard disk. Linux installation has been a major area of concern for newbies. The easy-to-use Knoppix installer is introduced and partitioning is explained with QtParted and lots of screenshots.

Chapter 5 starts the part that will be interesting to System Administrators. Chapters 5 through 7 have 43 different hacks. Chapter 5 covers, among other things, accessing X remotely with the bundled FreeNX server, browsing Windows shares, creating emergency servers, audit for network security, check for rootkits, test hardware compatibility and, like a true detective, collect forensics.

Chapter 6 helps readers repair things broken during experimenting with Linux. Topics covered include repairing both lilo and grub, backing up and restoring the MBR, finding and rescuing lost partitions, resizing linux partitions, repairing damaged file systems, recovering deleted files, rescuing files from damaged hard drives, backing up and restoring, migrating to a new hard drive, creating Linux software RAID, reseting Linux passwords, repairing Debian and RPM packages, and copying back a working kernel.

Chapter 7 focuses on repairing Windows. Rankin shows readers how to fix the Windows boot selector, backup files and settings, write to NTFS, resize Windows partitions, reset lost Windows NT passwords, edit the Windows registry, restore corrupted system files, scan for viruses and download Windows updates securely.

The 8th chapter covers Knoppix derivatives, and are usually described by the respective creators. Distros covered include Gnoppix, the GNOME equivalent of Knoppix. Morphix, a modular distro targeted towards the custom Live-CD segment, KnoppMyth, a distro targeted at the Personal Video Recorder segment, distccKnoppix, to run distributed compile farms and ClusterKnoppix, which combines machines on a network into a cluster.

Chapter 9 teaches aspiring Knoppix hackers howto modify Knoppix and Morphix to create custom Live-CDs.

Overall the book is extremely well written, and adds a lot of skills to the repertoire of the budding SysAdmin and the casual computer support guy. Highly recommended


A must have for security professionals,  June 07 2005
Rating: StarStarStarStarStar
Submitted by James Ko, CISSP-ISSAP GCIH   [Respond | View]

Before I read this book, I heard about many live CDs are built on Knoppix; therefore, I knew that Knoppix is a very powerful system. But as to exactly how powerful, I didn't know. I didn't know much until I had an opportunity to read about Kyle Rankin's book called "Knoppix Hacks" by O'Reilly.

This is a fascinating book full of beautiful tricks. These tricks can help many people save a lot of time, and frustrations, including ordinary users, system admins, to security practitioners. This is definitely a book full of treasures - something for everybody.
I am looking from a security practitioner's point of view: how Knoppix can help in network security, such as using Knoppix to help investigate a compromised machine, defending the host with the use of network vulnerability scanner, to collecting evidences for system forensics, to name a few. They are indeed very useful tips. Just these topics alone, I think the book has paid back on the investment.

In addition to the above mentioned topics, the book goes into detail on how to save a Linux system, how to rescue a Windows machine such as recovering lost passwords. This is indeed truly a wonderful Swiss Army Knife. With all the handy cheat codes, the author has done an excellent job with lots of examples and explanations. No wonder, Knoppix is a popular choices for many, including hackers and security professionals alike. Knoppix is truly a lifeline for many.
Kyle did an excellent job!




Perfect Compliment for the Perfect Distribution!,  May 16 2005
Rating: StarStarStarStarStar
Submitted by Charles Rowe   [Respond | View]

Knoppix Hacks is the perfect companion for Knoppix, the bootable Linux-on-CD distribution that no Linux enthusiast should be without. The hacks found within run the gamut from simple boot-time options, to performing security audits on your network, to fixing broken Windows systems, and even the normally tricky task of building your own customized Knoppix CD.

I found myself simply amazed at the number of things that you could do with all the software included on this one little CD, and I would heartily recommend this book to any others who are interested in exploiting the full potential of Knoppix.

Read all reviews


Knoppix Hacks,  November 11 2004
Rating: StarStarStarStarStar
Submitted by norburym   [Respond | View]

The publishers' blurb on the back cover describes Knoppix as "a veritable Swiss Army knife in CD form". Knoppix Hacks by Kyle Rankin is no less astounding in revealing the hidden versatility and power inherent in this unassuming tool.
Most Linux players will recognize Knoppix even if they've never given it a whirl but this book goes beyond the simple "how to create and boot from a Knoppix Linux Live CD". Rankin displays the raw power that lies beneath the surface of simply running a clean distro of GNU/Linux free from fear of installation issues.
Proper Knoppix volumes are lacking in the wild, with mere chapters in general Linux books dedicated to larger issues for both the novice and the intermediate user. One or two Knoppix books are out there and one by Samuel Hart is in press (Knoppix Komplete) but what sets Knoppix Hacks apart is not the sheer dearth of books available on the subject but Rankin's skill in exposing the underutilized potential in the Knoppix tool set.

This book begins with a forward by Klaus Knopper, creator of Knoppix. It's always entertaining and enlightening to read a first hand account of some clever soul's chance involvement with an "experiment" that turned out so wildly successful and this is no exception. The "Knoppix Story" is engaging and leaves the reader with a sense of awe at the ingenuity of this dedicated and resourceful individual.
Rankin has collected a "who's who" of Linux hackers to contribute to this book: John Andrews, creator of Damn Small Linux; Fabian Franz, creator of FreeNX server; Alex de Landgraaf, creator of Morphix; Simon Peter, developer of klik; Wim Vandersmissen, creator of ClusterKnoppix and many others no less accomplished, all of whom have contributed to the future of free software/open source development.
As is expected with the O'Reilly Hacks series of books, the chapters are structured with clean typographical conventions identifying URLs, directory/folder/file names, code examples and excerpts, sample text delineation and cross-references. Tips and warnings are clearly identified with pushpin and screw graphics, respectively, and indented. There are a helpful number of tips without getting too overwhelming or annoying by breaking the flow of the text. The thermometer icons next to each hack indicate the level of expertise required: beginner, moderate and expert. Screen shots are placed where needed but again, the reader isn't left distracted by unnecessary filler.
The nine chapters cover hacks ranging from beginner to expert: Boot Knoppix, Use your Knoppix Desktop, Tweak Your Desktop, Install Linux with Knoppix, Put Knoppix in Your Toolbox, Repair Linux, Rescue Windows, Knoppix Reloaded and Knoppix Remastered. The book includes a CD with v.3.4 of Knoppix (3.6 having just been released but the author wisely chooses to stay with the tried, true and debugged version).
The first two chapters are pitched to beginners, with Chapter 1, Boot Knoppix, leaping directly into downloading Knoppix and creating a bootable CD. It then covers "cheat codes" - options passed at the boot: prompt to work around hardware detection and support failures. Tweaking X settings, desktop and laptop scenarios, language settings and optimizing the Knoppix CD are also included here. Chapter 2 introduces details of the KDE desktop and encourages the reader to become familiar with the Knoppix desktop, the applications included and connecting to the Internet (even via GPRS over Bluetooth!).
Chapter 3 concentrates on saving settings and documents, using Knoppix as a kiosk or terminal server to boot multiple computers over a network from the same Knoppix CD, and how to use the live installer feature to add extra packages directly to ramdisk.
Chapter 4 covers the inevitable situation when you will find yourself using Knoppix so often that you decide to install it onto your hard drive. Rankin includes single and dual boot system installs.
Chapter 5, Put Knoppix in Your Toolbox is where admins should head. The full list of 15 indispensable hacks in this chapter include running remote desktops via rdesktop or xvncviewer, running X remotely with FreeNX, browse Windows shares, create an emergency router, emergency file or web server, wardriving with Knoppix (including how to capture GPS coordinates along with data!), audit network security, check for root kits, collect forensics data, clone hard drives, wipe hard drives, test hardware compatibility, and copy settings to other distributions.
Repair Linux in Chapter 6 is for those of us who spend a lot of time "breaking" things in the course of experimenting and need to recover the system. Rankin shows hacks for repairing both lilo and grub, how to: back up and restore the MBR, find lost partitions, resize linux partitions, repair damaged file systems, recover deleted files, rescue files from damaged hard drives, backup and restore, migrate to a new hard drive, create Linux software RAID, reset Linux passwords, repair Debian and RPM packages, and copy a working kernel. We will always break something along the way and these hacks help minimize the frustration.
Chapter 7, Rescue Windows...well, need I say more?? Put these hacks into practice and you'll probably be using them every day. Use Knoppix to: fix the Windows boot selector, backup files and settings, write to NTFS, resize Windows partitions, reset lost NT passwords, edit the Windows registry, restore corrupted system files, scan for viruses and download Windows patches securely. A must for any systems administrators with ubiquitous Windows machines lurking everywhere.
Knoppix Reloaded, in Chapter 8, takes on Knoppix variants Morphix, Gnoppix, Mediainlinux, Freeduc, Damn, Small Linux, INSERT, L.A.S. Linux, Knoppix-STD, distccKnoppix, ClusterKnoppix, Quantian, GIS Knoppix and KnoppMyth. There is also a well-deserved pitch at the conclusion of this chapter to become a Knoppix developer and contribute to the ongoing work.
The final chapter includes 7 hacks that help the reader create their own customized Knoppix CD. Knoppix Remastered walks the reader through the steps of customizing and personalizing a live CD.

This is one of the most fun books I've read in a long time. A few of the easier hacks can be found on Knoppix.net or elsewhere but I think Rankin has managed to put the majority of Knoppix related material in one book that could be subtitled the "First Knoppix Manual". The admin hacks, in particular, will add a whole new arsenal of Knoppix wonders to an admin's repertoire. Kudos to O'Reilly for publishing such an outstanding volume, to Rankin for compiling some damn useful material and to MacGyver for inspiring many of us to look for simple solutions to seemingly insurmountable problems.


Knoppix Hacks,  November 11 2004
Rating: StarStarStarStarStar
Submitted by Anonymous Reader   [Respond | View]

The publishers' blurb on the back cover describes Knoppix as "a veritable Swiss Army knife in CD form". Knoppix Hacks by Kyle Rankin is no less astounding in revealing the hidden versatility and power inherent in this unassuming tool.
Most Linux players will recognize Knoppix even if they've never given it a whirl but this book goes beyond the simple "how to create and boot from a Knoppix Linux Live CD". Rankin displays the raw power that lies beneath the surface of simply running a clean distro of GNU/Linux free from fear of installation issues.
Proper Knoppix volumes are lacking in the wild, with mere chapters in general Linux books dedicated to larger issues for both the novice and the intermediate user. One or two Knoppix books are out there and one by Samuel Hart is in press (Knoppix Komplete) but what sets Knoppix Hacks apart is not the sheer dearth of books available on the subject but Rankin's skill in exposing the underutilized potential in the Knoppix tool set.

This book begins with a forward by Klaus Knopper, creator of Knoppix. It's always entertaining and enlightening to read a first hand account of some clever soul's chance involvement with an "experiment" that turned out so wildly successful and this is no exception. The "Knoppix Story" is engaging and leaves the reader with a sense of awe at the ingenuity of this dedicated and resourceful individual.
Rankin has collected a "who's who" of Linux hackers to contribute to this book: John Andrews, creator of Damn Small Linux; Fabian Franz, creator of FreeNX server; Alex de Landgraaf, creator of Morphix; Simon Peter, developer of klik; Wim Vandersmissen, creator of ClusterKnoppix and many others no less accomplished, all of whom have contributed to the future of free software/open source development.
As is expected with the O'Reilly Hacks series of books, the chapters are structured with clean typographical conventions identifying URLs, directory/folder/file names, code examples and excerpts, sample text delineation and cross-references. Tips and warnings are clearly identified with pushpin and screw graphics, respectively, and indented. There are a helpful number of tips without getting too overwhelming or annoying by breaking the flow of the text. The thermometer icons next to each hack indicate the level of expertise required: beginner, moderate and expert. Screen shots are placed where needed but again, the reader isn't left distracted by unnecessary filler.
The nine chapters cover hacks ranging from beginner to expert: Boot Knoppix, Use your Knoppix Desktop, Tweak Your Desktop, Install Linux with Knoppix, Put Knoppix in Your Toolbox, Repair Linux, Rescue Windows, Knoppix Reloaded and Knoppix Remastered. The book includes a CD with v.3.4 of Knoppix (3.6 having just been released but the author wisely chooses to stay with the tried, true and debugged version).
The first two chapters are pitched to beginners, with Chapter 1, Boot Knoppix, leaping directly into downloading Knoppix and creating a bootable CD. It then covers "cheat codes" - options passed at the boot: prompt to work around hardware detection and support failures. Tweaking X settings, desktop and laptop scenarios, language settings and optimizing the Knoppix CD are also included here. Chapter 2 introduces details of the KDE desktop and encourages the reader to become familiar with the Knoppix desktop, the applications included and connecting to the Internet (even via GPRS over Bluetooth!).
Chapter 3 concentrates on saving settings and documents, using Knoppix as a kiosk or terminal server to boot multiple computers over a network from the same Knoppix CD, and how to use the live installer feature to add extra packages directly to ramdisk.
Chapter 4 covers the inevitable situation when you will find yourself using Knoppix so often that you decide to install it onto your hard drive. Rankin includes single and dual boot system installs.
Chapter 5, Put Knoppix in Your Toolbox is where admins should head. The full list of 15 indispensable hacks in this chapter include running remote desktops via rdesktop or xvncviewer, running X remotely with FreeNX, browse Windows shares, create an emergency router, emergency file or web server, wardriving with Knoppix (including how to capture GPS coordinates along with data!), audit network security, check for root kits, collect forensics data, clone hard drives, wipe hard drives, test hardware compatibility, and copy settings to other distributions.
Repair Linux in Chapter 6 is for those of us who spend a lot of time "breaking" things in the course of experimenting and need to recover the system. Rankin shows hacks for repairing both lilo and grub, how to: back up and restore the MBR, find lost partitions, resize linux partitions, repair damaged file systems, recover deleted files, rescue files from damaged hard drives, backup and restore, migrate to a new hard drive, create Linux software RAID, reset Linux passwords, repair Debian and RPM packages, and copy a working kernel. We will always break something along the way and these hacks help minimize the frustration.
Chapter 7, Rescue Windows...well, need I say more?? Put these hacks into practice and you'll probably be using them every day. Use Knoppix to: fix the Windows boot selector, backup files and settings, write to NTFS, resize Windows partitions, reset lost NT passwords, edit the Windows registry, restore corrupted system files, scan for viruses and download Windows patches securely. A must for any systems administrators with ubiquitous Windows machines lurking everywhere.
Knoppix Reloaded, in Chapter 8, takes on Knoppix variants Morphix, Gnoppix, Mediainlinux, Freeduc, Damn, Small Linux, INSERT, L.A.S. Linux, Knoppix-STD, distccKnoppix, ClusterKnoppix, Quantian, GIS Knoppix and KnoppMyth. There is also a well-deserved pitch at the conclusion of this chapter to become a Knoppix developer and contribute to the ongoing work.
The final chapter includes 7 hacks that help the reader create their own customized Knoppix CD. Knoppix Remastered walks the reader through the steps of customizing and personalizing a live CD.

This is one of the most fun books I've read in a long time. A few of the easier hacks can be found on Knoppix.net or elsewhere but I think Rankin has managed to put the majority of Knoppix related material in one book that could be subtitled the "First Knoppix Manual". The admin hacks, in particular, will add a whole new arsenal of Knoppix wonders to an admin's repertoire. Kudos to O'Reilly for publishing such an outstanding volume, to Rankin for compiling some damn useful material and to MacGyver for inspiring many of us to look for simple solutions to seemingly insurmountable problems.


The best Knoppix book.,  September 21 2004
Rating: StarStarStarStarStar
Submitted by Jeff Williams   [Respond | View]

Knoppix is one of the most useful Linux distributions ever - pop in a CD, it detects everything, and you're ready to go on most any computer you can find. In fact, it's so useful, it's hard to keep track of everything Knoppix can do for you. That's where this book comes in; Kyle Rankin provides well written and very useful tips on the myriad of Knoppix uses. For example, the book provides many clever but practical tips on topics such as troubleshooting, system restoration, and computing-on-the-go. The writing style isn't insulting to the reader's intelligence, and encourages users to understand what they're doing and imagine extensions of the hacks.

If you use Knoppix at all, are interested in how it can be used, or have an interest in Linux, then you must buy this book. A great read and a great reference; thanks Kyle!


The best Knoppix book.,  September 21 2004
Submitted by Jeff Williams   [Respond | View]

Knoppix is one of the most useful Linux distributions ever - pop in a CD, it detects everything, and you're ready to go on most any computer you can find. In fact, it's so useful, it's hard to keep track of everything Knoppix can do for you. That's where this book comes in; Kyle Rankin provides well written and very useful tips on the myriad of Knoppix uses. For example, the book provides many clever but practical tips on topics such as troubleshooting, system restoration, and computing-on-the-go. The writing style isn't insulting to the reader's intelligence, and encourages users to understand what they're doing and imagine extensions of the hacks.

If you use Knoppix at all, are interested in how it can be used, or have an interest in Linux, then you must buy this book. A great read and a great reference; thanks Kyle!


Media reviews
"An excellent resource and useful guide for the person who wants to go beyond the basics, Knoppix Hacks is highly recommended."
-- Harold McFarland, Harold's Bookshelf


"Knoppix Hacks goes beyond the “kick the tires” approach a new user would take when trying out Knoppix for the first time. The author gives enough information to allow an interested user to be able to install Knoppix directly to their hard drive. In addition, the details provided in the book in regards to the enclosed tools would be quite interesting to a systems administrator...Knoppix Hacks is a great book for new users interested in learning more about Linux. In addition, the book does give some great details for the more advanced user who wants to “morph” their own version of Knoppix. For the most part, Knoppix Hacks also does a decent job at explaining how to use some of the enclosed tools on the CD. A Windows administrator may find some of the tools interesting, however, my experience has been that some of the Windows tools are not quite what the book makes them out to be. Overall, the book is a decent reference to have for someone wanting to learn more about Linux. Systems administrators may want to look at the book and the enclosed CD as another available tool they may want to set aside in their toolbox, just in case."
-- Brian Boudreau, MainE Linux Users Group

"The book shows 100 ways of using Knoppix to get things done, and does so in a way that's easy to follow. Knoppix Hacks has something for Linux and Windows alike, and even comes with a live CD to get you started. I've found the book to be one of the most informative I've read in recent memory. It has proven to be an invaluable part of my bookshelf."
--Adam Israel, ArsTechnica.com, May 2005

"One of the best books on Knoppix is Knoppix Hacks. The author, Kyle Rankin, explores all the facets of this versatile distribution in his book. The book is an essential reference for anyone who has to fix computers, whether SysAdmin, or the family 'Computer Guy'... Highly recommended."
--Soumyadip Modak, India Linux Users Group (ILUG-CAL), May 2005

"Knoppix Hacks provides the information you need to make the most out of Knoppix. Without it, you would be hard pressed to discover all you can do with Knoppix. The book comes with an older version of a Knoppix CD (3.4), but even so, think of it as the perfect gift for a talented sysadmin, whether she works with UNIX or Windows."
--Rik Farrow, ;login:, April 2005

Read all reviews

See larger cover