BN.com Gift Guide

A Practical Guide to Ubuntu Linux

Other Format (Print)
Used and New from Other Sellers
Used and New from Other Sellers
from $1.99
Usually ships in 1-2 business days
(Save 96%)
Other sellers (Other Format)
  • All (11) from $1.99   
  • Used (11) from $1.99   

Overview

The Most Complete, Easy-to-Understand, and Useful Guide to Ubuntu Linux Desktops and Servers

Ubuntu Linux is a state-of-the-art operating system, and you need a book that's just as advanced. Along with being the most comprehensive reference to installing, configuring, and working with Ubuntu, A Practical Guide to Ubuntu Linux® also provides extensive server coverage you won't find in any other Ubuntu book.

Best-selling author Mark Sobell begins by walking you through every feature and technique you need to know, from installing Ubuntu – using the DVD included with the book – to working with GNOME, Samba, exim4, Apache, DNS, NIS, firestarter, and iptables. Sobell's exceptionally clear explanations demystify everything from system security to Windows file/printer sharing.

Sobell presents full chapters on using Ubuntu from the command line and GUI; thorough system administration and security guidance; and up-to-the-minute, step-by-step instructions for setting up networks and every major type of Internet server. Along the way, you'll learn both the "hows" and the "whys" of Ubuntu. Sobell knows every Linux nook and cranny: 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, this book gives you all you need – and more.

Don't settle for yesterday's Unbuntu Linux book…get the ONLY book that meets today's challenges and tomorrow's!

This book delivers…

  • Deeper coverage of the command line and the GNOME GUI, including GUI customization
  • Coverage of important Ubuntu topics, such as sudo and the new Upstart init daemon
  • More practical coverage of file sharing with Samba, NFS, and FTP
  • More detailed, usable coverage of Internet server configuration, including Apache, exim4, and DNS/BIND
  • More state-of-the-art security techniques, including firewall setup using firestarter and iptables, as well as a full chapter on OpenSSH and an appendix on security
  • Deeper coverage of “meat-and-potatoes” system and network administration tasks–from managing users to CUPS printing, configuring LANs to building a kernel
  • A more practical introduction to writing bash shell scripts
  • Complete instructions on how to keep your Linux system up-to-date using aptitude, Synaptic, and the Software Sources window
  • And much more…including a 500+ term glossary, five detailed appendixes, and a comprehensive index to help you find what you need fast

Print book includes DVD! Get the full version of the Ubuntu 7.10 (Gutsy Gibbon) release.

Read More Show Less

Editorial Reviews

From the Publisher

“I have said before on several occasions that Sobell does really good work. Well, [A Practical Guide to Ubuntu Linux®, Third Edition,] holds true to my words. This is a big book with some 1250+ pages in it absolutely filled to the brim with useful information. The review on the front cover mentions that the book is ‘comprehensive’ and that just might be understating it a little. This book has practically anything you might want to know about Ubuntu, and references a lot of really helpful general Linux and userland program information and it’s put together in a very straight forward and understandable way. Having the word ‘Practical’ in the name is also a really good fit as the book offers great walk-throughs on things people will want to do with their Ubuntu install from beginner things like configuring a printer all the way up to things like some Perl programming and running your own Web server. All in all, this book is not only worth a look, but it is a keeper. It’s a good read and great technical reference.”

Lincoln C. Fessenden, Linux Guy / I.T. Manager

“The third updated edition of A Practical Guide to Ubuntu Linux® offers a fine reference perfect for any Ubuntu Linux computer collection, packing in hundreds of practical applications for Ubuntu with keys to security, Perl scripting, common administration tasks, and more. From keeping Ubuntu systems current to handling configuration issues, this is a solid reference to the latest Ubuntu applications and challenges.”

Jim Cox, Midwest Book Review

“This is an excellent text and I am using it as of this term as the textbook for the class in Linux that I am teaching at the local Community College. The first book on UNIX that I used twenty-five years ago was written by Sobell. He hasn’t lost his touch.”

James J. Sherin, Part-Time Faculty, Westmoreland County Community College

“When I first started working with Linux just a short 10 years or so ago, it was a little more difficult than now to get going. . . . Now, someone new to the community has a vast array of resources available on the web, or if they are inclined to begin with Ubuntu, they can literally find almost every single thing they will need in the single volume of Mark Sobell’s A Practical Guide to Ubuntu Linux®.

“Overall, I think it’s a great, comprehensive Ubuntu book that’ll be a valuable resource for people of all technical levels.”

John Dong, Ubuntu Forum Council Member, Backports Team Leader

“I would so love to be able to use this book to teach a class about not just Ubuntu or Linux but about computers in general. It is thorough and well written with good illustrations that explain important concepts for computer usage.”

Nathan Eckenrode, New York Local Community Team

“Ubuntu is gaining popularity at the rate alcohol did during Prohibition, and it’s great to see a well-known author write a book on the latest and greatest version. Not only does it contain Ubuntu-specific information, but it also touches on general computer-related topics, which will help the average computer user to better understand what’s going on in the background. Great work, Mark!”

Daniel R. Arfsten, Pro/ENGINEER Drafter/Designer

“This is well-written, clear, comprehensive information for the Linux user of any type, whether trying Ubuntu on for the first time and wanting to know a little about it, or using the book as a very good reference when doing something more complicated like setting up a server. This book’s value goes well beyond its purchase price and it’ll make a great addition to the Linux section of your bookshelf.”

Linc Fessenden, Host of The LinuxLink TechShow, tllts.org

“Overall, A Practical Guide to Ubuntu Linux® by Mark G. Sobell provides all of the information a beginner to intermediate user of Linux would need to be productive. The inclusion of the Live DVD of Ubuntu makes it easy for the user to test-drive Linux without affecting his installed OS. I have no doubts that you will consider this book money well spent.”

Ray Lodato, Slashdot contributor, www.slashdot.org

“I’m sure this sounds a bit like hyperbole. Everything a person would need to know? Obviously not everything, but this book, weighing in at just under 1200 pages, covers so much so thoroughly that there won’t be much left out. From install to admin, networking, security, shell scripting, package management, and a host of other topics, it is all there. GUI and command line tools are covered. There is not really any wasted space or fluff, just a huge amount of information. There are screen shots when appropriate but they do not take up an inordinate amount of space. This book is information-dense.”

JR Peck, Editor, GeekBook.org

“Sobell tackles a massive subject, the vast details of a Linux operating system, and manages to keep the material clear, interesting and engaging. . . . If you want to know how to get the most out of your Red Hat, Fedora, or CentOS system, then this is one of the best texts available, in my opinion.”

Jesse Smith, Feature Writer for DistroWatch

“I had the chance to use your UNIX books when I when was in college years ago at Cal Poly, San Luis Obispo, CA. I have to say that your books are among the best! They’re quality books that teach the theoretical aspects and applications of the operating system.”

Benton Chan, IS Engineer

“I currently own one of your books, A Practical Guide to Linux®. I believe this book is one of the most comprehensive and, as the title says, practical guides to Linux I have ever read. I consider myself a novice and I come back to this book over and over again.”

Albert J. Nguyen

“The book has more than lived up to my expectations from the many reviews I read, even though it targets FC2. I have found something very rare with your book: It doesn’t read like the standard technical text, it reads more like a story. It’s a pleasure to read and hard to put down. Did I say that?! :-)”

David Hopkins, Business Process Architect

“Thanks for your work and for the book you wrote. There are really few books that can help people to become more efficient administrators of different workstations. We hope (in Russia) that you will continue bringing us a new level of understanding of Linux/UNIX systems.”

Anton Petukhov

“Mark Sobell has written a book as approachable as it is authoritative.”

Jeffrey Bianchine, Advocate, Author, Journalist

