The OpenBSD 4.6 发行版本:
发布于2009年11月1日
版权 1997-2009, Theo de Raadt.
ISBN 978-0-9784475-4-0
4.6 主题歌: "Planet of the Users"
新特性
如何安装
如何升级
使用 ports 的方法
购买 CD
获得此版本的文件:
- 从我们的订购系统购买 CDROM。
- 从镜像站点的 FTP 页面中选择合适的镜像。
- 进入镜像站点的 pub/OpenBSD/4.6/ 目录。
- 简要阅读本文档的剩余部分。
- 阅读 4.6 勘误表获得问题列表和解决方案。
- 阅读 4.5 与 4.6 之间的详细修改记录。
说明: 所有相关的版权和荣誉声明在 src.tar.gz,sys.tar.gz 和
xenocara.tar.gz 文件中,或在通过 ports.tar.gz 下载的文件中。由于空间不足,
用于构建 ports.tar.gz 文件中的程序包的发行文件并未包括在 CDROM 中。
新特性
以下是 OpenBSD 4.5 中新特性和新系统功能的部分列表。 完整的列表位于 4.6
的修改记录中。
- 新增/扩展的构架平台:
- mvme68k
- Added support for the MVME141 and MVME165 boards.
- sparc
- The bootblock load address was moved so that larger kernels
can be loaded.
- sparc64
- Added acceleration support for many of the PCI frame buffer
drivers, such as Sun PGX, PGX64 and XVR-100, and Tech Source
Raptor GFX graphics cards.
- sgi
- Added support for the SGI Octane, SGI Origin 200 and SGI Fuel
families of systems.
- Several bugs in interrupt handling have been fixed, resulting
in much snappier system response.
- 更新了硬件支持, 包括:
- Several new/improved drivers for sensors, including:
- The ips(4) driver now has sensor support, complementing the bio support.
- The acpithinkpad(4) driver now has temperature and fan sensor support.
- New endrun(4) driver for the EndRun Technologies timedelta sensor.
- The fins(4) driver now has support for F71806, F71862 and F71882.
- The acpitz(4) driver now shows correct decimals for temperature.
- Added radeonfb(4) to sparc64, an accelerated framebuffer for
Sun XVR-100 boards.
- Added support in re(4) for RTL8103E and RTL8168DP devices.
- Added support for BCM5709/BCM5716 devices in the bnx(4) driver.
- Added support for ICH10 variants of em(4).
- Added support for VIA VX855 chipset in the viapm(4) and pciide(4) drivers.
- Added support for Intel SCH IDE to pciide(4).
- Added support for the Broadcom HT-1100 chipset in the piixpm(4) driver.
- Added support for 82574L based devices in the em(4) driver.
- A number of network drivers including ix(4), sis(4), msk(4), bnx(4), and vr(4) now
use MCLGETI(9) to reduce memory usage and increase performance under load
and attack.
- Added support for VIA CX800 south bridge to the viapm(4) driver.
- Added support in em(4) for the newer 82575 (and maybe 82576) chips.
- zyd(4) now supports devices with Airoha AL2230S radios.
- zyd(4) now works on big-endian machines
- urtw(4) now supports RTL8187B based devices.
- New otus(4) driver for Atheros AR9001U USB 802.11a/b/g/Draft-N
wireless devices.
- New berkwdt(4) driver for Berkshire Products PCI watchdog timers.
- New udl(4) driver for USB video devices.
- Support for a variety of newer models in bge(4).
- Initial version of vsw(4), a driver for the virtual network switch on
sun4v sparc64s.
- Implemented machfb(4), an accelerated driver for the sparc64 PGX/PGX64
framebuffers.
- Added a vcc(4) and vcctty(4) driver for the "Virtual Console Concentrator"
found on the control domain of sun4v systems.
- Implemented 64-bit FIFO modes for ciss(4) devices.
- Enable hardware VLAN tagging/stripping on ix(4).
- Added basic support for Envy24HT chips in the envy(4) driver.
- Many improvements and updates to the isp(4) driver.
- Added support for 88E8057-based Yukon 2 Ultra 2-devices in msk(4).
- The ips(4) driver now works reliably.
- Added raptor(4), an accelerated framebuffer driver for the Tech Source
Raptor GFX cards on the sparc64 platform.
- Enabled schsio(4) on i386 and amd64 and added watchdog timer support.
- New acpivideo(4) driver for ACPI display switching and brightness control.
- 新工具:
- Added smtpd(8), a new privilege-separated SMTP daemon.
- Imported the tmux(1) terminal multiplexer, replacing window(1).
- pf(4) improvements:
- Enabled pf(4) by default in the rc.conf(8).
- Removed pf(4) scrub rules, and only do one kind of packet reassembly.
Rulesets with scrub rules need to be modified because of this.
- Regular rules can now have per-rule scrub options.
- Added new "match" keyword which only applies rule options but does
not change the current pass/block state.
- Make all pf(4) operations transactional to improve atomicity of reloads.
- Stricter pf(4) checking for ICMP and ICMPv6 packets.
- Various improvements to pfsync(4) to lower sync traffic bandwidth and
optionally allow active-active firewall setups.
- Fix pf(4) scrub max-mss for IPv6 traffic.
- OpenBGPD, OpenOSPFD 以及其它后台路由程序的改进:
- In bgpd(8), rework most of the RDE to allow multiple RIBs.
It is possible to filter per-RIB and attach neighbors to a specific RIB.
- Added an option to bgpd(8) to change the "connect-retry" timer.
- Allow bgpd.conf(5) and bgpctl(8) to contain 32-bit ASN numbers written in
ASPLAIN format.
- Fix bgpd(8) to correctly encode MP unreachable NLRI so IPv6 prefixes get
removed correctly.
- Changed the behaviour of "redistribute default" for ospfd(8) and ripd(8).
A default route has to be present in the FIB to be correctly advertised.
- Make ospfd(8) and ripd(8) track reject and blackhole routes and allow
them to be redistributed even if pointing to 127.0.0.1.
- Allow to specify an alternate control socket for ospfd(8).
- ospfd(8) can now be bound into an alternate routing domain.
- Fix ospfd(8) route metric for "redistribute default".
- Initial version of ldpctl(8) and ldpd(8), a label distribution protocol
daemon for mpls.
- Make dvmrp(8) RDE aware of multicast group members per interface.
- Support for pruning in dvmrp(8).
- 网络改进
- Support for virtual routing and firewalling with the addition of routing
domains.
- Add code in ifconfig(8) to bind an interface to a routing domain.
- Add support to ping(8), traceroute(8), arp(8), nc(1) and telnet(1) to
specify which routing domain to use.
- Allow ifconfig(8) to turn off IPv6 completely for an interface and
make rtsold(8) turn on inet6 on the interface.
- Routes track the interface link state.
- route(8) flush accepts "-iface" or "-priority" to only flush routes
matching these conditions.
- Multiple dhclients can now coexist without causing mayhem.
- Make wireless interfaces have an interface priority of 4 by default.
Makes them less preferred then wired interfaces.
- Do not accept IPv4 ICMP redirects by default.
- Added the MAC address to the log entries in dhclient(8).
- Make systat(1) show interface description names in the interface view, and add new NFS server and client views.
- Make tun(4) emulate link state depending on the open and close of the
device fd.
- Use pf state-table information to speed up decision on whether a packet
is to be delivered locally or forwarded.
- More routing socket checks added to make userland applications more
resilient to kernel changes.
- 对安装/升级过程的修改:
- New disklabel(8) automatic partition allocator with a variety of
smart heuristics.
- The installer has been nearly rewritten mostly with a focus on
simplifying installation.
- OpenSSH 5.3:
- Do not limit home directory paths to 256 characters. (bz #1615)
- Several minor documentation and correctness fixes.
- 超过 5800 个 ports,package 工具的健壮性有所改进。
- 每种架构都有许多预先构建的包:
- i386: 5606
- sparc64: 5413
- alpha: 5346
|
- sh: 1261
- amd64: 5544
- powerpc: 5427
|
- sparc: 3711
- arm: 5291
- hppa: 4790
| |
一些精彩程序:
- Gnome 2.24.3.
- KDE 3.5.10.
- Xfce 4.6.1.
- MySQL 5.0.83.
- PostgreSQL 8.3.7.
- Postfix 2.6.2.
- OpenLDAP 2.3.43.
- Mozilla Firefox 3.0.11 and 3.5.
- Mozilla Thunderbird 2.0.0.22.
- OpenOffice.org 3.1.0.
- Emacs 21.4 and 22.3
- Vim 7.2.190.
- PHP 5.2.10.
- Python 2.4.6, 2.5.4 and 2.6.2.
- Ruby 1.8.6.369.
- 按照惯例,手册或其它文档也有相应补充和修改。
- 以下是系统包含的外部提供的重要程序:
- Xenocara (based on X.Org 7.4 + patches, freetype 2.3.9,
fontconfig 2.6.0, Mesa 7.4.2, xterm 243 and more)
- Gcc 2.95.3 (+ patches) and 3.3.5 (+ patches)
- Perl 5.10.0 (+ patches)
- Our improved and secured version of Apache 1.3, with SSL/TLS
and DSO support
- OpenSSL 0.9.8k (+ patches)
- Groff 1.15
- Sendmail 8.14.3, with libmilter
- Bind 9.4.2-P2 (+ patches)
- Lynx 2.8.6rel.5 with HTTPS and IPv6 support (+ patches)
- Sudo 1.7.2
- Ncurses 5.2
- Latest KAME IPv6
- Heimdal 0.7.2 (+ patches)
- Arla 0.35.7
- Binutils 2.15 (+ patches)
- Gdb 6.3 (+ patches)
如何安装
如果通过购买的 CD 安装,请按照下述指令操作。使用
FTP(或其它安装方式)安装与之类似;CDROM 中的安装是自治的,
它会让你知道如果使用购买的 CD 安装是多么方便。
有关安装 OpenBSD 4.6 更详细的信息,请参阅在三张 CD 或相关 FTP
镜像站点中的以下文件:
- CD1:4.6/i386/INSTALL.i386
- CD2:4.6/amd64/INSTALL.amd64
- CD2:4.6/macppc/INSTALL.macppc
- CD3:4.6/sparc64/INSTALL.sparc64
- FTP:.../OpenBSD/4.6/alpha/INSTALL.alpha
- FTP:.../OpenBSD/4.6/armish/INSTALL.armish
- FTP:.../OpenBSD/4.6/hp300/INSTALL.hp300
- FTP:.../OpenBSD/4.6/hppa/INSTALL.hppa
- FTP:.../OpenBSD/4.6/landisk/INSTALL.landisk
- FTP:.../OpenBSD/4.6/mac68k/INSTALL.mac68k
- FTP:.../OpenBSD/4.6/mvme68k/INSTALL.mvme68k
- FTP:.../OpenBSD/4.6/mvme88k/INSTALL.mvme88k
- FTP:.../OpenBSD/4.6/sgi/INSTALL.sgi
- FTP:.../OpenBSD/4.6/socppc/INSTALL.socppc
- FTP:.../OpenBSD/4.6/sparc/INSTALL.sparc
- FTP:.../OpenBSD/4.6/vax/INSTALL.vax
- FTP:.../OpenBSD/4.6/zaurus/INSTALL.zaurus
快速安装仅适合熟悉 OpenBSD 和“disklabel -E”命令用法的人。如果你根本不懂安装
OpenBSD,请参阅上面罗列的相应 INSTALL.* 文件!
OpenBSD/i386:
设置 BIOS 可以从 CD 启动。OpenBSD/i386 发行版本在 CD1 中。如果你的 BIOS
不支持从 CD 启动,就可能需要制作启动软盘。将 CD1:4.6/i386/floppy46.fs
写入软盘来制作启动软盘,通过软盘驱动器启动。
使用 CD1:4.6/i386/floppyB46.fs 来制作引导软盘,可以获得更好的 SCSI
支持,或者使用 CD1:4.6/i386/floppyC46.fs 来制作引导软盘,
获得更好的笔记本电脑支持。
如果你不能从 CD 或软盘启动的话,还可以用 PXE 通过网络安装,请参阅
INSTALL.i386 文件。
如果计划让 OpenBSD 与另一操作系统共存,双重启动,请参阅 INSTALL.i386
文件。
在 MS-DOS 环境制作启动软盘,请使用位于 CD1:4.5/tools/rawrite.exe
的"rawrite"工具。在 Unix OS 环境制作启动软盘,请使用
dd(1)
工具。下面是使用
dd(1),
的例子,"device"可以是"floppy","rfd0c",或"rfd0a"。
# dd if=<file> of=/dev/<device> bs=32k
请确认你的软盘无坏道,已经正确格式化。否则很可能会安装失败。
有关制作启动软盘和安装 OpenBSD/i386 的信息请参阅
FAQ 4.3.1.
OpenBSD/amd64:
OpenBSD/amd64 的 4.6 版本在 CD2 中。设置 BIOS 可以从 CD 启动,然后用 CD
启动,开始安装 - 你可能需要先修改 BIOS 选项。
如果不能从 CD 启动,可以通过制作启动软盘来安装。用
CD2:4.6/amd64/floppy46.fs 来制作启动软盘,然后用软驱来启动。
如果不能从 CD 或软盘启动,可以用 PXE 通过网络来安装,有关信息请参阅
INSTALL.amd64 文件。
如果计划让 OpenBSD 与另一个操作系统共存,双重启动,请参阅
INSTALL.amd64。
OpenBSD/macppc:
将 CD2 放入 CDROM,开机后一直按着 C 键,直到显示器显示
OpenBSD/macppc boot 。
或者在出现 Open Firmware 提示时,输入 boot cd:,ofwboot
/4.6/macppc/bsd.rd 。
OpenBSD/sparc64:
将 CD3 放入 CDROM,输入 boot cdrom 。
如果这个没用,或没有光驱,你可以把 CD3:4.6/sparc64/floppy46.fs 或
CD3:4.6/sparc64/floppyB46.fs
(依赖于你的机器)写入软盘,用它作为启动盘,输入
boot floppy 来启动。详细内容参阅 INSTALL.sparc64。
请确认你的软盘无坏道,已经正确格式化。否则很可能会安装失败。
你也可以将 CD3:4.6/sparc64/miniroot46.fs 写入磁盘中的 swap 分区,
然后在启动时输入 boot disk:b 。
如果以上都不行,你可以按照 INSTALL.sparc64 中的描述通过网络来启动安装。
OpenBSD/alpha:
将 FTP:4.6/alpha/floppy46.fs 或
FTP:4.6/alpha/floppyB46.fs (依赖于你的机器)写入软盘,用它作为启动盘,输入
boot dva0 来启动。详细内容参阅 INSTALL.alpha。
请确认你的软盘无坏道,已经正确格式化。否则很可能会安装失败。
OpenBSD/armish:
连接串口之后,Thecus 能直接通过网络用 tftp 或 http 启动。使用 fconfig
配置网络,重置之后,加载 bsd.rd,详细信息请参阅 INSTALL.armish 。
IOData HDL-G 只能从 EXT2 格式分区启动。进入
linux,复制 'boot' 和 'bsd.rd' 到第一个分区 wd0(hda1),
然后加载和运行 'bsd.rd',保留 wd0i(hda1) 上的 EXT2 分区。请参阅 INSTALL.armish
以获得更多信息。
OpenBSD/hp300:
OpenBSD/hppa:
OpenBSD/landisk:
OpenBSD/mac68k:
正常启动 MacOS,将 FTP:4.6/mac68k/utils 下的程序
“BSD/Mac68k Booter” 解压到硬盘。用 bsd.rd 内核文件的位置配置
“BSD/Mac68k Booter”,启动后进入安装程序。更多相关信息请参阅
INSTALL.mac68k 。
OpenBSD/mvme68k:
OpenBSD/mvme88k:
OpenBSD/sparc:
从提供的 ISO 安装文件引导,根据你所用的 ROM 版本,
需用到下面两个命令中的一个。
ok boot cdrom 4.6/sparc/bsd.rd
or
> b sd(0,6,0)4.6/sparc/bsd.rd
如果你的 SPARC 系统没有 CD 驱动器,可以通过将 floppy46.fs 写入软盘,
使用软盘来启动安装。更多的信息请参阅
FAQ 4.3.1。根据 ROM 版本的不同,
从软盘启动安装需要下面两个命令中的一个。
ok boot floppy
或
> b fd()
请确认你的软盘无坏道,已经正确格式化。否则很可能会安装失败。
如果你的 SPARC 系统没有软驱和 CD 驱动器,你可以制作可启动磁带,
或者通过网络来安装。相关内容在 INSTALL.sparc 中。
OpenBSD/sgi:
将 cd46.iso 刻录到光盘,将其放入光驱中,从系统维护菜单中选择
Install System Software 进行安装。
如果没有光驱,可以配置 DHCP/tftp 网络服务器,用
"bootp()/bsd.rd" 来引导启动安装。更多相关信息请参阅 INSTALL.sgi。
OpenBSD/socppc:
OpenBSD/vax:
用 mopbooting 通过网络启动来安装,相关信息请参阅 INSTALL.vax。
OpenBSD/zaurus:
关于源代码的说明:
src.tar.gz 包含的源代码文件开始路径是 /usr/src。
该文件包括除了内核代码之外的所有源代码,内核代码位于单独的档案文件中。
解压方法:
# mkdir -p /usr/src
# cd /usr/src
# tar xvfz /tmp/src.tar.gz
sys.tar.gz 包含的源代码文件路径开始是 /usr/src/sys。
该文件包括了重建内核需要的所有源代码。解压方法:
# mkdir -p /usr/src/sys
# cd /usr/src
# tar xvfz /tmp/sys.tar.gz
这些文件是 CVS 检出格式。可以使用匿名 CVS
服务器基于它们获得最新的版本。基于这些文件更新,比从 CVS
完全检出的速度要快得多。
如何升级
如果你已经安装了OpenBSD 4.5,不想重新安装,可以在升级指南中找到升级方法和忠告。
使用 ports 的方法
也提供了 ports 的档案文件。解压方法:
# cd /usr
# tar xvfz /tmp/ports.tar.gz
# cd ports
ports/ 子目录是 OpenBSD ports 版本库的检出副本。假如你不了解 ports,
请浏览 ports 页面。该文件并非是如何使用 ports 的手册,
它只是 OpenBSD ports 系统用户的初级读本。
The ports/ 目录是我们从 CVS(如果你不熟悉 CVS,请参阅手册
cvs(1)) 检出的 ports 副本。与我们的代码一样,ports 也可以通过匿名 CVS
服务器更新。因此,为了确保版本是最新的,必须使 ports/ 在可读写的介质中,
更新的命令是:
# cd [portsdir]/; cvs -d anoncvs@server.openbsd.org:/cvs update -Pd -rOPENBSD_4_6
[当然,在实际操作时需要将本地目录和服务器名称替换成你的 ports
所在位置和较近的匿名 CVS 服务器。]
注意大部分的 ports 可以通过 FTP 获得预先编译的二进制包。如果发现问题,会为
4.6 版本发布升级包。
如果你有兴趣观察 ports 的变动信息,或者帮助我们,或者只是想获得更多的信息,
请加入邮件列表 ports@openbsd.org 。
www@openbsd.org
$OpenBSD: 46.html,v 1.2 2010/04/19 06:18:53 ajacoutot Exp $