0672333449.Pdf
Total Page:16
File Type:pdf, Size:1020Kb
Ubuntu Unleashed 2011 Edition: Acquisitions Editor Covering 10.10 and 11.04 Debra Williams Copyright © 2011 by Pearson Education, Inc. Cauley All rights reserved. No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, Development Editor or otherwise, without written permission from the publisher. No patent liability is Michael Thurston assumed with respect to the use of the information contained herein. Although every precaution has been taken in the preparation of this book, the publisher and author Managing Editor assume no responsibility for errors or omissions. Nor is any liability assumed for Sandra Schroeder damages resulting from the use of the information contained herein. Project Editor ISBN-13: 978-0-672-33344-6 Mandie Frank ISBN-10: 0-672-33344-9 Library of Congress Cataloging-in-Publication Data Copy Editor Helmke, Matthew. Barbara Hacha Ubuntu unleashed : covering 10.10 and 11.04 / Matthew Helmke, Andrew Indexer Hudson, Paul Hudson. -- 6th ed. Brad Herriman p. cm. Rev. ed. of: Ubuntu unleashed : covering 9.10 and 10.4 / Andrew Hudson Proofreader ... [et al.]. 2010. Jennifer Gallant ISBN 978-0-672-33344-6 (pbk. : alk. paper) Technical Editor 1. Ubuntu (Electronic resource) 2. Linux. 3. Operating systems Dallas Releford (Computers) I. Hudson, Andrew, 1978- II. Hudson, Paul, 1979- III. Title. Publishing QA76.76.O63U36 2010 Coordinator Kim Boedigheimer 005.4'32--dc22 2010043436 Multimedia Developer Library of Congress Cataloging-in-Publication data is on file. Dan Scherf Printed in the United States of America Cover and Interior First Printing December 2010 Designer Trademarks Gary Adair All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized. Sams Publishing cannot attest to the accuracy of Composition this information. Use of a term in this book should not be regarded as affecting the Mark Shirar validity of any trademark or service mark. Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possi- ble, but no warranty or fitness is implied. The information provided is on an “as is” basis. The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the CD or programs accompanying it. Bulk Sales Pearson offers excellent discounts on this book when ordered in quantity for bulk purchases or special sales. For more information, please contact: U.S. Corporate and Government Sales 1-800-382-3419 [email protected] For sales outside of the U.S., please contact: International Sales +1-317-581-3793 [email protected] iii Contents at a Glance Introduction ...................................................................................1 Part I Installing and Configuration 1 Installing Ubuntu ............................................................................9 2 Post-Installation Configuration ........................................................19 3 Working with GNOME....................................................................41 4 Command Line Quickstart...............................................................57 Part II Desktop Ubuntu 5 On the Internet .............................................................................91 6 Productivity Applications...............................................................105 7 Multimedia Applications ...............................................................125 8 Other Ubuntu Desktops.................................................................149 9 Games ........................................................................................159 Part III System Administration 10 Managing Users ...........................................................................169 11 Automating Tasks .........................................................................197 12 System-Monitoring Tools ...............................................................251 13 Backing Up..................................................................................267 14 Networking .................................................................................289 15 Remote Access with SSH and Telnet .................................................331 Part IV Ubuntu as a Server 16 File and Print...............................................................................341 17 Apache Web Server Management ....................................................363 18 Remote File Serving with FTP .........................................................395 19 Handling Email ............................................................................405 20 Proxying and Reverse Proxying .......................................................425 21 Administering Database Services .....................................................435 22 LDAP..........................................................................................461 23 Linux Terminal Server Project (LTSP) ...............................................469 24 Ubuntu in the Cloud ....................................................................477 iv Ubuntu Unleashed Part V Programming Linux 25 Opportunistic Development ...........................................................489 26 Helping with Ubuntu Testing and QA ..............................................501 27 Using Perl ...................................................................................507 28 Working with Python....................................................................531 29 Writing PHP Scripts ......................................................................551 30 C/C++ Programming Tools for Ubuntu.............................................585 31 Mono .........................................................................................597 Part VI Ubuntu Housekeeping 32 Managing Software .......................................................................607 33 Securing Your Machines ................................................................617 34 Performance Tuning......................................................................631 35 Command Line Masterclass............................................................643 36 Kernel and Module Management ....................................................669 Part VII Appendixes A Ubuntu Under the Hood ...............................................................691 B Ubuntu and Linux Internet Resources ..............................................701 Index .........................................................................................711 v Table of Contents Introduction 1 Licensing........................................................................................2 Who This Book Is For .......................................................................3 What This Book Contains .................................................................4 Conventions Used in This Book .........................................................5 Part I Installing and Configuration 1 Installing Ubuntu 9 Before You Begin the Installation........................................................9 Researching Your Hardware Specifications ..................................10 Installation Options................................................................10 Planning Partition Strategies ....................................................10 The Boot Loader.....................................................................11 Installing from CD or DVD ......................................................11 Step-by-Step Installation..................................................................11 Installing ..............................................................................12 First Update...........................................................................15 Wubi—The Easy Installer for Windows ......................................16 Shutting Down ..............................................................................17 Reference ......................................................................................18 2 Post-Installation Configuration 19 Troubleshooting Post-Installation Configuration Problems ....................19 The sudo Command .......................................................................21 Software Update.............................................................................21 Configuring Software Repositories.....................................................24 Installing Graphics Drivers ..............................................................27 Changing Ubuntu’s Look and Feel ....................................................28 Changing the Desktop Background ...........................................28 Changing Colors ....................................................................29 Modifying System Fonts ..........................................................31 Visual Effects .........................................................................31 Preferred Behaviors.........................................................................32 Input Devices ................................................................................33 Keyboard Shortcuts.................................................................33 vi Ubuntu Unleashed Keyboard Layout