“Since I’m in an educational environment, I found the content of Sobell’s book to be right on target and very helpful for anyone managing Linux in the enterprise. His style of writing is very clear. He builds up to the chapter exercises, which I find to be relevant to real-world scenarios a user or admin would encounter. An IT/IS student would find this book a valuable complement to their education. The vast amount of information is extremely well balanced and Sobell manages to present the content without complicated asides and meandering prose. This is a ‘must have’ for anyone managing Linux systems in a networked environment or anyone running a Linux server. I would also highly recommend it to an experienced computer user who is moving to the Linux platform.”

Mary Norbury, IT Director, Barbara Davis Center, University of Colorado at Denver, from a review posted on slashdot.org

“Excellent reference book, well suited for the sysadmin of a Linux cluster, or the owner of a PC contemplating installing a recent stable Linux. Don’t be put off by the daunting heft of the book. Sobell has striven to be as inclusive as possible, in trying to anticipate your system administration needs.”

Wes Boudville, Inventor

“The JumpStart sections really offer a quick way to get things up and running, allowing you to dig into the details of the book later.”

Scott Mann, Aztek Networks

A Practical Guide to Red Hat® Linux® is a brilliant book. Thank you Mark Sobell.”

C. Pozrikidis, University of California at San Diego

“Overall I found this book to be quite excellent, and it has earned a spot on the very front of my bookshelf. It covers the real ‘guts’ of Linux—the command line and its utilities—and does so very well. Its strongest points are the outstanding use of examples, and the Command Reference section. Highly recommended for Linux users of all skill levels. Well done to Mark Sobell and Prentice Hall for this outstanding book!”

Dan Clough, Electronics Engineer and Slackware Linux User

“This book presents the best overview of the Linux operating system that I have found. . . . [It] should be very helpful and understandable no matter what the reader’s background: traditional UNIX user, new Linux devotee, or even Windows user. Each topic is presented in a clear, complete fashion and very few assumptions are made about what the reader knows. . . . The book is extremely useful as a reference, as it contains a 70-page glossary of terms and is very well indexed. It is organized in such a way that the reader can focus on simple tasks without having to wade through more advanced topics until they are ready.”

Cam Marshall, Marshall Information Service LLC, Member of Front Range UNIX, Users Group [FRUUG], Boulder, Colorado

“Conclusively, this is THE book to get if you are a new Linux user and you just got into RH/Fedora world. There’s no other book that discusses so many different topics and in such depth.”

Eugenia Loli-Queru, Editor in Chief, OSNews.com

“This book is a very useful tool for anyone who wants to ‘look under the hood’ so to speak, and really start putting the power of Linux to work. What I find particularly frustrating about man pages is that they never include examples. Sobell, on the other hand, outlines very clearly what the command does and then gives several common, easy-to-understand examples that make it a breeze to start shell programming on one’s own. As with Sobell’s other works, this is simple, straight-forward, and easy to read. It’s a great book and will stay on the shelf at easy arm’s reach for a long time.”

Ray Bartlett, Travel Writer

“Totally unlike most Linux books, this book avoids discussing everything via GUI and jumps right into making the power of the command line your friend.”

Bjorn Tipling, Software Engineer, ask.com

“This book is the best distro-agnostic, foundational Linux reference I’ve ever seen, out of dozens of Linux-related books I’ve read. Finding this book was a real stroke of luck. If you want to really understand how to get things done at the command line, where the power and flexibility of free UNIX-like OSes really live, this book is among the best tools you’ll find toward that end.”

Chad Perrin, Writer, TechRepublic

“Thank you for writing a book to help me get away from Windows XP and to never touch Windows Vista. The book is great; I am learning a lot of new concepts and commands. Linux is definitely getting easier to use.”

James Moritz

“I am so impressed by how Mark Sobell can approach a complex topic in such an understandable manner. His command examples are especially useful in providing a novice (or even an advanced) administrator with a cookbook on how to accomplish real-world tasks on Linux. He is truly an inspired technical writer!”

George Vish II, Senior Education Consultant, Hewlett-Packard Company

“I read a lot of Linux technical information every day, but I’m rarely impressed by tech books. I usually prefer online information sources instead. Mark Sobell’s books are a notable exception. They’re clearly written, technically accurate, comprehensive, and actually enjoyable to read.”

Matthew Miller, Senior Systems Analyst/Administrator, BU Linux Project, Boston University Office of Information Technology

“The author has done a very good job at clarifying such a detail-oriented operating system. I have extensive Unix and Windows experience and this text does an excellent job at bridging the gaps between Linux, Windows, and Unix. I highly recommend this book to both ‘newbs’ and experienced users. Great job!”

Mark Polczynski, Information Technology Consultant

“I have been wanting to make the jump to Linux but did not have the guts to do so—until I saw your familiarly titled A Practical Guide to Red Hat® Linux® at the bookstore. I picked up a copy and am eagerly looking forward to regaining my freedom.”

Carmine Stoffo, Machine and Process Designer to the pharmaceutical industry

“I am currently reading A Practical Guide to Red Hat® Linux® and am finally understanding the true power of the command line. I am new to Linux and your book is a treasure.”

Juan Gonzalez

Read More Show Less

Product Details

  • ISBN-13: 9780132360395
  • Publisher: Prentice Hall
  • Publication date: 1/1/2008
  • Edition description: Book w/ DVD
  • Pages: 1141
  • Product dimensions: 7.40 (w) x 9.25 (h) x 2.20 (d)

Meet the Author

Mark G. Sobell is President of Sobell Associates Inc., a consulting firm that specializes in UNIX and Linux training, support, and custom software development. He has more than thirty years of experience working with UNIX and Linux systems and is the author of many best-selling books, including A Practical Guide to Red Hat® Linux®, Seventh Edition, and A Practical Guide to Linux® Commands, Editors, and Shell Programming, Third Edition, both from Prentice Hall.
Read More Show Less

Read an Excerpt

The Book

Whether you are an end user, a system administrator, or a little of both, this book explains with step-by-step examples how to get the most out of an Ubuntu Linux system. In 27 chapters, this book takes you from installing an Ubuntu system through understanding its inner workings to setting up secure servers that run on the system.

The Audience

This book is designed for a wide range of readers. It does not require you to have programming experience, although having some experience using a general-purpose computer, such as a Windows, Macintosh, UNIX, or another Linux system is certainly helpful. This book is appropriate for

  • Students who are taking a class in which they use Linux
  • Home users who want to set up and/or run Linux
  • Professionals who use Linux at work
  • System administrators who need an understanding of Linux and the tools that are available to them
  • Computer science students who are studying the Linux operating system
  • Programmers who need to understand the Linux programming environment
  • Technical executives who want to get a grounding in Linux
Benefits

A Practical Guide to Ubuntu Linux® gives you a broad understanding of many facets of Linux, from installing Ubuntu Linux through using and customizing it. No matter what your background, this book provides the knowledge you need to get on with your work. You will come away from this book understanding how to use Linux, and this book will remain a valuable reference for years to come.

Overlap

If you read A Practical Guide to Linux® Commands, Editors, and Shell Programming, you will notice some overlap between that book and the one you are reading now. The first chapter, the chapters on the utilities and the filesystem, and the appendix on regular expressions are very similar in the two books, as are the three chapters on the Bourne Again Shell (bash). Chapters that appear in this book but do not appear in A Practical Guide to Linux® Commands, Editors, and Shell Programming include Chapters 2 and 3 (installation), Chapters 4 and 8 (Ubuntu Linux and the GUI), Chapter 10 (networking), all of the chapters in Part IV (system administration) and Part V (servers), and Appendix C (security).

Differences

While this book explains how to use Linux from a graphical interface and from the command line (a textual interface), A Practical Guide to Linux® Commands, Editors, and Shell Programming works exclusively with the command line. It includes full chapters on the

vi and

emacs editors, as well as chapters on the

gawk pattern processing language and the

