标题: 新版 轻轻松松的安装 Linux 系统 [打印本页] 作者: sunweipeng 时间: 2009-7-30 09:14 标题: 新版 轻轻松松的安装 Linux 系统 如何轻轻松松的阅读本书
给DOS的使用者
给Unix高手
DOS 等於 PC ?
您满意DOS的表现?
Unix 速写
什麽是Linux
何处可以买到 Linux CD-ROM?
关於 Kernel 版本与 Distribution 版本的澄清
关於 Linux的 硬体 drivers
如何选择 Slackware Debian 及 SLS
Linux着作权须知
GNU General Public License序文中译 (非完整全文)
Slackware Linux 安装速成班
<一 > 如何选购Linux可以搭配的机器
电脑硬体杂谈
整体考量
CPU 考量
Bus 考量
Video Controller 考量
Disk Controller & Disk Drive 考量
IDE 硬碟
SCSI 硬碟
Linux 支援与不支援的 SCSI 控制卡
已经支援的SCSI卡
仍测试支援中的 SCSI卡
不支援的 SCSI 卡
Linux 不能用 1024以上的 Sylinder吗?
RAM 考量
其他硬体设备
选配一部可以用的 Linux PC
一部可能的最佳组合 Linux PC
□ DOS 等於 PC ?
我们一般通称的PC, 是指 IBM PC 或者 IBM 相容 PC 而言。 PC
只是一个机器, 没有作业系统的话, 机器只是机器。 也就是说, 要
有作业系统来把PC启动, 这部PC才勉强算是一部电脑。 我之所以说
「勉强」, 是因为 PC 加上作业系统但没有应用软体的话, 仍然是废
物。
由上面这段话我们知道了, 要有作业系统才能把PC给启动起来,
那麽这里所说的作业系统专指MS DOSDR DOS或PC DOS等等(以下简
称DOS)吗?
这问题让我想起一个不对但被普遍接受的观念, PC 与 DOS不能
划上等号!! 的确, 大部分PC而言都是跑DOS为主, 但DOS绝对不是唯
一能启动您 PC 的作业系统。换句话说, 我们一般说的PC, 常已经指
「跑DOS的PC」, 这不是很好的说法, 因为我们实际上可以装设 Unix
在PC内, 也可以装设Linux, 甚至要把UnixLinux⒓DOS三种作业
系统装在同一部PC内也行, 我甚至还可以任意选择其中之一来开机呢
。
有这一层认识後, 下次您可不要再把DOS与PC划上等号。作者: sunweipeng 时间: 2009-7-30 09:15
□ 您满意DOS的表现?
您可知道, 从硬体的角度来看, 您的PC在运算速度上, 已经超越
了大部分的大型电脑了(这样比较其实是不对的, 以笔者对这两者的了
解, PC 与大型电脑的差异实在太大了, 这里用 CPU 速度一项来做比
较是不恰当的), 但从软体的角度来看, 您的PC却仍是一个阳春⒓蚵
且不安全的系统。上面这句话是真的, 因为您使用DOS。
DOS是有史以来, 最成功商业化的作业系统之一, DOS是少数真正
可以号称为开放系统的作业系统。从软体上来看, 您不大需要害怕不
同厂商所供应的DOS, 会使得原来的软体不再执行。从硬体的角度来看
,您几乎可以随便购买一些周边设备来搭配这一台跑DOS的PC, 只要您
跑DOS, 几乎不会有软硬体匹配的问题, 您有非常好的保障。
可惜上面这些优点都无法掩盖一个事实, DOS是一个极其阳春的作
业系统, DOS是一套16位元⒌スさナ褂谜叩淖饕迪低场5スけ硎驹谕
一个时间里, DOS只能一次执行一项工作, 於是使用者常常被迫用很多
时间在等待。 多使用者表示系统一次可以有多人使用, 您跑DOS的PC,
一次只能被一个人使用, 也就是一个人(或者一个软体) 就占用个整个
系统。由这个角度, 我们回头看我前面的话〃PC已经超越了几十年前的
大型系统〃, 不令人摇头吗? PC是超越了, 可是PC+DOS的组合却仍极
端落後。
上面这一段话对大部分使用者来说, 其实是没有道理的, 因为这
些使用者已经能够满足DOS亲切好用的风格, DOS刚好笨的恰恰好, 非
常容易驾驭。
请原谅笔者如此正负面交互着讲, 我只是想让您更清楚的知道,您
的PC也可以强悍到与工作站电脑脑互别苗头, 假如您将之搭配一个强
悍的作业系统的话。 您的PC也可以简单好用, 假如您搭配一个笨得恰
到好处的作业系统的话, 比方像DOS。这之间的差别, 就是作业系统的
选择。
有了这些心理建设, 您才有理由入Linux/Unix的门来。 Linux可
以充份发挥您 32 位元 PC 的高速运算能力, Linux/Unix可以免除您
对当机的恐惧, Linux/Unix各式各样的发展工具可以让您欣喜若狂,
Linux/Unix可以轻易的让您成为网路通讯的天生赢家, 但Linux/Unix
同样会带给您在系统管理以及使用上的烦恼, 因为伴随强大系统功能
而来的, 也正是复杂⑶沂褂媚讯雀叩南低场
为了给您更完整的概念, 我们先来看看这一部跑Linux的PC有何不
同, 对於「多工」「多使用者」等概念较薄弱的读者, 下面图表或
许可以帮助读者想像如何充分的把一部 PC 做到最大利用, 以及当今
的 PC 硬体上已经多麽强悍, 只要搭配一个恰当的作业系统。 这例是
笔者所筹办的 「UUserv 社区网路」的主机系统, 有关这主机的硬体
规格, CPU 是 Intel 486DX-50, VESA local bus IDE controler 搭
配一个 420MB Seagate 及 540MB WD硬碟, 记忆体有 32MB RAM
256KB cache, 以及 NE2000 相容网路卡等等。 软体方面, 这机器所
执行的工作包括Terminal server (可以接受大多 8 条电话拨接连线)
, 在内部 Ethernet网路提供 NFS (Network File System) 给网路中
其他两部电脑, 另外一条数据专线 24 小时连线 Internet, 是跑 PPP
上 Internet。 在通讯服务上, 这系统执行有完整的TCP/IP网路环境,
以所执行的Server来说, INN news server Gopher server Mail
server (SMTPPOP3UUCP) Name server等等的工作在同一部 PC
之上。作者: sunweipeng 时间: 2009-7-30 09:15
以上这麽多工作同时集中在一部机器其实并不妥当, 这里我只是
想用一个实际例告诉大家, 一部 486 PC 可以做到这麽大的功能。 事
实上, 初期的 UUserv 主机确实是这样跑, 不过後来把 Local 的网路
(比方 Terminal Service UUCP NFS等等) 与对外 Internet (比
方 Mail server Name server Gopher server INN Netnews
server 以及 SLIP/PPP 连线本身) 分开在不同的 PC做, 而後者则
是采用一部老旧 386sx-20 PC 配备 16MB记忆体, 跑得也非常满意。这
是题外话。
$ uptime
11:27am up 5 min, 5 users, load average: 0.11, 0.08, 0.02
$ who ← who指令瞧瞧系统上有多少使用者上机, 共有七人
root tty2 Oct 2 01:08
guest tty3 Oct 2 01:47
root tty1 Oct 2 00:57
joel ttyS4 Oct 2 01:24 (:dialup_modem)
guest ttyS5 Oct 2 01:47 (:dialup_modem)
yuan ttyp0 Oct 2 01:03 (linux2.cfic2.com)
yuan ttyp1 Oct 2 01:18 (linux2.cfic2.com)
$ ps ← 我想知道系统目前正执行着多少工作
PID TTY STAT TIME COMMAND
1 con S 2:04 init auto
6 con S 0:00 bdflush (daemon)
7 con S 0:08 update (bdflush)
21 con S 0:07 /usr/sbin/crond -l10
40 con S 6:43 /usr/sbin/syslogd
42 con S 0:00 /usr/sbin/klogd -d -f /var/adm/kernel.log
44 con S 0:00 /usr/sbin/rpc.portmap
46 con S 0:00 /usr/sbin/inetd
48 con S 13:03 /usr/sbin/named
52 con S 0:00 /usr/sbin/lpd
54 con S 0:00 /usr/sbin/rpc.ugidd -d
56 con S 0:00 /usr/sbin/rpc.mountd
60 con S 0:00 /usr/sbin/rpc.nfsd
62 con S 0:00 /usr/sbin/rpc.pcnfsd /var/spool/lpd
101 p 1 S 0:03 -tcsh
102 p 2 S 0:03 -tcsh
103 p 3 S 0:03 -tcsh
764 con S 0:02 -waiting for connection @ 70
1894 con S 0:00 /usr/bin/runq
1900 con S 0:00 /usr/bin/runq
3458 p 4 S 0:04 -tcsh
3494 con S 0:08 /usr/sbin/in.telnetd+issue
:3511 p 2 T 0:00 less README.linux
4757 p 2 S 0:02 tail -f log
6217 p 4 T 0:00 vi README
6447 con S 0:06 /usr/sbin/in.telnetd+issue
6787 p 4 T 0:00 vi README
8151 con S 0:00 /etc/modem ttyS5
8350 con S 0:00 /etc/modem ttyS4
8654 pS0 S 0:00 pppd connect chat -v "" ATD CONNECT /dev/cua0 19200
8657 p 1 S 0:00 tail -f /usr/adm/pppdlog
8759 p 4 S 0:02 make -j4 zImage
8768 p 4 S 0:00 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
8770 p 4 S 0:00 /bin/sh -c set -e; for i in kernel drivers mm fs net ipc
8772 p 4 S 0:00 gcc -Wall -Wstrict-prototypes -O2
8773 p 4 S 0:01 /usr/lib/gcc-lib/i486-linux/2.5.8/cpp -lang-c
8774 p 4 R 0:01 /usr/lib/gcc-lib/i486-linux/2.5.8/cc1 -quiet
8775 p 4 S 0:00 as -o init/main.o
8776 p 4 S 0:02 make -C kernel
8779 p 4 R 0:02 /usr/lib/gcc-lib/i486-linux/2.5.8/cc1 -quiet-dumpbase bu
8780 p 4 S 0:00 as -o /tmp/cca087721.o
8801 p 4 R 0:00 as86 -0 -a -o boot/bootsect.o boot/bootsect.s
8803 p 4 R 0:00 make -C kernel
8806 p 4 R 0:00 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
8807 p 4 R 0:00 gcc -D__KERNEL__ -I/usr/src/linux/include -Wall
1129 con S 0:40 /usr/lib/news/etc/innd -p4 -i0
3496 pp0 S 0:01 -tcsh
5618 pp0 T 0:39 tin
6449 pp1 S 0:02 -tcsh
8798 pp1 R 0:00 ps ax
8799 pp1 S 0:00 less
7396 con S 0:01 sh /usr/etc/bbs/service-2
7648 con S 0:00 sh /usr/etc/bbs/service-3
7651 con S 0:00 sh /usr/etc/bbs/service-news
7654 con R 11:24 /usr/local/bin/ctin
7226 con S 0:00 sh /usr/etc/bbs/service-2
7229 con S 0:00 sh /usr/etc/bbs/service-3
7232 con S 0:00 sh /usr/etc/bbs/service-news
7235 con R 20:26 /usr/local/bin/ctin
7968 pS7 S 0:01 sh /usr/etc/bbs/bbs-login
8281 pS7 S 0:00 sh /usr/etc/bbs/service-2
8287 pS7 S 0:00 sh /usr/etc/bbs/service-3
8290 pS7 S 0:00 sh /usr/etc/bbs/service-news
8293 pS7 S 0:14 /usr/local/bin/ctin
7647 pS6 S 0:01 sh /usr/etc/bbs/bbs-login
8617 pS6 S 0:00 sh /usr/etc/bbs/service-2
8645 pS6 S 0:00 less -fmer /usr/etc/bbs/announce-charge
上面这个表示范着, 一部 PC 在某一个时刻的运转情况, 这化许
可以帮助读者了解到现代 PC 的强悍。作者: sunweipeng 时间: 2009-7-30 09:15
□ Unix 速写
这一节想对DOS的使用者讲述什麽是Unix, 用最精简的叙述来含括
Unix的过去与现在, 不光是历史面, 且包括哲学面。这个企图是笔者
从Don Libes及Sandy Ressler合写的LIFE WITH UNIX这本书盗来的,
我将设法用最精简的文字来提出我个人的看法 (也就是偏见)。不满足
或不满意笔者的叙述的读者, 我建议您到图书馆或书店拿〃LIFE WITH
UNIX〃(ISBN 0-13-536657-7, Prentice Hall) 这本书来看, 这是笔
者见过讲UNIX历史 发展⒄苎Ъ坝τ玫鹊确矫孀詈玫氖橹一。假如
您想确切知道 Unix 年代记事Unix的标准等等, 或者多方面比较不
同记载的历史的话, 另外两篇文章您也不可错过, Eric S. Raymond
所着的〃PC-clone UNIX Software Buyer's Guide〃 (可以在
pit-manager.mit.edu /pub/usenet/comp.unix.bsd 档案库取得), 以
及 Unix常见问与答第六册 (Unix - Frequently Asked Questions
(6/7), 本文件可以在pit-manager.mit.edu /pub/usenet/comp.unix
/question档案库取得)。
Linux 系统核心的着作权主要是Linus本人所拥有 (核心内个别
的 drivers 其着作权为个别, 但对於实际版权规范, 乃引用美国自
由软体基金会(Free Software Foundation, Inc)着名的GNU General
PublicLicense使用执照, 根据该使用执照, 任何人都可以采收费或
非收 费方式来发行Linux, 在符合该使用执照条件规范下, 做任意的
修改等等。
由於这具体涉及美国着作权法律规范, 笔者建议任何想销售Linux
或发展 Linux 的读者, 在您看到Linux所存在的商机同时, 也得小心
谨慎, 先把着作权声明好好研究明白, 之後您才有办法将Linux做最
大的运用以及最大的获益。反之, 万万不要放任自己对着作权观念的
无知, 惹讼上身, 致使您公司数年根基瞬间倾倒。为此, 在附录二有
〃GNU General Public License版权声明全文〃 英文原本, 您可不
要等到上法院才来研究本着作权声明, 这可能有些迟。另外一个同样
重要的是〃GNU Library General Public License〃, 通常您在
Linux 环境下, 用她的发展工具(GNU C C++等等)来发展应用软体时,
您就有可能必须接受这版权声明的规范了, 这版权声明可以在本书附
带软体A1磁片上找到。
下面的两段话设计来提供您有关GNU使用执照的基本概念, 这些
说明不具法律效力, 也不保证与该执照规范吻合, 您最好找您的律师
一起赏读 :-)
这里您不妨先记住一个大原则, 不论您从任何管道取得Linux (包
括 Linux系统程式及所有相关软体), 您都被允许做任意的拷贝。同
样的, 当您将Linux分送或销售出去时, 您也不可以限制收受人不准
拷贝, 也就是, GNU 使用执照要求您给予您的收受人同样的权利以及
义务, 您能够做与不能够做的事, 您的收受人都 与您一样。
另外, 您可以取得程式码(Source code), 做您喜欢的更动, 您
更被允许将之贩卖图利。但特别注意的是, 当您的收受人要求您提供
程式码时, 您不可以拒绝, 最起码您必须告知何处可以得到该程式码
。此外, 您不可据此宣称这是您公司专属品 (这便是偷窃了!)。
□ GNU General Public License序文中译
下面所列是该使用执照的序文(注意, 不是执照的法律条文本身), 笔
者将之译成中文, 目的是用来帮您了解该执照的精神面。
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━作者: sunweipeng 时间: 2009-7-30 09:19
序言
对大多数电脑软体而言, 使用执照(licenses)都是被设计来夺取您
某些自由, 也就是您无法拥有与他人分享该软体⒒蛘吒改该软体的自
由。与此相反的, 本使用执照(the GNU General Public License)是来
保证您分享或更改自由软体(free software)的自由, 也就是用来确保软
体对任何使用者都能维持自由状态。本使用执照适用於本基金会(Free
Software Foundation)所发行的软体, 以及所有声明援引本执照的电脑
程式。(本基金会的某些其他软体, 并且含括在The GNU Library General
Public Licence规范下)。您也可以援引本执照作为您电脑程式的着作权
声明。
值得注意的是, 当我们谈到所谓自由软体时, 我们所指的不是价钱,
而是指自由而言。本执照是被设计来确保您能够拥有下列行动的自由:
分送这些软体(您喜欢的话, 也可以采收费服务)⒂涤谐淌皆始码(source
code)或者有管道来取得程式原始码⒏改该程式或部份使用该程式在其
它新程式上⒁约爸道您有权做上述这些事情。
为了保障您的权利, 我们必须赋予一些限制, 也就是禁止任何人来
侵夺您这些权利, 或者禁止任何人要求您放弃这些权利。反过来说, 当
您分送或修改这些软体时, 我们所加的限制便落在您身上。
举例来说, 不论免费或者收费, 只要您分送了这些自由软体, 您必
须完全的授与您的收受者相同的权力, 您必须确定您的收受者也能如同
您一样, 可以得到⒒蛴泄艿赖玫礁萌硖宓某淌铰搿D必须让使用者知
道这些规定情况, 他们由此可以得知他们应有的权利。
我们用以保护您的权利的两个步骤是: (一) 在软体上宣告版权所有
, (二) 提供您本执照, 您由此得到本执照的授权许可, 以进行复制⒎
送或者修该软体。
同时, 为了保障每一位创作者以及我们自己, 我们要确定每一个使
用者都知道 -- 对於这些自由软体, 我们不提供任何的品质保证。假若某
人修改了这些软体, 并且进一步将之流通出去, 我们要这些辗转拿到软
体的使用者知道, 他们所拿到的已经不是原来的软体, 若这些被修改的
软体产生了问题, 原创作者的声誉可以不受影响。
最後, 任何的免费程式随时都有可能被软体专利权(software patents)
所威胁, 我们希望避免个别的经手人(redistrubutors)引用自己的专利
执照(patent licenses), 而使该软体沦为私有软体(Proprietary
program)。为避免这情形的发生, 我们清楚的订下这份专利权声明, 它允许
每个人都有使用这些软体的自由, 否则, 我们乾脆放弃版权所有。
底下就是具体的规范及条件, 为复制⒎炙图靶薷恼庑┤硖迨彼需
遵照。
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
〔.... 此处接着该执照本文, 详细请叁考附录二... 〕作者: sunweipeng 时间: 2009-7-30 09:19
□ Slackware Linux 安装速成班
这一节, 我想用最简单的方式, 把 Slackware Linux 系统安装的
最基本过程, 节录出来。
A. 安装磁片制作: Slackware Linux 安装时, 需要两片磁片, 这两
片分别是启动片 (bootdisk) 与基本档案系统片 (rootdisk)。 安
装磁片的制作, 可以分别在DOS 下用 RAWRITE.EXE, 或者在附有软
碟机的 Unix/Linux 工作站上, 用 dd 指令制作, 制作的细节就是
取得 bootdisk 及 rootdisk 两个档案, 假如这两个档案已经被压
起来, 先将之解压缩 (用gzip), 之後将之「写」到磁碟上。
B. 规划硬碟分割区: 硬碟在为作业系统使用之前, 必须经过两道步骤,
第一就是制作分割区, 第二就是制作档案系统。 我们用安装磁片将
机器启动後, 可以 Linux的 fdisk 工具程式, 造出一个或多个分
割区, 制作分割区的动作, 在 MS-DOS底下只能造出一个 Primary
分割区, 但是在 Linux下则可以造出 4 个, 以及一个 Extented
分割区, 以及其下分割出更多的 Logical partition。 Linux 可
已被安装在Primary分割区或者 Logical partition。
C. 制作档案系统: 实际执行 Slackware Linux 安装时, 本步骤可以
与步骤 D. 合在一起。 制作档案系统的工作, 就是进一步赋予分
割区独特的档案系统属性, 这工作在 DOS 环境下被称为「格式化
」 -- FORMAT。
D. 开始安装: 同样用安装磁片开机後, 以 root 进入系统,执行 setup
指令。 备妥一张格式化过的磁片, 预备作为以後的系统开机片。
setup 过程除了将系统软体安装到硬碟内的 Linux 分割区之外,
还包括设定系统的开机方式, 比方由硬碟选择开机, 或者由软碟
开机, 悉听尊便。
E. 安装完成後, 重新启动机器, 以刚制作的软碟或硬碟开机, 就可以
进入 Linux 系统。
假如不幸的, 您依照以上操作却不成功, 您有绝对的必要, 详细阅
读我在本书各章节所介绍的细节, 这本书本身是一本详细的「一贯班」
介绍, 这或许比「速成班」对您还有用 :-)作者: sunweipeng 时间: 2009-7-30 09:20
第一章 如何选购Linux可以搭配的机器
这一节笔者要带领读者, 用 Linux的角度来看电脑硬体的一些细
节。 在此我先提醒读者朋友一个事实, 作者本人在硬体方面并没有
深入的研究, 我所知道的, 只能算是一般性的电脑硬体常识。 这并
不是笔者自谦。 因此对於我往下的建议, 读者们叁考之馀, 有需要
额外寻求真正专家们的背书。 我感觉这样子您会比规划出最符合您
需求的一个硬体配备。
本章内容:
电脑硬体杂谈
整体考量
CPU 考量
Bus 考量
Video Controller 考量
Disk Controller & Disk Drive 考量
RAM 考量
其他硬体设备
选配一部可以用的 Linux PC
一部可能的最佳组合 Linux PC
□ 电脑硬体杂谈
对商业环境的使用者来说, 可能多半已经有主意, 要拿 Linux
执行哪些任务, 这种任务导向的需求之下, 要选择可以搭配 Linux
作业系统的硬体设备, 可能会比较容易。 至於玩家或者只是想尝试
一下高阶 OS 的学生来说, 情况的弹性有时比较大, 考虑之事项有
时反而多。 这现象常常是因为您这一台机器除了 Linux之外, 还会
用来执行其他作业系统 (比方DOSOS/2 NTNeXTStep等等), 另
外, 这一个族群的朋友在预算上比较需要精打细算, 因此, 在进行
硬体选择评估时就不是那麽容易。 无论如何, Linux 对硬体的最低
要求 您所期待的功能以及价格几个因素, 是大家共同的基本衡量
项目, 这几个项目也就是我们据以采购可以搭配 Linux 作业系统的
电脑硬体底线, 不过, 有关价钱因素, 由於时效性问题, 本文没有把
这因素列入考量。
照笔者浅见, 在大约 1992年之前, 在台湾个人电脑 (PC)市场上
多半都可以说是大众规格的 PC, 意思是说, 大部分的 PC纵使品牌不
一样, 其规格的差别很少。 那种时代, 人们买电脑时大概只需要知
道所谓『286』『386』 或『486』电脑即可。 现在的差别则越来
越明显, 高低阶产品的差别像是主机板设计 CPU 选用 RAM多寡
及最大扩充量 Cache多寡⒒懔髋 (Bus) 种类 硬碟种类及其控
制卡 显示卡种类以及萤幕等等, 个别组件之差异已经很大, 光是
一个部份有差异, 其硬体效能可能就会有很大差异。 换句话说, 现
在这时代, 已经不是用『386』 『486』 等名词就足以分别不同的
PC 层级了, 这对於搭配三十二位元高阶作业系统的硬体尤其明显。
也或许我们可以观察到, 由於 PC的架构本身已经有了结构性的改变,
配备良好的高阶 PC 已经不再是 『个人电脑』了, 它甚至已经可以
工作站电脑或甚至迷你主机相抗衡了, 假如这样的硬体搭配像Linux
这样的多工多使用者高阶 OS的话。作者: sunweipeng 时间: 2009-7-30 09:20
□ 整体考量
我首先建议一般性的采购原则: 我们所建议的, 是所谓 IBM 相
容 PC。
很多朋友知道台湾大约生产了全球百分之 70 左右数量的整装PC,
这些几乎都是所谓的 IBM相容PC, 换句话说, 只要我们购买一部台湾
产制的 PC, 我们几乎可以大胆假设, 这大概就是一部可以跑 Linux
的PC。 不过这并不是说没有例外, 一些大厂的产品仍然会有独家规
格的设计, 比方DEC HP IBM Compac 及 Acer (宏棋) 等等品
牌的PC会有这些例外的情况。 我建议您, 当选择大厂产品作为 Linux
平台时, 切记要额外的检查其相容性。 作法上, 至少要拿 Bootdisk
及 Rootdisk 开机看看, 最好也能够进一步安装及运转测试。
至於到底什麽才是『IBM 相容PC』, 请注意, 不是 IBM PC⒁
不是IBM PS/2或PS/55 系列 PC。 有一个观念很重要, 全世界除了
IBM生产 (或OEM) 的PC 叫做 IBM PC以外, 其他厂商所生产的PC,一
般才称之为『IBM相容PC』。 这里真正建议您采购的, 正是IBM 相容
PC。
顺便介绍一点, 假如我们采购整套的电脑时, 最好能留意一点,
现在很多PC在出厂时, 已经把DOS以及MS-Window装在硬碟了, 这是
一个明显趋势, 让消费者买回家, 一插上电源就可以使用, 不需要
额外的装置。 这一种电脑非常好, 但是这刚好也不是您想买的电脑
。 特别提醒您, 您所要买的是一部硬碟里面什麽也没有的PC, 您无
须浪费钱, 您更不需要带给自己麻烦, 因为这一类现成可用的电脑
已经把硬碟全部都给了DOS了, 这不是您乐於看到的局面。
您甚至连DOS (不论MS-DOS PC DOS或DR DOS等等)也可以不要
购买, 除非您想同时跑 Linux 及 DOS。
由於『IBM 相容 PC』 仍然是一个非常模糊的定义, 以下我们
就用分解动作, 来看看到底搭配 Linux的一部机器, 其各部份组件
是如何一回事。
CPU 考量
上面两三段话的介绍, 是从轮廓面来谈 PC, 以下我们就要更细
的看 PC 的各部份组件。
截至目前为止, IntelAMD或 Cyrix这三家出品的 x86 系列CPU
并没有听说与 Linux不相容的例子, 这三家出品的所有 386 486
及 Pentium (或者俗称为 586) CPU 都可以用来跑 Linux。 甚是
1994年最後一季市面上出现了第一颗非美国品牌的 x86 CPU -- 台湾
联华 U5, 也可以跑 Linux [注]。
注: 必须搭配编号 1.1.71 或者更新的 Kernel才行。
与 CPU 很接近的话题, 就是 FPU 数学辅助运算器。 由於 Linux
Kernel 本身可以支援 FPU 模拟, 所以 Linux 可以在没有 FPU 的机
器也可以运转, 只是这会具体影响系统的效能, 尤其针对编译 图
形处里方面的工作会尤其明显。 照目前 CPU 的市场来看, 所有 386
级, 一直到 486SX或SLC/DLC等等 CPU的电脑, 其出厂时多半没有内建
FPU 装置, 所以购买这类机器搭配 Linux时, 就要额外询问该机器是
否有外加像是 80387 这类的处理器。 486DX 以上层级 CPU 则内建有
FPU。 Linux 机器自动侦测到 FPU 装置时, 它就不会再做模拟, 而直
接利用 FPU 作为运算辅助引擎。
最後一点, 截至目前 (1994十一月) 为止, Linux 并不支援多CPU
架构的机器, 长期的将来应该可以期待。 其他非 x86 的CPU, 目前
都尚未有成熟的支援, 但是将来或许 Linux 也有可能被移植到 DEC
Alpha Motorola 68K 及 IBM PowerPC 等等 CPU 的机器上, 至少目
前的 Linux kernel source tree 已经完成了这样的预备与调动。作者: sunweipeng 时间: 2009-7-30 09:20
Bus 考量
这里所要谈的, 也会把很多朋友给搞糊涂了。 这一两年来, PC
之所以有结构性改变, 我感觉, 就是 Bus 汇流排架构的改变, 以及
由此所带动的周边控制器的升级。 对内行人来说, 也就只有在这样
架构改变之下, 使用最新高速 CPU 才有意义。
另外, 关於汇流排 (Bus)架构, ISA EISA VESA Local 及
Intel PCI 等等都可以选择。 目前 586 CPU (Pentium) 层级的主
机板普遍都是 PCI 汇流排架构, 这种主机板有些可以配合支援 PCI
或 传统 ISA 汇流排的控制卡, 有些甚至还可以支援 VESA Local
或 EISA。 也就是假如您选用这些新式设计的 586 级主机板的话,
您可以根据该版子的实际设计规格, 来搭配选用 PCI EISA 或
VESA Local等规格的控制卡 (Controller), 像是绘图界面卡 (Video
card) 网路卡 硬碟控制卡等等, 这样就可以充份利用这些先进
的 Bus设计, Linux 也可以支援这些新式设计。
□ Video Controller 考量
您若有不跑 X Window 环境的话, 几乎任何显示控制卡及萤幕
都无所谓, 市面上看得到的像是 MGA CGA EGA VGA SVGA
与各类型所谓加速绘图控制卡等等显示卡, 以及其对应搭配的显示
器。 另外, 拿 Linux作为 Server级机器的话, 也可以完全不需要
显示控制卡或萤幕。
不过若要在这部 Linux机器执行 X Window的话, 这时候萤幕显
示卡的规格细节就变得很重要, 这是因为显示卡类型太多了, 想想,
刚提到 ISA EISA VESA Local 及 PCI 等等这麽多的架构, 这
些个别架构目前都已经有各自规格的萤幕显示卡推出了, 目前整个
电脑软体工业本来就跟不上硬体的演进。 X Window 没有办法支援
所有这些不同的控制卡。
对这话题很关心的朋友, 大概都是有需要用到 X Window的朋友,
我建议您, 一定要叁考附录三 XFree-HOWTO 这文件的说明来选择合
适的卡。 底下我就做一个最精要的摘录, 这是截至 XFree 2.1 版
所支援的硬体:
o nonaccelerated chipsets:
o Tseng ET3000, ET4000AX, ET4000/W32
o Western Digital/Paradise PVGA1
o Western Digital WD90C00, WD90C10, WD90C11, WD90C24, WD90C30
┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━□
┃C:\LINUX> gzip -d sbpcd.gz ← 解压缩 SBPCD.GZ 档案 ┃
┃C:\LINUX> gzip -d color144.gz ← 解压缩 COLOR144.GZ 档案 ┃
┃ ┃
┃C:\LINUX>rawrite ← 下rawrite指令 ┃
┃RaWrite 1.2 - Write disk file to raw floppy diskette ┃
┃ ┃
┃Enter source file name: sbpcd ← 回答〃sbpcd〃为来源 ┃
┃Enter destination drive: a: ← 回答〃a:〃为目的磁片 ┃
┃Please insert a formatted diskette into drive A: and press -ENTER- :┃
┃Number of sectors per track for this disk is 15 ┃
┃Writing image to drive A:. Press ^C to abort. ┃
┃Track: 79 Head: 1 Sector: 13 ┃
┃Done. ┃
┃ ┃
┃C:\LINUX>rawrite ← 下rawrite指令 ┃
┃RaWrite 1.2 - Write disk file to raw floppy diskette ┃
┃ ┃
┃Enter source file name: color144 ← 回答〃color144〃为来源 ┃
┃Enter destination drive: a: ← 回答〃a:〃为目的磁片 ┃
┃Please insert a formatted diskette into drive A: and press -ENTER- :┃
┃Number of sectors per track for this disk is 15 ┃
┃Writing image to drive A:. Press ^C to abort. ┃
┃Track: 79 Head: 1 Sector: 13 ┃
┃Done. ┃
┃ ┃
┗━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┛
以上操作注意一点, SBPCD.GZ 及 COLOR144.GZ 档案经解压缩处
理後, 其档名将分变为 SBPCD 及 COLOR144, 也就是其延伸档案 .GZ
会消失不见。
您依照上面示范操作之前, 记得先准备好两张格式化(format)过
的磁片, 插入第一个软碟 (也就是A:槽)。由於各硬体上的差异, 以
及BIOS设定的不同, 假如您有两个软碟机的话, 两个之中, 必有其中
之一必定是可以用来开机的, 您就是把format过的磁片摆入这个可以
开机磁碟机内。作者: sunweipeng 时间: 2009-7-30 09:26
Unix 环境下制作
以上的操作示范, 是在 DOS 环境下制作出 Slackware Linux 两
张安装磁片, 藉由这两张磁片, 您就可以启动一部 PC, 进入 Linux
作业系统, 在此之下, 接着再进一步进行系统安装作业。
不过假如您没有 DOS机器, 而只有工作站电脑, 或其他任何附有
软碟机的 Unix 机器 (包含 Linux), 您也可以在这环境下制作出这
两张安装磁片 (先决条件是该机器安装有gzip 工具程式)。
$ ls -l
total 1130
drwxr-xr-x 2 root root 1024 Nov 6 21:42 ./
drwxr-xr-x 9 root root 1024 Nov 6 21:41 ../
-rw-r--r-- 1 root root 546082 Nov 6 21:42 color144.gz
-rw-r--r-- 1 root root 599602 Nov 6 21:42 sbpcd.gz
$ gzip -d color144.gz sbpcd.gz ← 解压缩
$ ls -l
total 2896
drwxr-xr-x 2 root root 1024 Nov 6 21:44 ./
drwxr-xr-x 9 root root 1024 Nov 6 21:41 ../
-rw-r--r-- 1 root root 1474560 Nov 6 21:42 color144
-rw-r--r-- 1 root root 1474560 Nov 6 21:42 sbpcd
$ dd if=sbpcd of=/dev/fd0 obs=18k
$ dd if=color144 of=/dev/fd0 obs=18k
上面指令中, fd0 假设为您的软碟机, 在不同的 Unix 系统可能
会有不同的名称 (比方 rfd0), 请自行替换。作者: sunweipeng 时间: 2009-7-30 09:26
第四章 如何在硬碟建置Linux系统
在前面章节中, 我们已经介绍过了 Slackware Linux 安装磁片
的制作方法, 以及Slackware Linux 软体的取得, 本章中我们就来看
看如何真正进行系统软体的安装。
系统安装的步骤
使用 bootdisk及rootdisk 磁片来开机
关於 root 使用者
关於虚拟萤幕 (Virtual Console)
fdisk 硬碟分割区规划示范
系统软体安装前的说明
set up 六程序
setup 启动
启动虚拟记忆体
指定安装目的分割区 (Target)
指定安装来源 (Source)
选择安装软体
Install 实际安装
系统设定
□ 系统安装的步骤
我们简化来看, 安装的步骤可以说有三个步骤, 这三步骤都是用
Slackware Linux安装磁片启动系统後, 接着一步步来进行。 我们现
在就来看看这三步骤。
步骤一: fdisk 规划分割区 (Partitioning)
安装 Linux 的最低要求, 要有一个分割区[注], 但是这样一套系
统所需要的虚拟记忆空间, 只能用 Swap File方法制作, 对学生来说,
这或许适合, 但是系统效率与安全性就差些。 至於比较好一些的情况
,我们为 Linux 规划出两个分割区, 一个用来安置整个档案系统, 另
外一个作为 Swap Partition 虚拟记忆体。 至於最佳情况, 则是将系
统规划出多重档案系统, 将 / 保留尽可能的小, /usr /tmp /var
及 /home 等等可以分为各自独立的档案系统, 也就是各自有专属的分
割区, 最後并加上一个独立的分割区, 作为 Swap Partition 虚拟记
忆体。 这样设定的一部 Linux 系统在笔者看来, 就是一个最符合系
统安全要求 以及系统运转效率的一个多工多使用者作业系统环境。
注: 其实可以又例外, 用umsds144.gz 来做rootdisk, 可以在原本 MSDOS
分割区内安装并执行 Linux, 但是笔者不推荐这样做, 尤其对把 Linux
摆在严肃场合的朋友来说, 不要这样做。作者: sunweipeng 时间: 2009-7-30 09:26
步骤二: 建置档案系统 (格式化)
完成了硬碟分割, 事实上硬碟内仍然什麽也没有, 我们只是用逻
辑上的方法, 把一个硬碟, 分割成好几个来用, 新规划出来的分割区
仍然空空如也, 这样的分割规划动作, 比较接近硬体层次。
建置档案系统工作则是比较接近作业系统层次的规划动作, 我们
在某个分割区建制档案系统後, 该分割区就变成一个拥有特殊结构属
性的分割区。 我们以大家熟悉的 DOS来说, 我们对硬碟或软碟执行
FORMAT动作, 这动作就是建置档案系统, 比方说 C:\> format a:/s。
Linux 环境下的档案系统建置动作, 是用 mkfs 或 mke2fs 等等
工具程式来做。 在本章系统安装示范过程中, 我们执行 Slackware
Linux 安装程式时, 可以手工执行 mkfs (或mke2fs) 动作, 也可以
在软体安装时, 让安装程式自动判别, 那时再决定是否 mkfs。
不过假如您事後有机会要手工进行系统维护时, 就会有需要用指令
来建造档案系统, 比方说制造一个 Linux 属性 (ext2fs) 的磁碟片就
是一个典型的例子
步骤三: 把 Slackware Linux 安装到硬碟
这个步骤是我们真正期待的, 这步骤会把软体从磁片 (或者 CD-
ROM 远端 NFS server 或硬碟都行) 安装到硬碟内指定的分割区。
注意, 这步骤也会拷贝一份新的 Kernel 到硬碟去, 不过, 这份
Kernel 不同於 bootdisk 磁片上的 Kernel, 实际安装时, 安装程式
会询问您安装 IDE Kernel 或 SCSI Kernel, 您一定要正确回答, 也
就是根据您硬碟控制卡形式, 选用其中之一 (假如您不知道您硬碟的
规格, 那大概就是 IDE)。
再次提醒读者, 这步骤一定要正确且仔细的安装, 最好也要尽量
完整的安装, 最好您至少安装 A (系统基本工具) B (最基本的常
用应用软体) 及 N (网路应用软体) 等系列软体, 另外您想编译系统
核心的话 (这几乎是绝对有必要的动作), D 系列包含有系统发展工具
以及系统核心服务程式码 (Kernel source code) 也有绝对必要, 除
此之外, F 系列包含各式 FAQ (常见问与答) 文件, I 系列 Info
page 线上手册等等最好也都安装, 以及颇为重要的 Q系列, 这是针对
不同硬体设备以及应用需求所事先编译好的系统核心服务程式 (Kernel),
您可以从这里选择一个来用。 总之, 把Linux定位在玩票性质的话, 您
不妨选择性安装, 至於严肃场合则尽量全部安装。 不甚漏失安装一些必
要软体, 会带给自己无谓的困扰。作者: sunweipeng 时间: 2009-7-30 09:26
使用 bootdisk及 rootdisk 磁片 开机
安装系统的第一步骤, 就是拿刚刚制作好的 bootdisk 磁片, 塞
入第一部软碟机, 启动电源。 正常的话, 您会在萤幕上看到以下画
面。
<< 画面 4-1 >>
LILO
Welcome to the Slackware Linux 2.0.2 Bootkernel disk!
If you have any extra parameters to pass to the kernel, enter them at the
prompt below. For instance, you might need something like this to detect the
hard drive on PS/1 and ValuePoint models from IBM:
ramdisk hd=cyl,hds,secs (Where "cyl", "hds", and "secs" are the number of
cylinders, sectors, and heads on the drive. Most
machine won't need this.)
Also, in a pinch, you can boot your system with a command like:
mount root=/dev/hda1
On machines with low memory, you can mount root=/dev/fd1 or
mount root=/dev/fd0 to install without a ramdisk. See LOWMEM.TXT for details.
If you wold rather load the root/install disk from your second floppy drive:
drive2 (or even this: ramdisk root=/dev/hd1)
DON'T SWITCH ANY DISKS YET! This prompt is just for entering extra paramters.
If you don't need to enter any paramters, hit ENTER to conitnue.
boot:
萤幕画面在此处停止了。 正常的话, 在这里我们碰一下 <Enter>
键, 可以继续。
<< 画面 4-2 >>
...........
Please remove the boot kernel disk from your floppy drive, insert a
root/install disk (such as one of the Slackware color144, colrlite,
tty144, or tty12 disks) or some other disk you wish to load into a
ramdisk and boot, and then press ENTER to continue.
<< 画面 4-3 >>
VFS: Disk change detected on device 2/28
RAMDISK: Loading 1440 blocks into RAM disk ..................................
.............................................................................作者: sunweipeng 时间: 2009-7-30 09:27
<< 画面 4-4 >>
Welcome to the Slackware Linux installation disk, (v. 2.0.2)
###### IMPORTANT! READ THE INFORMATION BELOW CAREFULLY. ######
- You will need one or more partitions of type "Linux native" prepared. It is
also recommended that you create a swap partition (type "Linux swap") prior
to installation. Most users can use the Linux "fdisk" utility to create and
tag the types of all these partitions. OS/2 Boot Manager users, however,
should create their Linux partitions with OS/2 "fdisk", add the bootable
(root) partition to the Boot Manager menu, and then use the Linux "fdisk" to
tag the partitions as type "Linux native".
- If you have 4 megabytes or less of RAM, you MUST activate a swap partition
before running setup. After making the partition with fdisk, use:
mkswap /dev/<partition> <number of blocks> ; swapon /dev/<partition>
- Once you have prepared the disk partitions for Linux, and activated a swap
partition if you need one, type "setup" to begin the installation process.
- If you want the install program to use monochrome displays, type:
TERM=vt100
before you start "setup".
Disk /dev/hda: 15 heads, 62 sectors, 899 cylinders
Units = cylinders of 930 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hda1 * 2 2 310 143685 83 Linux native
/dev/hda2 311 311 750 204600 83 Linux native
/dev/hda3 751 751 856 49290 83 Linux native
/dev/hda4 857 857 899 19995 5 Extended
<< 画面 4-8 >>
$ fdisk /dev/hdb ← 指定规划第二颗硬碟
The number of cylinders for this disk is set to 1048.
This is larger than 1024, and may cause problems with some software.
Command (m for help): p ← 用 p 指令来浏览目前分割区的配置
Disk /dev/hdb: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hdb1 1 1 100 50368+ 83 Linux native
/dev/hdb4 * 406 406 535 65520 a5 Unknown
Command (m for help): n ← n 设立新分割区
Command action
e extended
p primary partition (1-4)
p ← p 指定 primary 分割区
Partition number (1-4): 2 ← 2 指定第二个
First cylinder (101-826): 101 ← 指定第二分割区位置
从 101 - 250 cylinder
Last cylinder or +size or +sizeM or +sizeK (101-405): 250
Command (m for help): n ← n 设立新分割区作者: sunweipeng 时间: 2009-7-30 09:28
Command (m for help):
e extended
p primary partition (1-4)
p ← p 指定 primary 分割区
Partition number (1-4): 3 ← 指定第三分割区位置
从 251 - 250 cylinder
First cylinder (251-826): 251 ← 填入 251
Last cylinder or +size or +sizeM or +sizeK (251-405): 290 ← 填入 290
Command (m for help): p ← 用 p 指令浏览设定结果
Disk /dev/hdb: 16 heads, 63 sectors, 826 cylinders
Units = cylinders of 1008 * 512 bytes
Device Boot Begin Start End Blocks Id System
/dev/hdb1 1 1 100 50368+ 83 Linux native
/dev/hdb2 101 101 250 75600 83 Linux native
/dev/hdb3 251 251 290 20160 83 Linux native
/dev/hdb4 * 406 406 535 65520 a5 Unknown
Command (m for help): t ← 修改分割区类型
Partition number (1-4): 3 ← 指定修改第三个分割区
Hex code (type L to list codes): 82 ← 82 代表 Linux Swap Partition
Changed system type of partition 3 to 82 (Linux swap)
Command (m for help): wq ← w: 储存 q: 结束跳出
完成分割区规划後, 我们还不能立刻执行安装的工作, 现在我们
必须重新开机。 这时, 把 rootdisk 磁片从磁碟机拿出来, 再换插
bootdisk 磁片进去, 之後在提示符号下, 执行 reboot 指令从新启动
机器。
□ 系统软体安装前的说明
到这里为止, 我们硬碟内实际上仍然没有东西, 我们只做了基本
的分割区规划, 更重要的档案系统 系统软体 系统核心服务程式
⑾低彻ぞ叱淌揭约坝τ萌硖宓鹊, 都还未安装。
刚刚我们完成分割区规划後, 重新开机, 并再次以 root 帐号进入
系统, 假如无误的话, 我们接下来要用 setup 指令, 完成全程安装动
作。 请读者留意, setup 的动作可以指定全自动, 也可以指定一步一
步监督安装。 这两不种不同方式其所需的时间相差很大, 我建议读者
第一次执行的话, 指定一步一步慢慢来 (这是内定方式), 这样您可以
浏览整个过程, 也就可以对系统有更深的了解。 还有一点很重要的,
由於您不想由於您的不慎, 以致於安装了一套有潜在瑕疵的 Linux 系
统, 可是明显的您又没有经验, 怎麽办呢? 简单, 先把第一次安装当
作是测试, 不论成功与否, 都仔细观察仔细学, 之後, 再重新从头开
始一次, 仔细的一步步进行硬碟规划 建置档案系统 及系统软体
安装。作者: sunweipeng 时间: 2009-7-30 09:28
□ set up 六程序
Slackware Linux 的安装可以大略分解为六个步骤, 其实这些步
骤其在彩色安装画面上都已经有清楚显示, 读者此处不妨快速浏览即
可。 以下这六个步骤可以是连贯动作, 但也可以个别独立操作。
1. 启动 SWAP PARTITION
除非您硬碟内已经没有可用的分割区, 最好您第一个步骤就要先
设置 SWAP PARTITION, 让系统所需要的虚拟记忆体立刻生效, 这对
记忆体很小的机器尤其重要, 否则您甚至可能没有办法继续进行安装
工作。作者: sunweipeng 时间: 2009-7-30 09:28
2. 指定安装目的分割区 (Target)
第二个步骤, 就是告诉系统安装程式, 究竟您想把系统安装到哪
一个 (或者哪几个) 硬碟分割区。 实际执行这步骤时, 您只需要把游
标移到萤幕上的 Target 选项, 按下 <Enter> 键, 之後回答一些问题
即可。
3. 指定安装来源 (Source)
您首先要告诉安装程式, 您究竟想用什麽方式安装, 比方磁片
硬碟 CD-ROM 网路远端一部 NFS server 或 磁带等等, 这就是
安装来源。 实际执行操作时, 您可以在刚刚指定 Target的阶段之後
面, 接着进行指定 Source, 或者, 也可以在萤幕上选择 Source选项
。
4. 选择安装软体 (DISK SETS)
执行这项操作时, 首先我们要选择安装哪些软体, 或者哪些不安
装。
5. 实际安装 (Install)
这步骤就是真枪实弹把软体从 Source 安装到 Target 的过程。
6. 最後系统设定 (Configuration)
前面五个步骤完成後, 基本上整个系统所需的软体都已经安装完
成, 只不过, 这仍然是一套死的系统, 因为大部分的功能都还没有办
法正确运转, 这是为什麽, 我们需要进一步做最後的设定。 这步骤实
际上的作法, 也是回答一些问题, 之後安装软体会自动执行。作者: sunweipeng 时间: 2009-7-30 09:28
□ setup 启动
透过上面的说明, 我们大慨已经明了 setup 所执行的工作, 接下
来我们就要实际来执行 setup 的各项细节。
我们先来回忆一下。 刚刚用 bootdisk 及 rootdisk 开机成功後
, 我们首先以 root 帐号进入系统, 我们眼前就已经是一个阳春的
Linux/Unix 作业环境, 使用 sh (Bounre Shell) 与系统打交道。
以下我们在 Shell提示符号下键入 setup 指令, 就可以开始执
行安装程序。
$ setup
<< 画面 4-9 >>
______________ Slackware Linux Setup (version FD-2.0.2) ______________?
? Welcome to Slackware Linux Setup. ?
? Select an option below using the UP/DOWN keys and SPACE or ENTER. ?
? Alternate keys may also be used: '+', '-', and TAB. ?
? __________________________________________________________________??
??HELP Read the Slackware Setup HELP file ??
??KEYMAP Remap your keyboard if you're not using a US one ??
??QUICK Choose quick or verbose install mode [now: VERBOSE] ??
??MAKE TAGS Experts may customize tagfiles to preselect packages ??
??ADDSWAP Set up your swap partition(s) ??
??TARGET Set up your target partitions ??
??SOURCE Select source media ??
??DISK SETS Decide which disk sets you wish to install ??
??INSTALL Install selected disk sets ??
??CONFIGURE Reconfigure your Linux system ??
??EXIT Exit Slackware Linux Setup ??
? __________________________________________________________________??
?_____________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:28
在这画面中, 我们可以移动上下方向键, 萤幕上的反白就会跟着
移动, 我们把反白移动到某一行, 之後按 <Enter> 键, 就是要执行该
选项工作。
至於萤幕底端有 <OK> 及 <Cancel> 两个选项, 可个可以 <Tab>
键或者左右方向键来跳跃选择, 您也同样可以游标移动, 假如移到
<Cancel> 处, 接着按 <Enter>, 这就会取消目前的作业。
下面说明则是该画面的中文翻译说明。
HELP 阅读线上安装说明
KEYMAP 更改键盘排列
QUICK 快速安装模式, 假如使用这选项的话, 系统安装过程
就不会停下来一一询问您问题。 另外, 这选项可以,
搭配下面 "MAKE TAGS", 但是, 不是专家的话, 请勿
使用。
MAKE TAGS 改变软体内键安装选项
ADDSWAP 启动 swap partition, 使虚拟记忆体即刻生效
TARGET 指定目的硬碟分割区
SOURCE 指定来源 source media
DISK SETS 选择安装软体系列
INSTALL 开始安装
CONFIGURE 系统设定
EXIT 结束安装作业
□ 启动虚拟记忆体
前面主服务画面 (< 画面 4-9 >) 下第五个选项 ADDSWAP, 我们
用方向键往下移动到此, 之後按 <Enter> 键。 这画面中的 /dev/hdb2
是系统自己抓到的, 无须额外手工指定, 不过, 前提是之前进行硬碟
分割时, 已经把 /dev/hdb2 的分割区型态 (Partition Type) 正确
设定为 〃Linux swap〃。
以下自动化程序所作的有三个动作, 第一就是对现有的 Swap
Partition 执行规划动作 (mkswap), 第二个动作, 是让该新规划好的
Swap partition 即刻生效 (swapon)。 最後一步, 则是安装到将来系
统的 /etc/fstab, 这样系统安装完成後, 每次系统开机时就会自动启
动虚拟记忆体。作者: sunweipeng 时间: 2009-7-30 09:29
<< 画面 4-10 >>
______________________ SWAP SPACE DETECTED ________________________
? ?
? Slackware Setup has detected a swap partition: ?
? ?
? Device Boot Begin Start End Blocks Id System ?
? /dev/hdb2 101 101 160 30240 82 Linux swap ?
? ?
? Do you wish to install this as your swap partition? ?
? ?
?___________________________________________________________________?
? < Yes > < No > ?
____________________________________________________________________?
<< 画面 4-11 >>
________________________ MKSWAP WARNING ________________________
? IMPORTANT NOTE: If you have already made any of your swap ?
? partitions active (using the swapon command), then you ?
? should not allow Setup to use mkswap on your swap partitions, ?
? because it may corrupt memory pages that are currently ?
? swapped out. Instead, you will have to make sure that your ?
? swap partitions have been prepared (with mkswap) before they ?
? will work. You might want to do this to any inactive swap ?
? partitions before you reboot. ?
________________________________________________________________ ?
? < OK > ?
________________________________________________________________ ?
<< 画面 4-12 >>
________________________ USE MKSWAP? ________________________
? Do you want Setup to use mkswap on your swap partitions? ?
______________________________________________________________?
? < Yes > < No > ?
______________________________________________________________?
下面画面则无论如何一定要执行, 这样就立刻才可以使 Swap
Partition 生效。 以此例来说, 会立刻增加约 30MB 的虚拟记忆体。
<< 画面 4-13 >>
__________________ ACTIVATE SWAP SPACE? __________________
? If you have not already activated your swap partitions ?
? with 'swapon', you should do so at this time. Activate ?
? swap partitions with 'swapon'? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?
上面画面所执行的, 就等同於以下这指令:
$ /sbin/swapon /dev/hdb2
下面这画面, 安装程式询问说要不要更改 /etc/fstab, 这效果是
以後系统 (指安装完成後的系统) 每次开机後, 会自行启动该 Swap
Partition, 此处我们按 <Enter> 键, 选择安装。作者: sunweipeng 时间: 2009-7-30 09:29
<< 画面 4-14 >>
______________________ SWAP SPACE CONFIGURED ________________________
? Your swapspace has been configured. This information will ?
? be added to your /etc/fstab: ?
? ?
? /dev/hdb2 swap swap defaults ?
? ?
? ?
? ?
? ?
? ?
______________________________________________________________________?
? < OK > ?
______________________________________________________________________?
<< 画面 4-15 >>
______________ CONTINUE WITH INSTALLATION? ______________
? Now that you've set up your swap space, you may ?
? continue on with the installation. Otherwise, you'll ?
? be returned to the main menu. Would you like to ?
? continue the installation and set up your TARGET ?
? drive(s)? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?
□ 指定安装目的分割区
在这步骤里, 我们要一一的告诉系统安装程式, 哪一个分割区我
们想作为 / 档案系统, 哪一个分割区指定为 /usr 档案系统, 等等。
除此以外, 假如硬碟某一个分割区已经安装有 DOS 或 OS/2, 也可以
在此告诉系统安装程式, 这样子将来就可以直些在 Linux 档案系统
下取用 DOS与 OS/2 档案系统内的东西 (Linux支援 DOS FAT 及 OS2
HPFS 等档案系统)。
这一阶段的实际操作步骤也很简单。 我们首先指定所要安装
Linux 的分割区, 接着安装程式会询问确认该分割区的属性, 然後
们需决定要不要对该分割区规划出档案系统 (make filesystem)。
下面画面中, 我们可以看到, 系统安装程式会自动侦测出所有属
性为 Linux native (Partition ID 为 83) 的分割区。 这画面中,
我们被询问的第一个话题, 就是 / 档案系统将设於何处? 这里笔
者回答 /dev/hdb3, 这是第二颗硬碟的第三个分割区。 额外一提,
Linux 可以安装在第一或第二颗硬碟, 悉听尊便。作者: sunweipeng 时间: 2009-7-30 09:29
<< 画面 4-16 >>
_____________________________________________________________________
? ?
? Device Boot Begin Start End Blocks Id System ?
? /dev/hdb1 1 1 100 50368+ 83 Linux native ?
? /dev/hdb3 536 536 736 101304 83 Linux native ?
? ?
? Which device would you like to use for your root Linux partition? ?
? __________________________________________________________________ ?
??dev/hdb3 ??
? __________________________________________________________________??
? ?
? ?
? ?
? ?
? ?
? ?
? ?
______________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?
<< 画面 4-17 >>
__________________ CHOOSE LINUX FILESYSTEM __________________
? There are two main filesystem types that are used for ?
? Linux. These are the xiafs filesystem, and the second ?
? extended filesystem (ext2). Ext2 seems to be the current ?
? standard. Xiafs hasn't really been changed in quite some ?
? time. Ext2 has one really nice feature that xiafs doesn't ?
? have: as an ext2 partition is unmounted, a clean bit is ?
? written to it. When the machine is rebooted, checking is ?
? skipped for any partitions that have the clean bit on them. ?
? Xiafs may be a better choice for machines with low memory, ?
? however, so it's still supported. What filesystem do you ?
? plan to use on your root partition (/dev/hdb3), ext2fs or ?
? xiafs? ?
? __________________________________________________________ ?
?? ext2 Linux Second Extended Filesystem ??
?? xiafs Linux Xiafs ??
? __________________________________________________________ ?
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
作者: sunweipeng 时间: 2009-7-30 09:29
选择 ext2 档案系统後, 接着又询问我们是否要真的执行建造动
作 (相当於DOS的格式化动作), 假如这是我们第一次安装, 很可能我
要就要选择 Format 或 Check, 但是如果确定以前已经做过, 这里也
可以选择 No。 至於 Format 与 Check的不同, Check 除了做 Format
动作外, 还额外检测硬碟是否有坏轨, 假如您硬碟有瑕疵的话, 记得
选用 Check。
<< 画面 4-18 >>
________________________ FORMAT PARTITION ________________________
? If this partition has not been formatted, you should format it. ?
? NOTE: This will erase all data on it. If you are trying to ?
? upgrade an existing Linux partition, you should use setup from ?
? your hard drive, not from the boot/root disk. (The versions of ?
? setup supplied on the hard drive and the boot/root disk differ) ?
? Would you like to format this partition? ?
? ________________________________________________________________??
?? Format Quick format with no bad block checking ??
?? Check Slow format that checks for bad blocks ??
?? No No, do not format this partition ??
? ________________________________________________________________??
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
______________________SELECT INODE DENSITY ______________________
? Ext2fs defaults to one inode per 4096 bytes of drive space. ?
? If you're going to have many small files on your drive, ?
? then you may need more inodes (one is used for each file ?
? entry). You can change the density to one inode per 2048 ?
? bytes, or even per 1024 bytes. Select '2048' or '1024', or ?
? just hit enter to accept the default of 4096 bytes. NOTE: ?
? If you are going to run from CD using a small (<60MB) ?
? partition, use 1024 to be safe. Each link uses an inode and ?
? it's easy to run out of space. ?
?____________________________________________________________??
?? 4096 1 inode per 4096 bytes. (default) ??
?? 2048 1 inode per 2048 bytes. ??
?? 1024 1 inode per 1024 bytes. ??
?____________________________________________________________??
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:29
画面 4-19A 的选择, 笔者建议, 若是用来作为 News spool 区域
(也就是 /var/spool/news) 的档案系统, 不妨选择 1024 这一栏, 这
结果会造成一个 Block (照内定, 一个Block等於1024 bytes) 等於一
个 Inode 除此以外的正常状况, 选择第一选项 4096, 这结果一个Inode
会等於 4096 bytes。 以上若读者无法明白什麽是 Bloack/Inode, 请
忽略无妨, 这些观念并不重要。
以上连续几个动作已经成功的指定某一个分割区作为系统的 /
(root) 档案系统, 假如您只有一个 Linux属性的分割区, 这时 / 档
案系统就是您唯一的档案系统。 不过, 假如您有一个以上, 您就可
以看到下面画面, 这画面告诉我们说, 本电脑硬碟下有不只一个 Linux
属性分割区, 而 /dev/hdb3 已经指定作为 / 档案系统, 这时是否要
把剩下的分割区也包含进来, 比方独立出 /usr 或 /usr/X11 档案系
统等等的?
这里我回答是。 再重复一次, 把 / 档案系统规划小一些, 也就
是把 /usr /var /home /tmp 独立出来对系统执行效率以及系
统安全都会有助益。 不过, 对 Linux 或 Unix经验仍薄弱的朋友, 我
强烈建议您就此停住, 先不要顾虑效率或安全, 先跑看看, 增加一些
经验, 之後, 再考虑重新设定一个最佳的系统。
<< 画面 4-20 >>
____________________________________________________________________
? You seem to have more than one partition tagged as Linux native. ?
? You may use these to distribute your Linux system across more ?
? than one partition. Currently, you have /dev/hdb3 mounted as ?
? your / partition. You might want to mount large directories such ?
? as /usr or /usr/X11 or seperate partitions. You should not try ?
? to mount /etc, /sbin, or /bin on their own partitions since they ?
? contain utilities needed to bring the system up and mount ?
? partitions. Would you like to use some of the other Linux ?
? partitions to mount some of your directories? ?
? ?
____________________________________________________________________?
? < Yes > < No > ?
____________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:30
以下重复进行刚刚的动作, 这里我回答 /dev/hdb1 分割区。 另
外一点要注意的是, 假如这时您临时决定不再增加任何分割区, 可以
键入 q , 之後按 <Enter> 键即可。
<< 画面 4-21 >>
______________________________________________________________________
? ?
? These are your Linux partitions: ?
? /dev/hdb1 1 1 100 50368+ 83 Linux native ?
? /dev/hdb3 536 536 736 101304 83 Linux native ?
? ?
? These partitions are already in use: ?
? /dev/hdb1 on /mnt type ext2 (rw) ?
? ?
? Please enter the partition you would like to use, or ?
? type [q] to quit adding new partitions: ?
? __________________________________________________________________ ?
??/dev/hdb1 ??
? __________________________________________________________________ ??
? ?
? ?
? ?
? ?
? ?
______________________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________________ ?
以下同样指定 ext2。
<< 画面 4-22 >>
__________________ CHOOSE LINUX FILESYSTEM __________________
? There are two main filesystem types that are used for ?
? Linux. These are the xiafs filesystem, and the second ?
? extended filesystem (ext2). Ext2 seems to be the current ?
? standard. Xiafs hasn't really been changed in quite some ?
? time. Ext2 has one really nice feature that xiafs doesn't ?
? have: as an ext2 partition is unmounted, a clean bit is ?
? written to it. When the machine is rebooted, checking is ?
? skipped for any partitions that have the clean bit on them. ?
? Xiafs may be a better choice for machines with low memory, ?
? however, so it's still supported. What filesystem do you ?
? plan to use on your root partition (/dev/hdb3), ext2fs or ?
? xiafs? ?
? __________________________________________________________ ?
?? ext2 Linux Second Extended Filesystem ??
?? xiafs Linux Xiafs ??
? __________________________________________________________ ?
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
<< 画面 4-24 >>
____________________ DOS AND OS/2 PARTITION SETUP ____________________ ?
? ?
? The following DOS FAT or OS/2 HPFS partitions were found: ?
? ?
? /dev/hda1 * 1 1 1000 127491+ 6 DOS 16-bit >=32M ?
? ?
? Would you like to make some of these partitions visible from Linux? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________?
? < Yes > < No > ?
________________________________________________________________________?
由於我回答 Yes, 以下就要进一步回答 /dev/hda1。
<< 画面 4-25 >>
__________________________ CHOOSE PARTITION ____________________________?
? These DOS or OS/2 partitions are available to mount: ?
? /dev/hda1 * 1 1 1000 127491+ 6 DOS 16-bit >=32M ?
? Please enter the partition you want to access from Linux, ?
? or type [q] to quit adding new partitions: ?
? ____________________________________________________________________ ?
??dev/hda1 ??
? ____________________________________________________________________ ??
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________ ?
? < OK > <Cancel> ?
________________________________________________________________________ ?
以下画面则是要选择 Mount Point, 这个就是说把 C: 磁碟挂在
系统的哪里, 注意, Linux/Unix 没有 C: 磁碟观念 (C: 是 DOS的观
念与用法), 我们可以设立比方说 /msdos 目录, 之後把 C: 所在的分
割区, 挂在这 /msdos 目录下, 这样就可以很方便存取 该 C: 内的
DOS档案。 以下, 我就指定 /msdos 为这个挂点 (Mount Point)。作者: sunweipeng 时间: 2009-7-30 09:30
<< 画面 4-25 >>
____________________ SELECT MOUNT POINT ______________________
? Now this new partition must be mounted somewhere in your ?
? directory tree. Please enter the directory under which ?
? you would like to put it. for instance, you might want to ?
? reply /dosc, /dosd, or something like that. NOTE: This ?
? partition won't actually be mounted until you reboot. ?
? ?
? Where would you like to mount /dev/hda1? ?
? __________________________________________________________ ??
??msdos ??
? __________________________________________________________ ??
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
以下画面按 <Enter>。
<< 画面 4-26 >>
__________________ CURRENT DOS/HPFS PARTITION STATUS __________________ ?
? ?
? DOS partition added to /etc/fstab: ?
? ?
? /dev/hda1 /msdos msdos defaults ?
? ?
________________________________________________________________________ ?
? < OK > ?
________________________________________________________________________ ?
下面画面问我们要不要进一步接着进行「指定安装来源」作业,
若回答 Yes, 则立刻接续到之後的操作, 若 No, 则回到最外层画面
。
<< 画面 4-27 >>
______________________ CONTINUE? ________________________
? Now that you've set up your target partitions, would ?
? you like to go on to the SOURCE section and select ?
? your installation media? ?
__________________________________________________________?
? < Yes > < No > ?
_________________________________________________作者: sunweipeng 时间: 2009-7-30 09:30
□ 指定安装来源 (Source)
接下来我们要指定用什麽方式安装, 以下画面就是询问用什麽方
法来安装, 其实也就是问存放媒体是什麽。 以下五种方法中, NFS
应该算是轻松愉快的安装方法, 假如读者可以上 Internet网路, 或
者您区域网路中已经有 NFS server, 且其内存放有 Slackware Linux
软体, 这就可以用 NFS安装。 以下笔者五种方法全部做介绍, 不过
读者们选择其中之一叁考即可, 其他跳过去无妨。
其实这五个安装方法都有其类似之处, 就是无论哪一种方法, 都
必须在安装之前或过程, 把安装来源 (软碟⒂驳CD-ROM 或 NFS
等等) 挂 (Mount) 在安装软体系统 (其实已经是一个阳春 Linux系
统) 之下的一个目录。 以硬碟来安装来说, 很多朋友的作法是先把
Linux系统软体存放在同一部电脑的硬碟内 DOS 系统分割区内, 这情
况的作法, 是把该 DOS 分割区挂上来, 并指定切确路径。 CD-ROM
安装法也很类似, 但我们必须先拿支援该品牌 CD-ROM 的bootdisk,
启动後把 CD-ROM drive挂上来成为系统的一部份, 并指定切确路径。
NFS 也是一样, 不过一些起码网路基本常识要具备, 程序上也类似,
只不过多了一道网路设定程序, 网路设定成功後, 把远端 NFS server
所 export 的目录挂上来。
以上所描述的操作动作, 并不需要透过命令执行, 而是在萤幕画
面上回答一些问题或者做一些选择即可。 细节的操作请看下面例子。
__________________ SOURCE MEDIA SELECTION ____________________
? ?
? Where do you plan to install Slackware Linux from? ?
? ?
? __________________________________________________________ ?
?? 1 Install from a hard drive partition ??
?? 2 Install from floppy disks ??
?? 3 Install via NFS ??
?? 4 Install from a pre-mounted directory ??
?? 5 Install from CD-ROM ??
? __________________________________________________________ ??
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
接下来步骤是选择磁碟机规格, 其中有四个选项, <在画面 4-29>
请选择其中之一。 作者: sunweipeng 时间: 2009-7-30 09:30
<< 画面 4-29 >>
______________________ SELECT FLOPPY DRIVE ______________________
? ?
? The base Slackware series (A) can be installed from 1.2M ?
? or 1.44M media. Most of the other disks will not fit on ?
? 1.2M media, but can be downloaded to your hard drive and ?
? installed from there later. ?
? ?
? Which drive do you want to install from? ?
? ____________________________________________________________ ??
?? /dev/fd0H1440 1.44M drive a: ??
?? /dev/fd1H1440 1.44M drive b: ??
?? /dev/fd0h1200 1.2M drive a: ??
?? /dev/fd1h1200 1.2M drive b: ??
? ____________________________________________________________ ??
? ?
________________________________________________________________ ?
? < OK > <Cancel> ?
________________________________________________________________
<< 画面 4-30 >>
__________________ SOURCE MEDIA SELECTION ____________________
? ?
? Where do you plan to install Slackware Linux from? ?
? ?
? __________________________________________________________ ??
?? 1 Install from a hard drive partition ??
?? 2 Install from floppy disks ??
?? 3 Install via NFS ??
?? 4 Install from a pre-mounted directory ??
?? 5 Install from CD-ROM ??
? __________________________________________________________ ??
______________________________________________________________ ?
? < OK > <Cancel> ?
______________________________________________________________ ?
以下讯息浏览一下, 之後按 <Enter>, 开始进行设定 NFS client。作者: sunweipeng 时间: 2009-7-30 09:31
<< 画面 4-31 >>
____________________ INSTALLATION THROUGH NFS ____________________?
? ?
? WARNING! Installing via NFS can be a real time-saver if you're ?
? good with TCP/IP, but is a tricky installation choice for the ?
? beginner. Some of the things you may have to do to get this ?
? option to work include: ?
? ?
? -- Setting up an /etc/networks file on the bootdisk ?
? -- Mandatory: getting the source directory exported from ?
? your NFS server ?
? -- Starting up 'portmap' ?
? ?
? Are you sure you want to try to install via NFS? ?
? ?
__________________________________________________________________?
? < Yes > < No > ?
__________________________________________________________________?
下面画面回答所安装这部机器的 IP 地址。
<< 画面 4-32 >>
______________________ ASSIGN IP ADDRESS ______________________?
? ?
? You will need to enter the IP address you wish to ?
? assign to this machine. Example: 111.112.113.114 ?
? ?
? What is your IP address? ?
? ___________________________________________________________ ?
??92.168.1.148 ??
? ___________________________________________________________ ?
? ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
下面回答 Netmask。
<< 画面 4-33 >>
______________________ ASSIGN NETMASK ________________________?
? ?
? Now we need to know your netmask. ?
? Typically this will be 255.255.255.0 ?
? but this can be different depending on ?
? your local setup. ?
? ?
? What is your netmask? ?
? ___________________________________________________________ ?
??55.255.255.0 ??
? ___________________________________________________________ ?
? ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:31
以下填入 Broadcast 地址。
<< 画面 4-34 >>
__________________ ASSIGN BROADCAST ADDRESS ___________________
? ?
? Typically your broadcast address will be the same as ?
? your IP address with 255 replacing the final value. ?
? Example: 111.112.113.255 ?
? ?
? What is your broadcast address? ?
? ___________________________________________________________ ?
??92.168.1.255 ??
? ___________________________________________________________ ?
? ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
下面则回答网路地址。
<< 画面 4-35 >>
__________________ ASSIGN NETWORK ADDRESS ____________________?
? ?
? Now we need your network address. ?
? ?
? Your network address will usually be the same as your IP ?
? address, with the last value replaced by 0. ?
? For example: 111.112.113.0 ?
? ?
? What is your network address? ?
? ___________________________________________________________ ?
??92.168.1.0 ??
? ___________________________________________________________ ?
? ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
____________________________?
? Do you have a gateway? ?
? ?
____________________________?
? < Yes > < No > ?
____________________________?
下面回答 NFS server 所在 IP 地址, 在台湾的读者, 若有
Internet 连线的话, 以下可以填入 140.113.235.252, 或者其他
您知道有提供此服务的机器的 IP 地址也行。
<< 画面 4-37 >>
__________________ ENTER IP ADDRESS OF NFS SERVER __________________?
? ?
? Good! We're all set on the local end, but now we need to know ?
? where to find the software packages to install. First, we need ?
? the IP address of the machine where the Slackware sources are ?
? stored. ?
? ?
? What is the IP address of your NFS server? ?
? ________________________________________________________________??
??92.168.1.150 ??
? ________________________________________________________________??
? ?
? ?
? ?
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:31
底下问说, 本机器之网路界面卡是外接式, 或者是一般内接式,
一般桌上型电脑用的都是内接式。
<< 画面 4-38 >>
____________________ ETHERNET DEVICE SELECTION _____________________
? ?
? Slackware can configure either an INTERNAL ethernet card, or an ?
? EXTERNAL D-Link adaptor. ?
? ?
? Which type of ethernet device do you have? ?
? ________________________________________________________________??
?? Internal Internal ethernet card ??
?? External External D-Link adaptor ??
? ________________________________________________________________??
? ?
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
下面回答 该 NFS server存放 Slackware Linux系列软体之路径。
<< 画面 4-39 >>
__________________ SELECT SOURCE DIRECTORY ___________________
? ?
? There must be a directory on the server with the Slackware ?
? sources for each disk in subdirectories beneath it. ?
? ?
? The installation script needs to know the name of the ?
? directory on your server that contains the disk ?
? subdirectories. For example, if your A3 disk is found at ?
? /slackware/a3, then you would respond: /slackware ?
? ?
? What is the Slackware source directory? ?
? ___________________________________________________________ ?
??root/slackware-2.0.2 ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:31
<< 画面 4-40 >>
We'll switch into text mode here so you can see if you have any errors.
We'll switch into text mode here so you can see if you have any errors.
Configuring ethernet card...
Mounting NFS...
mount: 192.168.1.150:/root/slackware-2.0.2 failed, reason given by server:
No such file or directory
Current mount table:
/dev/fd0 on / type minix (rw)
none on /proc type proc (rw)
/dev/hdb1 on /mnt type ext2 (rw)
Do you think you need to try this again ([y]es, [n]o)?
上面是最後一个问题, 这里是问说, 我们要不要再事一次, 通常
我们从萤幕上并没有看到错误讯息的话, 就可以回答 n 。 本例子中,
由於路径回答错误, 所以我必须回答 y, 之後, 从新来一次。
<< 画面 4-41 >>
__________________ SOURCE MEDIA SELECTION ____________________?
? ?
? Where do you plan to install Slackware Linux from? ?
? ?
? ___________________________________________________________ ?
?? 1 Install from a hard drive partition ??
?? 2 Install from floppy disks ??
?? 3 Install via NFS ??
?? 4 Install from a pre-mounted directory ??
?? 5 Install from CD-ROM ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
选择选项 1 硬碟安装後, 我们进一步要指定分割区所在。 下面
画面中, 由於我 Slackware Linux 软体放在第一个硬碟的第一个分割
区, 我回答 /dev/hda1。 假如您不清楚哪一个分割区, 可以光按
<Enter> 键, 这可以浏览您硬碟内所有的分割区。 作者: sunweipeng 时间: 2009-7-30 09:31
<< 画面 4-42 >>
____________________ INSTALLING FROM HARD DISK _____________________
? ?
? In order to install directly from the hard disk you must ?
? have a partition with a directory containing the Slackware ?
? distribution such that each disk other than the boot disk ?
? is contained in a subdirectory. For example, if the ?
? distribution is in /stuff/slack, then you have to have ?
? directories named /stuff/slack/a1, /stuff/slack/a2, and so ?
? on each containing the files that would be on that disk. ?
? You may install from DOS, HPFS, or Linux partitions. ?
? Please enter the partition where the Slackware sources can ?
? be found, or [enter] to see a partition list: ?
? ?
? ________________________________________________________________??
??dev/hda1 ??
? ________________________________________________________________??
? ?
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
<< 画面 4-43 >>
__________________ SELECT SOURCE DIRECTORY ___________________
? ?
? Now we need to know what directory on this partition ?
? the Slackware sources can be found in. (The directory ?
? in which the subdirectories for each disk is found) ?
? NOTE: You must give the directory name relative to the ?
? top of the partition. So, for example, if you're going ?
? to mount this partition under /usr, don't include the ?
? '/usr'at the beginning of the pathname. ?
? ?
? What directory are the Slackware sources in? ?
? ?
? ___________________________________________________________ ?
??slakware ??
? ___________________________________________________________ ?
? ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
接下来还要指定档案属性, 由於是 DOS C: 磁碟, 我选 1 。 作者: sunweipeng 时间: 2009-7-30 09:32
<< 画面 4-44 >>
__________________ SELECT FILESYSTEM TYPE ____________________?
? What type of filesystem does your Slackware source ?
? partition contain? ?
? ___________________________________________________________ ?
?? 1 FAT (MS-DOS, DR-DOS, OS/2) ??
?? 2 Linux Second Extended Filesystem ??
?? 3 Linux Xiafs ??
?? 4 Linux MINIX ??
?? 5 OS/2 HPFS ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
__________________ SOURCE MEDIA SELECTION ____________________?
? ?
? Where do you plan to install Slackware Linux from? ?
? ?
? ___________________________________________________________ ?
?? 1 Install from a hard drive partition ??
?? 2 Install from floppy disks ??
?? 3 Install via NFS ??
?? 4 Install from a pre-mounted directory ??
?? 5 Install from CD-ROM ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
以下选择您正确 CD-ROM drive。 作者: sunweipeng 时间: 2009-7-30 09:32
<< 画面 4-46 >>
______________________ INSTALLING FROM CD-ROM ______________________?
? ?
? In order to install Slackware Linux from a CD-ROM, it must ?
? contain the distribution arranged beneath a source directory ?
? in the same way as if you were to install it from a hard ?
? drive or NFS. The source directory must contain subdirectories ?
? for each floppy disk. Your CD-ROM should be compatible with ?
? this format if it contains a mirror of the Slackware FTP site. ?
? ?
? What type of CD-ROM drive do you have? ?
? ?
? ________________________________________________________________??
?? 1 SCSI [ /dev/scd0 or /dev/scd1 ] ??
?? 2 Sony CDU31A [ /dev/sonycd ] ??
?? 3 Sony 535 [ /dev/cdu535 ] ??
?? 4 Mitsumi [ /dev/mcd ] ??
?? 5 Sound Blaster Pro (Panasonic) [ /dev/sbpcd ] ??
?? 6 NEC 260 IDE CD-ROM [ /dev/nec260 ] ??
? ________________________________________________________________ ?
? < OK > <Cancel> ?
____________________________________________________________________?
选择该片 CD 片存放 Slackware Linux的实际路径。 若以下都
没有, 则选择 Custom。 对於交通大学出版的『云观 CD-ROM III,
Linux Plug & Play CD-ROM』 的使用者来说, 以下要选择第三选项
<< 画面 4-47 >>
______________________ SELECT SOURCE DIRECTORY ________________________?
? Now we need to know which directory on the CD contains the Slackware ?
? sources. This location may vary depending on the cd you have. There ?
? are default selections for the Slackware Professional CD (including ?
? an option to run mostly from the CD), InfoMagic CD, TransAmeritech ?
? CD, and the Linux Quarterly CD-ROM. There may be other directories ?
? containing other versions - enter a custom directory name if you ?
? like. Which option would you like? ?
? ____________________________________________________________________??
?? slakware Slackware Pro: install to HD ??
?? slackpro Slackware Pro: run from CD ??
?? slackware/slakware TransAmeritech CD ??
?? packages/slackware Linux Quarterly CD-ROM ??
?? distributions/slackware InfoMagic CD-ROM ??
?? Custom Enter your own directory name ??
? ____________________________________________________________________??
________________________________________________________________________?
? < OK > <Cancel> ?
________________________________________________________________________?
____________________ SELECT SOURCE DIRECTORY ____________________?
? Now we need to know which directory on the CD contains the ?
? Slackware sources. This location may vary depending on the CD ?
? you have. You may omit the leading '/' if you like. What ?
? directory are the Slackware sources in? ?
? _____________________________________________________________ ?
??/linux/slakware ??
? _____________________________________________________________ ?
_________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________
<< 画面 4-49 >>
______________________ CONTINUE? ________________________?
? Would you like to go on to the DISK SETS section and ?
? select which catagories of software to install? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:32
以下就是第一个选择画面, 有关於选择方法, 先移动上下方向键,
之後, 使用空白键把想安装的部份标示起来, 底下画面 A 选项其左边
已经有打叉标示, 这是内键情况, 表示 A 系列一定要安装。 再之後
的画面 (画面 4-51), 才是笔者所选择的。 读者朋友可以比对一下
<画面 4-50> 与 <画面 4-51> 的差异。
以下选项就是 Slackware Linux 系列编号软体, 其中第一选向
是用来安装非标准 (Customer) Slackware Linux软体, 这里我们没
有介绍。 假如光选择 A 系列的话, 则可以架设出一套最基本 Linux
系统。 至於想要安装能够直接由 CD-ROM 执行者, 这是比较特殊的
情况, 以下除了 Q 系列以外, 什麽都不要装 (对云观 CD-ROM III
的用户来说, 请叁考您手上的使用手册, 或者第五章「交大『云观
CD-ROM III』直接由 CD-ROM执行之安装法」)。
以下的选择方法, 用上下方向键移动反白, 用按空白键来做选
择切换。
<< 画面 4-50 >>
__________________________ SERIES SELECTION ____________________________?
? ?
? Use the spacebar to select the disk sets you wish to install. ?
? You can use the UP/DOWN arrows to see all the possible choices. ?
? Press the ENTER key when you are finished. If you need to ?
? install a disk set that is not listed here, check the box for ?
? custom additional disk sets. ?
? ?
? _____________________________________________________________________ ?
?? [ ] CUS Also prompt for CUSTOM disk sets ??
?? [X] A Base Linux system ??
?? [ ] AP Various Applications that do not need X ??
?? [ ] D Program Development (C, C++, Lisp, Perl, etc.) ??
?? [ ] E GNU Emacs ??
?? [ ] F FAQ lists, HOWTO documentation ??
?? [ ] I Info files readable with info, JED, or Emacs ??
? ________(+)_________________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
底下画面我统统标示起来, 意思是要安装一个最完整的 Linux作
业系统。
<< 画面 4-51 >>
__________________________?SERIES SELECTION ____________________________?
? ?
? Use the spacebar to select the disk sets you wish to install. ?
? You can use the UP/DOWN arrows to see all the possible choices. ?
? Press the ENTER key when you are finished. If you need to ?
? install a disk set that is not listed here, check the box for ?
? custom additional disk sets. ?
? ?
? _____________________________________________________________________ ?
?? [ ] CUS Also prompt for CUSTOM disk sets ??
?? [X] A Base Linux system ??
?? [X] AP Various Applications that do not need X ??
?? [X] D Program Development (C, C++, Lisp, Perl, etc.) ??
?? [X] E GNU Emacs ??
?? [X] F FAQ lists, HOWTO documentation ??
?? [X] I Info files readable with info, JED, or Emacs ??
? ________(+)_________________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
下面画面问说, 我们要不要接着立即进行安装, 到这里, 几乎万
事已经具备。作者: sunweipeng 时间: 2009-7-30 09:32
<< 画面 4-52 >>
______________________ CONTINUE? ________________________?
? Now that you've decided what you want to install you ?
? may begin the installation process by moving to the ?
? INSTALL section. Please note that if you have not ?
? completed all the prerequisites you will be informed ?
? of this and returned to the main menu. Would you like ?
? to go on to the INSTALL section? ?
? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?
<< 画面 4-53 >>
______________________ SELECT PROMPTING MODE _______________________
? ?
? Now you must select which type of prompting you would like to ?
? use while installing your software packages. If you're not ?
? sure which mode to use, read the help file. ?
? ?
? Which type of prompting would you like to use? ?
? ________________________________________________________________??
?? Normal Use the default tagfiles ??
?? Custom Use custom tagfiles in the package directories ??
?? Path Use tagfiles in the subdirectories of a custom path ??
?? None Use no tagfiles - install everything ??
?? HELP Read the prompt mode help file ??
? ________________________________________________________________??
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:33
<< 画面 4-54 >>
________________________________________________?
? PROMPT mode selected. Using prompting ?
? defaults found in tagfiles along the way. ?
________________________________________________?
<< 画面 4-55 >>
______ Auto-installing package ==>base<== Priority: [required] ________?
? ?
? Basic Linux filesystem package. ?
? ?
? Sets up the basic directory structure and adds a few important ?
? binaries such as GNU mtools 2.0.7 and fdisk. ?
? ?
? ?
? ?
? ?
? ?
? ?
? ?
? Size: Compressed: 128K, uncompressed: 410K. ?
_________________________________________________________________________
以下画面要选择一个系统核心, 假如我们的机器刚好是 IDE 硬碟
界面, 刚好也只需要 UMSDOS 及 PPP 两项支援, 这里就按 <Enter>
选择安装, 假如不是, 或者是 IDE 但需要更多支援, 您需要则把反白
移到 <Cancel>, 就可以跳过不安装。作者: sunweipeng 时间: 2009-7-30 09:33
<< 画面 4-56 >>
________ Package Name: ==>idekern<== Priority: [recommended] __________?
? ?
? Linux kernel version 1.1.54, without SCSI support. ?
? ?
? A Linux kernel for computers that do not need SCSI support. You MUST ?
? install a kernel image in order for your system to boot. This kernel ?
? also contains UMSDOS and PPP. See the file 'config.in' for an exact ?
? list of included drivers. ?
? ?
? ***IMPORTANT***! If you have special hardware, such as a non-SCSI ?
? CD-ROM drive, you'll need to install a kernel from the Q series that ?
? supports it, or compile the support into your own custom kernel. ?
? ?
? Size: Compressed: 398K, uncompressed: 480K. ?
? ?
? Install package idekern? ?
? _____________________________________________________________________ ?
?? Yes Install package idekern ??
? ____________(+)_____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
假如您使用 SCSI 界面硬碟, 您要选用下面画面, 若不是, 则跳
过去不选用。 注意, 整个 Q 系列有其他更多选择。 作者: sunweipeng 时间: 2009-7-30 09:33
<< 画面 4-57A >>
________ Package Name: ==>scsikern<== Priority: [recommended] _________
? ?
? Linux kernel version 1.1.54, with SCSI + IDE support. ?
? ?
? This is a Linux kernel with full support for SCSI devices such as hard ?
? drives, tape drives, and CD-ROM drives. This kernel also contains ?
? UMSDOS and PPP. See the file 'config.in' for an exact list of ?
? included drivers. ?
? ?
? ***IMPORTANT***! If you have special hardware, such as a non-SCSI ?
? CD-ROM drive, you'll need to install a kernel from the Q series that ?
? supports it, or compile the support into your own custom kernel. ?
? ?
? Size: Compressed: 487K, uncompressed: 580K. ?
? ?
? Install package scsikern? ?
? _____________________________________________________________________ ?
?? Yes Install package scsikern ??
? ____________(+)_____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
以下我们要忽略了一系列的画面, 之後, 我们轮到了 Q 系列的安
装。
矬阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐?
? ?
? Installing disk series ==>q<== ?
? ?
敛阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐阐?
以下约连续十一个画面,
<< 画面 4-57B >>
_________________________ FILE MISSING FROM YOUR DISK ___________________
? ?
? WARNING!!! ?
? ?
? While looking through your index file (diskq1), I ?
? noticed that you might be missing a package (alpha.tgz) ?
? that is supposed to be on this disk (disk q1). You may go ?
? on with the installation if you wish, but if this is a ?
? crucial file I'm making no promises that your machine will ?
? boot. ?
? ?
? ?
_______________________________________________________________________
? < OK > ?
_______________________________________________________________________
看到以上警告讯息, 忽略掉没有关系。作者: sunweipeng 时间: 2009-7-30 09:33
<< 画面 4-57C >>
___________ Package Name: ==>idekerno<== Priority: [optional] ____________
? ?
? Linux kernel version 1.1.18, without SCSI support. ?
? ?
? A Linux kernel for computers that do not need SCSI support. If you ?
? don't have SCSI, the advantage of using the idekern kernel is that ?
? your machine will boot faster with a leaner kernel. See the file ?
? 'idekern.log' for an exact list of included drivers. A short list: ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 328 K, uncompressed: 390 K. ?
? ?
? Install package idekerno? ?
?_______________________________________________________________________ ?
?? Yes Install package idekerno ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________ ?
? < OK > <Cancel> ?
__________________________________________________________________________?
<< 画面 4-57D >>
__________ Package Name: ==>scsikrno<== Priority: [optional] ___________
? ?
? Linux kernel version 1.1.18, with SCSI + IDE support. ?
? ?
? This is a Linux kernel with full support for SCSI devices such as hard ?
? drives, tape drives, and CD-ROM drives. See the file 'scsikern.log' ?
? for an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? ?
? Size: Compressed: 404 K, uncompressed: 480 K. ?
? ?
? Install package scsikrno? ?
? _____________________________________________________________________ ?
?? Yes Install package scsikrno ??
?_____________ (+) ____________________________________________________??
__________________________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:34
<< 画面 4-57E >>
____________ Package Name: ==>cdu31ao<== Priority: [optional] ____________
? ?
? Linux kernel version 1.1.18, with SCSI+IDE+Sony CDU31A CD support. ?
? ?
? This is a Linux kernel with support for the Sony CDU31A CD-ROM ?
? drives, as well as full support for SCSI devices such as hard drives, ?
? tape drives, and SCSI CD-ROM drives. See the file 'cdu31a.log' for ?
? an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 410 K, uncompressed: 480 K. ?
? ?
? Install package cdu31ao? ?
?_______________________________________________________________________ ?
?? Yes Install package cdu31ao ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________?
? < OK > <Cancel> ?
_________________________________________________________________________?
<< 画面 4-57F >>
____________ Package Name: ==>sbpcdo<== Priority: [optional] _____________
? ?
? Linux kernel version 1.1.18, with SCSI+IDE+SoundBlaster Pro CD ?
? (also Panasonic/Lasermate). ?
? ?
? This is a Linux kernel with support for the whole family of IDE-style ?
? Kotobuki/Matsushita/Panasonic CR-5xx drives for SoundBlaster ('Pro' or ?
? '16 ASP' or compatible) cards and for 'no-sound' interfaces like ?
? Lasermate and the Panasonic CI-101P. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? Size: Compressed: 416 K, uncompressed: 490 K. ?
? ?
? Install package sbpcdo? ?
?_______________________________________________________________________ ?
?? Yes Install package sbpcdo ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________?
? < OK > <Cancel> ?
_________________________________________________________________________?
<< 画面 4-57G >>
___________ Package Name: ==>sony535o<== Priority: [optional] ____________
? ?
? Linux kernel version 1.1.18, with SCSI+IDE+Sony 535/531 CD support. ?
? ?
? This is a Linux kernel with support for the Sony CDU 535/531 CD-ROM ?
? drives, as well as full support for SCSI devices such as hard drives, ?
? tape drives, and SCSI CD-ROM drives. See the file 'sony535.log' for ?
? an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 409 K, uncompressed: 480 K. ?
? ?
? Install package sony535o? ?
?_______________________________________________________________________ ?
?? Yes Install package sony535o ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________?
? < OK > <Cancel> ?
_________________________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:34
<< 画面 4-57H >>
___________ Package Name: ==>cdu31a<== Priority: [optional] _____________
? ?
? Linux kernel version 1.1.59, with SCSI+IDE+Sony CDU31/33A CD support. ?
? ?
? This is a Linux kernel with support for the Sony CDU31/33A CD-ROM ?
? drives, as well as full support for SCSI devices such as hard drives, ?
? tape drives, and SCSI CD-ROM drives. See the file 'cdu31a.cfg' for ?
? an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, Ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 487 K, uncompressed: 580 K. ?
? ?
? Install package cdu31a? ?
?_______________________________________________________________________ ?
?? Yes Install package cdu31a ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
<< 画面 4-57I >>
____________ Package Name: ==>cdu535<== Priority: [optional] _____________
? ?
? Linux kernel version 1.1.59, with SCSI+IDE+Sony CDU531/535 CD support. ?
? ?
? This is a Linux kernel with support for the Sony CDU531/535 CD-ROM ?
? drives, as well as full support for SCSI devices such as hard drives, ?
? tape drives, and SCSI CD-ROM drives. See the file 'cdu535.cfg' for ?
? an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, Ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 486 K, uncompressed: 580 K. ?
? ?
? Install package cdu535? ?
?_______________________________________________________________________ ?
?? Yes Install package cdu535 ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
__________________________________________________________________________
<< 画面 4-57J >>
____________ Package Name: ==>mitsumi<== Priority: [optional] ___________
? ?
? Linux kernel version 1.1.59, with SCSI+IDE+Mitsumi CD support. ?
? ?
? This is a Linux kernel with support for Mitsumi CD-ROM drives, as ?
? well as full support for SCSI devices such as hard drives, tape ?
? drives, and SCSI CD-ROM drives. See the file 'mitsumi.cfg' for an ?
? exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, Ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 487 K, uncompressed: 580 K. ?
? ?
? Install package mitsumi? ?
?_______________________________________________________________________ ?
?? Yes Install package mitsumi ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
<< 画面 4-57K >>
____________ Package Name: ==>nec260<== Priority: [optional] ____________
? ?
? Linux kernel version 1.1.59, with SCSI+IDE+NEC260 IDE CD support. ?
? ?
? This is a Linux kernel with support for the NEC 260 CD-ROM as the ?
? second device on the IDE controller. It also supports all the SCSI ?
? devices supported by the standard kernel. ?
? ?
? ?
? ?
? ?
? ?
? ?
? Size: Compressed: 484 K, uncompressed: 570 K. ?
? ?
? Install package nec260? ?
?______________________________________________________________________ ?
?? Yes Install package nec260 ??
?_____________ (+) ____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:34
<< 画面 4-57L >>
_____________ Package Name: ==>sbpcd<== Priority: [optional] _____________
? ?
? Linux kernel version 1.1.59, with SCSI+IDE+Soundblaster CD support. ?
? ?
? This is a Linux kernel with support for the whole family of ?
? Matsushita/Panasonic CD-ROM drives, as well as full support for SCSI ?
? devices such as hard drives, tape drives, and SCSI CD-ROM drives. See ?
? the file 'sbpcd.cfg' for an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, Ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? Size: Compressed: 495 K, uncompressed: 590 K. ?
? ?
? Install package sbpcd? ?
?_______________________________________________________________________ ?
?? Yes Install package sbpcd ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
<< 画面 4-57M >>
______________ Package Name: ==>xt<== Priority: [optional] _______________
? ?
? Linux kernel version 1.1.59, with IDE+XT (MFM/RLL) drive support. ?
? ?
? This is a Linux kernel with support for XT style (MFM/RLL) hard ?
? drives. See 'xt.cfg' for an exact list of included drivers. ?
? ?
? This kernel also has support for PPP, UMSDOS, CSLIP, Ethernet, ?
? Ftape, and the PS/2 style mouse (but not other busmouse types). ?
? ?
? ?
? ?
? ?
? Size: Compressed: 384 K, uncompressed: 460 K. ?
? ?
? Install package xt? ?
?_______________________________________________________________________ ?
?? Yes Install package xt ??
?_____________ (+) _____________________________________________________ ?
_________________________________________________________________________
? < OK > <Cancel> ?
_________________________________________________________________________
<< 画面 4-58 >>
________________ CONFIGURE YOUR SYSTEM? _________________
? Now it's time to configure your Linux system. If this ?
? is a new system, you must configure it now or it will ?
? not boot correctly. Otherwise, you can back out to the ?
? main menu if you're sure you want to skip this step. ?
? If you've installed a new kernel image, it's important ?
? to reconfigure your system so that you can install ?
? LILO (the Linux loader) or create a bootdisk using the ?
? new kernel. Do you want to move on to the CONFIGURE ?
? option? ?
? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?
制作一张系统启动磁片
<< 画面 4-59 >>
____________________ MAKE BOOT DISK? _____________________
? It is HIGHLY recommended that you make a standard boot ?
? disk for your Linux system at this time. Such a disk ?
? can be very handy if LILO of a kernel is ever ?
? improperly installed. Since the boot disk will contain ?
? a kernel that is independent of LILO and the kernel on ?
? your hard drive, you'll still be able to use it to ?
? boot your system no matter what you do to LILO or your ?
? hard drive kernel. Would you like to make a standard ?
? boot disk? ?
? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:34
画面 4-49 要我们制作一张系统开机磁片, 这样子, 即使稍後安装
LILO时 (不论安装在 MBR root partition的 superblock 或者软碟)
不慎失败了, 这张磁片也可以正常开机。 换句话说, 这张系统开机磁
片完全与 LILO无关, 这张磁片包含有系统的 Kernel, 只要在开机时
把这磁片插入第一个磁碟, 则不论原先硬碟设定由 DOS或任何的作业
系统开机, 这磁片也可以开机进入硬碟 Linux系统, 这方式就是最原
始的开机选择 (传统用软碟机来达成多重开机选择, 是最安全的), 这方式完全
无须依赖任何的开机选择程式。 作者强烈建议您制作这样一张磁片,
您平常可以用这张来开机, 或者, 把这张开机片当作辅助开机片, 平
常摆在安全的地方, 不用它, 但在万一的时刻, 比方说原本的硬碟开
机与软碟开机都毁了, 这时, 这一张磁片就可以派上用场。
<< 画面 4-60 >>
____________________ BOOT DISK CREATION ____________________?
? ?
? Now put a formatted floppy in your boot drive. ?
? This will be made into your Linux boot disk. Use this to ?
? boot Linux until LILO has been configured to boot from ?
? the hard drive. ?
? ?
? Any data on the target disk will be destroyed. ?
? ?
? YES creates the disk, NO aborts. ?
? ?
____________________________________________________________?
? < Yes > < No > ?
____________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:35
<< 画面 4-61 >>
________________ CREATING DISK _________________
? Creating boot disk from 'vmlinuz'... ?
? ?
? ?
________________________________________________?
<< 画面 4-62 >>
________________________ MODEM CONFIGURATION _________________________
? ?
? This part of the configuration process will create a link in /dev ?
? from your callout device (cua0, cua1, cua2, cua3) to /dev/modem. ?
? You can change this link later if you put your modem on a different ?
? port. ?
? ?
? Would you like to set up your modem? ?
? 2 ?
_______________________________________________________________________
? < Yes > < No > ?
_______________________________________________________________________
<< 画面 4-63 >>
________________ SELECT CALLOUT DEVICE __________________?
? Please select the callout device which you would like ?
? to use for your modem: ?
? ______________________________________________________??
?? cua0 com1: under DOS ??
?? cua1 com2: under DOS ??
?? cua2 com3: under DOS ??
?? cua3 com4: under DOS ??
? ______________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?
______________________ MOUSE CONFIGURATION ________________________?
? ?
? This part of the configuration process will create a link in /dev ?
? from your mouse device to /dev/mouse. You can change this link ?
? later if the setting chosen does not work, or if you switch to a ?
? different type of mouse. ?
? ?
? Would you like to set up your mouse? ?
? ?
____________________________________________________________________?
? < Yes > < No > ?
____________________________________________________________________?
__________________ SELECT MOUSE TYPE ____________________?
? These mouse types are supported: ?
? ______________________________________________________??
?? 1 Microsoft compatible serial mouse ??
?? 2 C&T 82C710 or PS/2 style mouse (Auxiliary port) ??
?? 3 Logitech Bus Mouse ??
?? 4 ATI XL Bus Mouse ??
?? 5 Microsoft Bus Mouse ??
?? 6 Mouse Systems serial mouse ??
? ______________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?
对串列滑鼠来说, 我们还要具体指定滑鼠所接的通讯埠所在, 如下图。
<< 画面 4-66 >>
__________________ SELECT SERIAL PORT ___________________
? Your mouse requires a serial port. Which one would you ?
? like to use? ?
? ______________________________________________________??
?? ttyS0 com1: under DOS ??
?? ttyS1 com2: under DOS ??
?? ttyS2 com3: under DOS ??
?? ttyS3 com4: under DOS ??
? ______________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:35
设定唯独光碟机
下面问有没有唯独式光碟机?
<< 画面 4-67 >>
______ CONFIGURE CD-ROM? _______
? ?
? Do you have a CD-ROM? ?
? ?
_________________________________
? < Yes > < No > ?
_________________________________
____________ Configuring CD-ROM link (/dev/cdrom) _____________
? ?
? What type of CD-ROM drive do you have? ?
? ?
? ____________________________________________________________??
?? 1 SCSI [ /dev/sr0, /dev/sr1, /dev/scd0, or /dev/scd1 ] ??
?? 2 Sony CDU31A [ /dev/cdu31a ] ??
?? 3 Sony 535 [ /dev/sonycd ] ??
?? 4 Mitsumi [ /dev/mcd ] ??
?? 5 Sound Blaster Pro (Panasonic) [ /dev/sbpcd ] ??
? ____________________________________________________________??
________________________________________________________________?
? < OK > <Cancel> ?
________________________________________________________________?
设定数据机速度
以下设定数据机速度, 一般 14.4K v.32bis/v.42bis 数据机不妨
指定最高速的 38400 (Linux可以用 setserial 这支工具程式把 DTE
通讯数度调为 57600 或甚至 115200 bps)。
<< 画面 4-69 >>作者: sunweipeng 时间: 2009-7-30 09:35
__________________ SET YOUR MODEM SPEED __________________?
? Please select a modem speed. You may use setserial ?
? later to make 38400 stand for a higher baud rate if ?
? these speeds aren't fast enough. ?
? ______________________________________________________??
?? 38400 ??
?? 19200 ??
?? 9600 ??
?? 4800 ??
?? 2400 ??
?? 1200 ??
?? 300 Ouch! ??
? ______________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?
设定 LILO
以下进行到最重要的, 设定 LILO 开机选择程式。 LILO 是一个
相当优秀的系统工具, 读这若漏装了这软体, 将非常可惜。 有了 LILO,
您不需要任何其他开机选择程式。
假如我们电脑内只有 Linux 系统, 没有其他作业系统, 这时只需
执行以下 Begin 及 Linux 两个程序, 假如说硬碟内有 DOS, 而我们
也想开机时可以选择DOS或 Linux, 这样子也把以下 DOS选项也一并执
行, 当确定设定无误後, 执行 Install程序。 以下我再分别简单说明
各步骤之作用:
Begin: 设定 LILO 安装模式, 比方安装在硬碟 MBR Superblock
或者软碟, 要不要 LILO 稍作延迟等等细节。
Linux: 设定把 Linux包含进开机选择。
DOS : 设定把 DOS 包含进开机选择。
Install: 实际安装动作
以下画面中, 我们就把反白移到 Begin 选项上。作者: sunweipeng 时间: 2009-7-30 09:36
<< 画面 4-70 >>
__________________________ LILO INSTALLATION __________________________?
? LILO (the Linux Loader) allows you to boot Linux from your hard ?
? drive. To install, you make a new LILO configuration file by ?
? creating a new header and then adding at least one bootable ?
? partition to the file. Once you've done this, you can select the ?
? install option. Alternately, if you already have an /etc/lilo.conf, ?
? you may reinstall using that. If you make a mistake, you can always ?
? start over by choosing 'Begin'. Which option would you like? ?
? ___________________________________________________________________ ?
?? Begin Start LILO configuration with a new LILO header ??
?? Linux Add a Linux partition to the LILO config file ??
?? OS/2 Add an OS/2 partition to the LILO config file ??
?? DOS Add a DOS partition to the LILO config file ??
?? Install Install LILO ??
?? Recycle Reinstall LILO using the existing lilo.conf ??
?? Skip Skip LILO installation and exit this menu ??
?? View View your current /etc/lilo.conf ??
?? Help Read the Linux Loader HELP file ??
? ___________________________________________________________________ ?
_______________________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________________
<< 画面 4-71 >>
______________________?OPTIONAL append= LINE ________________________?
? Some systems might require extra parameters to be passed to the ?
? kernel in order to boot. An example would be the hd=cyl,hds,secs ?
? needed with some SCSI systems and some machines with IBM ?
? motherboards. If you needed to pass parameters to the kernel when ?
? you booted the Slackware bootkernel disk, you'll probably want to ?
? enter the same ones here. Most systems won't require any extra ?
? parameters. If you don't need any, just hit ENTER to continue. ?
? __________________________________________________________________??
?? ??
? __________________________________________________________________??
______________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:36
底下我们就来选择开机模式。 以下有三个选项, 我分别解释如下:
MBR: MBR是位在第一颗硬碟⒌谝sylinder内的第一个sector,
电脑一启动电源後, 会先读取这区域, 来决定开机。
Root: 这是所谓 superblock, 就是把 LILO 装在 Linux 所在
的分割区。
Floppy: 指定把LILO安装在软碟上, 这样可以软碟开机。
________________ SELECT LILO TARGET LOCATION _________________
? LILO can be installed to a variety of places: the master ?
? boot record of your first hard drive, the superblock of ?
? your root Linux partition (which could then be made the ?
? bootable partition with fdisk), or a formatted floppy disk. ?
? If you're using a boot system such as OS/2's Boot Manager, ?
? you should use the Root selection. Please pick a target ?
? location: ?
? ___________________________________________________________ ?
?? MBR Use the Master Boot Record ??
?? Root Use superblock of the root Linux partition ??
?? Floppy Use a formatted floppy disk in the boot drive ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
以下询问要不要开机时, 让 LILO停顿一下, 若选择 None, 则开机
时, 除非按住 <Shift> 或 <Alt> 键, 这样会迫使 LILO停下来, 否则
LILO 不会停下来。
照笔者的习惯, 我习惯设定停顿五秒钟, 在这五秒钟内, 只要我碰
一下 <Caps Lock>键, 就会出现 LILO: 提示符号, 我再进一步按一下
<Tab> 键, 就会出现所有 OS 的选单。作者: sunweipeng 时间: 2009-7-30 09:36
<< 画面 4-73 >>
________________________ CHOOSE LILO DELAY __________________________?
? How long would you like LILO to wait for you to hit left-shift to ?
? get a prompt after rebooting? If you let LILO time out, it will ?
? boot the first OS in the configuration file by default. ?
? __________________________________________________________________??
?? None Don't wait at all - boot straight into the first OS ??
?? 5 5 seconds ??
?? 30 30 seconds ??
?? Forever Present a prompt and wait until a choice is made ??
? __________________________________________________________________??
______________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?
以上已经指定好 LILO 的运作方式了, 接下来我们就要把我们硬
碟里现的 OS, 全部加入 LILO 的开机选单中。 底下先把反白移道第
二行。
<< 画面 4-74 >>
__________________________ LILO INSTALLATION __________________________?
? LILO (the Linux Loader) allows you to boot Linux from your hard ?
? drive. To install, you make a new LILO configuration file by ?
? creating a new header and then adding at least one bootable ?
? partition to the file. Once you've done this, you can select the ?
? install option. Alternately, if you already have an /etc/lilo.conf, ?
? you may reinstall using that. If you make a mistake, you can always ?
? start over by choosing 'Begin'. Which option would you like? ?
? ___________________________________________________________________ ?
?? Begin Start LILO configuration with a new LILO header ??
?? Linux Add a Linux partition to the LILO config file ??
?? OS/2 Add an OS/2 partition to the LILO config file ??
?? DOS Add a DOS partition to the LILO config file ??
?? Install Install LILO ??
?? Recycle Reinstall LILO using the existing lilo.conf ??
?? Skip Skip LILO installation and exit this menu ??
?? View View your current /etc/lilo.conf ??
?? Help Read the Linux Loader HELP file ??
? ___________________________________________________________________ ?
_______________________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________________
________________________ SELECT LINUX PARTITION ________________________?
? These are your Linux partitions: ?
? ?
? Device Boot Begin Start End Blocks Id System ?
? /dev/hdb1 1 1 100 50368+ 83 Linux native ?
? /dev/hdb3 161 161 300 70560 83 Linux native ?
? ?
? Which one would you like LILO to boot? ?
? ____________________________________________________________________??
??dev/hdb3 ??
? ____________________________________________________________________??
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________?
? < OK > <Cancel> ?
________________________________________________________________________?
以下填入一个代号, 这样在开机时 LILO 提示符号下, 键入该代
号, 就可以启动进入这代号所代表的作业系统。
<< 画面 4-76 >>
________________ SELECT PARTITION NAME __________________?
? Now you must select a short, unique name for this ?
? partition. You'll use this name if you specify a ?
? partition to boot at the LILO prompt. 'Linux' might ?
? not be a bad choice. THIS MUST BE A SINGLE WORD. ?
? ______________________________________________________??
? ?linux1 ??
? _____________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?
把 Linux 分割区加入开机选单後, 以下我们要回到 LILO 的主
服务画面。 底下我想把我 /dev/hda1 的 DOS 分割区也加入选单, 以
下选择 DOS。
<< 画面 4-77 >>
__________________________ LILO INSTALLATION __________________________?
? LILO (the Linux Loader) allows you to boot Linux from your hard ?
? drive. To install, you make a new LILO configuration file by ?
? creating a new header and then adding at least one bootable ?
? partition to the file. Once you've done this, you can select the ?
? install option. Alternately, if you already have an /etc/lilo.conf, ?
? you may reinstall using that. If you make a mistake, you can always ?
? start over by choosing 'Begin'. Which option would you like? ?
? ___________________________________________________________________ ?
?? Begin Start LILO configuration with a new LILO header ??
?? Linux Add a Linux partition to the LILO config file ??
?? OS/2 Add an OS/2 partition to the LILO config file ??
?? DOS Add a DOS partition to the LILO config file ??
?? Install Install LILO ??
?? Recycle Reinstall LILO using the existing lilo.conf ??
?? Skip Skip LILO installation and exit this menu ??
?? View View your current /etc/lilo.conf ??
?? Help Read the Linux Loader HELP file ??
? ___________________________________________________________________ ?
_______________________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:36
以下安装程式侦测到 /dev/hda1 有 DOS分割区, 我们就回答该分
割区作为启动之用。
<< 画面 4-78 >>
________________________ SELECT DOS PARTITION _________________________
? These are possibly DOS partitions. They will be treated ?
? as such if you install them using this menu. ?
? ?
? Device Boot Begin Start End Blocks Id System ?
? /dev/hda1 * 1 1 1000 127491+ 6 DOS 16-bit >=32M ?
? ?
? Which one would you like LILO to boot? ?
? ____________________________________________________________________??
??dev/hda1 ??
? ____________________________________________________________________??
? ?
? ?
? ?
? ?
? ?
? ?
________________________________________________________________________?
? < OK > <Cancel> ?
________________________________________________________________________?
同样的, 以下我们也给这DOS分割区取一个代码, 这里我们取名为
dos (大小写无关系)。
<< 画面 4-79 >>
________________ SELECT PARTITION NAME __________________?
? Now you must select a short, unique name for this ?
? partition. You'll use this name if you specify a ?
? partition to boot at the LILO prompt. 'DOS' might not ?
? be a bad choice. THIS MUST BE A SINGLE WORD. ?
? ______________________________________________________??
?责os ??
? ______________________________________________________??
__________________________________________________________?
? < OK > <Cancel> ?
__________________________________________________________?
又回到这画面, 现在我们就可以把反白移动到 Install 这一行,
真正执行 LILO Install。
<< 画面 4-80 >>
__________________________ LILO INSTALLATION __________________________?
? LILO (the Linux Loader) allows you to boot Linux from your hard ?
? drive. To install, you make a new LILO configuration file by ?
? creating a new header and then adding at least one bootable ?
? partition to the file. Once you've done this, you can select the ?
? install option. Alternately, if you already have an /etc/lilo.conf, ?
? you may reinstall using that. If you make a mistake, you can always ?
? start over by choosing 'Begin'. Which option would you like? ?
? ___________________________________________________________________ ?
?? Begin Start LILO configuration with a new LILO header ??
?? Linux Add a Linux partition to the LILO config file ??
?? OS/2 Add an OS/2 partition to the LILO config file ??
?? DOS Add a DOS partition to the LILO config file ??
?? Install Install LILO ??
?? Recycle Reinstall LILO using the existing lilo.conf ??
?? Skip Skip LILO installation and exit this menu ??
?? View View your current /etc/lilo.conf ??
?? Help Read the Linux Loader HELP file ??
? ___________________________________________________________________ ?
_______________________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:37
我们接着可以在萤幕上看到下面这讯息。
<< 画面 4-81 >>
______________________________________?
? ?
? Installing the Linux Loader... ?
? ?
______________________________________?
设定网路
紧接着设定 LILO 之後, 我们要进行网路的设定。
<< 画面 4-82 >>
__________________ CONFIGURE NETWORK? ___________________
? Would you like to configure your network? ?
? ?
__________________________________________________________?
? < Yes > < No > ?
__________________________________________________________?
<< 画面 4-83 >>
______________________ NETWORK CONFIGURATION _______________________
? ?
? Now we will attempt to configure your mail and TCP/IP. This ?
? process probably won't work on all possible network ?
? configurations, but should give you a good start. You will be ?
? able to reconfigure your system at any time by typing: ?
? ?
? netconfig ?
? ?
____________________________________________________________________?
? < OK > ?
____________________________________________________________________?
__________________________ ENTER HOSTNAME __________________________?
? First, we'll need the name you'd like to give your host. Only ?
? the base hostname is needed right now. (not the domain) ?
? ?
? Enter hostname: ?
? ________________________________________________________________??
??linux3 ??
? ________________________________________________________________??
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
以下回答该机器所在网路之 domain name, 以下我回答 uuserv.net.tw。
<< 画面 4-85 >>
________________________ ENTER DOMAINNAME _________________________
? Now, we need the domain name. Do not supply a leading '.' ?
? ?
? Enter domain name for linux3: ?
? ________________________________________________________________??
?| uuserv.net.tw ??
?|________________________________________________________________??
____________________________________________________________________?
? < OK > <Cancel> ?
|____________________________________________________________________?
下面询问是否是单机网路, 也就是说假如该机器没配备有网路卡,
也没有透过串列通讯界面 (比方SLIP/PPP) 或 平行通讯界面 (PLIP)
连接网路, 底下就回答 Yes, 假如想上网路, 则回答 No。
<< 画面 4-86 >>
__________________________ LOOPBACK ONLY? __________________________?
? If you only plan to use TCP/IP through loopback, then your ?
? IP address will be 127.0.0.1 and we can skip a lot of the ?
? following questions. ?
? ?
? Do you plan to ONLY use loopback? ?
____________________________________________________________________?
? < Yes > < No > ?
____________________________________________________________________?
____________________ ENTER LOCAL IP ADDRESS _____________________
? Enter your IP address for the local machine. Example: ?
? 111.112.113.114 ?
? Enter IP address for linux3 (aaa.bbb.ccc.ddd): ?
? ______________________________________________________________??
??92.168.1.149 ??
?|______________________________________________________________??
__________________________________________________________________?
? < OK > <Cancel> ?
|__________________________________________________________________?
假如有 Gateway的话, 填到底下。
<< 画面 4-88 >>
____________________ ENTER GATEWAY ADDRESS ____________________?
? Enter your gateway address, such as 111.112.113.1 ?
? ?
? If you don't have a gateway on your network, you can enter ?
? your own IP address. ?
? ?
? Enter gateway address (aaa.bbb.ccc.ddd): ?
? ___________________________________________________________ ?
??92.168.1.150 ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________
底下填入 Netmask。
<< 画面 4-89 >>
________________________ ENTER NETMASK ________________________?
? Enter your netmask. This will generally look something ?
? like this: 255.255.255.0 ?
? Enter netmask (aaa.bbb.ccc.ddd): ?
? ___________________________________________________________ ?
??55.255.255.0 ??
? ___________________________________________________________ ?
_______________________________________________________________
? < OK > <Cancel> ?
_______________________________________________________________作者: sunweipeng 时间: 2009-7-30 09:37
以下询问是否有 nameserver, 内部私有网路可以回答 No, 至於
想上 Internet的机器, 则一定要有 (此处是指定一部 Name server
提供不机器的需要的 IP<-> Domain name 转换服务, 而不是说要设
立自己的一部 Name server。 对大部分人来说, 没有必要有自己的
Name server)。
<< 画面 4-90 >>
______________ USE A NAMESERVER? _______________
? Will you be accessing a nameserver? ?
________________________________________________?
? < Yes > < No > ?
________________________________________________?
Internet 上负责把 IP 转 Domain name (或反过来) 的服务, 就
是由 nameserver负责, 以下把距您最近的一部 nameserver的 IP 填
入。
<< 画面 4-91 >>
________________________ SELECT NAMESERVER __________________________?
? Here is your current IP address, full hostname, and base hostname: ?
? 192.168.1.149 linux3.uuserv.net.tw linux3 ?
? ?
? Please give the IP address of the name server to use. ?
? You can add more Domain Name Servers by editing /etc/resolv.conf. ?
? ?
? Name Server for domain uuserv.net.tw (aaa.bbb.ccc.ddd): ?
? __________________________________________________________________??
??39.175.249.15 ??
? __________________________________________________________________??
______________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?
<< 画面 4-92 >>
__________________ NETWORK SETUP COMPLETE ____________________?
? ?
? Your networking software has now been configured. ?
? ?
_______________________________________________________________
? < OK > ?
_______________________________________________________________
________________ SELECTION 1.5 CONFIGURATION _________________
? Selection is a program that allows you to do cut and paste ?
? on the virtual consoles using a mouse. If you choose to ?
? have it run at boot time, the line: ?
? ?
? selection -t ms & ?
? ?
? will be added to the end of your /etc/rc.d/rc.local. ?
? ?
? Running selection with a bus mouse can cause problems with ?
? XFree86 2.0. If XFree86 2.0 refuses to start and complains ?
? that it cannot open the mouse then you might want to comment ?
? the line out of /etc/rc.d/rc.local. Would you like to add ?
? ?
? selection -t ms & ?
? ?
? to /etc/rc.d/rc.local so that selection will load at boot ?
? time? ?
? ?
_______________________________________________________________
? < Yes > < No > ?
_______________________________________________________________
______________________ SENDMAIL CONFIGURATION ______________________?
? Sendmail requires a configuration file (/etc/sendmail.cf). Three ?
? versions are provided: TCP/IP with a nameserver, TCP/IP without ?
? a nameserver, and UUCP. If none of these proves suitable, you ?
? can make your own (look in /usr/src/sendmail). It probably won't ?
? hurt to try one of these, though. ?
? ________________________________________________________________??
?? SMTP+BIND Connected to the net with nameserver access ??
?? SMTP Connected to a network with no nameserver ??
?? UUCP Use UUCP for mail transmission ??
?? SKIP Do not install /etc/sendmail.cf ??
? ________________________________________________________________??
____________________________________________________________________?
? < OK > <Cancel> ?
____________________________________________________________________?
<< 画面 4-96 >>
___________________ REPLACE /etc/fstab? ____________________
? You already have an /etc/fstab on your install ?
? partition. If you were just adding software, you ?
? should probably keep your old /etc/fstab. If you've ?
? changed your partitioning scheme, you should use the ?
? new /etc/fstab. Do you want to replace your old ?
? /etc/fstab with the new one? ?
__________________________________________________________
? < Yes > < No > ?
__________________________________________________________
<< 画面 4-97 >>
______________ Slackware Linux Setup (version FD-2.0.2) ______________?
? Welcome to Slackware Linux Setup. ?
? Select an option below using the UP/DOWN keys and SPACE or ENTER. ?
? Alternate keys may also be used: '+', '-', and TAB. ?
? __________________________________________________________________??
??HELP Read the Slackware Setup HELP file ??
??KEYMAP Remap your keyboard if you're not using a US one ??
??QUICK Choose quick or verbose install mode [now: VERBOSE] ??
??MAKE TAGS Experts may customize tagfiles to preselect packages ??
??ADDSWAP Set up your swap partition(s) ??
??TARGET Set up your target partitions ??
??SOURCE Select source media ??
??DISK SETS Decide which disk sets you wish to install ??
??INSTALL Install selected disk sets ??
??CONFIGURE Reconfigure your Linux system ??
??EXIT Exit Slackware Linux Setup ??
? __________________________________________________________________??
?_____________________________________________________________________?
? < OK > <Cancel> ?
______________________________________________________________________?作者: sunweipeng 时间: 2009-7-30 09:38
第五章 其他非标准安装程序解析
透过前几章的介绍, 您应该已经大致完成 Slackware Linux 的
系统安装了。 本章介绍的话题, 主要是一些与系统安装有直接或间
接关系的技术与观念, 相信这些可以帮助您进一步了解 Linux。 笔
者也再次提醒, 对於想把 Linux 摆在严肃场合的朋友来说, 若没有
把握系统安装的品质, 不妨考虑重新安装, 而透过更多的技术琢磨,
重新安装後的系统必然可以更顺畅运转。
交大『云观 CD-ROM III』直接由 CD-ROM执行之安装法
bootdisk 磁片可以当作系统急救磁片
如何自制 bootdisk
pkgtool 软体维护
手工建置档案系统
您需要虚拟记忆体吗?
手工建造 Swap Partition
手工建造 Swap File
手工设定 LILO
如何解除LILO自动开机程序
注. Linux 也可以在 UMSDOS模式下, 直接在 DOS Partition下执行,
但笔者不推荐这样做, 尤其想把 Linux摆在有生产力应用所在者, 不
要试。
□ bootdisk 磁片可以当作系统急救磁片
这一章中, 我们首先来看看 bootdisk 作为救急磁片的用途。
Slackware Linux 的 bootdisk 的第一个救急用途, 就是用来
启动硬碟内的 Linux 系统, 什麽时候需要用到呢? 比方说您原本
从硬碟开机突然失效了, 更不巧您也没有做软碟开机片, 这些情况
您就可以使用 bootdisk 开机 (没有用到 rootdisk 磁片), 之後
在提示符号下使用 mount root=/dev/hda1 指令, 详细情况如下面
萤幕所示。
LILO
Welcome to the Slackware Linux 2.0.2 Bootkernel disk!
If you have any extra parameters to pass to the kernel, enter them at the
prompt below. For instance, you might need something like this to detect the
hard drive on PS/1 and ValuePoint models from IBM:
ramdisk hd=cyl,hds,secs (Where "cyl", "hds", and "secs" are the number of
cylinders, sectors, and heads on the drive. Most
machine won't need this.)
Also, in a pinch, you can boot your system with a command like:
mount root=/dev/hda1
On machines with low memory, you can mount root=/dev/fd1 or
mount root=/dev/fd0 to install without a ramdisk. See LOWMEM.TXT for details.
If you wold rather load the root/install disk from your second floppy drive:
drive2 (or even this: ramdisk root=/dev/hd1)
DON'T SWITCH ANY DISKS YET! This prompt is just for entering extra paramters.
If you don't need to enter any paramters, hit ENTER to conitnue.
boot: mount root=/dev/hda1作者: sunweipeng 时间: 2009-7-30 09:39
把上面 /dev/hda1 换成您实际的情况就可以。
Slackware Linux bootdisk/rootdisk 组合也可以作为系统急救
磁片, 比方说您不小心修改 /etc/fstab 档案, 但却由於有错误造成
无法开机, 类似这种例子, 您就可以用 bootdisk 磁片开机, 之後换
插入 rootdisk磁片, 继续执行开机作业, 我们前面提很多次, 这样子
执行的就是一套阳春的 Linux作业系统, 但虽然阳春, 基本的系统工
具程式都有, 比方说 vi 文字编辑器。
由这软碟系统来修复硬碟内的 Linux档案系统的作法, 是先把硬
碟内的 Linux / (root) 档案系统挂上来, 之後用 vi 修改造成错误
的设定档案, 或者用 e2fsck 或 fsck 来修复硬碟内的档案系统结构
(就类似 DOS的 CHKDSK指令)。
$ mount -t ext2 /dev/hda2 /mnt
笔者发现 Slackware Linux 2.02 以後的 rootdisk 磁片里面已
经没有 vi 及 e2fsck 等工具, 假如您想使用 vi 的话, 可以试看看
/mnt/usr/bin/vi。