博威---云架构决胜云计算

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1299|回复: 0

Pro Ubuntu Server Administration[英文原版][难得]

[复制链接]
发表于 2010-2-7 15:58:40 | 显示全部楼层 |阅读模式



封面
11.jpg

目录
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxi
CHAPTER 1 Performing an Advanced Ubuntu Server Installation . . . . . . . . . . . . . . . 1
CHAPTER 2 Using Ubuntu Server for System Imaging . . . . . . . . . . . . . . . . . . . . . . . . 29
CHAPTER 3 Performance Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
CHAPTER 4 Performance Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
CHAPTER 5 Advanced File System Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
CHAPTER 6 Network Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
CHAPTER 7 Creating an Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
CHAPTER 8 Configuring OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
CHAPTER 9 Integrating Samba . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231
CHAPTER 10 Configuring Ubuntu Server As a Mail Server . . . . . . . . . . . . . . . . . . . . 249
CHAPTER 11 Managing Ubuntu Server Security . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
CHAPTER 12 Configuring Ubuntu Server As a VPN Server . . . . . . . . . . . . . . . . . . . . 303
CHAPTER 13 Configuring Kerberos and NTP on Ubuntu Server . . . . . . . . . . . . . . . . 321
CHAPTER 14 Ubuntu Server Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383
Foreword . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
About the Author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvii
About the Technical Reviewer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xix
Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .xxi
CHAPTER 1 Performing an Advanced Ubuntu Server Installation . . . . . . 1
What’s So Special About an Enterprise Installation? . . . . . . . . . . . . . . . . . . . 1
Server Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Connection to a SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Authentication Handling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Preparing for the Installation in a Network . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Which RAID? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Choosing a File System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Installing Ubuntu Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Starting the Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Creating a Software- Based RAID Solution . . . . . . . . . . . . . . . . . . . . . . . 9
Creating LVM Logical Volumes on Top of a
Software RAID Device . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Completing the Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Post-Installation Tasks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Setting Up NIC Bonding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Setting Up Multipathing. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
CHAPTER 2 Using Ubuntu Server for System Imaging . . . . . . . . . . . . . . . . . 29
Setting Up a Clonezilla Imaging Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Setting Up Diskless Remote Boot in Linux . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Installing the DRBL Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
Configuring the DRBL Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Setting Up the DHCP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
Completing Clonezilla Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
Configuring the Clients for Cloning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
Setting Up the Server for Cloning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Cloning the Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
CHAPTER 3 Performance Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Interpreting What Your Computer Is Doing: top . . . . . . . . . . . . . . . . . . . . . . 45
CPU Monitoring with top . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
CPU Performance Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Memory Monitoring with top . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
Process Monitoring with top. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Analyzing CPU Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Finding Memory Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Monitoring Storage Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Monitoring Network Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Performance Baselining . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
CHAPTER 4 Performance Optimization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Strategies for Optimizing Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
About /proc and sysctl. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Applying a Simple Test . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
CPU Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Understanding CPU Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
Optimizing CPU Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
Tuning Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Understanding Memory Performance . . . . . . . . . . . . . . . . . . . . . . . . . . 91
Optimizing Memory Usage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Tuning Storage Performance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Understanding Storage Performance . . . . . . . . . . . . . . . . . . . . . . . . . . 96
Optimizing the I/O Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
Optimizing Reads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Network Tuning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Tuning Kernel Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
Optimizing TCP/IP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Some Hints on Samba and NFS Performance Optimization . . . . . . 105
Generic Network Performance Optimization Tips . . . . . . . . . . . . . . . 106
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
CHAPTER 5 Advanced File System Management . . . . . . . . . . . . . . . . . . . . . . 109
Understanding File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
Inodes and Directories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Superblocks, Inode Bitmaps, and Block Bitmaps . . . . . . . . . . . . . . . 112
Journaling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Indexing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Optimizing File Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Optimizing Ext2/Ext3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Tuning XFS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 124
What About ReiserFS? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 128
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
CHAPTER 6 Network Monitoring . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Starting with Nagios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 131
Configuring Nagios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Location of the Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
The Master Configuration File: nagios.cfg . . . . . . . . . . . . . . . . . . . . . 136
Creating Essential Nagios Configuration Files . . . . . . . . . . . . . . . . . . 138
Installing NRPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Configuring NRPE on the Monitored Server . . . . . . . . . . . . . . . . . . . . 152
Configuring the Nagios Server to Use NRPE . . . . . . . . . . . . . . . . . . . 154
Managing Nagios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Creating an Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Preparing Your Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Installing Required Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Setting Up the Distributed Replicated Block Device . . . . . . . . . . . . . . . . . 164
Accessing the SAN with iSCSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Configuring the iSCSI Target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Configuring the iSCSI Initiator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Setting Up Heartbeat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Setting Up the Base Cluster from /etc/ha.d/ha.cf . . . . . . . . . . . . . . . 175
Configuring Cluster Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Backing Up the Cluster Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 187
Configuring STONITH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Heartbeat Beyond the Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Configuring OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Using the LDAP Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Introducing OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Configuring OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Installing OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Configuring the Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Adding Information to the LDAP Database . . . . . . . . . . . . . . . . . . . . . 215
Using ldapsearch to Verify Your Configuration . . . . . . . . . . . . . . . . . 217
Installing NRPE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
Configuring NRPE on the Monitored Server . . . . . . . . . . . . . . . . . . . . 152
Configuring the Nagios Server to Use NRPE . . . . . . . . . . . . . . . . . . . 154
Managing Nagios . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 155
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 159
Creating an Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161
Preparing Your Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Hardware Requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Installing Required Software . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
Setting Up the Distributed Replicated Block Device . . . . . . . . . . . . . . . . . 164
Accessing the SAN with iSCSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Configuring the iSCSI Target . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 169
Configuring the iSCSI Initiator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173
Setting Up Heartbeat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 175
Setting Up the Base Cluster from /etc/ha.d/ha.cf . . . . . . . . . . . . . . . 175
Configuring Cluster Resources . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 180
Backing Up the Cluster Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 187
Configuring STONITH . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191
Heartbeat Beyond the Open Source SAN . . . . . . . . . . . . . . . . . . . . . . . . . . . 194
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 195
Configuring OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Using the LDAP Directory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 197
Introducing OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201
Configuring OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Installing OpenLDAP . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 202
Configuring the Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203
Adding Information to the LDAP Database . . . . . . . . . . . . . . . . . . . . . 215
Using ldapsearch to Verify Your Configuration . . . . . . . . . . . . . . . . . 217
CHAPTER 10 Configuring Ubuntu Server As a Mail Server . . . . . . . . . . . . . 249
Understanding the Components of a Mail Solution . . . . . . . . . . . . . . . . . . 249
Configuring the Postfix MTA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 250
Handling Inbound and Outbound Mail . . . . . . . . . . . . . . . . . . . . . . . . 251
Installing Postfix and Configuring the Initial Settings . . . . . . . . . . . . 256
Configuring Postfix Further . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 257
Managing Postfix Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 262
Configuring the Master Daemon . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 263
Configuring Global Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 264
Configuring a Simple Postfix Mail Server . . . . . . . . . . . . . . . . . . . . . . 267
Tuning Postfix with Lookup Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . 269
Using Postfix Management Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . 273
Receiving E-mail Using IMAP or POP3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 274
Fetching E-mail Using Cyrus IMAPd . . . . . . . . . . . . . . . . . . . . . . . . . . 275
Filtering Incoming E-mail with procmail . . . . . . . . . . . . . . . . . . . . . . 278
Getting E-mail with POP3 Using Qpopper . . . . . . . . . . . . . . . . . . . . . 279
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 280
CHAPTER 11 Managing Ubuntu Server Security . . . . . . . . . . . . . . . . . . . . . . . . 281
Managing Cryptography . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 281
Introduction to SSL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
Public and Private Keys . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 282
The Need for a Certificate Authority . . . . . . . . . . . . . . . . . . . . . . . . . . 283
Creating a Certificate Authority and Server Certificates . . . . . . . . . 284
Securing Applications with AppArmor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
AppArmor Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 290
Installing and Starting AppArmor . . . . . . . . . . . . . . . . . . . . . . . . . . . . 293
Creating and Managing AppArmor Profiles . . . . . . . . . . . . . . . . . . . 294
Updating a Profile . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Monitoring AppArmor’s Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
CHAPTER 12 Configuring Ubuntu Server As a VPN Server . . . . . . . . . . . . . 303
Installing and Configuring OpenVPN . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 303
VPN Networking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 304
Generating Certificates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 305
Configuring the VPN Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 313
Configuring a Linux VPN Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
Configuring Windows Clients . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 320
CHAPTER 13 Configuring Kerberos and NTP on Ubuntu Server . . . . . . . . 321
Configuring an NTP Time Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
How NTP Works . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 322
Customizing Your NTP Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 327
Understanding Kerberos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 329
Installing and Configuring Kerberos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 330
Configuring the Kerberos Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 332
Configuring Generic Kerberos Settings . . . . . . . . . . . . . . . . . . . . . . . 332
Configuring the KDC Settings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 335
Configuring the Kerberos Client . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 339
Configuring Simple Kerberos Applications . . . . . . . . . . . . . . . . . . . . . 339
Logging In with Kerberos . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 340
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 341
CHAPTER 14 Ubuntu Server Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . 343
Identifying the Problem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 344
Troubleshooting Tools . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Working with init=/bin/bash . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 351
Rescue a Broken System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 353
Working with a Knoppix Rescue CD . . . . . . . . . . . . . . . . . . . . . . . . . . 357Common Problems and How to Fix Them . . . . . . . . . . . . . . . . . . . . . . . . . . 360
Grub Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 361
No Master Boot Record . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 364
Partition Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 365
LVM Logical Volume Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 368
Kernel Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 375
File System Problems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378
Lost Administrator Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 380
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 381
INDEX . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 383


Pro Ubuntu Server Administration.pdf (4.67 MB, 下载次数: 0)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|boway Inc. ( 冀ICP备10011147号 )

GMT+8, 2024-5-3 13:44 , Processed in 0.100814 second(s), 19 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表