Figure 2-61. 选择用户

用箭头键来选择 User 然后按 Enter。
Figure 2-62. 添加用户信息

下面的描述信息会出现在屏幕的下方,可以使用 Tab 键来切换不同的项目,以便输入相关信息:
Login ID
新用户的登陆名(强制性必须写)
UID
这个用户的ID编号(如果不写,系统自动添加)
Group
这个用户的登陆组名(如果不写,系统自动添加)
Password
这个用户的密码(键入这个需要很仔细!)
Full name
用户的全名(解释、备注)
Member groups
这个用户所在的组
Home directory
用户的主目录(如果不写,系统自动添加)
Login shell
用户登陆的shell(默认是/bin/sh)。
登陆的shell可以在 /bin/sh 到 /usr/local/bin/bash 中修改。 bash shell 是先前默认安装的shell。 不要使用一个不存在的或您不能登陆的shell。最通用的shell是使用 BSD-world 的 C shell,可以通过指定/bin/tcsh来修改。
用户也可以被添加到 wheel 组中成了一个超级用户, 从而拥有 root权限。
当您感觉满意时,键入 [ OK ] 键,用户和组管理菜单将会重新出现。
Figure 2-63. 退出用户和组管理

如果有其他的需要, 此时还可以添加其他的组。 此外, 还可以通过 sysinstall (在 FreeBSD 5.2 以前的版本中是 /stand/sysinstall) 在安装完成之后添加它们。
当您完成添加用户的时候,选择Exit 然后键入Enter 继续下面的安装。
2.9.16. 设置 root 密码 Message
Now you must set the system manager's password.
This is the password you'll use to log in as "root".
[ OK ]
[ Press enter to continue ]
键入 Enter 来设置 root 密码。
密码必须正确地输入两次。 毋庸讳言, 您需要选择一个不容易忘记的口令。请注意您输入的口令不会回显, 也不会显示星号。Changing local password for root.
New password :
Retype new password :
密码成功键入后,安装将继续。
2.9.17. 退出安装
如果您需要设置其他的网络设备, 或者需要完成其他的配置, 可以在此时或者事后通过 sysinstall (对于 FreeBSD 5.2 之前的版本是 /stand/sysinstall) 来进行配置。 User Confirmation Requested
Visit the general configuration menu for a chance to set any last
options?
Yes [ No ]
选择 [ No ] 然后键入 Enter 返回到主安装菜单。
Figure 2-64. 退出安装

