没有合适的资源?快使用搜索试试~ 我知道了~
首页The Debian Administrator’s Handbook.pdf
The Debian Administrator’s Handbook.pdf
5星 · 超过95%的资源 需积分: 9 15 下载量 3 浏览量
更新于2023-03-16
评论
收藏 28.43MB PDF 举报
The Debian Administrator’s Handbook,debian.org官方推荐参考文档,页码重新编排过了,可以在acrobat里直接输入目录里的页码,跳转到相应的页面。
资源详情
资源评论
资源推荐
The Debian Administrator’s Handbook
Raphaël Hertzog and Roland Mas
Copyright © 2003-2015 Raphaël Hertzog
Copyright © 2006-2015 Roland Mas
Copyright © 2012-2015 Freexian SARL
ISBN: 979-10-91414-04-3 (English paperback)
ISBN: 979-10-91414-05-0 (English ebook)
This book is available under the terms of two licenses compatible with the Debian Free Software Guide-
lines.
Creative Commons License Notice: This book is licensed under a Creative Commons Attribution-
ShareAlike 3.0 Unported License.
è http://creativecommons.org/licenses/by-sa/3.0/
GNU General Public License Notice: This book is free documentation: you can redistribute it and/or
modify it under the terms of the GNU General Public License as published by the Free Software Founda-
tion, either version 2 of the License, or (at your option) any later version.
This book is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Gen-
eral Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see
http://www.gnu.org/licenses/.
Show your appreciation
This book is published under a free license because we want everybody to ben-
efit from it. That said maintaining it takes time and lots of eort, and we ap-
preciate being thanked for this. If you find this book valuable, please consider
contributing to its continued maintenance either by buying a paperback copy or
by making a donation through the book’s oicial website:
è http://debian-handbook.info
Contents
1. The Debian Project 1
1.1 What Is Debian? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.1 A Multi-Platform Operating System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.1.2 The ality of Free Soware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.3 The Legal Framework: A Non-Profit Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2 The Foundation Documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2.1 The Commitment towards Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2.2 The Debian Free Soware Guidelines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 The Inner Workings of the Debian Project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.1 The Debian Developers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
1.3.2 The Active Role of Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
1.3.3 Teams and Sub-Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Existing Debian Sub-Projects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Administrative Teams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Development Teams, Transversal Teams . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.4 Follow Debian News . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
1.5 The Role of Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.5.1 The Installer: debian-installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.5.2 The Soware Library . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.6 Lifecycle of a Release . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.6.1 The Experimental Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.6.2 The Unstable Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
1.6.3 Migration to Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
1.6.4 The Promotion from Testing to Stable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
1.6.5 The Oldstable and Oldoldstable Status . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2. Presenting the Case Study 31
2.1 Fast Growing IT Needs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.2 Master Plan . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
2.3 Why a GNU/Linux Distribution? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
2.4 Why the Debian Distribution? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.4.1 Commercial and Community Driven Distributions . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
2.5 Why Debian Jessie? . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
3. Analyzing the Existing Setup and Migrating 39
3.1 Coexistence in Heterogeneous Environments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.1.1 Integration with Windows Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.1.2 Integration with OSX machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.1.3 Integration with Other Linux/Unix Machines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
3.2 How To Migrate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.2.1 Survey and Identify Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Network and Processes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.2.2 Backing up the Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.2.3 Taking Over an Existing Debian Server . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
3.2.4 Installing Debian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
3.2.5 Installing and Configuring the Selected Services . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
4. Installation 47
4.1 Installation Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.1.1 Installing from a CD-ROM/DVD-ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
4.1.2 Booting from a USB Key . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
4.1.3 Installing through Network Booting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.1.4 Other Installation Methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.2 Installing, Step by Step . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.2.1 Booting and Starting the Installer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
4.2.2 Selecting the language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
4.2.3 Selecting the country . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.2.4 Selecting the keyboard layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
4.2.5 Detecting Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.2.6 Loading Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.2.7 Detecting Network Hardware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
4.2.8 Configuring the Network . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.2.9 Administrator Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
4.2.10 Creating the First User . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
4.2.11 Configuring the Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.2.12 Detecting Disks and Other Devices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
4.2.13 Starting the Partitioning Tool . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Guided partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 59
Manual Partitioning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
Configuring Multidisk Devices (Soware RAID) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Configuring the Logical Volume Manager (LVM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62
Seing Up Encrypted Partitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
4.2.14 Installing the Base System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
4.2.15 Configuring the Package Manager (apt) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 64
4.2.16 Debian Package Popularity Contest . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
4.2.17 Selecting Packages for Installation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.2.18 Installing the GRUB Bootloader . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
4.2.19 Finishing the Installation and Rebooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.3 Aer the First Boot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.3.1 Installing Additional Soware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
IV
The Debian Administrator’s Handbook
4.3.2 Upgrading the System . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
5. Packaging System: Tools and Fundamental Principles 71
5.1 Structure of a Binary Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
5.2 Package Meta-Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
5.2.1 Description: the control File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Dependencies: the Depends Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Conflicts: the Conflicts field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Incompatibilities: the Breaks Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Provided Items: the Provides Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Replacing Files: The Replaces Field . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5.2.2 Configuration Scripts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
Installation and Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Package Removal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
5.2.3 Checksums, List of Configuration Files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
5.3 Structure of a Source Package . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
5.3.1 Format . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 84
5.3.2 Usage within Debian . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.4 Manipulating Packages with dpkg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.4.1 Installing Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
5.4.2 Package Removal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5.4.3 erying dpkg’s Database and Inspecting .deb Files . . . . . . . . . . . . . . . . . . . . . . . . . . 90
5.4.4 dpkg’s Log File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
5.4.5 Multi-Arch Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Enabling Multi-Arch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Multi-Arch Related Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
5.5 Coexistence with Other Packaging Systems . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
6. Maintenance and Updates: The APT Tools 99
6.1 Filling in the sources.list File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6.1.1 Syntax . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
6.1.2 Repositories for Stable Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Security Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102
Stable Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Proposed Updates . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Stable Backports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
6.1.3 Repositories for Testing/Unstable Users . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
The Experimental Repository . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.1.4 Non-Oicial Resources: mentors.debian.net . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
6.1.5 Caching Proxy for Debian Packages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
6.2 aptitude, apt-get, and apt Commands . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.2.1 Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.2.2 Installing and Removing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 107
6.2.3 System Upgrade . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
6.2.4 Configuration Options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
V
Contents
剩余512页未读,继续阅读
falconzhz
- 粉丝: 2
- 资源: 3
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1