CITATION

Jang, Michael. Ubuntu Server Administration. US: McGraw-Hill Osborne Media, 2008.

Ubuntu Server Administration

Authors:

Published:  November 2008

eISBN: 9780071643702 0071643702 | ISBN: 9780071598927
  • Contents
  • Preface
  • Introduction
  • 1 The Ubuntu Community
  • A Short History of Ubuntu and Linux
  • Background on Unix
  • Linux Is Not Unix
  • A Linux Distribution
  • Linux and Open Source Licenses
  • The Debian Project and Ubuntu
  • Ubuntu Just Works
  • Hardy Heron Highlights
  • The Ubuntu Release Configuration
  • Past Releases
  • The Ubuntu Development Cycle
  • Support Levels
  • Desktop Environments
  • The Ubuntu Server
  • Participate in the Ubuntu Community
  • Sponsored by Canonical
  • Request a “Hard Copy” Release with ShipIt
  • The Ubuntu Launchpad
  • Ubuntu Community Resources
  • Launchpad Answers
  • The Ubuntu Wiki
  • Ubuntu News and Security Notices
  • Summary
  • 2 Installing Ubuntu Server
  • Acquire the Media
  • Download the ISO File Online
  • Download the ISO File from the Command Line
  • Downloading the ISO File Cooperatively
  • Write the ISO File to Disc
  • Mount the ISO File on a Virtual Machine
  • Mount the ISO File
  • Alternatives to Downloads
  • Install from the CD
  • Stability or Features
  • Hardware Configuration
  • Linux Hardware Documentation
  • The Ubuntu Server Installation Screen
  • Install Ubuntu Server, Step by Step
  • Choose a Language
  • Configure the Keyboard
  • Detect and Mount the CD-ROM
  • Load the Debconf Preconfiguration File
  • Load Installer Components from the CD
  • Detect Network Hardware
  • Configure the Network
  • Continue Installation Remotely Using SSH
  • Choose a Mirror of the Ubuntu Archive
  • Download Installer Components
  • Configure the Clock
  • Detect Disks
  • Partition Disks
  • Configure MD Devices
  • Install the Base System
  • Set Up Users and Passwords
  • Configure the Package Manager
  • Select and Install Software
  • Build LTSP Chroot
  • Install the GRUB Boot Loader on a Hard Disk
  • Install the LILO Boot Loader on a Hard Disk
  • Continue Without Boot Loader
  • Finish the Installation
  • Change Debconf Priority
  • Check the CD-ROM(s) Integrity
  • Save Debug Logs
  • Execute a Shell
  • Eject a CD from the Drive
  • Abort the Installation
  • Finish the Installation
  • Network Installations
  • Dynamic Host Configuration Protocol (DHCP) Services
  • Trivial File Transfer Protocol
  • Configure a Network Installation
  • PXE Booting
  • Summary
  • 3 Automated Installations with Kickstart
  • How to Kickstart an Installation
  • Install the Kickstart Software
  • Use the Kickstart Configuration Tool
  • Customize the Kickstart File
  • Boot an Installation with a Kickstart File
  • Summary
  • 4 The Boot Process and Rescue Mode
  • What Happens After Powering Up
  • The BIOS Sequence
  • Making GRUB
  • Kernels and Hardware Detection
  • Upstart, RCs Scripts, and Services
  • Rescue Options
  • Recovery and Single-User Mode
  • Using the GRUB Command Line
  • The Installation CD Rescue Mode
  • Using a LiveCD/DVD
  • Summary
  • 5 Filesystem Configuration
  • Make the Filesystem Work for You
  • The Filesystem Hierarchy Standard
  • Partition Device Files
  • Create Partitions with fdisk
  • The parted Utility
  • Format New Filesystems
  • Manage Filesystems in /etc/fstab
  • How to Make RAID Work
  • RAID Definitions
  • Create RAID Partitions
  • Format and Configure a RAID Array
  • Use an Active RAID Array
  • Maintaining RAID Arrays
  • Make RAID Work in /etc/fstab
  • Logical Volumes Promote Flexibility
  • Logical Volume Concepts
  • Create Physical Volumes
  • Creating a Volume Group
  • Creating a Logical Volume
  • Activate Logical Volumes
  • Configure Logical Volumes in /etc/fstab
  • Summary
  • 6 Command Line Tools and Shell Management
  • Command Line Fundamentals
  • Interactivity and Command Completion
  • Navigate Around Directories
  • File Management
  • Quotes and Backslashes
  • Aliases
  • Wildcards in a Glob
  • File Filters
  • Command Combinations and Data Streams
  • Set the Default Linux Text Editor
  • Optimize the Shell
  • Profiles in Bash
  • A Minor in Scripts
  • Variables and More
  • Manage Permissions, Octal and Super
  • Basic File Permissions
  • Commands to Modify Permissions and Ownership
  • Special File Permissions
  • Access Control Lists
  • Summary
  • 7 Basic Administrative Tools
  • Create a Secure Shell Server
  • Installation
  • Configuring the SSH Server
  • Passphrases
  • A Warning
  • Client Access
  • Telnet if You Must
  • Schedule Important Jobs
  • Standard cron Jobs
  • User cron Jobs
  • Configure at Jobs
  • Job Scheduling Security
  • Customize Services and Runlevels
  • Script Actions in Different Runlevels
  • Manage when a Service Starts and Stops
  • Manage Those Log Files
  • General Log Configuration
  • General Log Files
  • Service-Specific Log Files
  • Log Rotation
  • Summary
  • 8 Manage Updates and Local Repositories
  • The Basics of dpkg and apt
  • A Background in dpkg
  • Ubuntu Repository Organization
  • Repository Source Management
  • Find the Right Mirror
  • Fundamental apt Commands
  • More apt Commands
  • Update Management Tools
  • The Task Selector
  • Keep the Server Up-to-Date
  • Security Updates
  • Kernel Updates
  • Application Updates
  • Create a Repository Mirror
  • Mirror Configuration
  • To Mirror an Ubuntu Repository
  • Use the Local Mirror
  • Manage with Landscape
  • Landscape Features
  • Work with Landscape
  • Summary
  • 9 Printer Configuration
  • CUPS and the Internet Printing Protocol
  • The Installation of CUPS
  • A Variety of Local and Network Printers
  • The Universal Resource Identifier (URI)
  • Major CUPS Configuration Files
  • The GUI Configuration Tools
  • The CUPS Configuration Tools
  • Add a New Printer
  • Add a Print Class
  • Samba Shared Printers
  • More Print Management Options
  • Configure Print Administrators
  • Print Management Commands
  • Summary
  • 10 User, Group, and Administrator Management
  • The Shadow Password Suite
  • Shadow Password Files
  • If You Need to Deactivate the Shadow Password Suite
  • A User and Group Configuration Tool
  • Configure Users at the Command Line
  • Delegate Administrative Authority
  • Super User Concepts
  • Partial Authorization in sudoers
  • Partial Authorization for a Wheel
  • Quota Configuration
  • Quotas in /etc/fstab
  • Quota Management Commands
  • Quotas by Size and Inode
  • Quota Grace Periods
  • Quota Reports
  • Pluggable Authentication Modules (PAM)
  • PAM Configuration File Format
  • PAM Configuration Files
  • The PolicyKit
  • Keeping It Simple
  • PolicyKit Concepts
  • Configure with the PolicyKit GUI Tool
  • PolicyKit Commands
  • Restore Default PolicyKit Settings
  • Summary
  • 11 Network Configuration and Troubleshooting
  • Basic Networking
  • Configure a Network Interface Card
  • Configure a Hardware Address
  • Configure Routing Tables
  • Configure Forwarding
  • Network Configuration Files
  • Wireless Networking
  • The Network Settings Tool
  • Network Troubleshooting
  • Networking in the Boot Process
  • Troubleshoot a Network Connection
  • Troubleshoot a Network Route
  • Troubleshoot Network Channels
  • Troubleshoot Network Services
  • Summary
  • 12 Manage Network Authentication
  • Network Information Service
  • Prepare a Network for NIS
  • Installation and NIS Domains
  • Make portmap Responsive
  • Configuration Files
  • The NIS Makefile
  • Database Maps
  • NIS Security
  • An NIS Client
  • Testing NIS
  • NIS Slave Services
  • NIS in the Search Order
  • Lightweight Directory Access Protocol
  • Installation
  • Configure LDAP on the Server
  • Configure LDAP on the Client
  • Summary
  • 13 A Minimal Graphical Environment
  • Basic Graphical Definitions
  • The X Server
  • The Desktop Environment
  • The Window Manager
  • Graphical Environment Options
  • Install Xfce
  • Install GNOME
  • Install KDE
  • Configure the Xfce Desktop Environment
  • Selected Xfce Packages
  • Configure the X Server
  • The X Server Configuration File, xorg.conf
  • Basic Xfce Tools
  • Remote GUI Access
  • Summary
  • 14 DHCP and DNS
  • Create a Dynamic Host Configuration Protocol (DHCP) Server
  • Install the DHCP Server Packages
  • The Configuration File
  • The GUI DHCP Server Configuration Tool
  • The Domain Name System
  • Install DNS Packages
  • Focus on BIND
  • Ubuntu File Structure for BIND
  • Configure a Caching-Only Server
  • BIND Command Utilities
  • Configure a Forwarding Server
  • Configure a Standard DNS Server
  • Configure a Secondary Master (Slave) Server
  • Common DNS Pitfalls
  • Summary
  • 15 Web Servers and Apache’s LAMP
  • The Specialized LAMP Installation
  • Install the LAMP Stack
  • Installed Packages in the LAMP Stack
  • If You Prefer Perl
  • If You Prefer Python
  • Configure MySQL and PHP5
  • Configure MySQL for Websites
  • Configure PHP for Websites
  • Install and Configure Apache
  • Learn the Apache Configuration Files
  • Apache Default Settings
  • Apache Global Settings
  • The Apache Control Command
  • Examine the First Host
  • Configure Virtual Hosts
  • Configure Secure Virtual Hosts
  • Prepare Apache Documentation for Web Access
  • Summary
  • 16 Create a File Server
  • Two Network File Servers
  • The Kernel Server
  • The User Server
  • Related Services
  • Configure Exports
  • Share Exports
  • From an NFS Client
  • Sharing on Microsoft Networks
  • A Bit of Background on Samba
  • Install Samba
  • Common Samba Commands
  • Analyze the Configuration File
  • A Basic Domain Member
  • A Domain Controller
  • Part of an Active Directory Network
  • Implement Changes
  • A Graphical Network Sharing Tool
  • Prepare to Share
  • Create a Samba Share
  • Create an NFS Share
  • Summary
  • 17 Other Services: Mail, FTP, and NTP
  • Mail Services
  • Components of E-mail Systems
  • Simple Postfix Configuration
  • Simple sendmail Configuration
  • FTP Services
  • Other FTP Servers
  • The Very Secure FTP Service
  • FTP Client
  • The Network Time Protocol Service
  • Configure an NTP Client
  • Select a Remote NTP Server
  • Basic Configuration
  • Summary
  • 18 Backups and Security
  • Backups
  • The Tape Archive (tar) Command
  • Sync Remotely
  • Other Backup Tools
  • Security with AppArmor
  • AppArmor Packages
  • AppArmor Modes
  • Unsuitable AppArmor Commands
  • AppArmor Status
  • AppArmor Boot Process
  • AppArmor Profiles
  • AppArmor Access Modes
  • AppArmor Commands
  • Extra AppArmor Profiles
  • Security with TCP Wrappers
  • The TCP Wrappers Process
  • TCP Wrappers with /etc/hosts.allow and /etc/hosts.deny
  • Port Security with iptables
  • Port Security Concepts
  • Configuring iptables
  • Configuring iptables in Ubuntu
  • Summary
  • 19 Kernel Management
  • Why Recompile a Kernel?
  • The Right Reasons
  • Basic Kernel Concepts
  • Easy Kernel Upgrades
  • Get a New Kernel with apt
  • Make Sure the Boot Loader Is Right
  • Upgrade a Kernel from Source
  • Start with the Latest Kernel Source Code
  • Get the Right Tools
  • Desired Changes
  • Include a Patch
  • Select a Baseline
  • Kernel Configuration Menus
  • Compile and Install the Kernel
  • Kernel Configuration Options
  • General Setup
  • Enable Loadable Module Support
  • Enable the Block Layer
  • Processor Type and Features
  • Power Management Options
  • Bus Options
  • Executable File Formats / Emulations
  • Networking
  • Device Drivers
  • Firmware Drivers
  • File Systems
  • Instrumentation Support
  • Kernel Hacking
  • Security Options
  • Cryptographic API
  • Virtualization
  • Library Routines
  • Summary
  • 20 Virtual Machines and Terminal Servers
  • Virtual Machine Options
  • VMware Server
  • VirtualBox
  • Other Options
  • Why Paravirtualization?
  • Configure KVM
  • The Right Packages
  • Hardware Issues
  • KVM Network Configuration
  • Create a Virtual Machine on KVM
  • Set Up the Linux Terminal Server Project (LTSP)
  • Install LTSP Packages
  • Dynamic Host Configuration Protocol (DHCP) Services
  • Trivial File Transfer Protocol
  • NFS Sharing
  • PXE Booting
  • Security Issues for Diskless Client
  • The Linux Terminal Server Project
  • Boot the LTSP Client
  • Summary
  • Glossary
  • A
  • B
  • C
  • D
  • E
  • F
  • G
  • H
  • I
  • J
  • K
  • L
  • M
  • N
  • O
  • P
  • Q
  • R
  • S
  • T
  • U
  • V
  • W
  • X
  • Y
  • Index