Home > Store

Practical Guide to Ubuntu Linux, A, 3rd Edition

Register your product to gain access to bonus material or receive a coupon.

Practical Guide to Ubuntu Linux, A, 3rd Edition

Book

  • Sorry, this book is no longer in print.
Not for Sale

About

Features

  • Comprehensive coverage of installation, configuration, and usage - with in-depth coverage of Ubuntu servers
  • Superb coverage of running Ubuntu from both GUI tools and the command line: gives readers deep insight into what's happening "under the hood"
  • Updated to version 10.4 of Ubuntu
  • The DVD contains the full Ubuntu 10.4 release
  • Power Point slides of chapters available for course use on the IRC

Description

  • Copyright 2011
  • Edition: 3rd
  • Book
  • ISBN-10: 0-13-254248-X
  • ISBN-13: 978-0-13-254248-7

The Most Complete, Easy-to-Follow Guide to Ubuntu Linux 

  • The #1 Ubuntu server resource, fully updated for Ubuntu 10.4 (Lucid Lynx)–the Long Term Support (LTS) release many companies will rely on for years!
  • Updated JumpStarts help you set up Samba, Apache, Mail, FTP, NIS, OpenSSH, DNS, and other complex servers in minutes
  • Hundreds of up-to-date examples, plus comprehensive indexes that deliver instant access to answers you can trust 

Mark Sobell’s A Practical Guide to Ubuntu Linux®, Third Edition, is the most thorough and up-to-date reference to installing, configuring, and working with Ubuntu, and also offers comprehensive coverage of servers—critical for anybody interested in unleashing the full power of Ubuntu.

This edition has been fully updated for Ubuntu 10.04 (Lucid Lynx), a milestone Long Term Support (LTS) release, which Canonical will support on desktops until 2013 and on servers until 2015.

Sobell walks you through every essential feature and technique, from installing Ubuntu to working with GNOME, Samba, exim4, Apache, DNS, NIS, LDAP, gufw, firestarter, iptables, even Perl scripting. His exceptionally clear explanations demystify everything from networking to security.

You’ll find full chapters on running Ubuntu from the command line and desktop (GUI), administrating systems, setting up networks and Internet servers, and much more. Fully updated JumpStart sections help you get complex servers running—often in as little as five minutes.

Sobell draws on his immense Linux knowledge to explain both the “hows” and the “whys” of Ubuntu. He’s taught hundreds of thousands of readers and never forgets what it’s like to be new to Linux. Whether you’re a user, administrator, or programmer, you’ll find everything you need here—now, and for many years to come.

The world’s most practical Ubuntu Linux book is now even more useful!

 

This book delivers

  • Hundreds of easy-to-use Ubuntu examples
  • Important networking coverage, including DNS, NFS, and Cacti
  • Coverage of crucial Ubuntu topics such as sudo and the Upstart init daemon
  • More detailed, usable coverage of Internet server configuration, including Apache (Web) and exim4 (email) servers
  • State-of-the-art security techniques, including up-to-date firewall setup techniques using gufw and iptables, and a full chapter on OpenSSH
  • A complete introduction to Perl scripting for automated administration
  • Deeper coverage of essential admin tasks–from managing users to CUPS printing, configuring LANs to building a kernel
  • Complete instructions on keeping Ubuntu systems up-to-date using aptitude, Synaptic, and the Software Sources window
  • And much more...including a 500+ term glossary

Includes DVD!  Get the full version of Lucid Lynx, the latest Ubuntu LTS release!

Extras

Author's Site

Please visit the author's companion web page at www.sobell.com.

Sample Content

Table of Contents

List of JumpStarts xxxvii

Preface xxxix

Chapter 1: Welcome to Linux 1

Ubuntu Linux 2

The History of UNIX and GNU—Linux 3

What Is So Good About Linux? 6

Overview of Linux 12

Additional Features of Linux 17

Conventions Used in This Book 19

Chapter Summary 21

Exercises 22

Part I: Installing Ubuntu Linux 23

Chapter 2: Installation Overview 25

The Live/Install Desktop CD and the Live/Install DVD 26

More Information 26

Planning the Installation 27

The Installation Process 42

Downloading and Burning a CD/DVD 43

Gathering Information About the System 47

Chapter Summary 49

