HAPPY BOOKSGIVING
Use code BOOKSGIVING during checkout to save 40%-55% on books and eBooks. Shop now.
Register your product to gain access to bonus material or receive a coupon.
This eBook includes the following formats, accessible from your Account page after purchase:
EPUB The open industry format known for its reflowable content and usability on supported mobile devices.
PDF The popular standard, used most often with the free Acrobat® Reader® software.
This eBook requires no passwords or activation to read. We customize your eBook by discreetly watermarking it with your name, making it uniquely yours.
Ubuntu Server is a complete, free server operating system that just works, with the extra Ubuntu polish, innovation, and simplicity that administrators love.
Now, there’s a definitive, authoritative guide to getting up and running quickly with the newest, most powerful versions of Ubuntu Server. Written by leading members of the Ubuntu community, The Official Ubuntu Server Book, Third Edition, covers all you need to know to make the most of Ubuntu Server, whether you’re a beginner or a battle-hardened senior systems administrator.
The authors cover Ubuntu Server from start to finish: installation, basic administration and monitoring, security, backup, troubleshooting, system rescue, and much more. They walk through deploying each of the most common server applications, from file and print services to state-of-the-art, cost-saving virtualization and cloud computing.
In addition, you’ll learn how to
Preface xix
Acknowledgments xxv
About the Authors xxvii
Introduction xxix
Welcome to Ubuntu Server xxix
Free Software, Open Source, and Linux xxx
A Brief History of the Ubuntu Project xxxiv
Ubuntu Promises and Goals xli
Canonical and the Ubuntu Foundation xlvi
History of Ubuntu Server xlix
Simple, Secure, Supported li
Chapter 1: Installation 1
Get Ubuntu 2
Boot Screen 3
Disk Partitioning 5
Server Roles 13
Installer Console 15
Reboot the System 16
Chapter 2: Essential System Administration 17
Basic Command-Line Administration 18
Ubuntu Boot Process 24
File System Hierarchy 39
Networking 45
Chapter 3: Package Management 51
Introduction to Package Management 52
Debian Packages 60
Package Management in Ubuntu 63
Making Your Own Packages 77
Chapter 4: Automated Ubuntu Installs 83
Preseeding 84
Kickstart 104
PXE Boot Server Deployment 111
Customize Automated Installs 118
Chapter 5: Guide to Common Ubuntu Servers 125
DNS Server 126
Web Server 135
Mail Server 144
POP/IMAP Server 156
OpenSSH Server 158
DHCP Server 160
Database Server 163
File Server 174
Edubuntu and LTSP 180
LTSP Server Configurations 184
Chapter 6: Security 199
General Security Principles 200
Sudo 201
AppArmor 206
SSH Security 210
Firewalls 214
Intrusion Detection 226
Incident Response 233
Chapter 7: Backups 239
Backup Principles 240
Drive Imaging 242
Database Backups 244
BackupPC 249
Chapter 8: Monitoring 267
Local Monitoring Tools 268
Ganglia 273
Nagios 280
Chapter 9: Virtualization and Cloud Computing 297
KVM 298
Amazon EC2 315
Juju 330
Chapter 10: Fault Tolerance 341
Fault Tolerance Principles 342
RAID 344
LVM 369
Ethernet Bonding 372
Clusters 378
Chapter 11: Troubleshooting 399
General Troubleshooting Philosophy 400
Localhost Troubleshooting 403
Network Troubleshooting 416
Hardware Troubleshooting 425
Chapter 12: Rescue and Recovery 429
Ubuntu Recovery Mode 430
Ubuntu Server Recovery CD 435
Ubuntu Desktop Live CD 439
Chapter 13: Help and Resources 449
Paid Support from Canonical 450
Forums 451
Internet Relay Chat 452
Mailing Lists 455
Online Documentation 456
Localhost Documentation 457
Local Community Teams 458
Other Languages 459
Tech Answers System (Launchpad) 459
Bug Reporting 459
For More Information 461
Chapter 14: Basic Linux Administration 463
Shell Globs 464
Pipes and Redirection 466
File Permissions and Ownership 472
Linux File Types 474
At and Cron 478
Appendix: Cool Tips and Tricks 485
Avoid That grep Command in grep Output 485
Shortcut to a Command Path 486
Wipe a Drive in One Line 486
Run a Command Over and Over 487
Make a Noise When the Server Comes Back Up 487
Search and Replace Text in a File 487
find and exec Commands 488
Bash Commands with Too Many Arguments 488
Use Your Bash History 489
Are These Files Identical? 489
Go Back to Your Previous Directory 489
Find Out Who Is Tying Up a File System You Want to Unmount 490
Send a Test E-mail Using telnet 490
Easy SSH Key Sharing 491
Get the Most Out of Dig 492
Index 495