Robert Shingledecker’s IT career spans 35 years, beginning with hand-coding machine language programs targeted for Burroughs Corporation minicomputers. Later, he enjoyed using an assembler and then COBOL. Always having a passion for computers, he was an advocate for COMAL, and was an early hacker on MINIX and Coherent OS. In regards to Linux projects, Robert led the first large-scale deployment of Linux in the city of Garden Grove, California, where in 1994 he deployed Samba on DG/UX systems. He also designed a massively scalable Linux/AOLserver/Sybase e-commerce system. Robert then became CTO of several Linux-based dot-com companies. While building Linux-based, no install, live CD-ROM appliances, including firewalls, VPN, web, email, and database appliances, he became interested in Damn Small Linux. Soon, Robert joined John Andrews to help lead Damn Small Linux development. Now retired, Robert spends his time writing code and working on Damn Small Linux. He also enjoys traveling.
John Andrews is the creator of Damn Small Linux (DSL). As owner of a bead and jewelry store in 1996, John learned HTML and Perl to develop his own website. It eventually broadened to running websites for others on Linux servers. His interest in Linux encouraged him to switch to a Linux desktop full time. The appeal of fast and efficient applications led John to develop Damn Small Linux. After trying several mini-distributions, primarily for diagnostic and system recovery, John wanted to build a sub-50MB distribution that essentially had what he needed to accomplish a day’s work; the result was the Damn Small Linux distribution. John’s proficiencies include Perl, shell scripting, Lua, awk, *SQL, php, and some C programming languages.
Christopher Negus has been one of the world’s leading writers of Linux books for nearly a decade. His Red Hat Linux Bible series has sold more than one-quarter million copies worldwide. Chris also authored or coauthored the books Linux Bible (2005 through 2007 editions), Linux Toys, Linux Toys II, and Linux Troubleshooting Bible for Wiley Publishing. For Prentice Hall, Chris is the editor of the Negus Live Linux Series and author of that series’ flagship book, Live Linux CDs. Before becoming a full-time author, Chris Negus worked on UNIX operating system development teams at AT&T Bell Labs, UNIX System Labs, and Novell in the 1980s and 1990s. In particular, Chris worked in the areas of UNIX system administration and networking. When not working on computer books, Chris likes to spend time with his family: Sheree, Seth, and Caleb. Chris also enjoys playing soccer, singing opera (when nobody can hear him), and making things out of old computers.
IntroductionIntroduction
Damn Small Linux (DSL) started as an exercise by John Andrews to fit an entire desktop computer system into a compressed 50MB image. Within a few years, DSL grew to one of the most popular Linux systems in the world (in the Top Ten, by some accounts) without growing beyond that 50MB target.
In a world where desktop systems are bloated with eye candy and many rarely used features, you may wonder what makes this little operating-system-that-could so popular? Well, it could be that people don't want to throw away a usable computer because the latest Windows system won't run. It could be that people are tired of waiting for common computer operations to complete while who-knows-what goes on in the background. Or maybe it's just a love for simplicity and elegance.
DSL sets out to include all the basic features you need in a modern desktop computer systemand then makes those features functional, fast, and efficient. As a result, DSL can run well on hardware that is smaller, older, or less powerful than what most of today's desktop systems demand.
Some wonderful offshoots of DSL development are that you can do the following with DSL:
Take it anywhere. It fits on a live CD, USB flash drive (also called a pen drive or a thumb drive), Zip drive, or a bootable business card CD that you can carry around with you.
Run it anywhere. All you need is a standard PC (with a minimal processor, small amount of RAM, and no required disk space) that you can reboot. Or, you can run a special version of DSL that's set up to run from a Windows desktop. If you like, you can even do a traditional hard drive install of DSL.
Add software. If you only need a couple more applications, a few clicks download, install, and save the applications you need.
Build projects. To make a computer into a music server, tiny web server, or digital media frame, DSL doesn't fill up your hard disk or RAM with software you don't need so you have more room for the music, web content, or digital images you want (see Part IV, "Making Damn Small Linux Projects," for these and other projects).
Run securely. By running DSL from a CD (or other read-only medium), you are assured that a secure operating system is only a reboot away. If you think that someone has compromised or intruded on your system, simply check that any data you save is not infected, reboot your DSL live CD, and you are running securely from a clean copy.
As the project grew, DSL also grew by adding an important developer. When Robert Shingledecker joined the Damn Small Linux development team, he implemented some of the key features of DSL previously mentioned. Robert's innovations brought about easy procedures for installing DSL to a USB flash drive and adding MyDSL extensions to a running DSL system.
Today, Damn Small Linux (http://www.damnsmalllinux.org) has a thriving community of supporters, active forums and mailing lists, and tons of interesting ways to use and customize it. This book provides you with an entry to all the possibilities of what Damn Small Linux can be for you.
As You Read This Book
To make the best use of the individual talents of the three authors of this book, we divided it up by chapters that play best to each of our strengths. As you read, you will notice that we often use the first person. Because the person describing a feature was often the person who developed the feature, first person seemed a good way to go.
If you find yourself wondering who "I" is in each chapter where it appears, we are providing that information here.
Robert Shingledecker wrote the following chapters:
"Booting DSL" (Chapter 2)
"Configuring and Saving DSL Settings" (Chapter 4)
"Extending Applications with MyDSL" (Chapter 5)
"Installing DSL in Alternate Ways" (Chapter 8)
"Adding Applications and Creating Shareable Extensions" (Chapter 10)
"Setting Up a Full Remastering Environment" (Chapter 11)
John Andrews wrote these chapters:
"Using DSL Applications" (Chapter 3)
"Running a Native Pen Drive Install" (Chapter 6)
"Running DSL Embedded in Windows" (Chapter 7)
"Performing a Traditional Hard Drive Install" (Chapter 9)
"Running DSL on Alternate Hardware" (Chapter 12)
"Making an Edna Music Server in DSL" (Chapter 13)
Christopher Negus contributed most of the introductory material and appendices, as well as the following chapters:
"Overview of Damn Small Linux" (Chapter 1) and this introduction
"Using Skype VoIP Service in DSL" (Chapter 14)
"Running a Digital Media Frame in DSL" (Chapter 15)
"Setting Up an XAMPP Web Server in DSL" (Chapter 16)
The bottom line is that most of the chapters Robert and John wrote tell you about features they developed for DSL. Chapters that Chris wrote help to introduce the features Robert and John describe and add a few fun and interesting projects to the mix.
Audience for This Book
If you want to use, customize, or contribute to one of the world's most popular compact Linux operating systems, Damn Small Linux, this book is for you.
You don't have to be a computer expert to use Damn Small Linux. Even as a beginner, this book can help you use DSL as a portable computer system that you carry with you or as a permanently installed Linux system.
If you are a computer expert, you can use this book to learn more advanced skills, such as remastering DSL to make your own, custom DSL live CD. You can also learn how to package your own MyDSL software extensions to contribute to the growing repository of software available to use with Damn Small Linux.
If you are just someone who likes to tinker with computers, this book can teach you how to build interesting projects using Damn Small Linux as their base. Because the basic DSL is so extraordinarily compact in size and efficient in its use, you can make use of a much wider range of PC hardware (such as older, low-powered computers) than you would need to build projects with other computer systems.
Organization of This Book
This book is designed to get you up and running quickly with Damn Small Linux. After you have had your hands on DSL and understand how it works, we move quickly to present you with the many ways you can use this versatile mini-operating system. You will learn a variety of permanent and portable ways of using DSL.
The book is divided into four major parts and two appendices:
Part I, "Using Damn Small Linux"In this part, you learn what DSL is and how to use it to do what you want. Chapter 1 provides an overview of the many uses and features of DSL. That chapter features a question-and-answer section where John Andrews and Robert Shingledecker describe DSL's design decisions and goals of the project. Chapter 2 provides tips for booting up DSL, including ways to start services and deal with hardware issues from the boot prompt.
Chapter 3 provides descriptions of the applications (both graphical and command line) that come with DSL. Chapter 4 tells how to make DSL look and feel the way you like, and how to save all your personal settings and data for the next reboot. Chapter 5 shows how to get additional software, packaged as MyDSL extensions, to add the applications you want to your DSL configuration.
Part II, "DSL Beyond the Live CD"To help you do more than simply run DSL from a live CD, chapters in this section address how to run DSL in different ways and on different media. Chapter 6 addresses how to install DSL on a USB flash drive (pen drive) to have a totally portable and writeable live DSL.<...