Exercises 49

Advanced Exercises 49

Chapter 3: Step-by-Step Installation 51

Booting from a Live/Install Desktop CD or a Live/Install DVD 52

Graphical Partition Editors 63

Upgrading to a New Release 74

Installing KDE 75

Setting Up a Dual-Boot System 76

Advanced Installation 77

Chapter Summary 93

Exercises 94

Advanced Exercises 94

Part II: Getting Started with Ubuntu Linux 95

Chapter 4: Introduction to Ubuntu Linux 97

Curbing Your Power: root Privileges/sudo 98

A Tour of the Ubuntu Desktop 99

Getting Help 116

Updating, Installing, and Removing Software Packages 131

Where to Find Documentation 136

More About Logging In 144

Working from the Command Line 150

Controlling Windows: Advanced Operations 153

Chapter Summary 156

Exercises 157

Advanced Exercises 158

Chapter 5: The Linux Utilities 159

Special Characters 160

Basic Utilities 161

Working with Files 163

| (Pipe): Communicates Between Processes 170

Four More Utilities 171

Compressing and Archiving Files 174

Locating Commands 178

Obtaining User and System Information 180

Communicating with Other Users 184

Email 185

Tutorial: Using vim to Create and Edit a File 186

Chapter Summary 193

Exercises 196

Advanced Exercises 197

Chapter 6: The Linux Filesystem 199

The Hierarchical Filesystem 200

Directory Files and Ordinary Files 200

Pathnames 205

Working with Directories 207

Access Permissions 215

ACLs: Access Control Lists 221

Links 226

Chapter Summary 232

Exercises 234

Advanced Exercises 236

Chapter 7: The Shell 237

The Command Line 238

Standard Input and Standard Output 243

Running a Command in the Background 254

Filename Generation/Pathname Expansion 256

Builtins 261

Chapter Summary 261

Exercises 262

Advanced Exercises 264

Part III: Digging into Ubuntu Linux 265

Chapter 8: Linux GUIs: X and GNOME 267

X Window System 268

The Nautilus File Browser Window 276

The Nautilus Spatial View 282

GNOME Utilities 284

Chapter Summary 288

Exercises 289

Advanced Exercises 289

Chapter 9: The Bourne Again Shell 291

Background 292

Shell Basics 293

Parameters and Variables 312

Special Characters 326

Processes 328

History 330

Aliases 346

Functions 349

Controlling bash: Features and Options 352

Processing the Command Line 356

Chapter Summary 365

Exercises 367

Advanced Exercises 369

Chapter 10: Networking and the Internet 371

Types of Networks and How They Work 373

Communicate over a Network 388

Network Utilities 390

Distributed Computing 397

Usenet 407

WWW: World Wide Web 409

Chapter Summary 411

Exercises 412

Advanced Exercises 413

Part IV: System Administration 415

Chapter 11: System Administration: Core Concepts 417

Running Commands with root Privileges 419

The Upstart Event-Based init Daemon 432

System Operation 443

Avoiding a Trojan Horse 453

Getting Help 454

Textual System Administration Utilities 455

Setting Up a Server 460

nsswitch.conf: Which Service to Look at First 475

PAM 478

Chapter Summary 483

Exercises 484

Advanced Exercises 484

Chapter 12: Files, Directories, and Filesystems 487

Important Files and Directories 488

File Types 500

Filesystems 505

Chapter Summary 514

Exercises 515

Advanced Exercises 515

Chapter 13: Downloading and Installing Software 517

JumpStart: Installing and Removing Packages Using aptitude 519

Finding the Package That Holds a File You Need 521

APT: Keeps the System Up-to-Date 522

dpkg: The Debian Package Management System 532

BitTorrent 539

Installing Non-dpkg Software 541

wget: Downloads Files Noninteractively 543

Chapter Summary 544

Exercises 545

Advanced Exercises 545

Chapter 14: Printing with CUPS 547

Introduction 548

JumpStart I: Configuring a Local Printer 549

system-config-printer: Configuring a Printer 550

JumpStart II: Setting Up a Local or Remote Printer Using the CUPS Web

Interface 555

Traditional UNIX Printing 558

Configuring Printers 560

Printing from Windows 566

Printing to Windows 568

Chapter Summary 568

Exercises 569