sed stream editor. In addition, it has a command reference section that provides extensive examples of the use of more than 80 of the most important Linux utilities. You can use these utilities to solve problems without resorting to programming in C.

This Book Includes Ubuntu Gutsy Gibbon (7.10) on a Live/Install DVD

This book includes a live/install DVD that holds the Gutsy Gibbon (7.10) release of Ubuntu Linux. You can use this DVD to run a live Ubuntu session that displays the GNOME desktop without making any changes to your computer: Boot from the DVD, run an Ubuntu live session, and log off. Your system remains untouched: When you reboot, it is exactly as it was before you ran the Ubuntu live session. Alternatively, you can install Ubuntu from the live session. Chapter 2 helps you get ready to install Ubuntu. Chapter 3 provides step-by-step instructions for installing Ubuntu from this DVD. This book guides you through learning about, using, and administrating an Ubuntu Linux session.

DVD Features

The included DVD incorporates all the features of the live/install Desktop CD as well as the Alternate and Server CDs. It also includes all software packages supported by Ubuntu. You can use it to perform a graphical or textual (command line) installation of either a graphical or a textual Ubuntu system. If you do not have an Internet connection, you can use the DVD as a software repository and install any supported software packages from it.

Features of This Book

This book is designed and organized so you can get the most out of it in the shortest amount of time. You do not have to read this book straight through in page order. Instead, once you are comfortable using Linux, you can use this book as a reference: Look up a topic of interest in the table of contents or index and read about it. Or think of the book as a catalog of Linux topics: Flip through the pages until a topic catches your eye. The book includes many pointers to Web sites where you can get additional information: Consider the Internet an extension of this book.

A Practical Guide to Ubuntu Linux® is structured with the following features:

  • Optional sections enable you to read the book at different levels, returning to more difficult material when you are ready to delve into it.
  • Caution boxes highlight procedures that can easily go wrong, giving you guidance before you run into trouble.
  • Tip boxes highlight ways you can save time by doing something differently or situations when it may be useful or just interesting to have additional information.
  • Security boxes point out places where you can make a system more secure. The security appendix presents a quick background in system security issues.
  • Concepts are illustrated by practical examples throughout the book.
  • Chapter summaries review the important points covered in each chapter.
  • Review exercises are included at the end of each chapter for readers who want to further hone their skills. Answers to even-numbered exercises are available at www.sobell.com.
  • The glossary defines more than 500 common terms.
  • The chapters that cover servers include JumpStart sections that get you off to a quick start using clients and setting up servers. Once a server is up and running, you can test and modify its configuration as explained in the rest of the chapter.
  • This book provides resources for finding software on the Internet. It also explains how to download and install software using Synaptic,

    aptitude, the GNOME Add/Remove Applications window, and BitTorrent. It details controlling automatic updates using the Update Notifier and the Update Manager window.

  • This book describes in detail many important GNU tools, including the GNOME desktop, the Nautilus File Browser, the

    parted and

    gparted partition editors, the

    gzip compression utility, and many command line utilities that come from the GNU project.

  • Pointers throughout the text provide help in obtaining online documentation from many sources, including the local system, the Ubuntu Web site, and other locations on the Internet.
  • Many useful URLs point to Web sites where you can obtain software, security programs and information, and more.
  • The comprehensive index helps you locate topics quickly and easily.
Key Topics Covered in This Book

This book contains a lot of information. This section distills and summarizes its contents. In addition, “Details” (starting on page xli) describes what each chapter covers. Finally, the table of contents provides more detail.

Installation

The book:

  • Describes how to download Ubuntu Linux ISO images from the Internet and burn the Ubuntu live/install Desktop CD, the DVD, or the Ubuntu Alternate or Server installation CD.
  • Helps you plan the layout of the system’s hard disk. It includes a discussion of partitions, partition tables, and mount points, and assists you in using the

    ubiquity or

    gparted graphical partitioner or the Ubuntu textual partitioner to partition the hard disk.

  • Explains how to set up a dual-boot system so you can install Ubuntu Linux on a Windows system and boot either operating system.
  • Describes in detail how to install Ubuntu Linux from a live/install Desktop CD or the live/install DVD using the

    ubiquity graphical installer. It also explains how to use the textual installer found on the Alternate CD, the Server CD, and the DVD. The graphical installer is fast and easy to use. The textual installer gives you more options and works on systems with less RAM (system memory).

  • Covers testing an Ubuntu CD/DVD for defects, setting boot command line parameters (boot options), and creating a RAID array.
  • Covers the details of installing and customizing the X.org version of the X Window System either graphically using the Screen and Graphics Preferences window or manually with a text editor.
Working with Ubuntu Linux

The book:

  • Introduces the GNOME desktop (GUI) and explains how to use desktop tools, including the Top and Bottom panels, panel objects, the Main menu, object context menus, the Workspace Switcher, the Nautilus File Browser, and the GNOME Terminal emulator.
  • Explains how to use the Appearance Preferences window to add and modify themes to customize your desktop to please your senses and help you work more efficiently.
  • Details how to set up 3D desktop visual effects that take advantage of Compiz Fusion.
  • Covers the Bourne Again Shell (

    bash) in three chapters, including an entire chapter on shell programming that includes many sample shell scripts. These chapters provide clear explanations and extensive examples of how

    bash works both from the command line in day-to-day work and as a programming language to write shell scripts.

  • Explains the textual (command line) interface and introduces more than 30 command line utilities.
  • Presents a tutorial on the

    vim textual editor.

  • Covers types of networks, network protocols, and network utilities.
  • Explains hostnames, IP addresses, and subnets, and explores how to use

    host and

    dig to look up domain names and IP addresses on the Internet.

  • Covers distributed computing and the client/server model.
  • Explains how to use ACLs (Access Control Lists) to fine-tune user access permissions.
System Administration

The book:

  • Explains how to use the Ubuntu graphical and textual (command line) tools to configure the display, DNS, NFS, Samba, Apache, a firewall, a network interface, and more. You can also use these tools to add users and manage local and remote printers.
  • Goes into detail about using

    sudo to allow specific users to work with root privileges (become Superuser) and customizing the way

    sudo works by editing the sudoers configuration file. It also explains how you can unlock the root account if necessary.

  • Describes how to use the following tools to download and install software to keep a system up-to-date and to install new software:
    • The Software Sources window controls which Ubuntu and third-party software repositories Ubuntu downloads software packages from and whether Ubuntu downloads updates automatically. You can also use this window to cause Ubuntu to download and install security updates automatically.
    • If you do not have an Internet connection, you can use the Software Sources window to set up the DVD included with this book as a software repository. You can then install any software packages that Ubuntu supports from this repository.
    • Based on how you set up updates in the Software Sources window, the Update Notifier pops up on the desktop to let you know when software updates are available. Click the Update Notifier to open the Update Manager window, from which you can download and install updates.
    • The Add/Remove Applications window provides an easy way to select, download, and install a wide range of software packages.
    • Synaptic allows you to search for, install, and remove software packages. It gives you more ways to search for packages than does the Add/Remove Applications window.
    • APT downloads and installs software packages from the Internet (or the included DVD), keeping a system up-to-date and resolving dependencies as it processes the packages. You can use APT from a graphical interface (Synaptic) or from several textual interfaces (e.g.,

      aptitude and

      apt-get).

    • BitTorrent is a good choice for distributing large amounts of data such as the Ubuntu installation DVD and CDs. The more people who use BitTorrent to download a file, the faster it works.
  • Covers graphical system administration tools, including the many tools available from the GNOME Main menu.
  • Explains system operation, including the boot process, init scripts, recovery (single-user) and multiuser modes, and steps to take if the system crashes.
  • Describes how to use and program the new Upstart init daemon, which replaces the System V init daemon.
  • Describes files, directories, and filesystems, including types of files and filesystems, fstab (the filesystem table), and automatically mounted filesystems, and explains how to fine-tune and check the integrity of filesystems.
  • Covers backup utilities, including

    tar,

    cpio,

    dump, and

    restore.

  • Describes compression/archive utilities, including

    gzip,

    bzip2,

    compress, and

    zip.

  • Explains how to customize and build a Linux kernel.
