Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống
1
/ 68 trang
THÔNG TIN TÀI LIỆU
Thông tin cơ bản
Định dạng
Số trang
68
Dung lượng
1,12 MB
Nội dung
HUNGER If Debian GNU/Linux can do it, you can do it too . . . Whether you’re a Linux newcomer looking for foolproof installation tips or a Debian GNU/ veteran who wants the scoop on the latest security enhancements, this authoritative guide delivers all the information you need to make the most of the Debian GNU/ “potato” release. From customizing a desktop system to troubleshooting a network or setting up an e-commerce server, it’s the only reference you’ll ever need to become a Debian GNU/Linux pro. Inside, you’ll find complete coverage of Debian GNU/Linux • Get crystal-clear instructions for fast, painless installation • Learn your way around the Linux shell, file system, and X Window System • Discover how easy it is to set up a LAN in Debian and connect to the Internet • Make the most of Linux desktop applications, games, and multimedia features • Master Linux administration, from automating system tasks to locking in security • Find guidance on how to keep Debian current and bug-free • Get the scoop on configuring servers, from Apache and FTP to NIS and Sendmail Shelving Category: Linux Reader Level: Beginning to Advanced System Requirements: Intel 386 or better; 150MB+ hard drive space; 16MB+ RAM; CD-ROM drive ISBN 0-7645-4710-0 $49.99 USA $74.99 Canada £39.99 UK incl. VAT Debian GNU/Linux Master Linux system administration Discover the power of Debian’s package management system Build a network and set up Linux servers Steve Hunger Foreword by Ian Murdock, Founder of Debian and now Cofounder of Progeny Linux Systems “Steve Hunger’s book is the most comprehensive and up-to-date guide to Debian GNU/Linux in print.” —Branden Robinson, Debian Developer ,!7IA7G4-fehbac!:p;o;t;T;T *85555-ACJDHi Debian GNU/ Linux 2.2r2 on CD-ROM BONUS CD-ROM Debian GNU/Linux 2.2r2 100% COMPREHENSIVE www.hungryminds.com 100% ONE HUNDRED PERCENT COMPREHENSIVE AUTHORITATIVE WHAT YOU NEED ONE HUNDRED PERCENT D ebian GNU/Linux Bible Configure the Debian interface for your special requirements ▲ ▲ Monitor your Web server with Debian packages ▲ Combine the simplicity of a window manager with up-to-date graphic controls D ebian GNU/Linux Debian GNU/Linux ® ® ® ® Debian GNU/Linux 2.2r2 inside ® ® ® ® 4710-0 Cover 3/30/01 11:56 AM Page 1 HUNGER If Debian GNU/Linux can do it, you can do it too . . . Whether you’re a Linux newcomer looking for foolproof installation tips or a Debian GNU/ veteran who wants the scoop on the latest security enhancements, this authoritative guide delivers all the information you need to make the most of the Debian GNU/ “potato” release. From customizing a desktop system to troubleshooting a network or setting up an e-commerce server, it’s the only reference you’ll ever need to become a Debian GNU/ Linux pro. Inside, you’ll find complete coverage of Debian GNU/Linux • Get crystal-clear instructions for fast, painless installation • Learn your way around the Linux shell, file system, and X Window System • Discover how easy it is to set up a LAN in Debian and connect to the Internet • Make the most of Linux desktop applications, games, and multimedia features • Master Linux administration, from automating system tasks to locking in security • Find guidance on how to keep Debian current and bug-free • Get the scoop on configuring servers, from Apache and FTP to NIS and Sendmail Master Linux system administration Discover the power of Debian’s package management system Build a network and set up Linux servers Steve Hunger Foreword by Ian Murdock, Founder of Debian and now Cofounder of Progeny Linux Systems 100% www.hungryminds.com 100% COMPREHENSIVE AUTHORITATIVE WHAT YOU NEED Bible ▲ ▲ ▲ Debian GNU/Linux ® ® D ebian GNU/Linux ® ® “Steve Hunger’s book is the most comprehensive and up-to-date guide to Debian GNU/Linux in print.” —Branden Robinson, Debian Developer 4710-0 Cover 3/30/01 11:57 AM Page 2 Debian GNU/Linux ® Bible 4710-0 FM.F 4/10/01 3:38 PM Page i Debian GNU/Linux ® Bible Steve Hunger Hungry Minds, Inc. Indianapolis, IN ✦ Cleveland, OH ✦ New York, NY 4710-0 FM.F 4/10/01 3:38 PM Page iii Debian GNU/Linux ® Bible Published by Hungry Minds, Inc. 909 Third Avenue New York, NY 10022 www.hungryminds.com Copyright 2001 Hungry Minds, Inc. All rights reserved. No part of this book, including interior design, cover design, and icons, may be reproduced or transmitted in any form, by any means (electronic, photocopying, recording, or otherwise) without the prior written permission of the publisher. Library of Congress Catalog Card No.: 2001089113 ISBN: 0-7645-4710-0 Printed in the United States of America 10 9 8 7 6 5 4 3 2 1 1B/SW/QU/QR/IN Distributed in the United States by Hungry Minds, Inc. Distributed by CDG Books Canada Inc. for Canada; by Transworld Publishers Limited in the United Kingdom; by IDG Norge Books for Norway; by IDG Sweden Books for Sweden; by IDG Books Australia Publishing Corporation Pty. Ltd. for Australia and New Zealand; by TransQuest Publishers Pte Ltd. for Singapore, Malaysia, Thailand, Indonesia, and Hong Kong; by Gotop Information Inc. for Taiwan; by ICG Muse, Inc. for Japan; by Intersoft for South Africa; by Eyrolles for France; by International Thomson Publishing for Germany, Austria, and Switzerland; by Distribuidora Cuspide for Argentina; by LR International for Brazil; by Galileo Libros for Chile; by Ediciones ZETA S.C.R. Ltda. for Peru; by WS Computer Publishing Corporation, Inc., for the Philippines; by Contemporanea de Ediciones for Venezuela; by Express Computer Distributors for the Caribbean and West Indies; by Micronesia Media Distributor, Inc. for Micronesia; by Chips Computadoras S.A. de C.V. for Mexico; by Editorial Norma de Panama S.A. for Panama; by American Bookshops for Finland. For general information on Hungry Minds’ products and services please contact our Customer Care department within the U.S. at 800-762-2974, outside the U.S. at 317-572-3993 or fax 317-572-4002. For sales inquiries and reseller information, including discounts, premium and bulk quantity sales, and foreign-language translations, please contact our Customer Care department at 800-434-3422, fax 317-572-4002 or write to Hungry Minds, Inc., Attn: Customer Care Department, 10475 Crosspoint Boulevard, Indianapolis, IN 46256. For information on licensing foreign or domestic rights, please contact our Sub-Rights Customer Care department at 212-884-5000. For information on using Hungry Minds’ products and services in the classroom or for ordering examination copies, please contact our Educational Sales department at 800-434-2086 or fax 317-572-4005. For press review copies, author interviews, or other publicity information, please contact our Public Relations department at 650-653-7000 or fax 650-653-7500. For authorization to photocopy items for corporate, personal, or educational use, please contact Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, or fax 978-750-4470. LIMIT OF LIABILITY/DISCLAIMER OF W ARRANTY: THE PUBLISHER AND AUTHOR HAVE USED THEIR BEST EFFORTS IN PREPARING THIS BOOK. THE PUBLISHER AND AUTHOR MAKE NO REPRESENTATIONS OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS BOOK AND SPECIFICALLY DISCLAIM ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. THERE ARE NO WARRANTIES WHICH EXTEND BEYOND THE DESCRIPTIONS CONTAINED IN THIS PARAGRAPH. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES REPRESENTATIVES OR WRITTEN SALES MATERIALS. THE ACCURACY AND COMPLETENESS OF THE INFORMATION PROVIDED HEREIN AND THE OPINIONS STATED HEREIN ARE NOT GUARANTEED OR WARRANTED TO PRODUCE ANY PARTICULAR RESULTS, AND THE ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY INDIVIDUAL. NEITHER THE PUBLISHER NOR AUTHOR SHALL BE LIABLE FOR ANY LOSS OF PROFIT OR ANY OTHER COMMERCIAL DAMAGES, INCLUDING BUT NOT LIMITED TO SPECIAL, INCIDENTAL, CONSEQUENTIAL, OR OTHER DAMAGES. Trademarks: All brand names and product names used in this book are trade names, service marks, trademarks, or registered trademarks of their respective owners. All other trademarks are the property of their respective owners. Hungry Minds, Inc., is not associated with any product or vendor mentioned in this book. is a trademark of Hungry Minds, Inc. 4710-0 FM.F 4/10/01 3:38 PM Page iv About the Author Steve Hunger has spent the last 10 years in the computer industry, the last four supporting and integrating multiple platforms for a Fortune 500 Company. Having been introduced to UNIX while attending Purdue University, he quickly latched onto Linux as the primary platform for his startup Web hosting and development busi- ness in 1996. He continues operating his Web business, consulting with local busi- nesses, and freelance writing. When not conquering the world with Linux, he has co-written and contributed to several books for Macmillan USA and Brady Games, including work on the line of Mandrake Linux products. His latest work has been for AOL Press called Powering Up the Internet. In his spare time he enjoys relaxing with his wife, riding bicycles, and tinkering with an R/C model that is evolving into something that looks amazing like a plane. He is also on the Board of Directors for the Central Indiana Linux Users Group ( www.cinlug.org). Steve can be reached at steve@rhinoworld.com. 4710-0 FM.F 4/10/01 3:38 PM Page v Credits Acquisitions Editor Terri Varveris Project Editor Gus A. Miklos Technical Editor Steve Schafer Copy Editors Victoria Lee O’Malley Luann Rouff Project Coordinator Dale White Graphics and Production Specialists Amy Adrian Sean Decker Gabriele McCann Kendra Span Quality Control Technicians David Faust Susan Moritz Marianne Santy Charles Spencer Permissions Editor Laura Moss Media Development Specialist Travis Silvers Media Development Coordinator Marisa Pearman Proofreading and Indexing York Production Services, Inc. 4710-0 FM.F 4/10/01 3:38 PM Page vi This book is dedicated to my beloved wife, Sandy. Without her love, support, and encouragement to carry me on days I needed it, this book would not have been possible. And to my father, who also saw me through this book. 4710-0 FM.F 4/10/01 3:38 PM Page vii Foreword I n January 1993, while browsing USENET news one evening after work, I ran across a thread with a subject line that read, simply, “LINUX.” I’m not sure what it was about the word “LINUX” that made me hit Enter, but I did, and within a few minutes, it was clear to me that I had to have it. Unfortunately, that’s about where I hit a brick wall. I had just enough information about Linux to whet my appetite, but there was precious little more of it to be found. Over the course of the next few weeks, I hunted down and pieced together the rest of what I needed to know: where to find it, how to download it, how to install it, and what I could do with it once I had installed it. It was a tedious process, because only scraps of information were available, and those scraps were scattered about all over the place — a bit on a USENET group here, a bit more on an FTP site there. And even when found and pieced together, the scraps did not form a complete picture— I had to fill in large gaps for myself. All in all, it was a tremendous learning experience, but it was also a tremendously frus- trating and time-consuming experience, and if presented with the same obstacles today, I likely would not have had the time or the inclination to overcome them. Fortunately, becoming a Linux user is much easier today than it was in 1993. The software itself has come a long way, and a wide range of books on the subject are available, from installation and use to programming to administration and manage- ment. These days, the local bookstore has all the information you need to get started and become productive as a Linux user. One subject that has not been covered as extensively as others, a subject near and dear to my heart, is Debian, a project I founded not long after discovering Linux. Debian has much to offer the Linux user — a huge selection of software, an open development process that leads to rapid bug fixes and improvements, an unparal- leled software management facility that allows software to be installed easily and systems to be upgraded non-disruptively, and much more — but it has long remained a daunting prospect to piece together the information you need to get there. 4710-0 FM.F 4/10/01 3:38 PM Page ix x Debian GNU/Linux Bible And, so, I am extremely pleased to see books such as my friend Steve Hunger’s Debian GNU/Linux Bible. Debian GNU/Linux Bible contains all the information you need to know to get the most out of Debian, from installing it to using its powerful package management system to install software and upgrade your system to setting up a Web server and other advanced topics. With Debian GNU/Linux Bible by your side, you will be well prepared to join the large and growing group of users that call Debian home. I hope this book serves you well. Ian Murdock Founder of Debian and Co-founder of Progeny Linux Systems, Inc. 4710-0 FM.F 4/10/01 3:38 PM Page x [...]... 11 3 11 4 11 5 11 8 11 8 11 9 12 0 12 1 xxi 4 710 -0 FM.F xxii 4 /10 / 01 3:38 PM Page xxii Debian GNU/ Linux Bible mail Mail utilities News Clients PAN Netscape tin newsreader FTP Clients Telnet Dial-in PPP... 13 15 16 16 17 17 18 18 19 20 21 22 23 24 24 25 4 710 -0 FM.F xx 4 /10 / 01 3:38 PM Page xx Debian GNU/ Linux Bible Configuring the Debian system Apt configuration Using the Debian Package-Management System What are deb packages? Adding deb packages Changing the package archive source Gnome-apt Installing Non -Debian Software... 17 9 18 0 18 6 18 8 18 8 18 8 18 9 19 1 19 1 19 2 19 4 19 5 19 6 19 7 19 8 19 8 200 Chapter 10 : Multimedia 203 Listening to Audio Files Audio file formats Audio CDs MP3 on Linux Recording CDs Streaming audio Watching Videos MPEG videos DVD videos Using Live Voice... 203 206 207 209 210 212 214 215 215 216 xxiii 4 710 -0 FM.F xxiv 4 /10 / 01 3:38 PM Page xxiv Debian GNU/ Linux Bible Chapter 11 : Games 217 System Considerations for Gaming Graphical interfaces Sound system requirements Other system demands Playing Debian- Packaged Games Adventure games Arcade games Board... 13 3 13 4 13 4 13 6 14 0 14 2 14 3 14 3 14 6 14 8 14 8 15 1 15 2 15 3 Chapter 8: Productivity Applications 15 7 StarOffice Installation The StarOffice desktop Applixware Installation Navigating Applixware ... 15 7 15 8 16 0 16 6 16 6 16 7 4 710 -0 FM.F 4 /10 / 01 3:38 PM Page xxiii Contents Alternatives Gnome Office Publishing documents with text files TeX Groff File Converters 17 1 17 2 17 4 17 4 17 5 17 7 Chapter 9:... ✦ 4 710 -0 ch 01. F 4 /10 / 01 11: 20 AM Page 3 1 C H A P T E R Introduction to Linux ✦ ✦ ✦ ✦ In This Chapter W elcome to the Debian GNU/ Linux Bible where you can find hints, tips, and helpful instructions on most areas of this robust operating system As you begin to learn more about this distribution of the Linux operating system, I’m sure you will find that you have made an excellent choice Debian GNU/ Linux. .. 562 565 566 5 71 577 582 588 599 600 603 603 609 616 Index 625 GNU General Public License 659 CD-ROM Installation Instructions 664 xxxi 4 710 -0 pt1.F 4 /10 / 01 11: 19 AM Page 1 P A R T I Getting Started ✦ ✦ ✦ ✦ In This Part Chapter 1 Introduction to Linux Chapter 2 Installing Debian Chapter 3 First Steps as a Linux User... Part II: Working with Debian 12 2 12 2 12 5 12 5 12 6 12 6 12 7 12 8 12 9 13 1 Chapter 7: Applications 13 3 Installing Applications Using the Windows Application with Linux DOSEMU Wine VMware Plex86 Graphics... release was 5 4 710 -0 ch 01. F 6 4 /10 / 01 11: 20 AM Page 6 Part I ✦ Getting Started back in 19 97 However, it remains an active project Had the Linux kernel been available in 19 90, Stallman says they would not have started their own Note In truth, from its adoption as an operating system, the rightful name of Linux is really GNU/ Linux Linux is really only the kernel (the core component) and GNU contains the . 3/30/ 01 11: 57 AM Page 2 Debian GNU/ Linux ® Bible 4 710 -0 FM.F 4 /10 / 01 3:38 PM Page i Debian GNU/ Linux ® Bible Steve Hunger Hungry Minds, Inc. Indianapolis, IN ✦ Cleveland, OH ✦ New York, NY 4 710 -0. get there. 4 710 -0 FM.F 4 /10 / 01 3:38 PM Page ix x Debian GNU/ Linux Bible And, so, I am extremely pleased to see books such as my friend Steve Hunger’s Debian GNU/ Linux Bible. Debian GNU/ Linux Bible contains. this book. As you become more experienced with Linux and specifically 4 710 -0 FM.F 4 /10 / 01 3:38 PM Page xi xii Debian GNU/ Linux Bible Debian GNU/ Linux, you move into the intermediate areas of