Advanced Exercises 569

Chapter 15: Building a Linux Kernel 571

Prerequisites 572

Downloading the Kernel Source Code 573

Read the Documentation 575

Configuring and Compiling the Linux Kernel 575

Installing the Kernel, Modules, and Associated Files 582

Rebooting 583

GRUB: The Linux Boot Loader 583

dmesg: Displays Kernel Messages 589

Chapter Summary 590

Exercises 590

Advanced Exercises 591

Chapter 16: Administration Tasks 593

Configuring User and Group Accounts 594

Backing Up Files 599

Scheduling Tasks 605

System Reports 608

parted: Reports on and Partitions a Hard Disk 611

Keeping Users Informed 614

Creating Problems 615

Solving Problems 616

MySQL 628

Chapter Summary 635

Exercises 636

Advanced Exercises 636


Chapter 17: Configuring and Monitoring a LAN 637

Setting Up the Hardware 638

Configuring the Systems 641

NetworkManager: Configures Network Connections 642

Setting Up Servers 646

Introduction to Cacti 647

More Information 658

Chapter Summary 659

Exercises 660

Advanced Exercises 660

Part V: Using Clients and Setting Up Servers 661

Chapter 18: OpenSSH: Secure Network Communication 663

Introduction to OpenSSH 664

Running the ssh, scp, and sftp OpenSSH Clients 667

Setting Up an OpenSSH Server (sshd) 676

Troubleshooting 680

Tunneling/Port Forwarding 681

Chapter Summary 684

Exercises 684

Advanced Exercises 685

Chapter 19: FTP: Transferring Files Across a Network 687

Introduction to FTP 688

Running the ftp and sftp FTP Clients 690

Setting Up an FTP Server (vsftpd) 699

Chapter Summary 711

Exercises 712

Advanced Exercises 712

Chapter 20: exim4: Setting Up Mail Servers, Clients, and More 713

Introduction to exim4 714

Setting Up a Mail Server (exim4) 715

Working with exim4 Messages 720

Configuring an exim4 Mail Server 724

SpamAssassin 727

Additional Email Tools 731

Authenticated Relaying 736

Chapter Summary 738

Exercises 738

Advanced Exercises 739

Chapter 21: NIS and LDAP 741

Introduction to NIS 742

Running an NIS Client 744

Setting Up an NIS Server 750

LDAP 758

Setting Up an LDAP Server 760

Other Tools for Working with LDAP 767

Chapter Summary 770

Exercises 771

Advanced Exercises 771

Chapter 22: NFS: Sharing Filesystems 773

Introduction to NFS 774

Running an NFS Client 776

Setting Up an NFS Server 782

automount: Mounts Directory Hierarchies on Demand 792

Chapter Summary 795

Exercises 795

Advanced Exercises 795

Chapter 23: Samba: Linux and Windows File and Printer Sharing 797

Introduction to Samba 798

Setting Up a Samba Server 800

Working with Linux Shares from Windows 814

Working with Windows Shares from Linux 815

Troubleshooting 817

Chapter Summary 819

Exercises 820

Advanced Exercises 820

Chapter 24: DNS/BIND: Tracking Domain Names and Addresses 821

Introduction to DNS 822

Setting Up a DNS Server 834

Setting Up Different Types of DNS Servers 850

Chapter Summary 860

Exercises 860

Advanced Exercises 861

Chapter 25: firestarter, gufw, and iptables: Setting Up a Firewall 863

Introduction to firestarter 864

firestarter: Setting Up and Maintaining a Firewall 866

ufw: The Uncomplicated Firewall 874

gufw: The Graphical Interface to ufw 876

Introduction to iptables 880

Building a Set of Rules Using iptables 885

Copying Rules to and from the Kernel 891

Sharing an Internet Connection Using NAT 892

Chapter Summary 896

Exercises 897

Advanced Exercises 897

Chapter 26: Apache: Setting Up a Web Server 899

Introduction 900

Running a Web Server (Apache) 902

Configuration Directives 909

Configuration Files 932

Advanced Configuration 935

Troubleshooting 940

Modules 941

webalizer: Analyzes Web Traffic 948

MRTG: Monitors Traffic Loads 948

Error Codes 948

Chapter Summary 949

Exercises 950

Advanced Exercises 950

