4.5.3 - 设置系统的主机名
现在你必须设置一下主机名. 这个值, 连同 DNS 域名(specified below), 会被存放在 /etc/myname, 这个文件会在启动时用来设置主机名. 如果你不设置系统的域名, 系统就会使用默认的 'my.domain' .
设置这个名字很重要, 因为当系统安装后第一次启动生成系统密钥时会被用到. 不论网络有没有被配置好,密钥都会被生成.
Enter system hostname (short form, e.g. 'foo'): puffy
4.5.4 - 配置网络
现在到配置你的网络了. 如果你打算做一个 FTP 或者 NFS 的基本安装那必须要配置网络, NFS的安装需要以你输入的信息为基础. 这里就是一个安装过程中的网络配置的例子.
Configure the network? [yes] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter
IP address for fxp0? (or 'dhcp') 199.185.137.55
Netmask? [255.255.255.0] Enter
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 199.185.137.1
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') 199.185.137.128
add net default: gateway 199.185.137.128
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
在上面这个例子中, 我们用了静态 IP 地址. 需要指出的是, 你可以在很多平台上使用 "dhcp" (除了 Alpha), 如果你的环境支持的话. 如果使用 DHCP, 大多数信息会由远端的 DHCP 服务器获取; 并会要求你确认信息. 这里又是一个安装过程中配置网络的例子, 这次是用 DHCP:
Configure the network? [yes] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter
IP address for fxp0? (or 'dhcp') dhcp
Issuing hostname-associated DHCP request for fxp0.
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 199.185.137.128
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 199.185.137.128
New Network Number: 199.185.137.0
New Broadcast Address: 199.185.137.255
bound to 199.185.137.55 -- renewal in 43200 seconds.
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [example.org] Enter
DNS nameserver? (IP address or 'none') [199.185.137.1] Enter
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') [199.185.137.128] Enter
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
注意: 安装的时候用 DHCP 方式来配置单个接口是很简单的. 如果你想用 DHCP 来配置多个接口那你会碰到很多错误. 你必须在安装后手工配置额外的接口.
现在,我们输入一下根用户的口令t:
Password for root account? (will not echo) pAssWOrd
Password for root account? (again) pAssWOrd
记得使用一个安全点的口令. 你也可以在启动后用 passwd(1) 建立新的口令:
The new password should be at least six characters long and not purely
alphabetic. Its total length must be less than _PASSWORD_LEN (currently
128 characters). A mixture of both lower and uppercase letters, numbers,
and meta-characters is encouraged.
4.5.5 - 选择安装媒介
网络建立好之后, 安装脚本会给你一个手工调整配置的机会. 你建立的文件系统会被挂载根用户的口令也会被要求输入. 这样你的硬盘就能准备好安装 OpenBSD 的软件包套件了.
下面,你要挑选一下安装媒介. 选项都被列出来了.
You will now specify the location and names of the install sets you want to
load. You will be able to repeat this step until all of your sets have been
successfully loaded. If you are not sure what sets to install, refer to the
installation notes for details on the contents of each.
Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape
device; or a (f)tp, (n)fs or (h)ttp server.
Where are the install sets? c
Available CD-ROMs are: cd0.
在这里我们用 CD-ROM 安装. 会有一个被系统识别为 CD-ROM 的设备列表被显示出来. 大多数人只有一个. 如果你有很多个那就选你哟给你来安装 OpenBSD 的那个.
注意: 所有可用的源码安装方式都会被列出来, 但不是所有的方式都能在你的机器上工作的. 比如. "(n)fs" 就被列出来了 但是不是所有的平台都支持 NFS 安装的. 如果你选了一种不可行的方式, 你会收到一条错误信息然后会被要求重新选择安装方式.
Available CD-ROMs are: cd0.
Which one contains the install media? (or 'done') [cd0] Enter
Pathname to the sets? (or 'done') [3.6/i386] Enter
这里,你要设定一下安装文件所在的文件夹的位置, 官方 CD-ROM 上的位置是 3.6/i386/ .
4.5.6 - 选择安装套件.
现在就是选择你要安装的软件套件的时候了. 在后面一段中你能看到对这些包的描述. 被安装程序所找到的文件会被显示在屏幕上. 你的工作就是确定哪些文件是你需要的. 非 X 的包默认被选中; 然而有人需要限制包的数量来运行基本的 OpenBSD 系统, 那只要选 base36.tgz, etc36.tgz 和 bsd.其他人或许想要安装所有的软件包套件.下面这个例子就是完全安装.
The following sets are available. Enter a filename, 'all' to select
all the sets, or 'done'. You may de-select a set by prepending a '-'
to its name.
[X] bsd
[X] bsd.rd
[ ] bsd.mp
[X] base36.tgz
[X] etc36.tgz
[X] misc36.tgz
[X] comp36.tgz
[X] man36.tgz
[X] game36.tgz
[ ] xbase36.tgz
[ ] xetc36.tgz
[ ] xshare36.tgz
[ ] xfont36.tgz
[ ] xserv36.tgz
File Name? (or 'done') [bsd.mp] all
The following sets are available. Enter a filename, 'all' to selec
现在你必须设置一下主机名. 这个值, 连同 DNS 域名(specified below), 会被存放在 /etc/myname, 这个文件会在启动时用来设置主机名. 如果你不设置系统的域名, 系统就会使用默认的 'my.domain' .
设置这个名字很重要, 因为当系统安装后第一次启动生成系统密钥时会被用到. 不论网络有没有被配置好,密钥都会被生成.
Enter system hostname (short form, e.g. 'foo'): puffy
4.5.4 - 配置网络
现在到配置你的网络了. 如果你打算做一个 FTP 或者 NFS 的基本安装那必须要配置网络, NFS的安装需要以你输入的信息为基础. 这里就是一个安装过程中的网络配置的例子.
Configure the network? [yes] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter
IP address for fxp0? (or 'dhcp') 199.185.137.55
Netmask? [255.255.255.0] Enter
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [my.domain] example.com
DNS nameserver? (IP address or 'none') [none] 199.185.137.1
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') 199.185.137.128
add net default: gateway 199.185.137.128
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
在上面这个例子中, 我们用了静态 IP 地址. 需要指出的是, 你可以在很多平台上使用 "dhcp" (除了 Alpha), 如果你的环境支持的话. 如果使用 DHCP, 大多数信息会由远端的 DHCP 服务器获取; 并会要求你确认信息. 这里又是一个安装过程中配置网络的例子, 这次是用 DHCP:
Configure the network? [yes] Enter
Available interfaces are: fxp0.
Which one do you wish to initialize? (or 'done') [fxp0] Enter
Symbolic (host) name for fxp0? [puffy] Enter
The default media for fxp0 is
media: Ethernet autoselect (100baseTX full-duplex)
Do you want to change the default media? [no] Enter
IP address for fxp0? (or 'dhcp') dhcp
Issuing hostname-associated DHCP request for fxp0.
Sending on Socket/fallback/fallback-net
DHCPDISCOVER on fxp0 to 255.255.255.255 port 67 interval 1
DHCPOFFER from 199.185.137.128
DHCPREQUEST on fxp0 to 255.255.255.255 port 67
DHCPACK from 199.185.137.128
New Network Number: 199.185.137.0
New Broadcast Address: 199.185.137.255
bound to 199.185.137.55 -- renewal in 43200 seconds.
Done - no available interfaces found.
DNS domain name? (e.g. 'bar.com') [example.org] Enter
DNS nameserver? (IP address or 'none') [199.185.137.1] Enter
Use the nameserver now? [yes] Enter
Default route? (IP address, 'dhcp' or 'none') [199.185.137.128] Enter
Edit hosts with ed? [no] Enter
Do you want to do any manual network configuration? [no] Enter
注意: 安装的时候用 DHCP 方式来配置单个接口是很简单的. 如果你想用 DHCP 来配置多个接口那你会碰到很多错误. 你必须在安装后手工配置额外的接口.
现在,我们输入一下根用户的口令t:
Password for root account? (will not echo) pAssWOrd
Password for root account? (again) pAssWOrd
记得使用一个安全点的口令. 你也可以在启动后用 passwd(1) 建立新的口令:
The new password should be at least six characters long and not purely
alphabetic. Its total length must be less than _PASSWORD_LEN (currently
128 characters). A mixture of both lower and uppercase letters, numbers,
and meta-characters is encouraged.
4.5.5 - 选择安装媒介
网络建立好之后, 安装脚本会给你一个手工调整配置的机会. 你建立的文件系统会被挂载根用户的口令也会被要求输入. 这样你的硬盘就能准备好安装 OpenBSD 的软件包套件了.
下面,你要挑选一下安装媒介. 选项都被列出来了.
You will now specify the location and names of the install sets you want to
load. You will be able to repeat this step until all of your sets have been
successfully loaded. If you are not sure what sets to install, refer to the
installation notes for details on the contents of each.
Sets can be located on a (m)ounted filesystem; a (c)drom, (d)isk or (t)ape
device; or a (f)tp, (n)fs or (h)ttp server.
Where are the install sets? c
Available CD-ROMs are: cd0.
在这里我们用 CD-ROM 安装. 会有一个被系统识别为 CD-ROM 的设备列表被显示出来. 大多数人只有一个. 如果你有很多个那就选你哟给你来安装 OpenBSD 的那个.
注意: 所有可用的源码安装方式都会被列出来, 但不是所有的方式都能在你的机器上工作的. 比如. "(n)fs" 就被列出来了 但是不是所有的平台都支持 NFS 安装的. 如果你选了一种不可行的方式, 你会收到一条错误信息然后会被要求重新选择安装方式.
Available CD-ROMs are: cd0.
Which one contains the install media? (or 'done') [cd0] Enter
Pathname to the sets? (or 'done') [3.6/i386] Enter
这里,你要设定一下安装文件所在的文件夹的位置, 官方 CD-ROM 上的位置是 3.6/i386/ .
4.5.6 - 选择安装套件.
现在就是选择你要安装的软件套件的时候了. 在后面一段中你能看到对这些包的描述. 被安装程序所找到的文件会被显示在屏幕上. 你的工作就是确定哪些文件是你需要的. 非 X 的包默认被选中; 然而有人需要限制包的数量来运行基本的 OpenBSD 系统, 那只要选 base36.tgz, etc36.tgz 和 bsd.其他人或许想要安装所有的软件包套件.下面这个例子就是完全安装.
The following sets are available. Enter a filename, 'all' to select
all the sets, or 'done'. You may de-select a set by prepending a '-'
to its name.
[X] bsd
[X] bsd.rd
[ ] bsd.mp
[X] base36.tgz
[X] etc36.tgz
[X] misc36.tgz
[X] comp36.tgz
[X] man36.tgz
[X] game36.tgz
[ ] xbase36.tgz
[ ] xetc36.tgz
[ ] xshare36.tgz
[ ] xfont36.tgz
[ ] xserv36.tgz
File Name? (or 'done') [bsd.mp] all
The following sets are available. Enter a filename, 'all' to selec