25-08-2017, 09:32 PM
Linux Cookbook
cook book 1.doc (Size: 86.5 KB / Downloads: 22)
Preface
Because of its robust and stable nature, the Linux-based system is the choice of millions today. But what some may not know is that the free software movement, of which Linux is a part, is very much a counter-cultural phenomenon: the design by which it is produced and published is contrary to the notions of proprietary, intellectual "property" that have dominated mainstream culture so long. While some programmers turn their research into corporate-backed software that you cannot openly change, share, or examine (but only purchase and run on your system), Linux and other free software is the product of many individuals who courageously published and shared their research and work openly, for everyone to benefit from.
I wrote this book because I want everyone to know how to use this software, because I think everyone deserves the freedom that comes with it. I don't willingly use proprietary software -- not because it is always inferior to free software, but because its use precludes freedoms that I find I cannot exist without ... freedoms that should be everyone's right by default in a free, open society. (See Introduction.)
I know that Linux isn't difficult to use, especially when compared with other software and operating systems, but what was needed was a guide to show people how to use it to get things done: "Oh, you want to do that? Here, type this."
That explains the premise of the book -- it's a hands-on guide to getting things done on a Linux system, designed for the everyday user who is not necessarily a computer programmer.
The traditional approach to the subject is to either provide laundry lists of all available commands and applications, or focus on their use in a programming or otherwise technical environment. This book takes a different approach, showing how everyday users -- be they artists, designers, businessmen, scholars, or scientists -- can use these tools and applications to get things done. When I speak of "things," I mean (hopefully) the kind of things that you -- the sort of person possibly and partially described above -- might want to do with a modern computer system: view text and images, play and record sounds, perform mathematic operations, print to your printer, format text, access the Internet, check your grammar, and so forth.
Like a culinary cookbook, this book presents "recipes" for preparing or accomplishing a particular, specific thing. I've selected what I consider to be the easiest and most effective methods for accomplishing particular tasks, and have arranged these recipes in general sections according to subject matter -- the first part of the book is all about getting started, and contains the most essential information you need to know about using Linux; the remaining chapters deal with general categories of usage: Files, Text, Images, Sound, Productivity, and Networking.
• Recipes: Organization of recipes.
• Exclusions: Assumptions, scope and exclusions.
• Conventions: Typographical conventions.
• Latest: Versions, latest edition and errata.
• Acknowledgments: The people who helped with this book.
Format of Recipes
Each recipe is numbered with at least two figures. These figures are constructed as follows: the first number always corresponds to the chapter number, and the second to the section of the recipe. For example, Chapter 3 is The Shell, and Recipe No. 3.5 is the fifth recipe on shells, Recording a Shell Session.
Sometimes recipes are divided into subsections, with a third number specifying the specific recipe -- for example, Recipe No. 3.4 is on the subject of command history in the shell, and is divided further into subsections; Recipe No. 3.4.2 is the second recipe on command history, Specifying a Command from Your History.
Each recipe describes a method for completing a specific task on the system; these tasks require at least one software program. The software programs or files a recipe calls for are its ingredients.
The recipes are structured as follows:
1. Recipe number and title of the recipe.
2. Special ingredients, if any. The Debian package(s) and/or or URLs where the program(s) can be obtained are listed, if they are available. Debian classifies packages in varying level of importance, from `required' packages that all systems must have in order to run, to `optional' and `extra' packages that you only install if you want them. If a described software package is in the first two given categories---`required' and `important'---then I assume you have it installed, and the package name isn't listed here. In the rare case that a software package I describe is not yet available as a Debian package, I just give the URL where to obtain the source packages for that software; have your system administrator install it.
3. Special preparation methods or description, if any. When a configurable program is described, the standard setup as provided by the Debian distribution is assumed, unless otherwise specified here.
4. Description of the recipe and "cooking" method proper.
5. Remarks concerning the results and use.
6. Bulleted example of the method in a specific context.
7. Extra commands or actions you might want to do next.
8. Variations on the recipe, with additional examples.
9. Special notes or references to further information.
Not all of these items may be present in a given recipe.
Assumptions, Scope, and Exclusions
There a few assumptions that this book makes about you, the reader, and about your Linux system.
The Cookbook assumes that you have at least minimal understanding of your computer hardware -- you don't have to know how to take it apart or anything like that, but you ought to know how to operate the mouse, where the power button is on your computer and monitor, how to load paper in your printer, and so forth. If you need help with any of these tasks or concepts, ask your dealer or the party who set up your computer.
This book also assumes that you have Linux installed and properly set up, and that you have your own user account set up on your system. If you need help with this, please see If You Need More Help.
While this book can and should be used by the newcomer to Linux, I like to think that I've presented broad enough coverage of the Linux-based system, and have included enough interesting or obscure material, so that wizards, hackers, and members of the Linux Cabal may find some of it useful -- and that said users will not feel ashamed to have a copy of this book on their desk or as part of their library.
Finally, a note about what isn't covered in the Cookbook.
This book describes only free software (sometimes called "open source" software) that runs on Linux systems.(1) Proprietary software is omitted, as are most software packages that are currently in a "beta" or some other unstable release not yet intended for general use.
Some programs take a number of options that modify the way they work. Sometimes, various options that a tool takes are listed in a table. These lists are not exhaustive; rather, they contain the most popular or useful options, or those options that are relevant to the discussion at hand. Consult the online manual page of a particular tool for the complete listing (see Reading a Page from the System Manual).
This is a user manual; no computer programming activities, such as program compilation, are discussed. Topics related to system administration are also omitted -- so you won't find anything in this text on matters such as managing accounts, system maintenance, setting up hardware, and configuring networks.
As with any rule, you can find an exception to this -- if you look hard enough for it. If you are running Linux on your home computer as a single-user system, you are also the administrator of this system, and are the responsible party for ensuring that any administrative tasks be completed; Administrative Issues exists as a reference for those users who will be administrating their own systems.