This is an archive of past FreeBSD releases; it's part of the FreeBSD Documentation Archive.

FreeBSD 使用手冊

FreeBSD 使用手冊

FreeBSD 文件計畫

歡迎使用FreeBSD! 本使用手冊涵蓋範圍包括了 FreeBSD 5.5-RELEASEFreeBSD 6.2-RELEASE 的安裝和日常使用。 這份使用手冊是很多人的集體創作,而且仍然『持續不斷』的進行中。 許多章節仍未完成,已完成的部份也有些需要更新。 如果您有興趣協助本計畫的話,請寄 e-mail 到 FreeBSD documentation project 郵遞論壇。 在 FreeBSD 網站 可以找到這份文件的最新版本(舊版文件可從 http://docs.FreeBSD.org/doc/ 取得),也可以從 FreeBSD FTP 伺服器 或是眾多 mirror 站臺 下載不同格式的資料。 如果比較偏好實體書面資料,那可以在 FreeBSD Mall 購買。 此外,也可以在 使用手冊 中搜尋資料。


Table of Contents
I. 開始使用 FreeBSD
1 簡介
1.1 概述
1.2 Welcome to FreeBSD!
1.3 關於 FreeBSD 計劃
2 安裝 FreeBSD
2.1 概述
2.2 硬體需求
2.3 安裝前的準備工作
2.4 開始安裝
2.5 介紹 Sysinstall
2.6 硬碟空間的分配
2.7 選擇想要安裝的
2.8 選擇安裝來源
2.9 開始進行安裝
2.10 後續安裝
2.11 安裝的疑難雜症解決
2.12 進階安裝指南
2.13 製作安裝片
3 UNIX 基礎概念
3.1 概述
3.2 Virtual Consoles 和終端機
3.3 權限
3.4 目錄結構
3.5 磁碟組織
3.6 掛載與卸載檔案系統
3.7 程序
3.8 Daemon、信號及終止程序
3.9 Shells
3.10 文字編輯器
3.11 Devices and Device Nodes
3.12 Binary Formats
3.13 更多資訊
4 軟體套件管理篇:Packages 及 Ports 機制
4.1 概述
4.2 安裝軟體的各種方式介紹
4.3 尋找想裝的軟體
4.4 使用 Packages 管理機制
4.5 使用 Ports 管理機制
4.6 安裝之後,有什麼後續注意事項嗎?
4.7 如何處理爛掉(Broken)的 Ports?
5 X Window 視窗系統
5.1 概述
5.2 瞭解 X 的世界
5.3 安裝 X11
5.4 設定 X11
5.5 在 X11 中使用字型
5.6 The X Display Manager
5.7 Desktop Environments
II. 一般性工作
6 桌面環境應用程式
6.1 概述
6.2 瀏覽器
6.3 辦公室軟體
6.4 文件閱覽器
6.5 財務
6.6 摘要
7 多媒體影音娛樂(Multimedia)
7.1 概述
7.2 設定音效卡
7.3 MP3 音樂
7.4 播放影片
7.5 設定電視卡(TV Cards)
7.6 掃描器
8 設定 FreeBSD Kernel
8.1 概述
8.2 為何需要重新調配、編譯 kernel?
8.3 重新調配、編譯 kernel
8.4 The Configuration File
8.5 Making Device Nodes
8.6 If Something Goes Wrong
9 列印
9.1 概述
9.2 介紹
9.3 Basic Setup
9.4 Advanced Printer Setup
9.5 Using Printers
9.6 Alternatives to the Standard Spooler
9.7 Troubleshooting
10 與 Linux Binary 的相容方面
10.1 概述
10.2 安裝
10.3 Installing Mathematica®
10.4 Installing Maple
10.5 Installing MATLAB®
10.6 Installing Oracle®
10.7 Installing SAP® R/3®
10.8 Advanced Topics
III. 系統管理
11 設定與效能調校(Tuning)
11.1 概述
11.2 一開始的規劃
11.3 最主要的設定檔
11.4 各式應用程式的設定檔
11.5 各種 Services 的啟動方式
11.6 設定 cron
11.7 在 FreeBSD 使用 rc
11.8 設定網路卡
11.9 虛擬主機(Virtual Hosts)
11.10 還有哪些主要設定檔呢?
11.11 Tuning with sysctl
11.12 Tuning Disks
11.13 Tuning Kernel Limits
11.14 Adding Swap Space
11.15 Power and Resource Management
11.16 Using and Debugging FreeBSD ACPI
12 FreeBSD 開機流程篇
12.1 概述
12.2 Booting 問題
12.3 The Boot Manager and Boot Stages
12.4 Kernel Interaction During Boot
12.5 Device Hints
12.6 Init: Process Control Initialization
12.7 Shutdown Sequence
13 使用者與基本帳號管理
13.1 概述
13.2 介紹
13.3 系統管理者帳號
13.4 系統帳號
13.5 使用者帳號
13.6 更改帳號
13.7 使用者資源限制
13.8 群組
14 系統安全
14.1 概述
14.2 介紹
14.3 FreeBSD 的系統安全
14.4 DES, MD5, and Crypt
14.5 One-time Passwords
14.6 TCP Wrappers
14.7 KerberosIV
14.8 Kerberos5
14.9 OpenSSL
14.10 VPN over IPsec
14.11 OpenSSH
14.12 File System Access Control Lists
14.13 Monitoring Third Party Security Issues
14.14 FreeBSD Security Advisories
14.15 Process Accounting
15 Mandatory Access Control
15.1 Synopsis
15.2 Key Terms in this Chapter
15.3 Explanation of MAC
15.4 Understanding MAC Labels
15.5 Module Configuration
15.6 The MAC bsdextended Module
15.7 The MAC ifoff Module
15.8 The MAC portacl Module
15.9 MAC Policies with Labeling Features
15.10 The MAC partition Module
15.11 The MAC Multi-Level Security Module
15.12 The MAC Biba Module
15.13 The MAC LOMAC Module
15.14 Implementing a Secure Environment with MAC
15.15 Another Example: Using MAC to Constrain a Web Server
15.16 Troubleshooting the MAC Framework
16 Security Event Auditing
16.1 Synopsis
16.2 Key Terms - Words to Know
16.3 Installing Audit Support
16.4 Audit Configuration
16.5 Event Audit Administration
17 儲存設備篇
17.1 概述
17.2 裝置名稱
17.3 新增硬碟
17.4 RAID
17.5 USB Storage Devices
17.6 Creating and Using Optical Media (CDs)
17.7 Creating and Using Optical Media (DVDs)
17.8 Creating and Using Floppy Disks
17.9 Creating and Using Data Tapes
17.10 Backups to Floppies
17.11 Backup Strategies
17.12 Backup Basics
17.13 Network, Memory, and File-Backed File Systems
17.14 File System Snapshots
17.15 File System Quotas
17.16 Encrypting Disk Partitions
17.17 Encrypting Swap Space
18 GEOM: Modular Disk Transformation Framework
18.1 概述
18.2 GEOM 導論
18.3 RAID0 - 分散連結(striping)
18.4 RAID1 - 鏡射(Mirroring)
19 The Vinum Volume Manager
19.1 Synopsis
19.2 Disks Are Too Small
19.3 Access Bottlenecks
19.4 Data Integrity
19.5 Vinum Objects
19.6 Some Examples
19.7 Object Naming
19.8 Configuring Vinum
19.9 Using Vinum for the Root Filesystem
20 Virtualization(虛擬機器)
20.1 Synopsis
20.2 安裝 FreeBSD 為 Guest OS
20.3 以 FreeBSD 為 Host OS
21 語系設定 - I18N/L10N 用法與設定
21.1 概述
21.2 L10N 基礎概念
21.3 使用語系設定(Localization)
21.4 Compiling I18N Programs
21.5 Localizing FreeBSD to Specific Languages
22 更新、升級 FreeBSD
22.1 概述
22.2 FreeBSD-CURRENT vs. FreeBSD-STABLE
22.3 更新你的 Source
22.4 重新編譯 “world”
22.5 Tracking for Multiple Machines
IV. 網路通訊
23 Serial Communications
23.1 Synopsis
23.2 Introduction
23.3 Terminals
23.4 Dial-in Service
23.5 Dial-out Service
23.6 Setting Up the Serial Console
24 PPP and SLIP
24.1 Synopsis
24.2 Using User PPP
24.3 Using Kernel PPP
24.4 Troubleshooting PPP Connections
24.5 Using PPP over Ethernet (PPPoE)
24.6 Using PPP over ATM (PPPoA)
24.7 Using SLIP
25 電子郵件
25.1 概述
25.2 使用電子郵件
25.3 sendmail Configuration
25.4 Changing Your Mail Transfer Agent
25.5 Troubleshooting
25.6 Advanced Topics
25.7 SMTP with UUCP
25.8 Setting Up to Send Only
25.9 Using Mail with a Dialup Connection
25.10 SMTP Authentication
25.11 Mail User Agents
25.12 Using fetchmail
25.13 Using procmail
26 Network Servers
26.1 概述
26.2 The inetd “Super-Server”
26.3 Network File System (NFS)
26.4 Network Information System (NIS/YP)
26.5 Automatic Network Configuration (DHCP)
26.6 Domain Name System (DNS)
26.7 BIND9 and FreeBSD
26.8 Apache HTTP Server
26.9 File Transfer Protocol (FTP)
26.10 File and Print Services for Microsoft® Windows® clients (Samba)
26.11 Clock Synchronization with NTP
27 防火牆
27.1 概述
27.2 淺談防火牆概念
27.3 防火牆相關軟體
27.4 OpenBSD 封包過濾器 (Packet Filter, PF)及 ALTQ
27.5 IPFILTER (IPF) 防火牆
27.6 IPFW
28 網路進階練功房
28.1 概述
28.2 Gateways and Routes
28.3 Wireless Networking
28.4 Bluetooth
28.5 Bridging
28.6 Link Aggregation and Failover
28.7 Diskless Operation
28.8 ISDN
28.9 Network Address Translation
28.10 Parallel Line IP (PLIP)
28.11 IPv6
28.12 Asynchronous Transfer Mode (ATM)
28.13 Common Access Redundancy Protocol (CARP)
V. 附錄
A. 取得 FreeBSD 的方式
A.1 CDROM 及 DVD 發行商
A.2 FTP 站
A.3 Anonymous CVS
A.4 Using CTM
A.5 Using CVSup
A.6 Using Portsnap
A.7 CVS Tags
A.8 AFS Sites
A.9 rsync Sites
B. 參考文獻
B.1 FreeBSD 相關的書籍、雜誌
B.2 使用說明手冊
B.3 系統管理指南
B.4 程式設計師指南
B.5 深入作業系統
B.6 資安領域的參考文獻
B.7 硬體方面的參考文獻
B.8 UNIX® 歷史淵源
B.9 雜誌、期刊
C. 網際網路上的資源
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 Officers
D.2 Core Team Members
D.3 Developers
FreeBSD Glossary
Colophon
List of Tables
2-1. 硬體清單(舉例)
2-2. 第一顆硬碟的分割區(Partition)配置
2-3. 其他硬碟的分割區(Partition)配置
2-4. FreeBSD 5.X and 6.X ISO Image Names and Meanings
3-1. 磁碟機代號
17-1. 命名規則
19-1. Vinum Plex Organizations
23-1. DB-25 to DB-25 Null-Modem Cable
23-2. DB-9 to DB-9 Null-Modem Cable
23-3. DB-9 to DB-25 Null-Modem Cable
23-4. Signal Names
28-1. Wiring a Parallel Cable for Networking
28-2. Reserved IPv6 addresses
List of Figures
2-1. FreeBSD Boot Loader 選單
2-2. 偵測硬體的例子
2-3. 選擇國別
2-4. 離開 Sysinstall 程式
2-5. 選擇 Sysinstall 主畫面的『Usage(快速說明)』
2-6. 選擇『Documentation(說明文件)』選單
2-7. Sysinstall 的說明文件(Documentation)選單
2-8. Sysinstall 主選單
2-9. Sysinstall 鍵盤對應選單
2-10. Sysinstall 主選單
2-11. Sysinstall 選項設定
2-12. 開始進行標準安裝
2-13. 選擇 FDisk 要分割的硬碟
2-14. (舉例)未編輯前的 Fdisk 分割區(Partition)
2-15. Fdisk 採用整顆硬碟作分割區(Partition)
2-16. Sysinstall 的 Boot Manager 選單
2-17. 離開『選擇硬碟』畫面
2-18. Sysinstall 的 Disklabel 編輯器
2-19. Sysinstall 的 Disklabel 編輯器 — 使用自動分配
2-20. Free Space for Root Partition
2-21. Edit Root Partition Size
2-22. Choose the Root Partition Type
2-23. Choose the Root Mount Point
2-24. Sysinstall Disklabel Editor
2-25. 選擇套件(Distributions)
2-26. Confirm Distributions
2-27. 選擇安裝來源
2-28. 選擇網路卡
2-29. Set Network Configuration for ed0
2-30. Editing inetd.conf
2-31. Default Anonymous FTP Configuration
2-32. Edit the FTP Welcome Message
2-33. Editing exports
2-34. System Console Configuration Options
2-35. Screen Saver Options
2-36. Screen Saver Timeout
2-37. System Console Configuration Exit
2-38. Select Your Region
2-39. Select Your Country
2-40. Select Your Time Zone
2-41. Select Mouse Protocol Type
2-42. Set Mouse Protocol
2-43. Configure Mouse Port
2-44. Setting the Mouse Port
2-45. Enable the Mouse Daemon
2-46. Test the Mouse Daemon
2-47. Select Package Category
2-48. Select Packages
2-49. Install Packages
2-50. Confirm Package Installation
2-51. Select User
2-52. Add User Information
2-53. Exit User and Group Management
2-54. Exit Install
2-55. Network Configuration Upper-level
2-56. Select a default MTA
2-57. Ntpdate Configuration
2-58. Network Configuration Lower-level
19-1. Concatenated Organization
19-2. Striped Organization
19-3. RAID-5 Organization
19-4. A Simple Vinum Volume
19-5. A Mirrored Vinum Volume
19-6. A Striped Vinum Volume
19-7. A Mirrored, Striped Vinum Volume
List of Examples
2-1. 使用現有的分割區
2-2. 縮減現有的分割區
3-1. 磁碟、slice 及分割區命名範例
3-2. 磁碟的概念模型
4-1. 手動下載、安裝 Package
11-1. Creating a Swapfile on FreeBSD
12-1. boot0 Screenshot
12-2. boot2 Screenshot
12-3. An Insecure Console in /etc/ttys
13-1. 在 FreeBSD 內新增使用者
13-2. rmuser 帳號移除
13-3. 系統管理者帳號 chpass
13-4. 一般使用者 chpass
13-5. 更改您的密碼
13-6. 以系統管理者帳號去更改其他使用者的密碼
13-7. Adding a Group Using pw(8)
13-8. Adding Somebody to a Group Using pw(8)
13-9. Using id(1) to Determine Group Membership
14-1. Using SSH to Create a Secure Tunnel for SMTP
17-1. Using dump over ssh
17-2. Using dump over ssh with RSH set
17-3. A Script for Creating a Bootable Floppy
17-4. Using mdconfig to Mount an Existing File System Image
17-5. Creating a New File-Backed Disk with mdconfig
17-6. Configure and Mount a File-Backed Disk with mdmfs
17-7. Creating a New Memory-Based Disk with mdconfig
17-8. Creating a New Memory-Based Disk with mdmfs
23-1. Adding Terminal Entries to /etc/ttys
25-1. Configuring the sendmail Access Database
25-2. Mail Aliases
25-3. Example Virtual Domain Mail Map
26-1. Sending inetd a HangUP Signal
26-2. Mounting an Export with amd
28-1. LACP aggregation with a Cisco switch
28-2. Failover mode
28-3. Branch Office or Home Network
28-4. Head Office or Other LAN
A-1. Checking Out Something from -CURRENT (ls(1)):
A-2. Using SSH to check out the src/ tree:
A-3. Checking Out the Version of ls(1) in the 6-STABLE Branch:
A-4. Creating a List of Changes (as Unified Diffs) to ls(1)
A-5. Finding Out What Other Module Names Can Be Used:

本文及其他文件,可由此下載:ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/

若有 FreeBSD 方面疑問,請先閱讀 FreeBSD 相關文件,如不能解決的話,再洽詢 <questions@FreeBSD.org>。
關於本文件的問題,請洽詢 <doc@FreeBSD.org>。