FreeBSD ¨Ï¥Î¤â¥U

FreeBSD ¤å¥ó­pµe

Åwªï¨Ï¥ÎFreeBSD¡I ¥»¨Ï¥Î¤â¥U²[»\½d³ò¥]¬A¤F FreeBSD 8.3-RELEASE ©M FreeBSD 9.1-RELEASE ªº¦w¸Ë©M¤é±`¨Ï¥Î¡C ³o¥÷¨Ï¥Î¤â¥U¬O«Ü¦h¤Hªº¶°Åé³Ð§@¡A¦Ó¥B¤´µM¡y«ùÄò¤£Â_¡zªº¶i¦æ¤¤¡C ³\¦h³¹¸`¤´¥¼§¹¦¨¡A¤w§¹¦¨ªº³¡¥÷¤]¦³¨Ç»Ý­n§ó·s¡C ¦pªG±z¦³¿³½ì¨ó§U¥»­pµeªº¸Ü¡A½Ð±H e-mail ¨ì FreeBSD documentation project ¶l»¼½×¾Â¡C ¦b FreeBSD ºô¯¸ ¥i¥H§ä¨ì³o¥÷¤å¥óªº³Ì·sª©¥»(ª©¤å¥ó¥i±q http://docs.FreeBSD.org/doc/ ¨ú±o)¡A¤]¥i¥H±q FreeBSD FTP ¦øªA¾¹ ©Î¬O²³¦h mirror ¯¸»O ¤U¸ü¤£¦P®æ¦¡ªº¸ê®Æ¡C ¦pªG¤ñ¸û°¾¦n¹êÅé®Ñ­±¸ê®Æ¡A¨º¥i¥H¦b FreeBSD Mall ÁʶR¡C ¦¹¥~¡A¤]¥i¥H¦b ¨Ï¥Î¤â¥U ¤¤·j´M¸ê®Æ¡C


Table of Contents
§Ç
I. ¶}©l¨Ï¥Î FreeBSD
1 ²¤¶
1.1 ·§­z
1.2 Welcome to FreeBSD!
1.3 Ãö©ó FreeBSD ­p¹º
2 ¦w¸Ë FreeBSD
2.1 ·§­z
2.2 µwÅé»Ý¨D
2.3 ¦w¸Ë«eªº·Ç³Æ¤u§@
2.4 ¶}©l¦w¸Ë
2.5 ¤¶²Ð Sysinstall
2.6 µwºÐªÅ¶¡ªº¤À°t
2.7 ¿ï¾Ü·Q­n¦w¸Ëªº
2.8 ¿ï¾Ü¦w¸Ë¨Ó·½
2.9 ¶}©l¶i¦æ¦w¸Ë
2.10 «áÄò¦w¸Ë
2.11 ¦w¸ËªººÃÃøÂø¯g¸Ñ¨M
2.12 ¶i¶¥¦w¸Ë«ü«n
2.13 »s§@¦w¸Ë¤ù
3 UNIX °ò¦·§©À
3.1 ·§­z
3.2 Virtual Consoles ©M²×ºÝ¾÷
3.3 Åv­­
3.4 ¥Ø¿ýµ²ºc
3.5 ºÏºÐ²Õ´
3.6 ±¾¸ü»P¨ø¸üÀɮרt²Î
3.7 µ{§Ç
3.8 Daemon¡B«H¸¹¤Î²×¤îµ{§Ç
3.9 Shells
3.10 ¤å¦r½s¿è¾¹
3.11 ³]³Æ¤Î³]³Æ¸`ÂI
3.12 Binary ªº®æ¦¡
3.13 §ó¦h¸ê°T
4 ³nÅé®M¥óºÞ²z½g¡GPackages ¤Î Ports ¾÷¨î
4.1 ·§­z
4.2 ¦w¸Ë³nÅ骺¦UºØ¤è¦¡¤¶²Ð
4.3 ´M§ä·Q¸Ëªº³nÅé
4.4 ¨Ï¥Î Packages ºÞ²z¾÷¨î
4.5 ¨Ï¥Î Ports ºÞ²z¾÷¨î
4.6 ¦w¸Ë¤§«á¡A¦³¤°»ò«áÄòª`·N¨Æ¶µ¶Ü¡H
4.7 ¦p¦ó³B²zÄê±¼(Broken)ªº Ports¡H
5 X Window µøµ¡¨t²Î
5.1 ·§­z
5.2 ÁA¸Ñ X ªº¥@¬É
5.3 ¦w¸Ë X11
5.4 ³]©w X11
5.5 ¦b X11 ¤¤¨Ï¥Î¦r«¬
5.6 The X Display Manager
5.7 ®à­±Àô¹Ò
II. ¤@¯ë©Ê¤u§@
6 ®à­±Àô¹ÒÀ³¥Îµ{¦¡
6.1 ·§­z
6.2 ÂsÄý¾¹
6.3 ¿ì¤½«Ç³nÅé
6.4 ¤å¥ó¾\Äý¾¹
6.5 °]°È
6.6 ºK­n
7 ¦h´CÅé¼v­µ®T¼Ö(Multimedia)
7.1 ·§­z
7.2 ³]©w­µ®Ä¥d
7.3 MP3 ­µ¼Ö
7.4 ¼½©ñ¼v¤ù
7.5 ³]©w¹qµø¥d(TV Cards)
7.6 ±½´y¾¹
8 ³]©w FreeBSD Kernel
8.1 ·§­z
8.2 ¬°¦ó»Ý­n­«·s½Õ°t¡B½sĶ kernel¡H
8.3 ±´´ú¨t²ÎµwÅé
8.4 ­«·s½Õ°t¡B½sĶ kernel
8.5 kernel ³]©wÀɸѻ¡
8.6 If Something Goes Wrong
9 ¦C¦L
9.1 ·§­z
9.2 ¤¶²Ð
9.3 °ò¦³]©w
9.4 Advanced Printer Setup
9.5 Using Printers
9.6 Alternatives to the Standard Spooler
9.7 Troubleshooting
10 »P Linux Binary ªº¬Û®e¤è­±
10.1 ·§­z
10.2 ¦w¸Ë
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. ¨t²ÎºÞ²z
11 ³]©w»P®Ä¯à½Õ®Õ(Tuning)
11.1 ·§­z
11.2 ¤@¶}©lªº³W¹º
11.3 ³Ì¥D­nªº³]©wÀÉ
11.4 ¦U¦¡À³¥Îµ{¦¡ªº³]©wÀÉ
11.5 ¦UºØ Services ªº±Ò°Ê¤è¦¡
11.6 ³]©w cron
11.7 ¦b FreeBSD ¨Ï¥Î rc
11.8 ³]©wºô¸ô¥d
11.9 µêÀÀ¥D¾÷(Virtual Hosts)
11.10 ÁÙ¦³­þ¨Ç¥D­n³]©wÀÉ©O¡H
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 ¶}¾÷¬yµ{½g
12.1 ·§­z
12.2 Booting °ÝÃD
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 ¨Ï¥ÎªÌ»P°ò¥»±b¸¹ºÞ²z
13.1 ·§­z
13.2 ¤¶²Ð
13.3 ¨t²ÎºÞ²zªÌ±b¸¹
13.4 ¨t²Î±b¸¹
13.5 ¨Ï¥ÎªÌ±b¸¹
13.6 §ó§ï±b¸¹
13.7 ¨Ï¥ÎªÌ¸ê·½­­¨î
13.8 ¸s²Õ
14 ¨t²Î¦w¥þ
14.1 ·§­z
14.2 ¤¶²Ð
14.3 FreeBSD ªº¨t²Î¦w¥þ
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 Jails
15.1 ·§­z
15.2 Jail ¬ÛÃö³N»y
15.3 ­I´º¬G¨Æ
15.4 «Ø¥ß©M±±¨î Jail
15.5 ·L½Õ»PºÞ²z
15.6 Jail ªºÀ³¥Î
16 Mandatory Access Control
16.1 Synopsis
16.2 Key Terms in this Chapter
16.3 Explanation of MAC
16.4 Understanding MAC Labels
16.5 Module Configuration
16.6 The MAC bsdextended Module
16.7 The MAC ifoff Module
16.8 The MAC portacl Module
16.9 MAC Policies with Labeling Features
16.10 The MAC partition Module
16.11 The MAC Multi-Level Security Module
16.12 The MAC Biba Module
16.13 The MAC LOMAC Module
16.14 Implementing a Secure Environment with MAC
16.15 Another Example: Using MAC to Constrain a Web Server
16.16 Troubleshooting the MAC Framework
17 Security Event Auditing
17.1 Synopsis
17.2 Key Terms - Words to Know
17.3 Installing Audit Support
17.4 Audit Configuration
17.5 Event Audit Administration
18 Àx¦s³]³Æ½g
18.1 ·§­z
18.2 ¸Ë¸m¦WºÙ
18.3 ·s¼WºÏºÐ
18.4 RAID
18.5 USB Àx¦s¸Ë¸m
18.6 Creating and Using Optical Media (CDs)
18.7 Creating and Using Optical Media (DVDs)
18.8 Creating and Using Floppy Disks
18.9 Creating and Using Data Tapes
18.10 Backups to Floppies
18.11 Backup Strategies
18.12 Backup Basics
18.13 Network, Memory, and File-Backed File Systems
18.14 File System Snapshots
18.15 ºÏºÐªÅ¶¡°tÃB(Quota)
18.16 Encrypting Disk Partitions
18.17 Encrypting Swap Space
19 GEOM: Modular Disk Transformation Framework
19.1 ·§­z
19.2 GEOM ¾É½×
19.3 RAID0 - ¤À´²³sµ²(striping)
19.4 RAID1 - Ãè®g(Mirroring)
20 The Vinum Volume Manager
20.1 Synopsis
20.2 Disks Are Too Small
20.3 Access Bottlenecks
20.4 Data Integrity
20.5 Vinum Objects
20.6 Some Examples
20.7 Object Naming
20.8 Configuring Vinum
20.9 Using Vinum for the Root Filesystem
21 Virtualization(µêÀÀ¾÷¾¹)
21.1 Synopsis
21.2 ¦w¸Ë FreeBSD ¬° Guest OS
21.3 ¥H FreeBSD ¬° Host OS
22 »y¨t³]©w - I18N/L10N ¥Îªk»P³]©w
22.1 ·§­z
22.2 L10N °ò¦·§©À
22.3 ¨Ï¥Î»y¨t³]©w(Localization)
22.4 Compiling I18N Programs
22.5 Localizing FreeBSD to Specific Languages
23 §ó·s¡B¤É¯Å FreeBSD
23.1 ·§­z
23.2 FreeBSD-CURRENT vs. FreeBSD-STABLE
23.3 §ó·s§Aªº Source
23.4 ­«·s½sĶ ¡§world¡¨
23.5 Tracking for Multiple Machines
IV. ºô¸ô³q°T
24 Serial Communications
24.1 Synopsis
24.2 Introduction
24.3 Terminals
24.4 Dial-in Service
24.5 Dial-out Service
24.6 Setting Up the Serial Console
25 PPP and SLIP
25.1 Synopsis
25.2 Using User PPP
25.3 Using Kernel PPP
25.4 Troubleshooting PPP Connections
25.5 Using PPP over Ethernet (PPPoE)
25.6 Using PPP over ATM (PPPoA)
25.7 Using SLIP
26 ¹q¤l¶l¥ó
26.1 ·§­z
26.2 ¨Ï¥Î¹q¤l¶l¥ó
26.3 sendmail Configuration
26.4 Changing Your Mail Transfer Agent
26.5 Troubleshooting
26.6 Advanced Topics
26.7 SMTP with UUCP
26.8 Setting Up to Send Only
26.9 Using Mail with a Dialup Connection
26.10 SMTP Authentication
26.11 Mail User Agents
26.12 Using fetchmail
26.13 Using procmail
27 Network Servers
27.1 ·§­z
27.2 The inetd ¡§Super-Server¡¨
27.3 Network File System (NFS)
27.4 Network Information System (NIS/YP)
27.5 Automatic Network Configuration (DHCP)
27.6 Domain Name System (DNS)
27.7 BIND9 and FreeBSD
27.8 Apache HTTP Server
27.9 File Transfer Protocol (FTP)
27.10 File and Print Services for Microsoft® Windows® clients (Samba)
27.11 Clock Synchronization with NTP
28 ¨¾¤õÀð
28.1 ·§­z
28.2 ²L½Í¨¾¤õÀð·§©À
28.3 ¨¾¤õÀð¬ÛÃö³nÅé
28.4 OpenBSD «Ê¥]¹LÂo¾¹ (Packet Filter, PF)¤Î ALTQ
28.5 IPFILTER (IPF) ¨¾¤õÀð
28.6 IPFW
29 ºô¸ô¶i¶¥½m¥\©Ð
29.1 ·§­z
29.2 Gateways and Routes
29.3 Wireless Networking
29.4 Bluetooth
29.5 Bridging
29.6 Link Aggregation and Failover
29.7 Diskless Operation
29.8 ISDN
29.9 Network Address Translation
29.10 Parallel Line IP (PLIP)
29.11 IPv6
29.12 Asynchronous Transfer Mode (ATM)
29.13 Common Access Redundancy Protocol (CARP)
V. ªþ¿ý
A. ¨ú±o FreeBSD ªº¤è¦¡
A.1 CDROM ¤Î DVD µo¦æ°Ó
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. °Ñ¦Ò¤åÄm
B.1 FreeBSD ¬ÛÃöªº®ÑÄy¡BÂø»x
B.2 ¨Ï¥Î»¡©ú¤â¥U
B.3 ¨t²ÎºÞ²z«ü«n
B.4 µ{¦¡³]­p®v«ü«n
B.5 ²`¤J§@·~¨t²Î
B.6 ¸ê¦w»â°ìªº°Ñ¦Ò¤åÄm
B.7 µwÅé¤è­±ªº°Ñ¦Ò¤åÄm
B.8 UNIX® ¾ú¥v²W·½
B.9 Âø»x¡B´Á¥Z
C. ºô»Úºô¸ô¤Wªº¸ê·½
C.1 ¶l»¼½×¾Â(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. µwÅé²M³æ(Á|¨Ò)
2-2. ²Ä¤@ÁûµwºÐªº¤À³Î°Ï(Partition)°t¸m
2-3. ¨ä¥LµwºÐªº¤À³Î°Ï(Partition)°t¸m
2-4. FreeBSD 5.X and 6.X ISO Image Names and Meanings
3-1. ºÏºÐ¾÷¥N¸¹
18-1. ©R¦W³W«h
20-1. Vinum Plex Organizations
24-1. DB-25 to DB-25 Null-Modem Cable
24-2. DB-9 to DB-9 Null-Modem Cable
24-3. DB-9 to DB-25 Null-Modem Cable
24-4. Signal Names
29-1. Wiring a Parallel Cable for Networking
29-2. Reserved IPv6 addresses
List of Figures
2-1. FreeBSD Boot Loader ¿ï³æ
2-2. °»´úµwÅ骺¨Ò¤l
2-3. ¿ï¾Ü°ê§O
2-4. Â÷¶} Sysinstall µ{¦¡
2-5. ¿ï¾Ü Sysinstall ¥Dµe­±ªº¡yUsage(§Ö³t»¡©ú)¡z
2-6. ¿ï¾Ü¡yDocumentation(»¡©ú¤å¥ó)¡z¿ï³æ
2-7. Sysinstall ªº»¡©ú¤å¥ó(Documentation)¿ï³æ
2-8. Sysinstall ¥D¿ï³æ
2-9. Sysinstall Áä½L¹ïÀ³¿ï³æ
2-10. Sysinstall ¥D¿ï³æ
2-11. Sysinstall ¿ï¶µ³]©w
2-12. ¶}©l¶i¦æ¼Ð·Ç¦w¸Ë
2-13. ¿ï¾Ü FDisk ­n¤À³ÎªºµwºÐ
2-14. (Á|¨Ò)¥¼½s¿è«eªº Fdisk ¤À³Î°Ï(Partition)
2-15. Fdisk ±Ä¥Î¾ãÁûµwºÐ§@¤À³Î°Ï(Partition)
2-16. Sysinstall ªº Boot Manager ¿ï³æ
2-17. Â÷¶}¡y¿ï¾ÜµwºÐ¡zµe­±
2-18. Sysinstall ªº Disklabel ½s¿è¾¹
2-19. Sysinstall ªº Disklabel ½s¿è¾¹ ¡X ¨Ï¥Î¦Û°Ê¤À°t
2-20. ®Ú¥Ø¿ýªºªÅ¶¡¤À°t
2-21. ­×§ï®Ú¥Ø¿ýªºªÅ¶¡¤À°t
2-22. ¿ï¾Ü¤À³Î°ÏªºÃþ«¬
2-23. ¿ï¾Ü®Ú¥Ø¿ýªº±¾¸üÂI
2-24. Sysinstall Disklabel ½s¿è¾¹
2-25. ¿ï¾Ü­n¸Ëªº®M¥ó¶°(Distributions)
2-26. ½T»{­n¦w¸Ëªº®M¥ó¶°
2-27. ¿ï¾Ü¦w¸Ë¨Ó·½
2-28. ¿ï¾Üºô¸ô¥d
2-29. ³]©w ed0 ³o±iºô¸ô¥dªººô¸ô³]©w
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
20-1. Concatenated Organization
20-2. Striped Organization
20-3. RAID-5 Organization
20-4. A Simple Vinum Volume
20-5. A Mirrored Vinum Volume
20-6. A Striped Vinum Volume
20-7. A Mirrored, Striped Vinum Volume
List of Examples
2-1. ¨Ï¥Î²{¦³ªº¤À³Î°Ï
2-2. ÁY´î²{¦³ªº¤À³Î°Ï
3-1. ºÏºÐ¡Bslice ¤Î¤À³Î°Ï©R¦W½d¨Ò
3-2. ºÏºÐªº·§©À¼Ò«¬
4-1. ¤â°Ê¤U¸ü¡B¦w¸Ë 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. ¦b FreeBSD ¤º·s¼W¨Ï¥ÎªÌ
13-2. rmuser ±b¸¹²¾°£
13-3. ¨t²ÎºÞ²zªÌ±b¸¹ chpass
13-4. ¤@¯ë¨Ï¥ÎªÌ chpass
13-5. §ó§ï±zªº±K½X
13-6. ¥H¨t²ÎºÞ²zªÌ±b¸¹¥h§ó§ï¨ä¥L¨Ï¥ÎªÌªº±K½X
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
18-1. Using dump over ssh
18-2. Using dump over ssh with RSH set
18-3. A Script for Creating a Bootable Floppy
18-4. Using mdconfig to Mount an Existing File System Image
18-5. Creating a New File-Backed Disk with mdconfig
18-6. Configure and Mount a File-Backed Disk with mdmfs
18-7. Creating a New Memory-Based Disk with mdconfig
18-8. Creating a New Memory-Based Disk with mdmfs
24-1. Adding Terminal Entries to /etc/ttys
26-1. Configuring the sendmail Access Database
26-2. Mail Aliases
26-3. Example Virtual Domain Mail Map
27-1. Sending inetd a HangUP Signal
27-2. Mounting an Export with amd
29-1. LACP aggregation with a Cisco switch
29-2. Failover mode
29-3. Branch Office or Home Network
29-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:

¥»¤å¤Î¨ä¥L¤å¥ó¡A¥i¥Ñ¦¹¤U¸ü¡Gftp://ftp.FreeBSD.org/pub/FreeBSD/doc/¡C

­Y¦³ FreeBSD ¤è­±ºÃ°Ý¡A½Ð¥ý¾\Ū FreeBSD ¬ÛÃö¤å¥ó¡A¦p¤£¯à¸Ñ¨Mªº¸Ü¡A¦A¬¢¸ß <questions@FreeBSD.org>¡C
Ãö©ó¥»¤å¥óªº°ÝÃD¡A½Ð¬¢¸ß <doc@FreeBSD.org>¡C