Security

The book:

  • Helps you manage basic system security issues using

    ssh (secure shell), vsftpd (secure FTP server), Apache (Web server),

    iptables (firewalls), and more.

  • Covers using

    firestarter to share an Internet connection over a LAN, run a DHCP server, and set up a basic firewall to protect the system.

  • Provides instructions on using

    iptables to share an Internet connection over a LAN and to build advanced firewalls.

  • Describes how to set up a chroot jail to help protect a server system.
  • Explains how to use TCP wrappers to control who can access a server.
Clients and Servers

The book:

  • Explains how to set up and use the most popular Linux servers, providing a chapter on each: Apache, Samba, OpenSSH, exim4, DNS, NFS, FTP,

    firestarter and

    iptables, and NIS (all of which are supported by Ubuntu Linux).

  • Describes how to set up a CUPS printer server.
  • Describes how to set up and use a DHCP server either by itself or from

    firestarter.

Programming

The book:

  • Provides a full chapter covering shell programming using bash, including many examples.
Details

Chapter 1 presents a brief history of Linux and explains some of the features that make it a cutting-edge operating system. The “Conventions Used in This Book” (page 17) section details the typefaces and terminology this book uses.

Part I

Part I, “Installing Ubuntu Linux,” discusses how to install Ubuntu Linux. Chapter 2 presents an overview of the process of installing Ubuntu Linux, including hardware requirements, downloading and burning a CD or DVD, and planning the layout of the hard disk. Chapter 3 is a step-by-step guide to installing Ubuntu Linux from a CD or DVD, using the graphical or textual installer. It also shows how to set up the X Window System and customize your desktop (GUI).

Part II

Part II, “Getting Started with Ubuntu Linux,” familiarizes you with Ubuntu Linux, covering logging in, the GUI, utilities, the filesystem, and the shell. Chapter 4 introduces desktop features, including the Top and Bottom panels and the Main menu; explains how to use the Nautilus File Browser to manage files, run programs, and connect to FTP and HTTP servers; covers finding documentation, dealing with login problems, and using the window manager; and presents some suggestions on where to find documentation, including manuals, tutorials, software notes, and HOWTOs. Chapter 5 introduces the shell command line interface, describes more than 30 useful utilities, and presents a tutorial on the

vim text editor. Chapter 6 discusses the Linux hierarchical filesystem, covering files, filenames, pathnames, working with directories, access permissions, and hard and symbolic links. Chapter 7 introduces the Bourne Again Shell (

bash) and discusses command line arguments and options, redirecting input to and output from commands, running programs in the background, and using the shell to generate and expand filenames.

TIP: Experienced users may want to skim Part IIIf you have used a UNIX or Linux system before, you may want to skim or skip some or all of the chapters in Part II. Part I has two sections that all readers should take a look at: “Conventions Used in This Book” (page 17), which explains the typographic and layout conventions used in this book, and “Where to Find Documentation” (page 124), which points out both local and remote sources of Linux and Ubuntu documentation.Part III

Part III, “Digging into Ubuntu Linux,” goes into more detail about working with the system. Chapter 8 discusses the GUI (desktop) and includes a section on how to run a graphical program on a remote system and have the display appear locally. The section on GNOME describes several GNOME utilities, including the new Deskbar applet, and goes into more depth about the Nautilus File Browser. Chapter 9 extends the

bash coverage from Chapter 7, explaining how to redirect error output, avoid overwriting files, and work with job control, processes, startup files, important shell builtin commands, parameters, shell variables, and aliases. Chapter 10 explains networks, network security, and the Internet and discusses types of networks, subnets, protocols, addresses, hostnames, and various network utilities. The section on distributed computing describes the client/server model and some of the servers you can use on a network. Chapter 11 goes into greater depth about shell programming using

bash, with the discussion enhanced by extensive examples. Details of setting up and using clients and servers are reserved until Part V.

Part IV

Part IV covers system administration. Chapter 12 discusses core concepts such as the use of

sudo, working with root privileges, system operation,

chroot jails, TCP wrappers, general information about how to set up a server, DHCP, and PAM. Chapter 13 explains the Linux filesystem, going into detail about types of files, including special and device files; the use of

fsck to verify the integrity of and repair filesystems; and the use of

tune2fs to change filesystem parameters. Chapter 14 explains how to keep a system up-to-date by downloading software from the Internet and installing it, including examples of using APT programs such as

aptitude,

apt-get, and

apt-cache. It also covers the dpkg software packaging system and the use of some

dpkg utilities. Finally, it explains how to use BitTorrent from the command line to download files. Chapter 15 explains how to set up the CUPS printing system so you can print on both local and remote systems. Chapter 16 details customizing and building a Linux kernel. Chapter 17 covers additional administration tasks, including setting up user accounts, backing up files, scheduling automated tasks, tracking disk usage, and solving general problems. Chapter 18 explains how to set up a local area network (LAN), including both hardware (including wireless) and software configuration.

Part V

Part V goes into detail about setting up and running servers and connecting to them with clients. Where appropriate, these chapters include JumpStart sections that get you off to a quick start in using clients and setting up servers. The chapters in Part V cover the following clients/servers:

  • OpenSSH: Set up an OpenSSH server and use

    ssh,

    scp, and

    sftp to communicate securely over the Internet.

  • FTP: Set up a vsftpd secure FTP server and use any of several FTP clients to exchange files with the server.
  • Mail: Configure exim4 and use Webmail, POP3, or IMAP to retrieve email; use SpamAssassin to combat spam.
  • NIS: Set up NIS to facilitate system administration of a LAN.
  • NFS: Share filesystems between systems on a network.
  • Samba: Share filesystems and printers between Windows and Linux systems.
  • DNS/BIND: Set up a domain nameserver to let other systems on the Internet know the names and IP addresses of local systems they may need to contact.
  • firestarter and

    iptables: Share a single Internet connection between systems on a LAN, run a DHCP server, and set up a firewall to protect local systems.

  • Apache: Set up an HTTP server that serves Web pages that browsers can display. This chapter includes many suggestions for increasing Apache security.
Part VI

Part VI includes appendixes on regular expressions, helpful Web sites, system security, and free software. This part also includes an extensive glossary with more than 500 entries plus a comprehensive index.

Supplements

The author’s home page (www.sobell.com) contains downloadable listings of the longer programs from this book as well as pointers to many interesting and useful Linux sites on the World Wide Web, a list of corrections to the book, answers to even-numbered exercises, and a solicitation for corrections, comments, and suggestions.

Read More Show Less

Table of Contents

Preface xliii

Chapter 1: Welcome to Linux 1

The History of UNIX and GNU–Linux 2

Overview of Linux 11

Choosing an Operating System 19

Chapter Summary 21

Exercises 21

Part I: Installing Ubuntu Linux 23

Chapter 2: Installation Overview 25

Conventions Used in This Book 26

More Information 29

Planning the Installation 30

Ubuntu Releases, Editions, and Derivatives 35

Setting Up the Hard Disk 38

Downloading an Image File and Burning/Writing the Installation Medium 47

Chapter Summary 53

Exercises 54

Advanced Exercises 54

Chapter 3: Step-by-Step Installation 55

Booting Ubuntu and Running a Live Session 56

Basic Installation 59

Advanced Installation 71

Chapter Summary 93

Exercises 94

Advanced Exercises 94

Part II: Using Ubuntu Linux 95

Chapter 4: Introduction to Ubuntu 97

Curbing Your Power: root Privileges/sudo 98

Logging In on the System 99

