NetBSD 指导手册

   

前进


NetBSD 指导手册

NetBSD 开发人员

出版: 2005/04/25 22:53:23

$NetBSD: index.html,v 1.73 2005/06/29 22:36:26 heinz Exp $


内容列表

这本指南的目的

I. 有关 NetBSD

1. 何谓NetBSD [2004312]

1.1. NetBSD的故事

1.2. NetBSD的特性

1.3. 支持的平台

1.4. NetBSD的目标用户

1.5. NetBSD上的应用程序

1.6. NetBSD的哲学

1.7. 如何获得NetBSD

2. NetBSD 2.0中的新特性 [20050712更新]

2.1. NetBSD 2.0中都有哪些新特性

2.1.1. 本地线程

2.1.2. 内核事件告知框架 - kqueue

2.1.3. systrace

2.1.4. UFSv2

2.1.5. Java 的支持

2.1.6. Verified Exec

2.1.7. 加密磁盘驱动程序

2.1.8. 不可执行栈与堆

2.1.9. 新的 toolchain

2.1.10. 可测量性改进

2.2. 新移植以及对现有移植的扩充

2.2.1. amd64 - AMD Opteron

2.2.2. evbsh5 – 基于Hitachi Super-H 5评估版

2.2.3. i386 - PC 硬件由 i386 Pentium IV

2.2.4. macppc - 基于 PowerPC Macs

2.2.5. sparc - Sun 硬件与克隆

2.3. NetBSD Package集合(pkgsrc)

II. 系统安装与相关话题

3. 安装 [20040314]

3.1. 文档

3.2. NetBSD安装规划

3.3. 安装

3.3.1. 键盘

3.3.2. 几何学

3.3.3. 分区

3.3.4. 硬盘空间需求

3.3.5. 从新安装

4. 安装范例

4.1. 简介

4.2. 准备安装

4.3. 创建安装软盘

4.4. 最后的准备步骤

4.5. 开始安装

4.6. 分区

4.7. 磁盘标签

4.8. 创建磁盘标签

4.9. 磁盘准备过程

4.10. 创建安装媒体

4.11. CD-ROM DVD安装

4.12. 通过FTP安装

4.13. 解压缩集

4.14. 系统设置

5. 首次启动

5.1. 如果出现错误

5.2. 登录

5.3. 更改键盘配置

5.4. man指令

5.5. 更改root密码

5.6. 更改shell

5.7. 系统时间

5.8. 基本的设定/etc/rc.conf

5.9. FFS soft-dependencies设置为可用

5.10. 重新启动系统

6. 第二次启动

6.1. dmesg

6.2. 挂接CD-ROM

6.3. 挂接软盘驱动器

6.4. 存取DOS/Windows分区

6.5. 添加用户

6.6. Shadow passwords

6.7. 终止系统并重新启动

7. rc.d 系统

7.1. rc.d 配置

7.2. rc.d 脚本

7.3. rcorder rc 脚本的角色

7.4. 补充阅读

III. 系统配置,管理和调整

8. 编辑 [20050721完成]

8.1. vi介绍

8.1.1. vi界面

8.1.2. 切换到编辑模式

8.1.3. 切换模式并将缓存数据保存到文

8.1.4. 复制与粘贴

8.1.5. 浏览缓冲数据

8.1.6. 搜索一个文件另外一种浏览的方法

8.1.7. 示例部分

8.2. 配置 vi

8.2.1. .exrc文件扩展

8.2.2. 文档

8.3. vi中使用标签(tag)

9. X

9.1. 何谓 X?

9.2. 设定

9.3. 鼠标

9.4. 键盘

9.5. 屏幕

9.6. 显卡

9.6.1. XFree 3.x

9.6.2. XFree86 4.x

9.7. 启动 X

9.8. 个性化 X

9.9. 其它的窗口管理

9.10. 使用xdm进入图形界面登陆

10. Linux 模拟

10.1. 模拟安装

10.1.1. 配置内核

10.1.2. 配置 Linux

10.1.3. 安装 Acrobat Reader

10.2. 目录结构

10.3. 模拟 /proc

11. 音频

11.1. 基本硬件元素

11.2. BIOS设置

11.3. 设置音频设备

11.4. 设置核心音频设备

11.5. 高级命令

11.5.1. audioctl(1)

11.5.2. mixerctl(1)

11.5.3. audioplay(1)

11.5.4. audiorecord(1)

12. 打印

12.1. 打开 printer daemon

12.2. 配置 /etc/printcap

12.3. 配置 Ghostscript

12.4. 打印管理命令

12.5. 远程打印

13. 使用可移动媒体

