Linux Operations and Administration
Total Page:16
File Type:pdf, Size:1020Kb
This is an electronic version of the print textbook. Due to electronic rights restrictions, some third party content may be suppressed. Editorial review has deemed that any suppressed content does not materially affect the overall learning experience. The publisher reserves the right to remove content from this title at any time if subsequent rights restrictions require it. For valuable information on pricing, previous editions, changes to current editions, and alternate formats, please visit www.cengage.com/highered to search by ISBN#, author, title, or keyword for materials in your areas of interest. Linux Operations and Administration Alfred Basta Dustin A. Finamore Nadine Basta Serge Palladino Linux Operations and Administration © 2013 Course Technology, Cengage Learning Alfred Basta, Dustin A. Finamore, ALL RIGHTS RESERVED. No part of this work covered by the Nadine Basta, Serge Palladino copyright herein may be reproduced, transmitted, stored or used in any form or by any means graphic, electronic, or mechanical, Vice President, Careers & Computing: including but not limited to photocopying, recording, scanning, Dave Garza digitizing, taping, Web distribution, information networks, or Director of Learning Solutions: information storage and retrieval systems, except as permitted Matthew Kane under Section 107 or 108 of the 1976 United States Copyright Act, without the prior written permission of the publisher. Executive Editor: Steve Helba Acquisitions Editor: Nick Lombardi For product information and technology assistance, contact us at Managing Editor: Marah Bellegarde Cengage Learning Customer & Sales Support, 1-800-354-9706 Product Manager: Natalie Pashoukos For permission to use material from this text or product, submit all requests online at cengage.com/permissions Development Editor: Lisa M. Lord Further permissions questions can be emailed to Editorial Assistant: Sarah Pickering [email protected] Vice President, Marketing: Jennifer Ann Baker Library of Congress Control Number: 2012938293 Marketing Director: Deborah Yarnell ISBN-13: 978-1-1110-3530-3 Associate Marketing Manager: ISBN-10: 1-1110-3530-X Erica Glisson Course Technology Production Director: Wendy A. Troeger 20 Channel Center Street Production Manager: Andrew Crouth Boston, MA 02210 USA Senior Content Project Manager: Andrea Majot Cengage Learning is a leading provider of customized learning solutions with office locations around the globe, including Senior Art Director: Jack Pendleton Singapore, the United Kingdom, Australia, Mexico, Brazil, and Technology Project Manager: Joe Pliss Japan. Locate your local office at: international.cengage.com/region Cengage Learning products are represented in Canada by Nelson Media Editor: William Overocker Education, Ltd. For your lifelong learning solutions, visit www.cengage.com/coursetechnology Purchase any of our products at your local college store or at our preferred online store www.cengagebrain.com Visit our corporate website at cengage.com. Some of the product names and company names used in this book have been used for identification purposes only and may be trademarks or registered trademarks of their respective manufacturers and sellers. Microsoft and the Office logo are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries. Course Technology, a part of Cengage Learning, is an independent entity from the Microsoft Corporation and not affiliated with Microsoft in any manner. Any fictional data related to persons or companies or URLs used throughout this book is intended for instructional purposes only. At the time this book was printed, any such data was fictional and not belonging to any real persons or companies. Course Technology and the Course Technology logo are registered trademarks used under license. Course Technology, a part of Cengage Learning, reserves the right to revise this publication and make changes from time to time in its content without notice. The programs in this book are for instructional purposes only. They have been tested with care, but are not guaranteed for any particular intent beyond educational purposes. The author and the publisher do not offer any warranties or representations, nor do they accept any liabilities with respect to the programs. Screenshots of software programs and operating systems included in this text are courtesy of the following companies: openSUSE, VMware Player, Domain Name System, and Microsoft. Printed in the United States of America 12345671615141312 Brief Contents INTRODUCTION............................................................ xv CHAPTER 1 Introduction to the Linux Operating System . 1 CHAPTER 2 Installing OpenSUSE. 15 CHAPTER 3 Managing Files and Directories . 41 CHAPTER 4 Creating and Editing Files with Text Editors . 71 CHAPTER 5 Creating Shell Scripts and Displaying File Contents . 89 CHAPTER 6 Managing Data: Backup and Recovery Processes . 121 CHAPTER 7 Managing Users and Groups . 143 CHAPTER 8 Network Communications . 167 CHAPTER 9 Installing Software Packages . 187 CHAPTER 10 Apache Web Server . 207 CHAPTER 11 Domain Name System . 229 CHAPTER 12 Configuring a Mail Server . 249 CHAPTER 13 Working with the Network File System . 267 CHAPTER 14 Planning for a Linux Installation . 287 CHAPTER 15 Linux File System Management and Administration . 307 CHAPTER 16 Managing Resources in Linux. 325 CHAPTER 17 Networking in a Linux Environment . 351 CHAPTER 18 Using Samba for Interoperating Linux and Windows. 371 CHAPTER 19 Securing Linux . 389 iii iv Brief Contents CHAPTER 20 Advanced Linux Administration . 415 GLOSSARY............................................................... 451 INDEX.................................................................. 459 Table of Contents INTRODUCTION................................................................. xv CHAPTER 1 Introduction to the Linux Operating System . 1 Overview of Operating System Functions . ..................................................2 Software Licensing Agreements ........................................................ 2 Activity 1-1: Reviewing Licensing Agreements ............................................. 3 Functions of an Operating System ...................................................... 3 History of Linux . ....................................................................4 Overview of SUSE ................................................................. 6 Linux Architecture ....................................................................6 Kernel .......................................................................... 7 Linux Desktop Environments ......................................................... 8 Linux File Structure ................................................................ 8 Features of Linux .................................................................. 9 Command Shells Available in Linux ................................................... 10 Chapter Summary ...................................................................11 Key Terms. .......................................................................11 Review Questions. ...................................................................12 Case Projects .......................................................................14 CHAPTER 2 Installing OpenSUSE. 15 Checking Your System Configuration .....................................................16 Requirements for Installing Linux ..................................................... 17 The Unified Installation Method with Virtual Machines ........................................17 Overview of VMware Player ......................................................... 18 Activity 2-1: Downloading VMware Player .............................................. 19 Installing VMware Player on a Windows Host ............................................ 20 Activity 2-2: Installing VMware Player 3.1.5 on a Windows Host .............................. 20 Installing OpenSUSE . ..............................................................20 Activity 2-3: Creating a Virtual Machine ................................................ 21 OpenSUSE Boot Options ........................................................... 21 The Preparation Phase ............................................................. 24 The Installation Phase.............................................................. 27 The Configuration Phase............................................................ 28 Activity 2-4: Installing OpenSUSE as a Guest OS .......................................... 30 The GNOME Desktop Environment . .....................................................31 Features of GNOME .............................................................. 31 Activity 2-5: Working with the GNOME Desktop Environment................................ 34 The KDE Desktop Environment .........................................................34 Features of KDE.................................................................. 35 Activity 2-6: Working with KDE ...................................................... 36 Chapter Summary ...................................................................36 Key Terms. .......................................................................37 Review Questions. ...................................................................38 Case Projects .......................................................................39 v vi Table of Contents CHAPTER 3 Managing