Working with the Unity Desktop 104

Using the Nautilus File Manager 108

The System Settings Window 113

Getting Help 118

Installing, Removing, and Updating Software Packages 121

Working from the Command Line 125

More About Logging In and Passwords 142

Chapter Summary 145

Exercises 146

Advanced Exercises 147

Chapter 5: The Shell 149

Special Characters 150

Ordinary Files and Directory Files 151

The Command Line 152

Standard Input and Standard Output 159

Running a Command in the Background 171

Filename Generation/Pathname Expansion 173

Builtins 178

Chapter Summary 178

Exercises 179

Advanced Exercises 181

Chapter 6: The Linux Filesystem 183

The Hierarchical Filesystem 184

Ordinary Files and Directory Files 185

Pathnames 189

Working with Directories 191

Access Permissions 199

ACLs: Access Control Lists 206

Links 211

Chapter Summary 217

Exercises 219

Advanced Exercises 220

Chapter 7: The Linux Utilities 223

Basic Utilities 224

Working with Files 232

Compressing and Archiving Files 253

Displaying User and System Information 260

Miscellaneous Utilities 263

Editing Files 270

Chapter Summary 280

Exercises 282

Advanced Exercises 283

Chapter 8: Networking and the Internet 285

Introduction to Networking 286

Types of Networks and How They Work 288

Communicate over a Network 307

Network Utilities 308

Distributed Computing 315

WWW: World Wide Web 325

Chapter Summary 327

Exercises 328

Advanced Exercises 328

Part III: System Administration 331

Chapter 9: The Bourne Again Shell (bash) 333

Background 334

Startup Files 335

Commands That Are Symbols 339

Redirecting Standard Error 339

Writing and Executing a Shell Script 342

Control Operators: Separate and Group Commands 347

Job Control 352

Manipulating the Directory Stack 355

Parameters and Variables 358

Special Characters 372

Locale 374

Time 377

Processes 379

History 382

Aliases 398

Functions 402

Controlling bash: Features and Options 404

Processing the Command Line 409

Chapter Summary 420

Exercises 421

Advanced Exercises 423

Chapter 10: System Administration: Core Concepts 425

The Upstart Event-Based init Daemon 427

System Operation 437

GRUB: The Linux Boot Loader 444

Recovery (Single-User) Mode 450

Textual System Administration Utilities 454

Setting Up a Server 460

DHCP: Configures Network Interfaces 464

nsswitch.conf: Which Service to Look at First 468

X Window System 471

Getting Help 476

Chapter Summary 477

Exercises 478

Advanced Exercises 478

Chapter 11: Files, Directories, and Filesystems 479

Important Files and Directories 480

File Types 493

Filesystems 497

The XFS Filesystem 506

Chapter Summary 507

Exercises 508

Advanced Exercises 508

Chapter 12: Finding, Downloading, and Installing Software 509

Introduction 510

JumpStart: Installing and Removing Software Packages Using apt-get 512

Finding the Package That Holds an Application or File You Need 514

APT: Keeps the System Up to Date 515

dpkg: The Debian Package Management System 524

BitTorrent 531

Installing Non-dpkg Software 533

Keeping Software Up to Date 535

curl: Downloads Files Noninteractively 536

Chapter Summary 536

Exercises 537

Advanced Exercises 537

Chapter 13: Printing with CUPS 539

Introduction 540

The System Configures a Local Printer Automatically 542

JumpStart I: Configuring a Printer Using system-config-printer 542

JumpStart II: Setting Up a Local or Remote Printer 544

Working with the CUPS Web Interface 548

Configuring Printers 549

Traditional UNIX Printing 557

Printing from Windows 558

Printing to Windows 560

Chapter Summary 560

Exercises 561

Advanced Exercises 561

Chapter 14: Administration Tasks 563

Configuring User and Group Accounts 564

Backing Up Files 568

Scheduling Tasks 573

System Reports 576

Maintaining the System 578

Chapter Summary 593

Exercises 594

Advanced Exercises 594

Chapter 15: System Security 595

Running Commands with root Privileges 596

Passwords 615

Securing a Server 616

PAM 621

Cryptography 626

GPG (GNU Privacy Guard) 641

Security Resources 656

Chapter Summary 659

Exercises 660

Advanced Exercises 660

Chapter 16: Configuring and Monitoring a LAN 661

More Information 662

Setting Up the Hardware 662

Configuring the Systems 666

NetworkManager: Configures Network Connections 667

Setting Up Servers 672

Introduction to Cacti 674

Chapter Summary 683

Exercises 684

Advanced Exercises 685

Chapter 17: Setting Up Virtual Machines Locally and in the Cloud 687

VMs (Virtual Machines) 688

gnome-boxes 690

QEMU/KVM 691

VMware Player: Installing Ubuntu on VMware 698

Cloud Computing 703

Chapter Summary 708

Exercises 709

Advanced Exercises 709

Part IV: Using Clients and Setting Up Servers 711

Chapter 18: The OpenSSH Secure CommunicationUtilities 713

Introduction to OpenSSH 714

Running the ssh, scp, and sftp OpenSSH Clients 716

Setting Up an OpenSSH Server (sshd) 727

Troubleshooting 735

Tunneling/Port Forwarding 735

Chapter Summary 738

Exercises 739

Advanced Exercises 739

Chapter 19: The rsync Secure Copy Utility 741

Syntax 742

Arguments 742

Options 742

Examples 745

Chapter Summary 752

Exercises 752

Chapter 20: FTP: Transferring Files Across a Network 753

Introduction to FTP 754

Running the ftp and sftp FTP Clients 756

Setting Up an FTP Server (vsftpd) 764

Chapter Summary 777

Exercises 778

Advanced Exercises 778

Chapter 21: postfix: Setting Up Mail Servers, Clients, and More 779

Overview 780

Introduction to postfix 781

Setting Up a postfix Mail Server 784

JumpStart: Configuring postfix to Use Gmail as a Smarthost 787

Configuring postfix 789

SpamAssassin 797

Additional Email Tools 801

dovecot: Setting Up an IMAP or POP3 Mail Server 807

Chapter Summary 810

Exercises 811

Advanced Exercises 812

Chapter 22: NIS and LDAP 813

Introduction to NIS 814

Running an NIS Client 817

Setting Up an NIS Server 822

Introduction to LDAP 830

Setting Up an LDAP Server 833

Chapter Summary 839

Exercises 840

Advanced Exercises 840

Chapter 23: NFS: Sharing Directory Hierarchies 843

Introduction to NFS 845

Running an NFS Client 847

Setting Up an NFS Server 853

automount: Mounts Directory Hierarchies on Demand 863

Chapter Summary 866

Exercises 867

Advanced Exercises 867

Chapter 24: Samba: Linux and Windows File and Printer Sharing 869

Introduction to Samba 870

Running Samba Clients 874

Setting Up a Samba Server 878

Troubleshooting 887

Chapter Summary 889

Exercises 890

Advanced Exercises 890

Chapter 25: DNS/BIND: Tracking Domain Names and Addresses 891

Introduction to DNS 892

Setting Up a DNS Server 904

Configuring a DNS Server 907

Chapter Summary 920

Exercises 921

Advanced Exercises 921

Chapter 26: ufw, gufw, and iptables: Setting Up a Firewall 923

ufw: The Uncomplicated Firewall 924

gufw: The Graphical Interface to ufw 927

Introduction to iptables 932

Building a Set of Rules Using iptables 937

Copying Rules to and from the Kernel 944

Sharing an Internet Connection Using NAT 945

Chapter Summary 948

Exercises 949

Advanced Exercises 949

Chapter 27: Apache (apache2): Setting Up a Web Server 951

Introduction 952

Running an Apache Web Server 954

Configuration Directives 961

Advanced Configuration 984

Troubleshooting 990

Modules 991

webalizer: Analyzes Web Traffic 997