13.1. 初始化并使用软盘

13.2. How to use a ZIP disk

13.3. Reading data CDs with NetBSD

13.4. Reading multisession CDs with NetBSD

13.5. Allowing normal users to access CDs

13.6. Mounting an ISO image

13.7. Using video CDs with NetBSD

13.8. Using audio CDs with NetBSD

13.9. Creating an MP3 (MPEG layer 3) file from an audio CD

13.10. Using a CD-R writer with data CDs

13.11. Using a CD-R writer to create audio CDs

13.12. Creating an audio CD from mp3s

13.13. Copying an audio CD

13.14. Copying a data CD with two drives

13.15. Using CD-RW rewritables

13.16. DVD support

13.17. Creating ISO images from a CD

13.18. Getting volume information from CDs and ISO images

14. The cryptographic device driver (CGD)

14.1. Overview

14.1.1. Why use disk encryption?

14.1.2. Logical Disk Drivers

14.1.3. Availability

14.2. Components of the Crypto-Graphic Disk system

14.2.1. Kernel driver pseudo-device

14.2.2. Ciphers

14.2.3. Verification Methods

14.3. Example: encrypting your disk

14.3.1. Preparing the disk

14.3.2. Scrubbing the disk

14.3.3. Creating the cgd

14.3.4. Modifying configuration files

14.3.5. Restoring data

14.4. Example: encrypted CDs/DVDs

14.4.1. Introduction

14.4.2. Creating an encrypted CD/DVD

14.4.3. Using an encrypted CD/DVD

14.5. Suggestions and Warnings

14.5.1. Using a random-key cgd for swap

14.5.2. Warnings

14.6. Further Reading

15. Concatenated Disk Device (CCD) configuration

15.1. Install physical media

15.2. Configure Kernel Support

15.3. Disklabel each volume member of the CCD

15.4. Configure the CCD

15.5. Initialize the CCD device

15.6. Create a 4.2BSD/UFS filesystem on the new CCD device

15.7. Mount the filesystem

16. NetBSD RAIDframe

16.1. RAIDframe Introduction

16.1.1. About RAIDframe

16.1.2. A warning about Data Integrity, Backups, and High Availability

16.1.3. Getting Help

16.2. Setup RAIDframe Support

16.2.1. Kernel Support

16.2.2. Power Redundancy and Disk Caching

16.3. Example: RAID-1 Root Disk

16.3.1. Pseudo-Process Outline

16.3.2. Hardware Review

16.3.3. Initial Install on Disk0/wd0

16.3.4. Preparing Disk1/wd1

16.3.5. Initializing the RAID Device

16.3.6. Setting up Filesystems

16.3.7. Migrating System to RAID

16.3.8. The first boot with RAID

16.3.9. Adding Disk0/wd0 to RAID

16.3.10. Testing Boot Blocks

17. Pluggable Authentication Modules (PAM)

17.1. About

17.2. Introduction

17.3. Terms and conventions

17.3.1. Definitions

17.3.2. Usage examples

17.4. PAM Essentials

17.4.1. Facilities and primitives

17.4.2. Modules

17.4.3. Chains and policies

17.4.4. Transactions

17.5. PAM Configuration

17.5.1. PAM policy files

17.5.2. Breakdown of a configuration line

17.5.3. Policies

17.6. PAM modules

17.6.1. Common Modules

17.6.2. FreeBSD-specific PAM Modules

17.6.3. NetBSD-specific PAM Modules

17.7. PAM Application Programming

17.8. PAM Module Programming

17.9. Sample PAM Application

17.10. Sample PAM Module

17.11. Sample PAM Conversation Function

17.12. Further Reading

18. Tuning NetBSD

18.1. Introduction

18.1.1. Overview

18.2. Tuning Considerations

18.2.1. General System Configuration

18.2.2. System Services

18.2.3. The NetBSD Kernel

18.3. Visual Monitoring Tools

18.3.1. The top Process Monitor

18.3.2. The sysstat utility

18.4. Monitoring Tools

18.4.1. fstat

18.4.2. iostat

18.4.3. ps

18.4.4. vmstat

18.5. Network Tools

18.5.1. ping

18.5.2. traceroute

18.5.3. netstat

18.5.4. tcpdump

18.6. Accounting

18.6.1. Accounting

18.6.2. Reading Accounting Information

18.6.3. How to Put Accounting to Use

18.7. Kernel Profiling

18.7.1. Getting Started

18.7.2. Interpretation of kgmon Output

18.7.3. Putting it to Use

18.7.4. Summary

18.8. System Tuning

18.8.1. Using sysctl

18.8.2. memfs & softdeps

