Wiley Linux All-In-One Desk Reference for DUMmIES 3rd.pdf

(7883 KB) Pobierz
664360477 UNPDF
Linux ®
ALL-IN-ONE DESK REFERENCE
FOR
DUMmIES
3 RD EDITION
by Emmett Dulaney and
Naba Barkakati
664360477.012.png 664360477.013.png 664360477.014.png 664360477.015.png
Linux All-in-One Desk Reference For Dummies ® , 3rd Edition
Published by
Wiley Publishing, Inc.
111 River Street
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2008 by Wiley Publishing, Inc., Indianapolis, Indiana
Published by Wiley Publishing, Inc., Indianapolis, Indiana
Published simultaneously in Canada
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any form or
by any means, electronic, mechanical, photocopying, recording, scanning or otherwise, except as permit-
ted under Sections 107 or 108 of the 1976 United States Copyright Act, without either the prior written
permission of the Publisher, or authorization through payment of the appropriate per-copy fee to the
Copyright Clearance Center, 222 Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 646-8600.
Requests to the Publisher for permission should be addressed to the Legal Department, Wiley Publishing,
Inc., 10475 Crosspoint Blvd., Indianapolis, IN 46256, (317) 572-3447, fax (317) 572-4355, or online at
http://www.wiley.com/go/permissions.
Trademarks: Wiley, the Wiley Publishing logo, For Dummies, the Dummies Man logo, A Reference for the
Rest of Us!, The Dummies Way, Dummies Daily, The Fun and Easy Way, Dummies.com, and related trade
dress are trademarks or registered trademarks of John Wiley & Sons, Inc. and/or its affiliates in the United
States and other countries, and may not be used without written permission. All other trademarks are the
property of their respective owners. Wiley Publishing, Inc., is not associated with any product or vendor
mentioned in this book.
LIMIT OF LIABILITY/DISCLAIMER OF WARRANTY : THE PUBLISHER AND THE AUTHOR MAKE NO REPRESENTATIONS
OR WARRANTIES WITH RESPECT TO THE ACCURACY OR COMPLETENESS OF THE CONTENTS OF THIS WORK AND
SPECIFICALLY DISCLAIM ALL WARRANTIES, INCLUDING WITHOUT LIMITATION WARRANTIES OF FITNESS FOR A PAR-
TICULAR PURPOSE. NO WARRANTY MAY BE CREATED OR EXTENDED BY SALES OR PROMOTIONAL MATERIALS. THE
ADVICE AND STRATEGIES CONTAINED HEREIN MAY NOT BE SUITABLE FOR EVERY SITUATION. THIS WORK IS SOLD
WITH THE UNDERSTANDING THAT THE PUBLISHER IS NOT ENGAGED IN RENDERING LEGAL, ACCOUNTING, OR
OTHER PROFESSIONAL SERVICES. IF PROFESSIONAL ASSISTANCE IS REQUIRED, THE SERVICES OF A COMPETENT
PROFESSIONAL PERSON SHOULD BE SOUGHT. NEITHER THE PUBLISHER NOR THE AUTHOR SHALL BE LIABLE FOR
DAMAGES ARISING HEREFROM. THE FACT THAT AN ORGANIZATION OR WEBSITE IS REFERRED TO IN THIS WORK
AS A CITATION AND/OR A POTENTIAL SOURCE OF FURTHER INFORMATION DOES NOT MEAN THAT THE AUTHOR OR
THE PUBLISHER ENDORSES THE INFORMATION THE ORGANIZATION OR WEBSITE MAY PROVIDE OR RECOMMEN-
DATIONS IT MAY MAKE. FURTHER, READERS SHOULD BE AWARE THAT INTERNET WEBSITES LISTED IN THIS WORK
MAY HAVE CHANGED OR DISAPPEARED BETWEEN WHEN THIS WORK WAS WRITTEN AND WHEN IT IS READ.
For general information on our other 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 technical support, please visit www.wiley.com/techsupport.
Wiley also publishes its books in a variety of electronic formats. Some content that appears in print may
not be available in electronic books.
Library of Congress Control Number: 2008929128
ISBN: 978-0-470-27535-1
Manufactured in the United States of America
10 9 8 7 6 5 4 3 2 1
664360477.001.png 664360477.002.png
Contents at a Glance
Introduction .................................................................1
Book I: Linux Basics .....................................................7
Chapter 1: Introducing Linux ............................................................................................9
Chapter 2: Installing Linux ..............................................................................................31
Chapter 3: Troubleshooting and Configuring Linux ....................................................41
Chapter 4: Trying Out Linux ...........................................................................................61
Book II: Linux Desktops...............................................71
Chapter 1: The GNOME Desktop ....................................................................................73
Chapter 2: The KDE Desktop...........................................................................................83
Chapter 3: Commanding the Shell..................................................................................93
Chapter 4: Navigating the Linux File System ..............................................................115
Chapter 5: Introducing Linux Applications .................................................................139
Chapter 6: Using Text Editors .......................................................................................157
Book III: Networking ...............................................169
Chapter 1: Connecting to the Internet .........................................................................171
Chapter 2: Setting Up a Local Area Network...............................................................191
Chapter 3: Going Wireless .............................................................................................203
Chapter 4: Managing the Network................................................................................213
Book IV: Internet ......................................................227
Chapter 1: E-Mailing and IMing in Linux......................................................................229
Chapter 2: Browsing the Web........................................................................................245
Chapter 3: Reading Newsgroups and RSS Feeds ........................................................257
Chapter 4: Using FTP......................................................................................................273
Book V: Administration .............................................283
Chapter 1: Introducing Basic System Administration ...............................................285
Chapter 2: Managing Users and Groups ......................................................................325
Chapter 3: Managing File Systems................................................................................335
Chapter 4: Installing and Updating Applications........................................................359
Book VI: Security......................................................381
Chapter 1: Introducing Linux Security.........................................................................383
Chapter 2: Securing Linux .............................................................................................399
Chapter 3: Performing Computer Security Audits .....................................................429
664360477.003.png 664360477.004.png 664360477.005.png 664360477.006.png
Book VII: Linux Servers .............................................445
Chapter 1: Managing Internet Services........................................................................447
Chapter 2: Managing Mail and News Servers .............................................................465
Chapter 3: Managing DNS ..............................................................................................487
Chapter 4: Working with Samba and NFS ....................................................................507
Book VIII: Programming............................................517
Chapter 1: Programming in Linux ................................................................................519
Chapter 2: Introductory Shell Scripting ......................................................................545
Chapter 3: Advanced Shell Scripting ...........................................................................557
Appendix: About the DVD ..........................................565
Index .......................................................................583
664360477.007.png 664360477.008.png
Table of Contents
Introduction ..................................................................1
About This Book...............................................................................................2
Conventions Used in This Book .....................................................................3
What You Don’t Have to Read ........................................................................3
Who Are You? ...................................................................................................3
How This Book Is Organized...........................................................................4
What’s on the DVD? .........................................................................................5
Icons Used in This Book..................................................................................5
Where to Go from Here....................................................................................6
Book I: Linux Basics ......................................................7
Chapter 1: Introducing Linux . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9
What Is Linux? ..................................................................................................9
Linux distributions ...............................................................................11
Making sense of version numbers......................................................14
Linux Standard Base (LSB)..................................................................15
What a Linux Distribution Includes .............................................................16
GNU software ........................................................................................16
GUIs and applications ..........................................................................20
Networks ...............................................................................................21
Internet servers ....................................................................................22
Software development .........................................................................22
Online documentation .........................................................................24
What Linux Helps You Manage .....................................................................25
Disks, CD-ROMs, and DVD-ROMs .......................................................25
Peripheral devices................................................................................26
File systems and sharing .....................................................................27
Network .................................................................................................27
Getting Started ...............................................................................................28
Install......................................................................................................28
Configure ...............................................................................................28
Explore...................................................................................................29
Find out more........................................................................................29
664360477.009.png 664360477.010.png 664360477.011.png
Zgłoś jeśli naruszono regulamin