Error Codes 997

Chapter Summary 998

Exercises 998

Advanced Exercises 999

Part V: Programming Tools 1001

Chapter 28: Programming the Bourne Again Shell (bash) 1003

Control Structures 1004

File Descriptors 1038

Parameters 1044

Variables 1053

Builtin Commands 1062

Expressions 1078

Implicit Command-Line Continuation 1085

Shell Programs 1086

Chapter Summary 1096

Exercises 1098

Advanced Exercises 1100

Chapter 29: The Python Programming Language 1103

Introduction 1104

Scalar Variables, Lists, and Dictionaries 1108

Control Structures 1114

Reading from and Writing to Files 1119

Regular Expressions 1123

Defining a Function 1124

Using Libraries 1125

Lambda Functions 1129

List Comprehensions 1130

Chapter Summary 1131

Exercises 1132

Advanced Exercises 1132

Chapter 30: The MariaDB SQL Database Management System 1135

History 1136

Notes 1136

Installing a MariaDB Server 1140

Setting Up MariaDB 1141

Examples 1145

Chapter Summary 1157

Exercises 1157

Advanced Exercises 1157

Part VI: Appendixes 1159

Appendix A: Regular Expressions 1161

Characters 1162

Delimiters 1162

Simple Strings 1162

Special Characters 1162

Rules 1165

Bracketing Expressions 1166

The Replacement String 1166

Extended Regular Expressions 1167

Appendix Summary 1169

Appendix B: Help 1171

Solving a Problem 1172

Finding Linux-Related Information 1173

Specifying a Terminal 1175

Appendix C: Keeping the System Up to Date Using yum 1177

Installing and Removing Software Packages Using yum 1178

Working with yum 1179

Appendix D: LPI and Comptia Certification 1183

More Information 1184

Linux Essentials 1184

Certification Exam 1 Objectives: LX0-101 1198

Certification Exam 2 Objectives: LX0-102 1214

Glossary 1231

JumpStart Index 1285

File Tree Index 1287

Utility Index 1291

Main Index 1297

Read More Show Less

Preface

The Book

Whether you are an end user, a system administrator, or a little of both, this book explains with step-by-step examples how to get the most out of an Ubuntu Linux system. In 27 chapters, this book takes you from installing an Ubuntu system through understanding its inner workings to setting up secure servers that run on the system.

The Audience

This book is designed for a wide range of readers. It does not require you to have programming experience, although having some experience using a general-purpose computer, such as a Windows, Macintosh, UNIX, or another Linux system is certainly helpful. This book is appropriate for

  • Students who are taking a class in which they use Linux
  • Home users who want to set up and/or run Linux
  • Professionals who use Linux at work
  • System administrators who need an understanding of Linux and the tools that are available to them
  • Computer science students who are studying the Linux operating system
  • Programmers who need to understand the Linux programming environment
  • Technical executives who want to get a grounding in Linux

Benefits

A Practical Guide to Ubuntu Linux® gives you a broad understanding of many facets of Linux, from installing Ubuntu Linux through using and customizing it. No matter what your background, this book provides the knowledge you need to get on with your work. You will come away from this book understanding how to use Linux, and this book will remain a valuable reference for years to come.

Overlap

If you read A Practical Guide to Linux® Commands, Editors, and Shell Programming, you will notice some overlap between that book and the one you are reading now. The first chapter, the chapters on the utilities and the filesystem, and the appendix on regular expressions are very similar in the two books, as are the three chapters on the Bourne Again Shell (bash). Chapters that appear in this book but do not appear in A Practical Guide to Linux® Commands, Editors, and Shell Programming include Chapters 2 and 3 (installation), Chapters 4 and 8 (Ubuntu Linux and the GUI), Chapter 10 (networking), all of the chapters in Part IV (system administration) and Part V (servers), and Appendix C (security).

Differences

While this book explains how to use Linux from a graphical interface and from the command line (a textual interface), A Practical Guide to Linux® Commands, Editors, and Shell Programming works exclusively with the command line. It includes full chapters on the vi and emacs editors, as well as chapters on the gawk pattern processing language and the sed stream editor. In addition, it has a command reference section that provides extensive examples of the use of more than 80 of the most important Linux utilities. You can use these utilities to solve problems without resorting to programming in C.

This Book Includes Ubuntu Gutsy Gibbon (7.10) on a Live/Install DVD

This book includes a live/install DVD that holds the Gutsy Gibbon (7.10) release of Ubuntu Linux. You can use this DVD to run a live Ubuntu session that displays the GNOME desktop without making any changes to your computer: Boot from the DVD, run an Ubuntu live session, and log off. Your system remains untouched: When you reboot, it is exactly as it was before you ran the Ubuntu live session. Alternatively, you can install Ubuntu from the live session. Chapter 2 helps you get ready to install Ubuntu. Chapter 3 provides step-by-step instructions for installing Ubuntu from this DVD. This book guides you through learning about, using, and administrating an Ubuntu Linux session.

DVD Features

The included DVD incorporates all the features of the live/install Desktop CD as well as the Alternate and Server CDs. It also includes all software packages supported by Ubuntu. You can use it to perform a graphical or textual (command line) installation of either a graphical or a textual Ubuntu system. If you do not have an Internet connection, you can use the DVD as a software repository and install any supported software packages from it.

Features of This Book

This book is designed and organized so you can get the most out of it in the shortest amount of time. You do not have to read this book straight through in page order. Instead, once you are comfortable using Linux, you can use this book as a reference: Look up a topic of interest in the table of contents or index and read about it. Or think of the book as a catalog of Linux topics: Flip through the pages until a topic catches your eye. The book includes many pointers to Web sites where you can get additional information: Consider the Internet an extension of this book.

A Practical Guide to Ubuntu Linux® is structured with the following features:

  • Optional sections enable you to read the book at different levels, returning to more difficult material when you are ready to delve into it.
  • Caution boxes highlight procedures that can easily go wrong, giving you guidance before you run into trouble.
  • Tip boxes highlight ways you can save time by doing something differently or situations when it may be useful or just interesting to have additional information.
  • Security boxes point out places where you can make a system more secure. The security appendix presents a quick background in system security issues.
  • Concepts are illustrated by practical examples throughout the book.
  • Chapter summaries review the important points covered in each chapter.
  • Review exercises are included at the end of each chapter for readers who want to further hone their skills. Answers to even-numbered exercises are available at www.sobell.com.
  • The glossary defines more than 500 common terms.
  • The chapters that cover servers include JumpStart sections that get you off to a quick start using clients and setting up servers. Once a server is up and running, you can test and modify its configuration as explained in the rest of the chapter.
  • This book provides resources for finding software on the Internet. It also explains how to download and install software using Synaptic, aptitude, the GNOME Add/Remove Applications window, and BitTorrent. It details controlling automatic updates using the Update Notifier and the Update Manager window.
  • This book describes in detail many important GNU tools, including the GNOME desktop, the Nautilus File Browser, the parted and gparted partition editors, the gzip compression utility, and many command line utilities that come from the GNU project.
  • Pointers throughout the text provide help in obtaining online documentation from many sources, including the local system, the Ubuntu Web site, and other locations on the Internet.
  • Many useful URLs point to Web sites where you can obtain software, security programs and information, and more.
  • The comprehensive index helps you locate topics quickly and easily.

Key Topics Covered in This Book

This book contains a lot of information. This section distills and summarizes its contents. In addition, “Details” (starting on page xli) describes what each chapter covers. Finally, the table of contents provides more detail.

Installation