选择 [X Exit Install] 然后键入 Enter。您可能需要确认是否真的退出安装: User Confirmation Requested
Are you sure you wish to exit? The system will reboot (be sure to
remove any floppies from the drives).
[ Yes ] No
选择 [ Yes ] 取出软盘。CDROM驱动器将被锁定,直到机器重新启动。CDROM然后就可以从驱动器中取出来了。
在系统重新启动的时候可能会见到出错信息。
2.9.18. FreeBSD的启动
2.9.18.1. FreeBSD 在 i386™上启动
如果启动正常,您将看到在屏幕上有很多信息滚动,最后您会看到登陆命令行。 您可以通过键入 Scroll-Lock和使用 PgUp 与 PgDn来查看信息,再键入 Scroll-Lock 回到命令行。
记录信息可能不会显示(缓冲区的限制)。您可以通过键入 dmesg 来查看。
使用您在安装过程中设置的用户名/密码来登陆。(例子中使用 rpratt)。除非必须的时候请不要用 root 用户登陆。
典型的启动信息:(忽略版本信息)Copyright (c) 1992-2002 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
Timecounter "i8254" frequency 1193182 Hz
CPU: AMD-K6(tm) 3D processor (300.68-MHz 586-class CPU)
Origin = "AuthenticAMD" Id = 0x580 Stepping = 0
Features=0x8001bf
AMD Features=0x80000800
real memory = 268435456 (262144K bytes)
config> di sn0
config> di lnc0
config> di le0
config> di ie0
config> di fe0
config> di cs0
config> di bt0
config> di aic0
config> di aha0
config> di adv0
config> q
avail memory = 256311296 (250304K bytes)
Preloaded elf kernel "kernel" at 0xc0491000.
Preloaded userconfig_script "/boot/kernel.conf" at 0xc049109c.
md0: Malloc disk
Using $PIR table, 4 entries at 0xc00fde60
npx0: on motherboard
npx0: INT 16 interface
pcib0: on motherboard
pci0: on pcib0
pcib1: at device 1.0 on pci0
pci1: on pcib1
pci1: at 0.0 irq 11
isab0: at device 7.0 on pci0
isa0: on isab0
atapci0: port 0xe000-0xe00f at device 7.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
uhci0: port 0xe400-0xe41f irq 10 at device 7.2 on pci0
usb0: on uhci0
usb0: USB revision 1.0
uhub0: VIA UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
chip1: at device 7.3 on pci0
ed0: port 0xe800-0xe81f irq 9 at
device 10.0 on pci0
ed0: address 52:54:05:de:73:1b, type NE2000 (16 bit)
isa0: too many dependant configs (8)
isa0: unexpected small tag 14
fdc0: at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: on fdc0 drive 0
atkbdc0: at port 0x60-0x64 on isa0
atkbd0: flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: irq 12 on atkbdc0
psm0: model Generic PS/2 mouse, device ID 0
vga0: at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: at flags 0x1 on isa0
sc0: VGA
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/15 bytes threshold
ppbus0: IEEE1284 device found /NIBBLE
Probing for PnP devices on ppbus0:
plip0: on ppbus0
lpt0: on ppbus0
lpt0: Interrupt-driven port
ppi0: on ppbus0
ad0: 8063MB [16383/16/63] at ata0-master using UDMA33
ad2: 8063MB [16383/16/63] at ata1-master using UDMA33
acd0: CDROM at ata0-slave using PIO4
Mounting root from ufs:/dev/ad0s1a
swapon: adding /dev/ad0s1b as swap device
Automatic boot in progress...
/dev/ad0s1a: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1a: clean, 48752 free (552 frags, 6025 blocks, 0.9% fragmentation)
/dev/ad0s1f: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1f: clean, 128997 free (21 frags, 16122 blocks, 0.0% fragmentation)
/dev/ad0s1g: FILESYSTEM CLEAN; SKIPPING CHECKS
/dev/ad0s1g: clean, 3036299 free (43175 frags, 374073 blocks, 1.3% fragmentation)
/dev/ad0s1e: filesystem CLEAN; SKIPPING CHECKS
/dev/ad0s1e: clean, 128193 free (17 frags, 16022 blocks, 0.0% fragmentation)
Doing initial network setup: hostname.
ed0: flags=8843 mtu 1500
inet 192.168.0.1 netmask 0xffffff00 broadcast 192.168.0.255
inet6 fe80::5054::5ff::fede:731b%ed0 prefixlen 64 tentative scopeid 0x1
ether 52:54:05:de:73:1b
lo0: flags=8049 mtu 16384
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x8
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
Additional routing options: IP gateway=YES TCP keepalive=YES
routing daemons:.
additional daemons: syslogd.
Doing additional network setup:.
Starting final network daemons: creating ssh RSA host key
Generating public/private rsa1 key pair.
Your identification has been saved in /etc/ssh/ssh_host_key.
Your public key has been saved in /etc/ssh/ssh_host_key.pub.
The key fingerprint is:
cd:76:89:16:69:0e:d0:6e:f8:66:d0:07:26:3c:7e:2d
root@k6-2.example.com
creating ssh DSA host key
Generating public/private dsa key pair.
Your identification has been saved in /etc/ssh/ssh_host_dsa_key.
Your public key has been saved in /etc/ssh/ssh_host_dsa_key.pub.
The key fingerprint is:
f9:a1:a9:47:c4:ad:f9:8d:52:b8:b8:ff:8c:ad:2d:e6
root@k6-2.example.com.
setting ELF ldconfig path: /usr/lib /usr/lib/compat /usr/X11R6/lib
/usr/local/lib
a.out ldconfig path: /usr/lib/aout /usr/lib/compat/aout /usr/X11R6/lib/aout
starting standard daemons: inetd cron sshd usbd sendmail.
Initial rc.i386 initialization:.
rc.i386 configuring syscons: blank_time screensaver moused.
Additional ABI support: linux.
Local package initialization:.
Additional TCP options:.
FreeBSD/i386 (k6-2.example.com) (ttyv0)
login: rpratt
Password:
生成 RSA 和 DSA密钥在比较慢的机器上可能要花很长时间。这只是一个新安装后的首次启动,以后的启动会变得更快一点。
如果 X 服务器已经配置好了,默认的桌面也选择好了,就可以在命令行键入 startx 来启动视察环境。
2.9.18.2. FreeBSD 在 Alpha机器上启动
一旦安装完成,您就可以键入下面的命令来启动FreeBSD:>>>BOOT DKC0
这是从指定的固定硬件进行引导。如果要使 FreeBSD 下次能够自动启动, 使用下面的命令:>>> SET BOOT_OSFLAGS A
>>> SET BOOT_FILE ''
>>> SET BOOTDEF_DEV DKC0
>>> SET AUTO_ACTION BOOT
启动信息跟启动 i386™机器时差不多。(但不完全一样)
2.9.19. FreeBSD 关机
正确的关闭操作系统是很重要的。不要仅仅关闭电源。首先,您需要成为一个超级用户,通过键入 su 命令来实现。然后输入 root 密码。这需要用户是 wheel 组的一名成员。然后,以root键入 shutdown -h now命令。The operating system has halted.
Please press any key to reboot.
当shutdown命令发出后,屏幕上出现 “Please press any key to reboot” 信息时,您就可以安全的关闭计算机了。如果按下任意一个键,计算机将重新启动。
您也能够使用 Ctrl+Alt+Del 组合键来重新启动计算机,但是不推荐使用这个操作。
到这里,安装也就告一段落了,余下的就自己去研究吧,祝你好运
[
Last edited by renothing on 2005-5-2 at 19:47 ]