18.9. Kernel Tuning

18.9.1. Preparing to Recompile a Kernel

18.9.2. Configuring the Kernel

18.9.3. Building the New Kernel

18.9.4. Shrinking the NetBSD kernel

19. Miscellaneous operations

19.1. Creating a custom install/boot floppies for i386

19.2. Synchronizing the system clock with NTP

19.3. Installing the boot manager

19.4. Deleting the disklabel

19.5. Speaker

19.6. Forgot root password?

19.7. Adding a new hard disk

19.8. Password file is busy?

19.9. How to rebuild the devices in /dev

IV. Networking and related issues

20. Introduction to TCP/IP Networking

20.1. Audience

20.2. Supported Networking Protocols

20.3. Supported Media

20.3.1. Serial Line

20.3.2. Ethernet

20.4. TCP/IP Address Format

20.5. Subnetting and Routing

20.6. Name Service Concepts

20.6.1. /etc/hosts

20.6.2. Domain Name Service (DNS)

20.6.3. Network Information Service (NIS/YP)

20.6.4. Other

20.7. Next generation Internet protocol - IPv6

20.7.1. The Future of the Internet

20.7.2. What good is IPv6?

20.7.3. Changes to IPv4

21. Setting up TCP/IP on NetBSD in practice

21.1. A walk through the kernel configuration

21.2. Overview of the network configuration files

21.3. Connecting to the Internet with a modem

21.3.1. Getting the connection information

21.3.2. resolv.conf and nsswitch.conf

21.3.3. Creating the directories for pppd

21.3.4. Connection script and chat file

21.3.5. Authentication

21.3.6. pppd options

21.3.7. Testing the modem

21.3.8. Activating the link

21.3.9. Using a script for connection and disconnection

21.3.10. Running commands after dialin

21.4. Creating a small home network

21.5. Setting up an Internet gateway with IPNAT

21.5.1. Configuring the gateway/firewall

21.5.2. Configuring the clients

21.5.3. Some useful commands

21.6. A common LAN setup

21.7. Connecting two PCs through a serial line

21.7.1. Connecting NetBSD with BSD or Linux

21.7.2. Connecting NetBSD and Windows NT

21.7.3. Connecting NetBSD and Windows 95

22. The Internet Super Server inetd

22.1. Overview

22.2. What is inetd?

22.3. Configuring inetd - /etc/inetd.conf

22.4. Services - /etc/services

22.5. Protocols - /etc/protocols

22.6. Remote Procedure Calls (RPC) - /etc/rpc

22.7. Allowing and denying hosts - /etc/hosts.{allow,deny}

22.8. Adding a Service

22.9. When to use or not to use inetd

22.10. Other Resources

23. The Domain Name System

23.1. DNS Background and Concepts

23.1.1. Naming Services

23.1.2. The DNS namespace

23.1.3. Resource Records

23.1.4. Delegation

23.1.5. Delegation to multiple servers

23.1.6. Secondaries, Caching, and the SOA record

23.1.7. Name Resolution

23.1.8. Reverse Resolution

23.2. The DNS Files

23.2.1. /etc/namedb/named.conf

23.2.2. /etc/namedb/localhost

23.2.3. /etc/namedb/zone.127.0.0

23.2.4. /etc/namedb/diverge.org

23.2.5. /etc/namedb/1.168.192

23.2.6. /etc/namedb/root.cache

23.3. Using DNS

23.4. Setting up a caching only name server

23.4.1. Testing the server

24. Mail and news

24.1. sendmail

24.1.1. Configuration with genericstable

24.1.2. Testing the configuration

24.1.3. Using an alternative MTA

24.2. fetchmail

24.3. Reading and writing mail with mutt

24.4. Strategy for receiving mail

24.5. Strategy for sending mail

24.6. Advanced mail tools

24.7. News with tin

25. Miscellaneous networking topics

25.1. Bridge

25.1.1. Bridge example

25.2. Network File System (NFS)

25.2.1. NFS setup example

25.3. Setting up NFS automounting for /net with amd(8)

25.3.1. Introduction

25.3.2. Actual setup

25.4. IPv6 Connectivity & Transition via 6to4

25.4.1. Getting 6to4 IPv6 up & running

25.4.2. Obtaining IPv6 Address Space for 6to4

25.4.3. How to get connected

25.4.4. Security Considerations

25.4.5. Data Needed for 6to4 Setup

25.4.6. Kernel Preparation

25.4.7. 6to4 Setup

25.4.8. Quickstart using pkgsrc/net/hf6to4

25.4.9. Known 6to4 Gateway

25.4.10. Tunneling 6to4 through an IPFilter firewall