The book:

  • Describes how to download Ubuntu Linux ISO images from the Internet and burn the Ubuntu live/install Desktop CD, the DVD, or the Ubuntu Alternate or Server installation CD.
  • Helps you plan the layout of the system’s hard disk. It includes a discussion of partitions, partition tables, and mount points, and assists you in using the ubiquity or gparted graphical partitioner or the Ubuntu textual partitioner to partition the hard disk.
  • Explains how to set up a dual-boot system so you can install Ubuntu Linux on a Windows system and boot either operating system.
  • Describes in detail how to install Ubuntu Linux from a live/install Desktop CD or the live/install DVD using the ubiquity graphical installer. It also explains how to use the textual installer found on the Alternate CD, the Server CD, and the DVD. The graphical installer is fast and easy to use. The textual installer gives you more options and works on systems with less RAM (system memory).
  • Covers testing an Ubuntu CD/DVD for defects, setting boot command line parameters (boot options), and creating a RAID array.
  • Covers the details of installing and customizing the X.org version of the X Window System either graphically using the Screen and Graphics Preferences window or manually with a text editor.

Working with Ubuntu Linux

The book:

  • Introduces the GNOME desktop (GUI) and explains how to use desktop tools, including the Top and Bottom panels, panel objects, the Main menu, object context menus, the Workspace Switcher, the Nautilus File Browser, and the GNOME Terminal emulator.
  • Explains how to use the Appearance Preferences window to add and modify themes to customize your desktop to please your senses and help you work more efficiently.
  • Details how to set up 3D desktop visual effects that take advantage of Compiz Fusion.
  • Covers the Bourne Again Shell (bash) in three chapters, including an entire chapter on shell programming that includes many sample shell scripts. These chapters provide clear explanations and extensive examples of how bash works both from the command line in day-to-day work and as a programming language to write shell scripts.
  • Explains the textual (command line) interface and introduces more than 30 command line utilities.
  • Presents a tutorial on the vim textual editor.
  • Covers types of networks, network protocols, and network utilities.
  • Explains hostnames, IP addresses, and subnets, and explores how to use host and dig to look up domain names and IP addresses on the Internet.
  • Covers distributed computing and the client/server model.
  • Explains how to use ACLs (Access Control Lists) to fine-tune user access permissions.

System Administration

The book:

  • Explains how to use the Ubuntu graphical and textual (command line) tools to configure the display, DNS, NFS, Samba, Apache, a firewall, a network interface, and more. You can also use these tools to add users and manage local and remote printers.
  • Goes into detail about using sudo to allow specific users to work with root privileges (become Superuser) and customizing the way sudo works by editing the sudoers configuration file. It also explains how you can unlock the root account if necessary.
  • Describes how to use the following tools to download and install software to keep a system up-to-date and to install new software:
    • The Software Sources window controls which Ubuntu and third-party software repositories Ubuntu downloads software packages from and whether Ubuntu downloads updates automatically. You can also use this window to cause Ubuntu to download and install security updates automatically.
    • If you do not have an Internet connection, you can use the Software Sources window to set up the DVD included with this book as a software repository. You can then install any software packages that Ubuntu supports from this repository.
    • Based on how you set up updates in the Software Sources window, the Update Notifier pops up on the desktop to let you know when software updates are available. Click the Update Notifier to open the Update Manager window, from which you can download and install updates.
    • The Add/Remove Applications window provides an easy way to select, download, and install a wide range of software packages.
    • Synaptic allows you to search for, install, and remove software packages. It gives you more ways to search for packages than does the Add/Remove Applications window.
    • APT downloads and installs software packages from the Internet (or the included DVD), keeping a system up-to-date and resolving dependencies as it processes the packages. You can use APT from a graphical interface (Synaptic) or from several textual interfaces (e.g., aptitude and apt-get).
    • BitTorrent is a good choice for distributing large amounts of data such as the Ubuntu installation DVD and CDs. The more people who use BitTorrent to download a file, the faster it works.
  • Covers graphical system administration tools, including the many tools available from the GNOME Main menu.
  • Explains system operation, including the boot process, init scripts, recovery (single-user) and multiuser modes, and steps to take if the system crashes.
  • Describes how to use and program the new Upstart init daemon, which replaces the System V init daemon.
  • Describes files, directories, and filesystems, including types of files and filesystems, fstab (the filesystem table), and automatically mounted filesystems, and explains how to fine-tune and check the integrity of filesystems.
  • Covers backup utilities, including tar, cpio, dump, and restore.
  • Describes compression/archive utilities, including gzip, bzip2, compress, and zip.
  • Explains how to customize and build a Linux kernel.

Security

The book:

  • Helps you manage basic system security issues using ssh (secure shell), vsftpd (secure FTP server), Apache (Web server), iptables (firewalls), and more.
  • Covers using firestarter to share an Internet connection over a LAN, run a DHCP server, and set up a basic firewall to protect the system.
  • Provides instructions on using iptables to share an Internet connection over a LAN and to build advanced firewalls.
  • Describes how to set up a chroot jail to help protect a server system.
  • Explains how to use TCP wrappers to control who can access a server.

Clients and Servers

The book:

  • Explains how to set up and use the most popular Linux servers, providing a chapter on each: Apache, Samba, OpenSSH, exim4, DNS, NFS, FTP, firestarter and iptables, and NIS (all of which are supported by Ubuntu Linux).
  • Describes how to set up a CUPS printer server.
  • Describes how to set up and use a DHCP server either by itself or from firestarter.

Programming

The book:

  • Provides a full chapter covering shell programming using bash, including many examples.

Details

Chapter 1 presents a brief history of Linux and explains some of the features that make it a cutting-edge operating system. The “Conventions Used in This Book” (page 17) section details the typefaces and terminology this book uses.

Part I

Part I, “Installing Ubuntu Linux,” discusses how to install Ubuntu Linux. Chapter 2 presents an overview of the process of installing Ubuntu Linux, including hardware requirements, downloading and burning a CD or DVD, and planning the layout of the hard disk. Chapter 3 is a step-by-step guide to installing Ubuntu Linux from a CD or DVD, using the graphical or textual installer. It also shows how to set up the X Window System and customize your desktop (GUI).

Part II

Part II, “Getting Started with Ubuntu Linux,” familiarizes you with Ubuntu Linux, covering logging in, the GUI, utilities, the filesystem, and the shell. Chapter 4 introduces desktop features, including the Top and Bottom panels and the Main menu; explains how to use the Nautilus File Browser to manage files, run programs, and connect to FTP and HTTP servers; covers finding documentation, dealing with login problems, and using the window manager; and presents some suggestions on where to find documentation, including manuals, tutorials, software notes, and HOWTOs. Chapter 5 introduces the shell command line interface, describes more than 30 useful utilities, and presents a tutorial on the vim text editor. Chapter 6 discusses the Linux hierarchical filesystem, covering files, filenames, pathnames, working with directories, access permissions, and hard and symbolic links. Chapter 7 introduces the Bourne Again Shell (bash) and discusses command line arguments and options, redirecting input to and output from commands, running programs in the background, and using the shell to generate and expand filenames.

TIP: Experienced users may want to skim Part IIIf you have used a UNIX or Linux system before, you may want to skim or skip some or all of the chapters in Part II. Part I has two sections that all readers should take a look at: “Conventions Used in This Book” (page 17), which explains the typographic and layout conventions used in this book, and “Where to Find Documentation” (page 124), which points out both local and remote sources of Linux and Ubuntu documentation.

Part III

Part III, “Digging into Ubuntu Linux,” goes into more detail about working with the system. Chapter 8 discusses the GUI (desktop) and includes a section on how to run a graphical program on a remote system and have the display appear locally. The section on GNOME describes several GNOME utilities, including the new Deskbar applet, and goes into more depth about the Nautilus File Browser. Chapter 9 extends the bash coverage from Chapter 7, explaining how to redirect error output, avoid overwriting files, and work with job control, processes, startup files, important shell builtin commands, parameters, shell variables, and aliases. Chapter 10 explains networks, network security, and the Internet and discusses types of networks, subnets, protocols, addresses, hostnames, and various network utilities. The section on distributed computing describes the client/server model and some of the servers you can use on a network. Chapter 11 goes into greater depth about shell programming using bash, with the discussion enhanced by extensive examples. Details of setting up and using clients and servers are reserved until Part V.

