# FreeBSD Handbook

### The FreeBSD Documentation Project

Copyright © 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 The FreeBSD Documentation Project

Welcome to FreeBSD! This handbook covers the installation and day to day use of FreeBSD 8.4-RELEASE and FreeBSD 9.1-RELEASE. This manual is a work in progress and is the work of many individuals. As such, some sections may become dated and require updating. If you are interested in helping out with this project, send email to the FreeBSD documentation project mailing list. The latest version of this document is always available from the FreeBSD web site (previous versions of this handbook can be obtained from http://docs.FreeBSD.org/doc/). It may also be downloaded in a variety of formats and compression options from the FreeBSD FTP server or one of the numerous mirror sites. If you would prefer to have a hard copy of the handbook, you can purchase one at the FreeBSD Mall. You may also want to search the handbook.

[ Split HTML / Single HTML ]

List of Tables
2-1. Partitioning Schemes
3-1. Sample Device Inventory
3-2. Partition Layout for First Disk
3-3. Partition Layout for Subsequent Disks
3-4. FreeBSD ISO Image Names and Meanings
4-1. Disk Device Codes
19-1. Physical Disk Naming Conventions
22-1. `vinum` Plex Organizations
27-1. DB-25 to DB-25 Null-Modem Cable
27-2. DB-9 to DB-9 Null-Modem Cable
27-3. DB-9 to DB-25 Null-Modem Cable
27-4. Signal Names
32-1. Station Capability Codes
32-2. Reserved IPv6 Addresses

List of Figures
2-1. FreeBSD Boot Loader Menu
2-2. Typical Device Probe Results
2-3. Selecting Installation Media Mode
2-4. Keymap Selection
2-5. Selecting Keyboard Menu
2-6. Setting the Hostname
2-7. Selecting Components to Install
2-8. Installing from the Network
2-9. Choosing a Mirror
2-10. Selecting Guided or Manual Partitioning
2-11. Selecting from Multiple Disks
2-12. Selecting Entire Disk or Partition
2-13. Review Created Partitions
2-14. Manually Create Partitions
2-15. Manually Create Partitions
2-16. Manually Create Partitions
2-17. Final Confirmation
2-18. Fetching Distribution Files
2-19. Verifying Distribution Files
2-20. Extracting Distribution Files
2-21. Setting the `root` Password
2-22. Choose a Network Interface
2-23. Scanning for Wireless Access Points
2-24. Choosing a Wireless Network
2-25. WPA2 Setup
2-26. Choose IPv4 Networking
2-27. Choose IPv4 DHCP Configuration
2-28. IPv4 Static Configuration
2-29. Choose IPv6 Networking
2-30. Choose IPv6 SLAAC Configuration
2-31. IPv6 Static Configuration
2-32. DNS Configuration
2-33. Select Local or UTC Clock
2-34. Select a Region
2-35. Select a Country
2-36. Select a Time Zone
2-37. Confirm Time Zone
2-38. Selecting Additional Services to Enable
2-39. Enabling Crash Dumps
2-40. Add User Accounts
2-41. Enter User Information
2-42. Exit User and Group Management
2-43. Final Configuration
2-44. Manual Configuration
2-45. Complete the Installation
3-1. FreeBSD Boot Loader Menu
3-2. Typical Device Probe Results
3-3. Selecting Country Menu
3-4. Selecting Keyboard Menu
3-5. Selecting Usage from Sysinstall Main Menu
3-6. Selecting Documentation Menu
3-7. Sysinstall Documentation Menu
3-8. Sysinstall Main Menu
3-9. Sysinstall Keymap Menu
3-10. Sysinstall Main Menu
3-11. Sysinstall Options
3-12. Begin Standard Installation
3-13. Select Drive for FDisk
3-14. Typical `fdisk` Partitions Before Editing
3-15. Fdisk Partition Using Entire Disk
3-16. Sysinstall Boot Manager Menu
3-17. Exit Select Drive
3-18. Sysinstall Disklabel Editor
3-19. Sysinstall Disklabel Editor with Auto Defaults
3-20. Free Space for Root Partition
3-21. Edit Root Partition Size
3-22. Choose the Root Partition Type
3-23. Choose the Root Mount Point
3-24. Sysinstall Disklabel Editor
3-25. Choose Distributions
3-26. Confirm Distributions
3-27. Choose Installation Media
3-28. Selecting an Ethernet Device
3-29. Set Network Configuration for `ed0`
3-30. Editing `inetd.conf`
3-31. Default Anonymous FTP Configuration
3-32. Edit the FTP Welcome Message
3-33. Editing `exports`
3-34. System Console Configuration Options
3-35. Screen Saver Options
3-36. Screen Saver Timeout
3-37. System Console Configuration Exit
3-38. Select Your Region
3-39. Select Your Country
3-40. Select Your Time Zone
3-41. Select Mouse Protocol Type
3-42. Set Mouse Protocol
3-43. Configure Mouse Port
3-44. Setting the Mouse Port
3-45. Enable the Mouse Daemon
3-46. Test the Mouse Daemon
3-47. Select Package Category
3-48. Select Packages
3-49. Install Packages
3-50. Confirm Package Installation
3-51. Select User
3-52. Add User Information
3-53. Exit User and Group Management
3-54. Exit Install
3-55. Network Configuration Upper-level
3-56. Select a default MTA
3-57. Ntpdate Configuration
3-58. Network Configuration Lower-level
22-1. Concatenated Organization
22-2. Striped Organization
22-3. RAID-5 Organization
22-4. A Simple `vinum` Volume
22-5. A Mirrored `vinum` Volume
22-6. A Striped `vinum` Volume
22-7. A Mirrored, Striped `vinum` Volume
32-1. PXE Booting Process with NFS Root Mount

List of Examples
2-1. Using an Existing Partition
2-2. Shrinking an Existing Partition
2-3. Creating Traditional Split Filesystem Partitions
3-1. Using an Existing Partition Unchanged
3-2. Shrinking an Existing Partition
4-1. Sample Disk, Slice, and Partition Names
4-2. Conceptual Model of a Disk
5-1. Downloading a Package Manually and Installing It Locally
12-1. Creating a Swapfile on FreeBSD
13-1. `boot0` Screenshot
13-2. `boot2` Screenshot
13-3. An Insecure Console in `/etc/ttys`
14-1. Adding a User on FreeBSD
14-2. `rmuser` Interactive Account Removal
14-3. Interactive `chpass` by Superuser
14-4. Interactive `chpass` by Normal User
14-5. Changing Your Password
14-6. Changing Another User's Password as the Superuser
14-7. Adding a Group Using pw(8)
14-8. Adding User Accounts to a New Group Using pw(8)
14-9. Adding a New Member to a Group Using pw(8)
14-10. Using id(1) to Determine Group Membership
15-1. Using SSH to Create a Secure Tunnel for SMTP
19-1. Using `dump` over ssh
19-2. Using `dump` over ssh with `RSH` Set
19-3. Using `mdconfig` to Mount an Existing File System Image
19-4. Creating a New File-Backed Disk with `mdconfig`
19-5. Configure and Mount a File-Backed Disk with `mdmfs`
19-6. Creating a New Memory-Based Disk with `mdconfig`
19-7. Creating a New Memory-Based Disk with `mdmfs`
20-1. Labeling Partitions on the Boot Disk
27-1. Adding Terminal Entries to `/etc/ttys`
29-1. Configuring the sendmail Access Database
29-2. Mail Aliases
29-3. Example Virtual Domain Mail Map
30-1. Reloading the inetd Configuration File
30-2. Mounting an Export with amd
30-3. Installing Django with Apache2, mod_python3, and PostgreSQL
30-4. Apache Configuration for Django/mod_python
32-1. LACP Aggregation with a Cisco® Switch
32-2. Failover Mode
32-3. Failover Mode Between Wired and Wireless Interfaces
32-4. Branch Office or Home Network
32-5. Head Office or Other LAN

|  | Next
|  | Preface