Part VI: Programming Tools 951

Chapter 27: Programming the Bourne Again Shell 953

Control Structures 954

File Descriptors 987

Parameters and Variables 990

Builtin Commands 1002

Expressions 1016

Shell Programs 1024

Chapter Summary 1034

Exercises 1036

Advanced Exercises 1038

Chapter 28: The Perl Scripting Language 1041

Introduction to Perl 1042

Variables 1049

Control Structures 1057

Working with Files 1066

Sort 1069

Subroutines 1071

Regular Expressions 1073

CPAN Modules 1079

Examples 1081

Chapter Summary 1085

Exercises 1085

Advanced Exercises 1086

Part VII: Appendixes 1087

Appendix A: Regular Expressions 1089

Characters 1090

Delimiters 1090

Simple Strings 1090

Special Characters 1090

Rules 1093

Bracketing Expressions 1094

The Replacement String 1094

Extended Regular Expressions 1095

Appendix Summary 1097

Appendix B: Help 1099

Solving a Problem 1100

Finding Linux-Related Information 1101

Specifying a Terminal 1106

Appendix C: Security 1109

Encryption 1110

File Security 1115

Email Security 1115

Network Security 1116

Host Security 1119

Security Resources 1124

Appendix Summary 1127

Appendix D: The Free Software Definition 1129

Glossary 1133

JumpStart Index 1183

File Tree Index 1185

Utility Index 1189

Main Index 1195

Updates

Submit Errata

More Information

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.

Overview


Pearson Education, Inc., 221 River Street, Hoboken, New Jersey 07030, (Pearson) presents this site to provide information about products and services that can be purchased through this site.

This privacy notice provides an overview of our commitment to privacy and describes how we collect, protect, use and share personal information collected through this site. Please note that other Pearson websites and online products and services have their own separate privacy policies.

Collection and Use of Information


To conduct business and deliver products and services, Pearson collects and uses personal information in several ways in connection with this site, including:

Questions and Inquiries

For inquiries and questions, we collect the inquiry or question, together with name, contact details (email address, phone number and mailing address) and any other additional information voluntarily submitted to us through a Contact Us form or an email. We use this information to address the inquiry and respond to the question.

Online Store

For orders and purchases placed through our online store on this site, we collect order details, name, institution name and address (if applicable), email address, phone number, shipping and billing addresses, credit/debit card information, shipping options and any instructions. We use this information to complete transactions, fulfill orders, communicate with individuals placing orders or visiting the online store, and for related purposes.

Surveys

Pearson may offer opportunities to provide feedback or participate in surveys, including surveys evaluating Pearson products, services or sites. Participation is voluntary. Pearson collects information requested in the survey questions and uses the information to evaluate, support, maintain and improve products, services or sites, develop new products and services, conduct educational research and for other purposes specified in the survey.

Contests and Drawings

Occasionally, we may sponsor a contest or drawing. Participation is optional. Pearson collects name, contact information and other information specified on the entry form for the contest or drawing to conduct the contest or drawing. Pearson may collect additional personal information from the winners of a contest or drawing in order to award the prize and for tax reporting purposes, as required by law.

Newsletters

If you have elected to receive email newsletters or promotional mailings and special offers but want to unsubscribe, simply email information@informit.com.

Service Announcements

On rare occasions it is necessary to send out a strictly service related announcement. For instance, if our service is temporarily suspended for maintenance we might send users an email. Generally, users may not opt-out of these communications, though they can deactivate their account information. However, these communications are not promotional in nature.

Customer Service

We communicate with users on a regular basis to provide requested services and in regard to issues relating to their account we reply via email or phone in accordance with the users' wishes when a user submits their information through our Contact Us form.

Other Collection and Use of Information


Application and System Logs

Pearson automatically collects log data to help ensure the delivery, availability and security of this site. Log data may include technical information about how a user or visitor connected to this site, such as browser type, type of computer/device, operating system, internet service provider and IP address. We use this information for support purposes and to monitor the health of the site, identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents and appropriately scale computing resources.

Web Analytics