Part IV

Part IV covers system administration. Chapter 12 discusses core concepts such as the use of sudo, working with root privileges, system operation, chroot jails, TCP wrappers, general information about how to set up a server, DHCP, and PAM. Chapter 13 explains the Linux filesystem, going into detail about types of files, including special and device files; the use of fsck to verify the integrity of and repair filesystems; and the use of tune2fs to change filesystem parameters. Chapter 14 explains how to keep a system up-to-date by downloading software from the Internet and installing it, including examples of using APT programs such as aptitude, apt-get, and apt-cache. It also covers the dpkg software packaging system and the use of some dpkg utilities. Finally, it explains how to use BitTorrent from the command line to download files. Chapter 15 explains how to set up the CUPS printing system so you can print on both local and remote systems. Chapter 16 details customizing and building a Linux kernel. Chapter 17 covers additional administration tasks, including setting up user accounts, backing up files, scheduling automated tasks, tracking disk usage, and solving general problems. Chapter 18 explains how to set up a local area network (LAN), including both hardware (including wireless) and software configuration.

Part V

Part V goes into detail about setting up and running servers and connecting to them with clients. Where appropriate, these chapters include JumpStart sections that get you off to a quick start in using clients and setting up servers. The chapters in Part V cover the following clients/servers:

  • OpenSSH: Set up an OpenSSH server and use ssh, scp, and sftp to communicate securely over the Internet.
  • FTP: Set up a vsftpd secure FTP server and use any of several FTP clients to exchange files with the server.
  • Mail: Configure exim4 and use Webmail, POP3, or IMAP to retrieve email; use SpamAssassin to combat spam.
  • NIS: Set up NIS to facilitate system administration of a LAN.
  • NFS: Share filesystems between systems on a network.
  • Samba: Share filesystems and printers between Windows and Linux systems.
  • DNS/BIND: Set up a domain nameserver to let other systems on the Internet know the names and IP addresses of local systems they may need to contact.
  • firestarter and iptables : Share a single Internet connection between systems on a LAN, run a DHCP server, and set up a firewall to protect local systems.
  • Apache: Set up an HTTP server that serves Web pages that browsers can display. This chapter includes many suggestions for increasing Apache security.

Part VI

Part VI includes appendixes on regular expressions, helpful Web sites, system security, and free software. This part also includes an extensive glossary with more than 500 entries plus a comprehensive index.

Supplements

The author’s home page (www.sobell.com) contains downloadable listings of the longer programs from this book as well as pointers to many interesting and useful Linux sites on the World Wide Web, a list of corrections to the book, answers to even-numbered exercises, and a solicitation for corrections, comments, and suggestions.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

Your Rating:

Your Name: Create a Pen Name or

Barnes & Noble.com Review Rules

Our reader reviews allow you to share your comments on titles you liked, or didn't, with others. By submitting an online review, you are representing to Barnes & Noble.com that all information contained in your review is original and accurate in all respects, and that the submission of such content by you and the posting of such content by Barnes & Noble.com does not and will not violate the rights of any third party. Please follow the rules below to help ensure that your review can be posted.

Reviews by Our Customers Under the Age of 13

We highly value and respect everyone's opinion concerning the titles we offer. However, we cannot allow persons under the age of 13 to have accounts at BN.com or to post customer reviews. Please see our Terms of Use for more details.

What to exclude from your review:

Please do not write about reviews, commentary, or information posted on the product page. If you see any errors in the information on the product page, please send us an email.

Reviews should not contain any of the following:

  • - HTML tags, profanity, obscenities, vulgarities, or comments that defame anyone
  • - Time-sensitive information such as tour dates, signings, lectures, etc.
  • - Single-word reviews. Other people will read your review to discover why you liked or didn't like the title. Be descriptive.
  • - Comments focusing on the author or that may ruin the ending for others
  • - Phone numbers, addresses, URLs
  • - Pricing and availability information or alternative ordering information
  • - Advertisements or commercial solicitation

Reminder:

  • - By submitting a review, you grant to Barnes & Noble.com and its sublicensees the royalty-free, perpetual, irrevocable right and license to use the review in accordance with the Barnes & Noble.com Terms of Use.
  • - Barnes & Noble.com reserves the right not to post any review -- particularly those that do not follow the terms and conditions of these Rules. Barnes & Noble.com also reserves the right to remove any review at any time without notice.
  • - See Terms of Use for other conditions and disclaimers.
Search for Products You'd Like to Recommend

Recommend other products that relate to your review. Just search for them below and share!

Create a Pen Name

Your Pen Name is your unique identity on BN.com. It will appear on the reviews you write and other website activities. Your Pen Name cannot be edited, changed or deleted once submitted.

 
Your Pen Name can be any combination of alphanumeric characters (plus - and _), and must be at least two characters long.

Continue Anonymously
Sort by: Showing all of 2 Customer Reviews
  • Anonymous

    Posted March 31, 2008

    A complete guide to Ubuntu Linux for beginning to intermediate users

    Finding a single book that encompasses what you want to learn can be difficult. Most cover a few portions of a subject in depth and skim over (or omit) others. Other books will cover each topic at about the same level: high enough to give an impression of what can be done, but not with enough depth to do it without a lot of effort. Mark G. Sobell¿s 'A Practical Guide to Ubuntu Linux' is a single volume that gives the reader enough information to effectively install, configure and run workstations and servers using Ubuntu Linux. He has come the closest I have seen to containing all of the necessary information without being too shallow. A DVD with the Gutsy Gibbon release of Ubuntu in a directly bootable form is included with the book. With over two decades of experience related to Unix and Linux, Mark G. Sobell has authored almost two dozen books on the subject. I had previously read and reviewed his book 'A Practical Guide to Red Hat Linux: Fedora Core and Red Hat Enterprise Linux (Second Edition)' and found it the highest quality book I had yet read on Linux. This, his latest book, bears many similarities to the other text, including its high quality. The overall structure is like that of a textbook, providing a summary and exercises at the end of each chapter, as well as copious cross-references. 'A Practical Guide to Ubuntu Linux' is broken up into five parts containing 27 chapters in all. Each of the chapters provides Jumpstart sections to help you install and configure each server quickly, and enough detail to handle the more common configuration changes. Part I uses two chapters to provide an overview of, and step-by-step instructions for, installing Linux. The step-by-step chapter goes into great detail on each step of the process, using both the graphical and textual installation paths. Part II provides higher-level information that shows newer Linux users what they can do. Part III uses another four chapters to dive deeper into the Bourne Again Shell (BASH), the GUIs, and networking. Starting with Part IV, Mark describes how to perform the more common configuration tasks. Using seven chapters and over 200 pages, Part IV provides a great deal of detail regarding system administration. The final section, Part V, uses nine chapters to go into depth on set up various servers and use their clients. OpenSSH, FTP, exim4 (for mail), NIS, NFS, Samba, DNS/BIND, the firewall (firestarter and iptables), and finally Apache. Overall, 'A Practical Guide to Ubuntu Linux' by Mark G. Sobell provides all of the information a beginner to intermediate user of Linux would need to be productive. The inclusion of the Live DVD of the Gutsy Gibbon release of Ubuntu makes it easy for the user to test-drive Linux without affecting his installed OS. I have no doubts that you will consider this book money well spent.

    3 out of 3 people found this review helpful.

    Was this review helpful? Yes  No   Report this review
  • Anonymous

    Posted August 2, 2009

    No text was provided for this review.

Sort by: Showing all of 2 Customer Reviews

If you find inappropriate content, please report it to Barnes & Noble
Why is this product inappropriate?
Comments (optional)