SUSE Linux: a Complete Guide to Novell's Community Distributionwill
Total Page:16
File Type:pdf, Size:1020Kb
SUSE Linux By Chris Brown, PhD ............................................... Publisher: O'Reilly Pub Date: July 2006 Print ISBN-10: 0-596-10183-X Print ISBN-13: 978-0-59-610183-1 Pages: 446 Table of Contents SUSE Linux: A Complete Guide to Novell's Community Distribution will get you up to speed quickly and easily on SUSE, one of the most friendly and usable Linux distributions around. From quick and easy installation to excellent hardware detection and support, it's no wonder SUSE is one of the most highly rated distributions on the planet. According to Novell, SUSE is installed more than 7,000 times every day, an average of one installation every 12 seconds. This book will take you deep into the essential operating system components by presenting them in easy-to-learn modules. From basic installation and configuration through advanced topics such as administration, security, and virtualization, this book captures the important details of how SUSE works--without the fluff that bogs down other books and web sites. Instead, readers get a concise task-based approach to using SUSE as both a desktop and server operating system. In this book, you'll learn how to: Install SUSE and perform basic administrative tasks Share files with other computers Connect to your desktop remotely Set up a web server Set up networking, including Wi-Fi and Bluetooth Tighten security on your SUSE system Monitor for intrusions Manage software and upgrades smoothly Run multiple instances of SUSE on a single machine with Xen Whether you use SUSE Linux from Novell, or the free openSUSE distribution, this book has something for every level of user. The modular, lab-based approach not only shows you how--but also explains why--and gives you the answers you need to get up and running with SUSE Linux. About the author:Chris Brown is a freelance author and trainer in the United Kingdom and Europe. Following Novell's acquisition of SUSE, he taught Linux to Novell's consultants and IT staff and is certified in both Novell's CLP program and Red Hat's RHCE. Chris has a PhD in particle physics from Cambridge. SUSE Linux By Chris Brown, PhD ............................................... Publisher: O'Reilly Pub Date: July 2006 Print ISBN-10: 0-596-10183-X Print ISBN-13: 978-0-59-610183-1 Pages: 446 Table of Contents Copyright Preface Chapter 1. Quick Start Section 1.1. Installing SUSE Linux from Local Media Section 1.2. Set Up a Local Printer Section 1.3. Get Started with Email Section 1.4. Configure a Network Card Section 1.5. Access Documentation Chapter 2. Basic System Administration Section 2.1. View and Edit Text Files Section 2.2. Explore the Filesystem Section 2.3. Manage Files and Directories Section 2.4. Set File Access Permissions and Ownership Section 2.5. Access a Remote Printer Section 2.6. Create User Accounts Section 2.7. Rescue a System That Won't Boot Section 2.8. Finding Files Section 2.9. Mounting Filesystems Section 2.10. Access Your Desktop Remotely Chapter 3. Using SUSE Linux on Your Desktop Section 3.1. Configure Your Graphics Card and Monitor Section 3.2. Configure Your Keyboard and Mouse Section 3.3. Configure the KDE Menus and Panel Section 3.4. Configure the KDE Desktop Section 3.5. Lock Down the Desktop for Kiosk Mode Section 3.6. Configure the GNOME Desktop Section 3.7. Play Audio and Video Section 3.8. Burn Your Own CDs and DVDs Section 3.9. Capture Screenshots Section 3.10. Use Command-Line Tools Section 3.11. Configure Multiheaded Displays Section 3.12. Animate the Desktop with Xgl and Compiz Chapter 4. Using Linux on Your Laptop Section 4.1. Configure Laptop Power Management Section 4.2. Configure Wireless Networking Section 4.3. Configure Bluetooth Devices Section 4.4. Synchronize Files with Your Desktop Chapter 5. Package Management Section 5.1. Find Out What's Installed Section 5.2. Finding the Packages You Need Section 5.3. Install and Upgrade RPMs Section 5.4. Remove Software Packages Section 5.5. Perform an Online Update Section 5.6. Manage Software Packages Using ZENWorks Section 5.7. Manage Software Packages Using YUM Section 5.8. Compile and Install Source Code Chapter 6. System Administration for Servers Section 6.1. Control Boot-Time Service Startup Section 6.2. Start Services on Demand Section 6.3. Create and Mount Disk Partitions Section 6.4. Create Logical Volumes Section 6.5. Monitor and Manage Processes Section 6.6. Examine and Manage Logfiles Section 6.7. Monitor System Load and Performance Section 6.8. Backup and Restore Filesystems Section 6.9. Configure and Debug Network Interfaces Section 6.10. Configure Name Resolution Chapter 7. Network Services Section 7.1. Set Up Disk Quotas Section 7.2. Configure a DNS Server Section 7.3. Share Files Using NFS Section 7.4. Serve Filesystems to Windows with Samba Section 7.5. Configure a DHCP Server Section 7.6. Configure a Web Server with Apache Section 7.7. Configure a Mail Server Chapter 8. Security Section 8.1. Set a Boot-Time Password Section 8.2. Provide Secure Remote Login with SSH Section 8.3. Set Up a Firewall Section 8.4. Define a Security Level Section 8.5. Provide Role-Based Access Control with sudo Section 8.6. Assess Vulnerabilities Using Nessus Section 8.7. Detect Intrusion Section 8.8. Protect Your Applications with AppArmor Chapter 9. Alternative Installations Section 9.1. Configure a Dual-Boot System Section 9.2. Install from an Installation Server Section 9.3. Automate Installations with AutoYaST Section 9.4. Run Multiple Operating Systems with Xen About the Author Colophon SUSE Linux by Chris Brown Contributor: Simon Crute Copyright © 2006 O'Reilly Media, Inc. All rights reserved. Printed in the United States of America. Published by O'Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472. O'Reilly books may be purchased for educational, business, or sales promotional use. Online editions are also available for most titles (safari.oreilly.com). For more information, contact our corporate/institutional sales department: (800) 998-9938 or [email protected]. Editor: Brian Jepson Production Editor: Darren Kelly Copyeditor: Nancy Kotary Proofreaders: Genevieve d'Entremont, Colleen Gorman, and Darren Kelly Indexer: John Bickelhaupt Cover Designer: Marcia Friedman Interior Designer: David Futato Illustrators: Robert Romano and Jessamyn Reed Printing History: June 2006: First Edition. Nutshell Handbook, the Nutshell Handbook logo, and the O'Reilly logo are registered trademarks of O'Reilly Media, Inc. The Linux series designations, SUSE Linux, images of the American West, and related trade dress are trademarks of O'Reilly Media, Inc. Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and O'Reilly Media, Inc. was aware of a trademark claim, the designations have been printed in caps or initial caps. While every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein. ISBN: 0-596-10183-X [M] Preface Welcome to SUSE Linux: A Complete Guide to Novell's Community Distribution. I have tried to make this an intensely accessible book: its lab-based structure focuses on real, practical activities. Each lab is largely self-contained; there is no underlying plot or thematic development requiring you to start at page 1. No prior knowledge of Linux is needed, but I do assume some level of computer literacy. My ideal reader, I suppose, is the enthusiastic pilgrim journeying from the Land of Windows, or from a commercial version of Unix, or from some other flavor of Linux, or from Mac OS X (though the fierce brand loyalty of Mac users makes such pilgrimages unusual). I have tried to strike a balance between using the desktop and using the command line. If a job can be done both using YaST (SUSE's configuration tool) and at the command line, I have in many cases covered both methods. If you need a primer on using Linux at the command line, start with Lab 3.10, "Use Command-Line Tools." Brown's law states that things always take longer than you expect. It didn't state that yesterday, because I only just made it up. But it does today. Brown's law is recursive. That is, it still applies even after you've applied it. A more complete statement might be, "Things always take longer than you would expect even after allowing for the fact that they will take longer than you expect." (I have always wanted to have a law named after me. Trouble is, all the really good laws have been claimed already by eminent physicists such as Newton, Einstein, and, of course, Murphy. But I think that Brown's law is every bit as fundamental as gravity and relativity.) By all of which I am trying to get around to the confession that I started writing this book around February 2005. At the time, SUSE Linux 9.3 was the latest version. About halfway through writing, SUSE Linux 10.0 came out. And as I wrap up the final round of revisions and we put the book into production, SUSE 10.1 is with us. Fortunately, each release of SUSE Linux represents an evolution, rather than a revolution, of what has gone before. Much of what I discuss in this book is relevant to all versions of SUSE Linux. (Actually, much of it is relevant to other Linux distributions, too.) I trust that you won't be too much dismayed by any cosmetic differences between the screenshots in the book and the ones you'll see in whatever distribution of SUSE Linux you happen to be using, or if a menu selection has been reorganized or renamed, or if a URL listed in the book has gone away.