Pearson may use third party web trend analytical services, including Google Analytics, to collect visitor information, such as IP addresses, browser types, referring pages, pages visited and time spent on a particular site. While these analytical services collect and report information on an anonymous basis, they may use cookies to gather web trend information. The information gathered may enable Pearson (but not the third party web trend services) to link information with application and system log data. Pearson uses this information for system administration and to identify problems, improve service, detect unauthorized access and fraudulent activity, prevent and respond to security incidents, appropriately scale computing resources and otherwise support and deliver this site and its services.

Cookies and Related Technologies

This site uses cookies and similar technologies to personalize content, measure traffic patterns, control security, track use and access of information on this site, and provide interest-based messages and advertising. Users can manage and block the use of cookies through their browser. Disabling or blocking certain cookies may limit the functionality of this site.

Do Not Track

This site currently does not respond to Do Not Track signals.

Security


Pearson uses appropriate physical, administrative and technical security measures to protect personal information from unauthorized access, use and disclosure.

Children


This site is not directed to children under the age of 13.

Marketing


Pearson may send or direct marketing communications to users, provided that

  • Pearson will not use personal information collected or processed as a K-12 school service provider for the purpose of directed or targeted advertising.
  • Such marketing is consistent with applicable law and Pearson's legal obligations.
  • Pearson will not knowingly direct or send marketing communications to an individual who has expressed a preference not to receive marketing.
  • Where required by applicable law, express or implied consent to marketing exists and has not been withdrawn.

Pearson may provide personal information to a third party service provider on a restricted basis to provide marketing solely on behalf of Pearson or an affiliate or customer for whom Pearson is a service provider. Marketing preferences may be changed at any time.

Correcting/Updating Personal Information


If a user's personally identifiable information changes (such as your postal address or email address), we provide a way to correct or update that user's personal data provided to us. This can be done on the Account page. If a user no longer desires our service and desires to delete his or her account, please contact us at customer-service@informit.com and we will process the deletion of a user's account.

Choice/Opt-out


Users can always make an informed choice as to whether they should proceed with certain services offered by InformIT. If you choose to remove yourself from our mailing list(s) simply visit the following page and uncheck any communication you no longer want to receive: www.informit.com/u.aspx.

Sale of Personal Information


Pearson does not rent or sell personal information in exchange for any payment of money.

While Pearson does not sell personal information, as defined in Nevada law, Nevada residents may email a request for no sale of their personal information to NevadaDesignatedRequest@pearson.com.

Supplemental Privacy Statement for California Residents


California residents should read our Supplemental privacy statement for California residents in conjunction with this Privacy Notice. The Supplemental privacy statement for California residents explains Pearson's commitment to comply with California law and applies to personal information of California residents collected in connection with this site and the Services.

Sharing and Disclosure


Pearson may disclose personal information, as follows:

  • As required by law.
  • With the consent of the individual (or their parent, if the individual is a minor)
  • In response to a subpoena, court order or legal process, to the extent permitted or required by law
  • To protect the security and safety of individuals, data, assets and systems, consistent with applicable law
  • In connection the sale, joint venture or other transfer of some or all of its company or assets, subject to the provisions of this Privacy Notice
  • To investigate or address actual or suspected fraud or other illegal activities
  • To exercise its legal rights, including enforcement of the Terms of Use for this site or another contract
  • To affiliated Pearson companies and other companies and organizations who perform work for Pearson and are obligated to protect the privacy of personal information consistent with this Privacy Notice
  • To a school, organization, company or government agency, where Pearson collects or processes the personal information in a school setting or on behalf of such organization, company or government agency.

Links


This web site contains links to other sites. Please be aware that we are not responsible for the privacy practices of such other sites. We encourage our users to be aware when they leave our site and to read the privacy statements of each and every web site that collects Personal Information. This privacy statement applies solely to information collected by this web site.

Requests and Contact


Please contact us about this Privacy Notice or if you have any requests or questions relating to the privacy of your personal information.

Changes to this Privacy Notice


We may revise this Privacy Notice through an updated posting. We will identify the effective date of the revision in the posting. Often, updates are made to provide greater clarity or to comply with changes in regulatory requirements. If the updates involve material changes to the collection, protection, use or disclosure of Personal Information, Pearson will provide notice of the change through a conspicuous notice on this site or other appropriate way. Continued use of the site after the effective date of a posted revision evidences acceptance. Please contact us if you have questions or concerns about the Privacy Notice or any objection to any revisions.

Last Update: November 17, 2020