FreeBSD 使用手册

The FreeBSD Documentation Project

FreeBSD中文化项目

欢迎使用FreeBSD! 本手册适用于安装 FreeBSD 4.9-RELEASEFreeBSD 5.2.1-RELEASE 以及它们的日常使用。 这个手册目前由很多人持续地维护。其中的内容需要不断的添加和更新。 如果你有兴趣参加这个项目,请发邮件到FreeBSD documentation project 邮件列表。此文档最新的版本可以从 FreeBSD Web站点 上获得。 其他的各种格式和压缩的文档可以从FreeBSD 的 FTP 服务器 或下列其中的一个镜像站点下载获得. 如果你更喜欢获得一份手册的硬介质,你可以在 FreeBSD Mall购买. 你还可以使用搜索手册.


Table of Contents
前言
I. 起步
1. 介绍
1.1. 概要
1.2. 欢迎来到FreeBSD的世界
1.3. 关于FreeBSD计划
2. 安装 FreeBSD
2.1. 概述
2.2. 安装前的准备工作
2.3. 开始安装
2.4. 介绍 Sysinstall
2.5. 分配磁盘空间
2.6. 选择要安装的软件包
2.7. 选择您要使用的安装介质
2.8. 安装确认
2.9. 安装后的配置
2.10. 支持的硬件
2.11. 常见问题
2.12. 高级安装指南
2.13. 准备你自己的安装介质
3. UNIX Basics
3.1. Synopsis
3.2. Virtual Consoles and Terminals
3.3. Permissions
3.4. Directory Structure
3.5. Disk Organization
3.6. Mounting and Unmounting File Systems
3.7. Processes
3.8. Daemons, Signals, and Killing Processes
3.9. Shells
3.10. Text Editors
3.11. Devices and Device Nodes
3.12. Binary Formats
3.13. For More Information
4. 安装应用程序: Packages 和 Ports
4.1. 概要
4.2. 软件安装预览
4.3. 寻找你要的应用程序
4.4. 使用package系统
4.5. 使用Ports Collection
4.6. Post-installation Activities
4.7. Dealing with Broken Ports
5. X Window 系统
5.1. 概述
5.2. 理解 X
5.3. 安装 XFree86
5.4. XFree86™ 的配置
5.5. XFree86™ 中使用字体
5.6. X 显示管理器
5.7. 桌面环境
II. 系统管理
6. 设置和调整
6.1. 大纲
6.2. 初步配置
6.3. 核心配置
6.4. 应用程序配置
6.5. 启动服务
6.6. 配置 cron
6.7. 在 FreeBSD 5.X 下使用 rc
6.8. 设置网卡
6.9. 虚拟主机
6.10. 配置文件
6.11. 用 sysctl 进行调整
6.12. 调整磁盘
6.13. 调整内核限制
6.14. 添加交换空间
6.15. 电源和资源管理
7. FreeBSD引导过程
7.1. 概述
7.2. 引导问题
7.3. MBR, 和引导阶段一,二,三
7.4. 内核在引导时的交互
7.5. Device Hints
7.6. Init:进程控制及初始化
7.7. shutdown 队列
8. 用户和基本的帐户管理
8.1. 概要
8.2. 介绍
8.3. 超级用户帐户
8.4. 系统帐户
8.5. 用户帐户
8.6. 修改帐户
8.7. 限制用户使用系统资源
8.8. 个性化用户设置
8.9.
9. 配置FreeBSD的内核
9.1. 摘要
9.2. 为什么需要建立一个定制的内核?
9.3. 建立并安装一个定制的内核
9.4. 配置文件
9.5. 创建设备节点
9.6. 如果出现问题怎么办
10. 安全
10.1. 概述
10.2. 介绍
10.3. 确保FreeBSD的安全
10.4. DES, MD5, and Crypt
10.5. One-time Passwords
10.6. KerberosIV
10.7. Kerberos5
10.8. Firewalls
10.9. OpenSSL
10.10. VPN over IPsec
10.11. OpenSSH
10.12. Mandatory Access Control (MAC)
10.13. File System Access Control Lists
10.14. FreeBSD Security Advisories
11. Printing
11.1. Synopsis
11.2. Introduction
11.3. Basic Setup
11.4. Advanced Printer Setup
11.5. Using Printers
11.6. Alternatives to the Standard Spooler
11.7. Troubleshooting
12. Storage
12.1. Synopsis
12.2. Device Names
12.3. Adding Disks
12.4. RAID
12.5. Creating and Using Optical Media (CDs & DVDs)
12.6. Creating and Using Floppy Disks
12.7. Creating and Using Data Tapes
12.8. Backups to Floppies
12.9. Backup Basics
12.10. Network, Memory, and File-Backed File Systems
12.11. File System Snapshots
12.12. File System Quotas
12.13. Encrypting Disk Partitions
13. The Vinum Volume Manager
13.1. Synopsis
13.2. Disks Are Too Small
13.3. Access Bottlenecks
13.4. Data Integrity
13.5. Vinum Objects
13.6. Some Examples
13.7. Object Naming
13.8. Configuring Vinum
13.9. Using Vinum for the Root Filesystem
14. 本地化-I18N/L10N使用和设置
14.1. 摘要
14.2. 基础知识
14.3. 使用本地化语言
14.4. 编译I18N程序
14.5. 本地化FreeBSD
15. 桌面应用
15.1. 概要
15.2. 浏览器
15.3. 办公,图象处理
15.4. 文档查看器
15.5. 财务
15.6. 总结
16. 多媒体
16.1. 概要
16.2. 安装声卡
16.3. MP3音频
16.4. 视频回放
16.5. 安装电视卡
17. Serial Communications
17.1. Synopsis
17.2. Introduction
17.3. Terminals
17.4. Dial-in Service
17.5. Dial-out Service
17.6. Setting Up the Serial Console
18. PPP 和 SLIP
18.1. 概述
18.2. 使用用户级PPP
18.3. 使用内核级PPP
18.4. Troubleshooting PPP Connections
18.5. 使用基于以太网的PPP(PPPoE)
18.6. Using PPP over ATM (PPPoA)
18.7. 使用SLIP
19. Advanced Networking
19.1. Synopsis
19.2. Gateways and Routes
19.3. Wireless Networking
19.4. Bluetooth
19.5. Bridging
19.6. NFS
19.7. Diskless Operation
19.8. ISDN
19.9. NIS/YP
19.10. DHCP
19.11. DNS
19.12. NTP
19.13. Network Address Translation
19.14. The inetd ``Super-Server''
19.15. Parallel Line IP (PLIP)
19.16. IPv6
20. 电子邮件
20.1. 概要
20.2. 使用电子邮件
20.3. sendmail 配置
20.4. 改变你的邮件传输代理程序
20.5. 疑难解答
20.6. 高级主题
20.7. SMTP 与 UUCP
20.8. 拨号连接时使用邮件传送
20.9. SMTP 验证
21. 最前沿
21.1. 概述
21.2. FreeBSD-CURRENT 对 FreeBSD-STABLE
21.3. 同步你的源码
21.4. 使用make world
21.5. 跟踪多台机器
22. Linux二进制兼容模式
22.1. 概要
22.2. 安装
22.3. 安装Mathematica®
22.4. 安装Maple
22.5. 安装MATLAB®
22.6. 安装Oracle®
22.7. 安装SAP® R/3®
22.8. 高级主题
III. 附录
A. Obtaining FreeBSD
A.1. CDROM and DVD Publishers
A.2. FTP Sites
A.3. Anonymous CVS
A.4. Using CTM
A.5. Using CVSup
A.6. CVS Tags
A.7. AFS Sites
A.8. rsync Sites
B. 参考文献
B.1. 关于 FreeBSD 的专业书籍与杂志
B.2. 用户指南
B.3. 管理员指南
B.4. 开发指南
B.5. 操作系统原理
B.6. 信息安全方面的参考文献
B.7. 硬件参考
B.8. UNIX® 历史
B.9. 各种期刊
C. Resources on the Internet
C.1. Mailing Lists
C.2. Usenet Newsgroups
C.3. World Wide Web Servers
C.4. Email Addresses
C.5. Shell Accounts
D. PGP Keys
D.1. 官员
D.2. 核心团队成员
D.3. 开发者
Colophon
List of Tables
2-1. 硬件设备清单
2-2. 第一个硬盘的分区表
2-3. Partition Layout for Subsequent Disks
2-4. 可能的安全等级
2-5. FreeBSD ISO映像文件名和含意
3-1. Disk Device Codes
12-1. Physical Disk Naming Conventions
13-1. Vinum Plex Organizations
19-1. Wiring a Parallel Cable for Networking
List of Figures
2-1. 内核配置菜单
2-2. 配置内核可视化视觉接口
2-3. 展开驱动程序清单
2-4. 没有冲突的设备驱动程序状态画面
2-5. Sysinstall 主界面
2-6. 典型的设备探测结果
2-7. 选择离开Sysinstall
2-8. 选取Sysinstall主菜单的Usage项目
2-9. 选择说明文件菜单
2-10. Sysinstall说明文件菜单
2-11. Sysinstall 主菜单
2-12. Sysinstall 键盘对应菜单
2-13. Sysinstall 主菜单
2-14. Sysinstall 选项设置
2-15. 开始进行标准安装
2-16. 选择要分区的硬盘
2-17. 典型的尚未编辑前的Fdisk分区表
2-18. Fdisk 分区使用整个硬盘
2-19. Sysinstall 多重引导管理程序
2-20. 离开选择硬盘画面
2-21. Sysinstall Disklabel 编辑器
2-22. Sysinstall Disklabel 编辑器-使用自动配置
2-23. 根目录使用空间
2-24. 编辑要分区大小
2-25. 选择根分区类型
2-26. 选择根挂接点
2-27. Sysinstall Disklabel 编辑器
2-28. 选择软件包
2-29. 确认您要安装的软件包
2-30. 选择安装介质
2-31. 选择网卡设备
2-32. 配置 ed0接口
2-33. 编辑 inetd.conf配置文件
2-34. 默认的匿名FTP配置
2-35. 编辑FTP欢迎信息
2-36. 编辑 exports文件
2-37. 选择安全等级
2-38. 系统终端配置选项
2-39. 屏幕保护程序选项
2-40. 屏幕保护时间设置
2-41. 退出系统终端配置
2-42. 选择您所处的地理区域
2-43. 选择您所在的国家
2-44. 选择您所在的时区
2-45. 选择鼠标类型
2-46. 设置鼠标协议
2-47. 配置鼠标端口
2-48. 配置鼠标端口
2-49. 启动鼠标服务进程
2-50. 测试鼠标功能
2-51. Network Configuration Upper-level
2-52. 选择默认的 MTA
2-53. Ntpdate 配置
2-54. Network Configuration Lower-level
2-55. 选择配置方法菜单
2-56. 选择默认桌面
2-57. 选择软件所的种类
2-58. 选择软件包
2-59. 安装软件包
2-60. 确认安装的软件包
2-61. 选择用户
2-62. 添加用户信息
2-63. 退出用户和组管理
2-64. 退出安装
13-1. Concatenated Organization
13-2. Striped Organization
13-3. RAID-5 Organization
13-4. A Simple Vinum Volume
13-5. A Mirrored Vinum Volume
13-6. A Striped Vinum Volume
13-7. A Mirrored, Striped Vinum Volume
List of Examples
2-1. 使用已存在的分区
2-2. 缩减已现在的分区
3-1. Sample Disk, Slice, and Partition Names
3-2. Conceptual Model of a Disk
4-1. 下载一个package然后在本地安装:
6-1. 在 FreeBSD 4.X 上创建一个交换文件
6-2. 在 FreeBSD 5.X 上创建一个交换文件:
7-1. boot0 Screenshot
7-2. boot2的屏幕输出
7-3. /etc/ttys文件中的不安全控制台
8-1. 配置 adduser 和添加一个新用户,在FreeBSD 4.X版本
8-2. 添加一个新用户在FreeBSD 5.X版本
8-3. 删除用户 交互模式下的帐户删除
8-4. 以超级用户交互执行 chpass 命令
8-5. 以普通用户交互执行 chpass 命令
8-6. 改变你的口令
8-7. 改变其他用户的口令同超级用户的一样
8-8. 使用pw(8)添加一个组
8-9. 使用pw(8)在组中添加用户
8-10. 使用id(1)来决定组成员
10-1. Using SSH to Create a Secure Tunnel for SMTP
12-1. Using dump over ssh
12-2. A Script for Creating a Bootable Floppy
12-3. Using vnconfig to Mount an Existing File System Image under FreeBSD 4.X
12-4. Creating a New File-Backed Disk with vnconfig
12-5. Using mdconfig to Mount an Existing File System Image under FreeBSD 5.X
12-6. Creating a New File-Backed Disk with mdconfig
12-7. md Memory Disk under FreeBSD 4.X
12-8. Creating a New Memory-Based Disk with mdconfig
12-9. Creating a New Memory-Based Disk with mdmfs
17-1. Adding Terminal Entries to /etc/ttys
19-1. Mounting an Export with amd
19-2. Branch Office or Home Network
19-3. Head Office or Other LAN
19-4. Sending inetd a HangUP Signal
20-1. 配置sendmail 访问数据库
20-2. 邮件别名
20-3. 虚拟域邮件映射的例子
A-1. Checking Out Something from -CURRENT (ls(1)) and Deleting It Again:
A-2. Checking Out the Version of ls(1) in the 3.X-STABLE Branch:
A-3. Creating a List of Changes (as Unified Diffs) to ls(1)
A-4. Finding Out What Other Module Names Can Be Used: