Linux Information Can Be Found Scattered in Man Pages, Texinfo Files
Total Page:16
File Type:pdf, Size:1020Kb
< Day Day Up > Linux Cookbook By Carla Schroder Publisher: O'Reilly Pub Date: November 2004 ISBN: 0-596-00640-3 Pages: 580 Table of • Contents • Index • Reviews Reader Linux information can be found scattered in man pages, texinfo files, and • Reviews source code comments, but the best source is the experts who have built • Errata up a working knowledge of managing Linux systems. The Linux • Academic Cookbook's tested techniques distill years of hard-won experience into Cooking with practical cut-and-paste solutions to everyday Linux dilemmas. Use just • Linux, Part 2 one recipe from this collection of real-world solutions, and the hours of Cooking with tedious trial-and-error saved will more than pay for the cost of the book. • Linux, Part 1 It's more than a time-saver; it's a sanity saver. < Day Day Up > < Day Day Up > Linux Cookbook By Carla Schroder Publisher: O'Reilly Pub Date: November 2004 ISBN: 0-596-00640-3 Pages: 580 Table of • Contents • Index • Reviews Reader • Reviews • Errata • Academic Cooking with • Linux, Part 2 Cooking with • Linux, Part 1 Copyright Dedication Preface Recipe Audience Recipe What Is Included/Omitted Recipe Platforms Recipe Conventions Recipe Downloads and Feedback Recipe Comments and Questions Recipe Acknowledgments Chapter 1. Finding Documentation Section 1.1. Introduction Recipe 1.2. Understanding man Pages Recipe 1.3. Finding Appropriate man Pages Recipe 1.4. Finding Lost man Pages Recipe 1.5. Reading man Pages Without a man Viewer Recipe 1.6. Configuring Your manpath Recipe 1.7. Using info Pages Recipe 1.8. Printing man Pages Recipe 1.9. Printing info Pages Recipe 1.10. Printing Selected man or info Pages Recipe 1.11. Finding All of the Documentation for a Program Chapter 2. Installing and Managing Software on RPM-Based Systems Section 2.1. Introduction Recipe 2.2. Installing RPMs Recipe 2.3. Upgrading RPMs Recipe 2.4. Removing RPMs Recipe 2.5. Collecting Information on Installed RPMs Recipe 2.6. Collecting Information from RPMs That Are Not Installed Recipe 2.7. Finding Recently Installed RPMs Recipe 2.8. Rebuilding the RPM Database Recipe 2.9. Tracking Source-Built Libraries on an RPM-Based System Recipe 2.10. Fixing RPM Installation Problems Recipe 2.11. Installing Source RPMs Recipe 2.12. Customizing Build Options in a Source RPM Recipe 2.13. Installing Yum Recipe 2.14. Configuring Yum Recipe 2.15. Installing and Upgrading Packages with Yum Recipe 2.16. Removing Packages with Yum Recipe 2.17. Getting Information on Installed Packages with Yum Recipe 2.18. Maintaining Yum Chapter 3. Installing and Managing Software on Debian-Based Systems Section 3.1. Introduction Recipe 3.2. Getting Software for a Debian System Recipe 3.3. Installing Debian Packages from CD-ROM Recipe 3.4. Installing Packages on Debian-Based Systems Recipe 3.5. Removing Packages from a Debian System Recipe 3.6. Installing from Sources on a Debian System Recipe 3.7. Upgrading Packages on Debian Recipe 3.8. Upgrading a Debian System Recipe 3.9. Upgrading to a Newer Debian Release Recipe 3.10. Running a Mixed Debian System Recipe 3.11. Finding Out What Is Installed on a Debian System Recipe 3.12. Maintaining the Debian Package Cache Recipe 3.13. Resolving Debian Dependency Conflicts Recipe 3.14. Building a Local Debian Repository Recipe 3.15. Selecting Package Mirrors for apt-proxy.conf Recipe 3.16. Adding Your Existing Package Cache to apt-proxy.conf Chapter 4. Installing Programs from Source Code Section 4.1. Introduction Recipe 4.2. Preparing Your System for Compiling Programs from Sources Recipe 4.3. Generating a List of Files from a Source Install for Easy Uninstalls Recipe 4.4. Installing Programs from Source Code Recipe 4.5. Using CheckInstall to Create Packages from Sources Chapter 5. Discovering Hardware from Outside the Box Section 5.1. Introduction Recipe 5.2. Detecting Hardware with lspci Recipe 5.3. Using dmesg to Collect Hardware Information Recipe 5.4. Getting Live Hardware Snapshots with /proc Recipe 5.5. Viewing Drive Partitions with fdisk Recipe 5.6. Calculating Hard Drive Capacity Chapter 6. Editing Text Files with JOE and Vim Section 6.1. Introduction Recipe 6.2. Finding JOE Commands Recipe 6.3. Customizing JOE Recipe 6.4. Organizing JOE's Preferences in a Separate File Recipe 6.5. Copying Between Two Files in JOE Recipe 6.6. Searching and Replacing in JOE Recipe 6.7. Selecting Text Vertically in JOE Recipe 6.8. Finding and Opening Files in JOE Recipe 6.9. Learning Vim Quickly Recipe 6.10. Creating Autotext with Vim's Abbreviations Recipe 6.11. Mapping Commands to Keystrokes Recipe 6.12. Customizing Vim Recipe 6.13. Navigating Quickly in Vim with Marks Recipe 6.14. Picking Up Where You Left Off: Using Vim's Sessions Recipe 6.15. Setting Your Default Editor Recipe 6.16. Discovering Vim's Compile-Time Options Chapter 7. Starting and Stopping Linux Section 7.1. Introduction Recipe 7.2. Changing Runlevels After Bootup Recipe 7.3. Changing the Default Runlevel Recipe 7.4. Starting and Stopping X Recipe 7.5. Managing Debian's Runlevels Recipe 7.6. Creating Both Text and Graphical Login Runlevels on Debian Recipe 7.7. Managing Red Hat's Runlevels Recipe 7.8. Manually Configuring Startup Services Recipe 7.9. Manually Starting and Stopping Services Recipe 7.10. Shutting Down or Rebooting Linux Recipe 7.11. Disabling or Limiting Access to Ctrl-Alt-Delete Recipe 7.12. Shutting Down Automatically Chapter 8. Managing Users and Groups Section 8.1. Introduction Recipe 8.2. Sorting Human Users from System Users Recipe 8.3. Finding a User's UID and GID Recipe 8.4. Adding Users with useradd Recipe 8.5. Adding Users with adduser Recipe 8.6. Modifying User Accounts Recipe 8.7. Deleting a User Recipe 8.8. Killing User Processes the Easy, Fun Way Recipe 8.9. Disabling Accounts Recipe 8.10. Managing Passwords Recipe 8.11. Adding Groups with groupadd Recipe 8.12. Deleting Groups with groupdel Recipe 8.13. Creating a System User Recipe 8.14. Creating System Groups with addgroup Recipe 8.15. Adding and Deleting Group Members Recipe 8.16. Checking Password File Integrity Recipe 8.17. Adding New Users in Batches Recipe 8.18. Changing Masses of Passwords Recipe 8.19. Adding Batches of Users to Groups Recipe 8.20. Using su to Be Root Temporarily Recipe 8.21. Granting Limited Rootly Powers with sudo Recipe 8.22. Using Disk Quotas Chapter 9. Managing Files and Partitions Section 9.1. Introduction Recipe 9.2. Setting File and Directory Permissions with chmod's Numeric Notation Recipe 9.3. Doing Batch Operations with chmod Recipe 9.4. Setting File and Directory Permissions with chmod's Symbolic Notation Recipe 9.5. Setting File Ownership with chown Recipe 9.6. Doing Batch Operations with chown Recipe 9.7. Setting Up a Shared Directory with setgid and the Sticky Bit Recipe 9.8. Setting Permissions Defaults with umask Recipe 9.9. Mounting and Unmounting Removable Disks Recipe 9.10. Configuring Filesystem Mounts with /etc/fstab Recipe 9.11. Mounting and Unmounting Filesystems on Hard Drives Recipe 9.12. Finding Device Names for mount and fstab Recipe 9.13. Creating Files and Directories Recipe 9.14. Deleting Files and Directories Recipe 9.15. Copying, Moving, and Renaming Files and Directories Recipe 9.16. Creating Linux Disk Partitions with fdisk Recipe 9.17. Creating a Filesystem on a New Partition Chapter 10. Patching, Customizing, and Upgrading Kernels Section 10.1. Introduction Recipe 10.2. Adding New Features to the 2.4 Kernel Recipe 10.3. Slimming a Stock 2.4 Kernel Recipe 10.4. Upgrading to the Latest Stable Version of the 2.4 Kernel Recipe 10.5. Building the 2.6 Kernel Recipe 10.6. Adding New Features to the 2.6 Kernel Recipe 10.7. Adding a New Loadable Kernel Module Recipe 10.8. Patching a Kernel Recipe 10.9. Removing a Kernel Patch Recipe 10.10. Creating an initrd Image Recipe 10.11. Creating a Boot Disk on Debian Recipe 10.12. Creating a Boot Disk on Red Hat Chapter 11. CD and DVD Recording Section 11.1. Introduction Recipe 11.2. Finding the SCSI Address for CD and DVD Writers Recipe 11.3. Enabling SCSI Emulation for IDE/Atapi CD and DVD Writers Recipe 11.4. Making a Data CD for General Distribution Recipe 11.5. Building File Trees on a Data CD Recipe 11.6. Copying a CD or DVD Recipe 11.7. Erasing a CD-RW Recipe 11.8. Recording a Multisession Data CD Recipe 11.9. Creating a Bootable CD Recipe 11.10. Spanning a Large File over Several CDs Recipe 11.11. Recording Data DVDs Recipe 11.12. Recording an Audio CD for Standard CD Players Chapter 12. Managing the Bootloader and Multi-Booting Section 12.1. Introduction Recipe 12.2. Migrating from LILO to GRUB Recipe 12.3. Installing GRUB Without a Floppy Disk Recipe 12.4. Installing GRUB with grub-install Recipe 12.5. Preparing a System for Multibooting Linux Recipe 12.6. Adding More Linuxes to a Multiboot System Recipe 12.7. Discovering Boot Parameters from the GRUB Command Shell Recipe 12.8. Configuring the Boot Partition Recipe 12.9. Creating the GRUB Boot Menu Recipe 12.10. Customizing menu.lst Recipe 12.11. Adding Windows 95/98/ME to a Linux System Recipe 12.12. Adding Windows NT/2000/XP to a Multiboot System Recipe 12.13. Restoring GRUB to the MBR with a Knoppix CD Recipe 12.14. Protecting System Files with a GRUB Password Recipe 12.15.