📄 00000002.htm
字号:
netstat 等等, 稍後会聊到。 <BR> <BR> <BR> 6.4. 网路应用程式 <BR> <BR> 你将会至少需要一驼的网路应用程式, 如: telnet, ftp, finger,网路 <BR> daemons... Florian La Roche, <<A HREF="mailto:flla@stud.uni-sb.de>">flla@stud.uni-sb.de></A> 已经收集了 <BR> 相当完全的网路应用程式 (source code 或 binary), TCP/IP 应用程 <BR> 式的 binaries 及一些□例的 config 档可在以下节点找到: <BR> <BR> ftp.funet.fi <BR> <BR> /pub/OS/Linux/PEOPLE/Linus/net-source <BR> /NetKit/NetKit-A-0.07.bin.tar.gz <BR> <BR> /pub/OS/Linux/PEOPLE/Linus/net-source <BR> /NetKit/NetKit-B-0.06.bin.tar.gz <BR> <BR> 如果有最新的版本, 就用最新的版本, 请先读 README 档, 确定你有必 <BR> 要的 prerequisites 。 <BR> <BR> 确定要做重要的 config 档的备份, 如果是新的安装你就不必这样做。 <BR> 解压的步骤: <BR> <BR> # cd / <BR> # gzip -dc filename.tar.z | tar xpvlf - <BR> <BR> 非常注意!!! Florian 已经为您的方便, 事先压缩好了档案, Florian <BR> 已经尝试尽量使得这些程式包含在 net-tools-n.n.nn releases中, 不 <BR> 幸的, Florian 选择的目录结构与 Alan 不同, 当他在为 net-tools准 <BR> 备 installation script 时。 也就是说你要特别小心, 尤其在 <BR> install的时候。 Florian 以後将会改回来使得这个问题消失, 但是直 <BR> 到那时候,我建议, 你用下列方式代替: <BR> <BR> - 在其他安全的地方解包 <BR> # cd /usr/src <BR> # mkdir NetKit <BR> # cd NetKit <BR> # gzip -dc NetKit-A-0.07.bin.tar.gz | tar xpvlf - <BR> # gzip -dc NetKit-B-0.06.bin.tar.gz | tar xpvlf - <BR> <BR> - 砍掉 先前讲的 Florians 的网路工具拷贝(版本)。 <BR> # rm ./bin/hostname ./sbin/route ./sbin/ifconfig ./sbin/netstat <BR> # rm ./usr/sbin/arp ./usr/sbin/rarp ./usr/sbin/slattach <BR> <BR> - 拷贝 Florian's 档案到新家: <BR> # cp -vrpd . / <BR> <BR> <BR> 6.5. 其他的 drivers 或 packages. <BR> <BR> 如果你要增加一些发展中的或 Alpha/Beta 测试程式码, 例如: AX.25 <BR> 的支援, 你需要取得这些 packages 适当的支援软体, 请检查相关的章 <BR> 节做细部了解。 <BR> <BR> <BR>7. 设定(configuring) kernel <BR> <BR> 在你可以使用网路工具前, 或在 config 任何网路 device 前, 你必须 <BR> 确定你的 kernel 已经内建 ( 建入 ) 网路支援 driver, 最好的方法 <BR> 就是 compile出自己机器的 kernel, 选择自己要的及不要的。 <BR> <BR> 若你已经取得并解出 kernel source, 并装了一些必要的非正式或发展 <BR> 中的 patch 软体, 你只需编辑 /usr/src/linux/drivers/net/CONFIG. <BR> 这个档案有许多的内容可以指引你编辑那锅档, 通惕 A 不需要改太多 <BR> 东西, 因为有许多的内定值. 对我来说根本不需要编辑. 如果你的 <BR> ethernet 网路卡很特别, 或无法被 ethernet driver 自动侦测出来的 <BR> 话, 这份文件对你来说会很有用。 它允许你 hard code 网路硬体的一 <BR> 些 elemets, 例如: 如果你的卡是专属的卡, 但不是像什麽 WD-8013 <BR> 之类的卡, 那你就要设定 shared memory address 来确定 driver <BR> detects 并且确定适当的驱动这张卡。读读 Ethernet-HOWTO 查看更多 <BR> 这个档案的定义资讯, 及对网路卡的影响。当然也包含 PLIP 的设定 <BR> 参数, 虽然内定值跑起来也不会有啥问题, 除非你的机器很慢。 <BR> <BR> 若是 CONFIG 档很适合你的机器, 那你就可以用来重建 kernel,第一步 <BR> 是先编辑最上层的 Makefile, 确定会适当地依照你的 VGA 设定来重建 <BR> kernel, 然後跑一跑 kernel configuration 程式: <BR> <BR> # cd /usr/src/linux <BR> # make config <BR> <BR> 执行之後会问你一堆的问题, kernel 中关於网路的部份共有四大选项, <BR> 分别是: Gerneral Setup, Networking options, Network device <BR> support,及 Filesystems sections. 最困难的是设定 Network device <BR> support section, 因为它是你要选择使用哪种硬体 device 的地方你 <BR> 可以只用内定值, 跑起来也很安全。以下是一些大概的 idea <BR> <BR> * <BR> * General setup <BR> * <BR> ... <BR> ... <BR> Networking support (CONFIG_NET) [y] y <BR> ... <BR> ... <BR> <BR> 在这区你只要选择是否你要网路支援, 通常ㄋㄟ...你只要回 "y" 就 <BR> 好啦 ... <BR> <BR> * <BR> * Networking options <BR> * <BR> <BR> TCP/IP networking (CONFIG_INET) [y] y <BR> IP forwarding/gatewaying (CONFIG_IP_FORWARD) [y] y <BR> <BR> * <BR> * (it is safe to leave these untouched) <BR> * <BR> <BR> PC/TCP compatibility mode (CONFIG_INET_PCTCP) [n] n <BR> Reverse ARP (CONFIG_INET_RARP) [n] n <BR> Assume subnets are local (CONFIG_INET_SNARL) [y] y <BR> Disable NAGLE algorithm (normally enabled) (CONFIG_TCP_NAGLE_OFF) [n] n <BR> The IPX protocol (CONFIG_IPX) [n] n <BR> <BR> 第二部份是允许你启动或关闭一些 (funky features) 的网路设定或者 <BR> 接受内定值, 直到你需要改变: <BR> <BR> * <BR> * Network device support <BR> * <BR> Network device support? (CONFIG_NETDEVICES) [y] <BR> Dummy net driver support (CONFIG_DUMMY) [n] <BR> SLIP (serial line) support (CONFIG_SLIP) [y] y <BR> CSLIP compressed headers (SL_COMPRESSED) [y] y <BR> PPP (point-to-point) support (CONFIG_PPP) [y] y <BR> Load balancing support (experimental) (CONFIG_SLAVE_BALANCING) [n] n <BR> Do you want to be offered ALPHA test drivers (CONFIG_NET_ALPHA) [n] n <BR> Western Digital/SMC cards (CONFIG_NET_VENDOR_SMC) [y] y <BR> WD80*3 support (CONFIG_WD80x3) [y] y <BR> SMC Ultra support (CONFIG_ULTRA) [n] n <BR> 3COM cards (CONFIG_NET_VENDOR_3COM) [n] n <BR> Other ISA cards (CONFIG_NET_ISA) [n] n <BR> PLIP (parallel port) support (CONFIG_PLIP) [n] n <BR> EISA and on board controllers (CONFIG_NET_EISA) [n] n <BR> Apricot Xen-II on board ethernet (CONFIG_APRICOT) [n] n <BR> Pocket and portable adaptors (CONFIG_NET_POCKET) [n] n <BR> * <BR> <BR> 这部份是最重要的, 也是关系最密切的, 他会让你选择你所要支援的网 <BR> 路 device, 你可以看到我有选支援档头压缩的 SLIP 设定, PPP, 及 <BR> WD80*3 driver, 回 "y" 表示安装, "n" 表示不装。 <BR> <BR> * <BR> * Filesystems <BR> * <BR> ... <BR> ... <BR> /proc
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -