Next Previous Contents

3. ¦p¦ó³]©w

­º¥ý, ½Õ¾ã¾÷¾¹¦ì¸m¨Ï¤âÃ䦳¤U¦C¨â¥x¾÷¾¹:

¦pªG§A·Q­n´ú¸Õ±zªº²ÕºA³]©w¦Ó±zÁÙ¨S®³¨ì TCP/IP Bootprom, ±z¥i¥H¨ì http://www.incom.de ¤U¸ü´ú¸Õª©ªººÏ¤ù. ³o­Ó ºÏ¤ù¥i¥H¨Ï±zªº¹q¸£´N¦n¹³¬O´¡¤W TCP/IP Bootprom ¤@¯ë.If you want to test the configuration but you do not yet have a

¾Ç¥Í©Ò¨Ï¥Îªº¹q¸£, §Ú­Ì³]©w Bootprom ¥Ñºô¸ô¶}¾÷, ¤£¯à¨Ï¥ÎµwºÐ¶}¾÷¤Î³nºÐ¶}¾÷. ±Ð¾Ç¥Î¹q¸£, §Ú­Ì³]©w Bootprom ¥i¥H¥Ñ©¹¸ô¶}¾÷, ¤]¤¹³\µwºÐ»P³nºÐ¶}¾÷; ¦b§Aªº«È¤áºÝ³]©w Bootprom.

¦øªA¾¹ºÝ, ³]©w DHCP daemon (§Ú­Ì¨Ï¥Î Internet Software Consortium ©Ò´£¨Ñªº¥¿¦¡ª©, 970329 µo¦æ). §A¤]¥²»Ý±Ò°Ê TFTP daemon. ³o¥÷¤å¥ó±N°²³]±z¨Ï¥Î TCP/IP Bootprom ¤u¨ãºÏ¤ù¤ºªº¥[±j«¬ TFTP daemon . ¦pªG±z¸û³ßÅw¨Ï¥Î¼Ð·Ç ªº TFTP daemon, ²¾±¼©Ò¦³¶}¾÷¼v¹³Àɪº°ÆÀɦW P, ¥Î¨Ó¤ä·| Bootprom ¨Ï¥Î¼Ð·Çªº TFTP port (½Ð¬Ý TCP/IP Bootprom ¤å¥ó).

§O§Ñ¤F BOOTP/DHCP ³q°T¨ó©w³Q­­¨î¦b¤lºô°ì¤¤¨Ï¥Î. ¦pªG«È¤áºÝ»P¦øªAºÝ¤£¦b¦P¤@ºô°ì, ±z¥²¶·¦b³o¨âºô°ì¶¡ ¬[³]¹h¹D¾¹. ²{¦b, ¥ý°²³]¨â¥x¾÷¾¹¦b¬Û¦Pªººô°ì¤¤.

­º¥ý, §Ú­Ì¥ý°µ©Ò¦³§@·~¨t²Î³£­n±o°µªº¨Æ,¦p:

µM«á, ¹ï¨C¤@ºØ§@·~¨t²Î, §Ú­Ì±N§¹¦¨¤U¦C¨BÆJ: §¹¦¨³o¨Ç¨Æ, ¥H«á§A©Ò°l¥[ªº«È¤áºÝ¥u­n´¡¤W Bootprom ¦A¥[´X¦æ¨ì DHCP ³]©wÀÉ.

3.1 ³]©w¶}¾÷¬yµ{

¦b¦øªA¾¹ºÝªº /tftpboot ¥Ø¿ý¤U, ©ñ¤U¦Cªº¶}¾÷¼v¹³ÀÉ (³o¨Ç¬O¤G¶i¦ì®æ¦¡)

µwºÐªºªì©l¤Æ»P²M²z

¦b¬Û¦Pªº¥Ø¿ý¤U, §Ú­Ì«Ø¥ß²Å¸¹³sµ²¨ì (©ÎªÌª½±µ¥Î«þ­I«ü¥O)) bpclean ©R¦W¬° XXXclean (©ÎªÌ±z»{¬°¥i¥HÀ°§U±z°O¦í³o¬O¥Î¨Ó²M²z±zªº«È¤áºÝ¾÷¾¹ªº¦WºÙ) ¨Ã¥B²£¥Í¤@­Ó¦W¬° XXXclean.tab Àɱԭz±z«È¤áºÝ©Ò»ÝªºµwºÐ¤À³Î°Ï, ¤Î±z­nÁp±µªº¶}¾÷¼v¹³ÀÉ. ¨Ò¦p: §Ú­Ì¹ï 2 Gb µwºÐ¨Ï¥Î¤U­±ªº¤èªk


# ¤¹³\¤£¶W¹L 512 bytes ªº»¡©ú±Ô­z
# ¤Q¤»¶i¨î½Ð¦b¦r­º¥[¤@­Ó $ ¿ú¦r²Å

# Part |       |  Part
# type | Boot? |  Size
   6      Y       +500 Mb
  $82     N       +31 Mb
  $83     N       -50 Mb
   0

# Áp±µªº¼v¹³ÀÉ
/tftpboot/XXXmenu

§¹¾ãªºÀɮ׮榡¦b«á­±·|±Ô­z. ²{¦b±z¥u­nª¾¹D³o¨Ç ²{¦b, bpclean ¦b¤£²M°£¤À³Î°Ï¸ê®Æ¤º®e¤U,±N­«·s¼g¤J¥D­n¶}¾÷­p¿ý(master boot record), ·íµM¤]¥]¬A¤À³Îªí.

§@·~¨t²Î¿ï³æ

¦P¼Ëªº, «Ø¥ß²Å¸¹³sµ² (©ÎªÌª½±µ«þ¨©) bpmenu ©R¦W¬° XXXmenu (©ÎªÌ§A»{¬°¥i¥HÀ°§U±z°O¦í ³o¬O«È¤áºÝ¾÷¾¹¶}¾÷¿ï³æªº¦WºÙ) ¨Ã¥B²£¥Í¤@­Ó¦W¬° XXXmenu.m Àɱԭz±z«È¤áºÝ©Ò»Ýªº¶} ¾÷¿ï³æ. ±z¤ñ¥i¥H¤â°Ê²£¥Í³o­ÓÀɮשγz¹L§Ú­Ì¼gªº¶}¾÷¿ï³æ¥þÀç¹õ½s¿è¾¹ menuedit.exe. ¨Ò¦p, °²³]±z¥Î¤U¦C³o­ÓÀÉ®×:


.CLS 23
.ATT 23
.POS 23 4
.WRT Simple Boot Menu                                         \
.POS 23 5
.WRT ----------------                                         \
.POS 23 8
.WRT 1. Boot from local hard disk                             \
.POS 23 10
.WRT 2. Boot DOS and Windows 3                                \
.POS 23 12
.WRT 3. Boot Windows 95                                       \
.POS 23 14
.WRT 4. Boot RedHat Linux                                     \
.POS 23 17
.WRT Your choice :                                            \
.POS 37 17
.KEY 1 :bphdboot
.KEY 2 :linux.PX
.KEY 3 :win31.P
.KEY 4 :win95.P

´ú¸Õ¶}¾÷µ{§Ç

¦b±zªº DHCP ³]©wÀɤ¤¥[¤J±zªº«È¤áºÝ. ¨Ã³]©w¶}¾÷¼v¹³Àɬ° /tftpboot/XXXclean. ±z¥i¯à»Ý­n­«·s±Ò°Ê±zªº DHCP ¦øªA¾¹¨Ï±zªºÅܧó¥Í®Ä.

²{¦b§Ú­Ì°_°Ê±zªº«È¤áºÝ. ±z¥i¥H°T³tªº¬Ý¨ì¥Ñ bpclean, ©Ò°e¥X¨Óªº°T®§, §i¶D±z¥¦©Ò«Ø¥ßªº¤À³Î°Ïªº¤j¤p, µM«á±z·|¬Ý¨ì¶}¾÷¿ï³æ¥X²{¦b±zªºÀç¹õ¤W. ±z¥i¥H¥ÎÁä½L¤Wªº pause Áä¨Ó ¼È°±¥H«KŪ¨ú­è­èªº°T®§, ¦ý¬O³o¥i¯à·|¾É­P TFTP ªº³s±µ¹O®É.

¦pªG±z«ö¤U«öÁä 1, ±z±N¦¬¨ì¤@­Ó³o¼Ëªº°T®§"¶}¾÷¤À³Î°Ï¦s¦b¤@­ÓµL®Äªº¶}¾÷ºÏ°Ï" (the boot partition contains not valid boot sector). ¹ï¥¼³Q®æ¦¡¤Æ¹Lªº¶}¾÷¤À³Î°Ï¦Ó¨¥³o¬O¥¿±`ªº. ¦] ¬°§Ú­Ì²{¦bÁÙ¥¼«Ø¥ß¥ô¦ó¶}¾÷¼v¹³ÀÉ©Ò¥H¨ä¥Lªº«öÁä±N·|¥¢®Ä...

²{¦b§Ú­Ì­n¶}©l¦w¸Ë¦UºØ§@·~¨t²Î. ±z¥i¨Ì±zªº»Ý­n¨Ó¨M©w¥ý°µ¨º¤@ºØ. ¹ï¥ô¦ó¤@ºØ§@·~ ¨t²Î, ±z³£»Ý­n¥ý±q³nºÐ¨Ó°µªì©l¤Æªº°Ê§@. ©Ò¥H§Ú­Ì¦b¬Ý¨ì TCP/IP Bootprom ªº¼Ð»x«á¥ß ¨è«ö space Áä´«¦¨³nºÐ¶}¾÷.

¦³¨Ç§@·~¨t²Î·|§ó°Ê¥D­n¶}¾÷­p¿ý (master boot record). ¯S§O¬O Linux kernel loader (lilo) ·|³o¼Ë °µ.¦Ó³oºØÅÜ°Ê·|¦] bpclean³o­Óµ{¦¡¦ÓµLªk§¹¦¨, ¦]¦¹±z³Ì¦n§ïÅܫȤáºÝªº DHCP ³]©w¤º ®e¨Ï¶}¾÷¼v¹³Àɪ½±µ¸õ¨ì /tftpboot/XXXmenu (¤£°µ²M²zªº°Ê§@). §O§Ñ¤F­n¨Ï±zªº§ïÅܥͮÄ,±z¥²»Ý­«·s±Ò°Ê DHCP ¦øªA¾¹.

3.2 ³]©w Linux

¦b±zªº«È¤áºÝ¬[³] RedHat Linux 4.1 ¤ä´©ºô¸ô¥\¯à, kernel ­ì©lµ{¦¡½X¤Î±z©Ò»Ý­nªº³nÅé®M¥ó. ·Ç³Æ¥¼¨Ó­n±¾¤JªºÂI (©ñ¦b /mnt/tmp ¤ñ¸û¦³¥Î), ³]©w±zªº X server, µ¥µ¥. ¦b /usr/src/linux-2.0.27 ¥Ø¿ý¤¤, ±z¥²¶·¦³ kernel 2.0.27 ªº­ì©lµ{¦¡½X.

²{¦b§Ú­Ì­n¥[¤J¤@¨Ç­×¥¿ÀÉ, ¨Ï¥¦¤É¯Å¨ì 2.0.30, ¨Ã¥B¤ä´© TCP/IP Bootprom ¤ÎÀɮק֨úªº ¥\¯à. Àɮק֨ú¬O¤@­Ó §â "¥¼½T©wªº" NFS ÀÉ®×Àx¦s¦b±zµwºÐ¤¤ªºµ²ºc, ¥¦±z¥i¥H­°§Cºô¸ô ­t¸ü. TCP/IP Bootprom ªº¤ä´©¤w¸g¥Ñ³ Marc Vuilleumier Stuckelberg §¹¦¨, ¨Ã¥B¥Ñ David Clerc Âಾ¨ì kernel 2.0 . Àɮק֨ú¤w¸g¥Ñ Unifix GmbH §¹¦¨, ¨Ã¥B¤w ¬O Unifix Linux 2.0 ªº¤@³¡¥÷. TCP/IP Bootprom ¤ÎÀɮק֨úªº¤ä´©³£¤w¸g¥Ñ¥¦­Ìªº§@ªÌ§K¶Oªº´²¥¬.

­È±oª`·Nªº¬O Linux ¹ï NFS-Root ªº¤ä´©¥u¯à¬[ºc¦b BOOTP ³q°T¨ó©w, ¤£¬O DHCP ³q°T¨ó ©w. ¶ÈºÞ DHCP ¥u¬O BOOTP ªº©µ¦ù, Linux ¤]¥i¥H¦b DHCP ¦øªA¾¹¤U¤u§@ (¦pªG±z¨S¦³³] ©w DHCP ¦øªA¾¹©Úµ´ BOOTP­n¨D).

²£¥Í Kernel

­º¥ý, ¨ì±zªº /usr/src ¥Ø¿ý¨Ã¥[¤J¤U¦C­×¥¿ÀÉ, ¨Ï¥Î³o­Ó«ü¥O

patch -p0 < ­×¥¿Àɪº¦WºÙ:

±µµÛ°õ¦æ make mrproper ¤Î make xconfig, ²£¥Í kernel. °O¦í³o±N¬O«È¤áºÝ¹q¸£¥H Linux ±Ò°Ê®É, °ß¤@±µ¦¬¨ìªº³nÅé, ©Ò¥H ¥¦¥²¶·­n¥]§t±Ò°Ê¾ã­Ó§@·~¨t²Î©Ò»ÝªºªF¦è. ¥i¥H¨Ï¥Î¼Ò²Õ¤è¦¡, ¦ý¬O¤£¥]¬Aºô¸ô¼Ò²Õ. ¦]¬°ºô¸ô¥\¯à¤@©w­n©ñ¦b kernel ¤¤. ²¦Ó¨¥¤§, ±zªº kernel ¦Ü¤Ö»Ý­n ¥H¤U³o¨Ç

±z¥i¥H¨Ï¥Î§Ú­Ìªº .config ·í°µ°_ÂI. ¦pªG±z·Q­n¦b¨S¦³ Bootprom ªºª¬ªp¤U´ú¸Õ, ½Ð½T©w±z ¤w¸g¦b kernel ¤º¥]§tµwºÐ¾÷ªº¤ä´©.

·í±zªº¿ï¾Ü§¹¦¨«á, ·Ó±`¦a¿é¤J make clean; make dep ±µµÛ make zImage, make modules »P make modules_install. ³o·|ªá¤@ÂI®É¶¡... ²{¦b±z·Ç³Æ¥h´ú¸Õ±zªº·s kernel, ¥ý¥Î¥ý¥Î lilo. ¦w¸Ë±zªº kernel (°Ñ¦Ò lilo ¤å¥ó),¨Ã­«·s±Ò°Ê±zªº¹q¸£ (¥ÑµwºÐ±Ò°Ê). ¦p¦³¥ô¦ó¿ù»~, ­×¥¿¥¦­Ì¨Ã¦A¸Õ¤@¦¸. °õ¦æ depmod -a ­pºâ modules dependencies. ·í§¹¥þµL»~®É, °õ¦æ make bpImage ²£¥Í¤@­Ó bootimage µ¹ TCP/IP Bootprom ¨Ï¥Î.

§â Root Àɮרt²Î²¾¨ì NFS

±zªº¦øªA¾¹­n¦³¨¬°÷ªºªÅ¶¡¨Ó«O¦s±zªº¾ã­Ó Linux Àɮרt²Î (´X¦Ê Megabytes). «Ø¥ß¤@­Ó·s ªº¥Ø¿ýµ¹ NFS ¿é¥X, ´N¥s rootfs, ¨Ã¦b¨ä¤¤«Ø¥ß¥t¤@­Ó·s¥Ø¿ý´N¥s runtime. §Ú­Ì¨Ï¥Î /export/linux/rootfs/runtime. §â¥¦¿é¥X¦¨¥u¦³±zªº Linux «È¤áºÝ¥iŪ¥i¼g, ¨Ã¨ã¦³ root ªº¦s¨úÅv ( annon=0). ¨Ò¦p, §Ú­Ìªº NFS ¬O¦b Solaris ¤U°õ¦æ, §Ú­Ì¥Î¥H¤U³o­Ó«ü¥O:

share -F nfs -o rw=pc7971,anon=0 /export/linux/rootfs/runtime.

¦b±zªº Linux «È¤áºÝ±¾¤W³o­Ó¤À³Î°Ï¨Ã¥ÎGNU tar §â¾ã­Ó Linux Àɮרt²Î½Æ»s¹L¥h (¹w³]¬O RedHat Linux). «Ü­«­nªº¬O·í±z¨Ï¥Î GNU tar «ü¥O,¦]¬°©Ò¦³ªº tar «ü¥O¥i¯àµLªk¥¿½T¦a³B²z block device ªº special nodes . µM«á½s¿èÀÉ®× /export/linux/rootfs/runtime/etc/fstab ¨ÃÅܧó®Ú¥Ø¿ýªº ³]©w,¨Ï®Ú¥Ø¿ý²Å¦X¥H nfs mount ¨ú¥N¦Û¤vªºµwºÐ¾÷. §AÁÙ­n²¾¥h (©ÎªÌ ¦Ü¤Ö­nÅܧó¦WºÙ) /export/linux/rootfs/runtime/etc/sysconfig/network-scripts/ifcfg-eth0 ¦]¬°ºô¸ô¸Ë¸m±N¥Ñ NFS-root ªì©l¤Æ¦ý¤£¯à³Qªì©l¤Æ¨â¦¸.

²{¦b¦b±zªº /etc/lilo.conf ½Æ»s¤@¦æ linux, ¨Ò¦p:¥H linux-nfs ¬°¦W, ¨Ã¥[¤J¥H¤Uªº°Ñ¼Æ:

append="root=/dev/nfs nfsroot=/export/linux/rootfs/runtime nfsaddrs=±zªº-ip:¦øªA¾¹ªº-ip:¹h¹D¾¹ªº-ip:ºô¸ô¾B ¸n:¾÷¾¹¦WºÙ"

(±zªº-ip ¬O±zªº Linux «È¤áºÝªº IP ¦ì§},¬O¥H¤Q¶i¦ì¦³ÂIªº¤èªkªí¥Ü, ¦øªA¾¹ªº-ip ¬O NFS ¦øªA¾¹ªº IP ¦ì§}, ¹h¹D¾¹ªº-ip ¬O Linux «È¤áºÝªº¹w³]¹h¹D¾¹, ºô¸ô¾B¸n ¬O Linux «È¤áºÝªº ºô¸ô¾B¸n ¦Ó ¾÷¾¹¦WºÙ ¬OLinux «È¤áºÝªº¥D¾÷¦WºÙ). ¦A°õ¦æ¤@¹M lilo , ­«·s±Ò°Ê±zªº¹q¸£ (¤´µM¬O¥ÑµwºÐ¾÷), ¨Ã¿ï¾Ü linux-nfs ¶}¾÷³]©w. ±zªº¹q¸£±N¦p¥ý«e¤@¯ë±Ò°Ê, §Y¨Ï¦³¤@ÂIºC. ¦pªG¦b³o¸Ì¦³¬Y¨ÇªF¦è¤£¯à¥¿±`¤u§@, ±z¥u­n­«·s¶}¾÷¥Î±z­ì¨Ó localªº linux ¶}¾÷³]©w¨Ã¸Õ µÛ­×¥¿¥¦. ¤j³¡¥÷ªºª¬ªp¬O, ±zªº NFS root ³]©w¿ù»~. ¦pªG¦³¥ô¦óªF¦è±z¤£ÁA¸Ñ, ¬Ý¤@¤U /usr/src/linux/Documentation ³o¨ÇÀÉ®×... ±z©Î³\¥i¥H¬Ý¬Ý NFS-Root-Mini-Howto.

±z¥i¥H¦A¸Õ¤@¦¸,³o¦¸¥u¥Î append="root=/dev/nfs" ¥H½T©w Linux kernel ¥i¥H³z¹L DHCP/BOOTP­n¨D¦ÓÀò±o±z©Ò³]©wªº IP °Ñ¼Æ. ¦pªG ­n³o¼Ë°µ, ±z¥²¶·¦b±zªº DHCP ³]©wÀɤ¤¥[¤J¥H¤U ³o¨Ç¿ï¶µ (·íµM¬O­n³]©w±z¦Û¤vªººô¸ô²ÕºA), ¥[¤W±zªº¾÷¾¹ªºµwÅé¤Î IP ¦ì§}:


option subnet-mask 255.255.252.0;
option routers 129.194.68.1; 
option root-path "/export/linux/rootfs";

¦pªG±zªº Linux kernel ¶·­n¦A¥[¤J¨ä¥¦«ü¥O°Ñ¼Æ, ±z¥i¥H¥Î option option-177 ¨Ó¥[¤J.

¤U¤@¨B­n¨Ï§Ú­Ìªº¨t²Î¦b °ßŪªº NFS Àɮרt²Î¤U¥i¥H¤u§@.

²£¥Í°ßŪªº NFS Root Àɮרt²Î

¬JµM§Ú­Ì­n§Ú­Ìªº root Àɮרt²Î¦b¤j³¡¥÷ªº Linux «È¤áºÝ¥H°ßŪªº¤è¦¡±¾¤W, ¨º´N­n¨ÏÀÉ ®×¨t²Î¦³¨Ç·Lªº¤£¦P, ¦]¦¹§Ú­Ì±N»Ý­n¼g¤JÅv­­ªº¦a¤è¥H ramdisk ©Î filecache ¨ú¥N. §Ú­Ì§â ³o­ÓÀɮרt²Î«Ø¥ß¦b /export/linux/rootfs ¥Ø¿ý¤U, ¦Ó¼Ð·Çªºª©¥»«hª½±µ©ñ¨ì /runtime/ ¤U. µn¤J±z ªº NFS ¦øªA¾¹¨Ã¦b /export/linux/rootfs¥Ø¿ý¤U,«Ø¥ß¥H¤Uªº¥Ø¿ý¸ò³sµ²:

´N¦p±z©Ò¨£ªº, ¥¦¬Ý°_¨Ó¹³¥¿±`ªº root filesystem, °£¤F¤Ö³¡¥÷´X­Ó¬O­«·s«ü¨ì /ramdisk, ¦³ ¨Ç«h­«·s«ü¨ì cache ¥Ø¿ý. ·í¥Î°ßŪªº NFS filesystem ¶}¾÷, §Ú­Ì±N±¾¤W¤@­Ó¤wªì©l¤Æ¹Lªº ramdisk ©ñ¦b /ramdisk ¤U. ¦P¼Ëª, ¦Û¤vµwºÐªº¤À³Î°Ï±N³Q±¾¦b /cache µ¹ NFS §Ö¨ú¨Ï¥Î. ²Ê²¤ªº »¡,³o­ÓÀɮק֨úªº­ì²z¬O·íthe principle of the filecache is that whenever a symbolic link from the cache subdirectory is followed, it is replaced by its target. ¦pªG¥Ø¼Ð¦Û¤v¬O¤@­Ó¤l¥Ø¿ý, «h¨C¤@­Ó ¤l¥Ø¿ý·|Âà´«¦¨¤@­Ó²Å¸¹³sµ²¨Ã³sµ²¨ì¥~³¡Àɮרt²Îªº­ì©l¦ì¸m. ª`·NÀɮק֨ú¨Ï¥Îµ´ ¹ï²Å¸¹³sµ²¬O¥²¶·ªº, §Y¨Ï¥¦­Ì¦b NFS ¦øªA¾¹¤W¬OµL·N¸qªº. ¦pªG±z¤£³ßÅw³o¼Ë, ¥i¥H¦b ±zªº NFS ¦øªA¾¹¤W,«Ø¥ß¤@­Ó²Å¸¹³sµ²¥Ñ /runtime ¨ì /export/linux/rootfs/runtime .

¦b°ßŪªº«È¤áºÝ¥[¤J¤@¨Ç³]©wªºªF¦è¬O¥²¶·ªº, ¦p¦¹¤~¥i¥H±¾¤W ramdisk, ¤Î³]©wÀɮק֨ú ©M°»´úµwÅé¥HÅܧó³]©wÀÉ. ³o¨Ç³£¥Ñ¤T­Óµ{§ÇÀÉ©M¤@­Ó²ÕºAÀɨӧ¹¦¨, ±z¥i¥H§â¥¦½Æ»s¨ì ±zªºNFS ¦øªA¾¹:

«e¨â­ÓÀÉ®×À³¸Ó©ñ¦b«e¨â­ÓÀÉ®×À³¸Ó©ñ¦b runtime/etc/rc.d/rc.sysinit, Àɮפº³Ì«e­±ªº¦ì¸m, ¦p¤U©Ò¥Ü:

# ³]©w©Ò»Ýªº  ramdisk  (µ¹ root NFS °ßŪªº¾÷¾¹)
if [ -e /ramdisk -a -r /etc/rc.d/rc.ramdisk ]; then
        /etc/rc.d/rc.ramdisk
fi

# ³]©wµwÅé¦U¦Û¿W¥ßªº°Ñ¼Æ (µ¹¨C­Ó root NFS¨Ï¥Î)
if [ -r /etc/rc.d/rc.sysdetect ]; then
        /etc/rc.d/rc.sysdetect
fi

¦Ó²Ä¤T­ÓÀ³¸Ó be bound as usual to the System V init directories: we use links named S35filecache in the rc3.d and rc5.d directories, and K80filecache in the rc0.d, rc1.d, rc2.d and rc6.d directories.

Àˬd¤@¤U rc.sysdetect ³o­ÓÀÉ®×, ¨Ã¨Ï¥¦»P±zªºµwÅé³]³Æ°t¦X. ¯S§O­nª`·Nªº¬O, ¦pªG±z¸ò§Ú­Ì¤@¼Ë¨S¦³ ¨Ï¥Î¬Û¦PªºÅã¥Ü¥d¤Î¿Ã¹õ (³o«Ü¥i¯àµo¥Íªº :-), ¬Ý¬Ý¥¦­Ì¦b /proc/pci ªº¦^À³¨Ã¨Ì¦¹­×§ï±Ô­zÀÉ. ¦b¨C¥x ¾÷¾¹©Ò¨Ï¥Îªº¦s©ñ¦ì¸m¤U, ¨ä rc.sysdetect ¤§¤¤¦³¤@¬q¤º®e¬°, ¥i¦Û­qªº³]©wÀÉ (¨Ò¦p printcap), a¬°¤F¯à¨C ¥x¿W¥ß¤u§@, ±z»Ý­n©ó¦øªA¾¹ªº dhcpd.conf Àɮפ¤, ¥Î¯S§Oªº¼Ð°O option-132 ³]©w¨C¥x¾÷¾¹©Ò¨Ï¥Îªº¦ì ¸m. ¦b±zÄ~Äò¦w¸Ë¤§«e, ±z¦Ü¤Ö­n¥ý«Ø¥ß°ò¥»ªº´X­ÓÀÉ®× runtime/etc/fstab.ref ©M runtime/etc/hosts.ref , ³o¨Ç±N¥Ñ rc.sysdetect ±Ô­zÀɦb±Ò°Ê®É³z¹L°»´ú³]©w¨Ó§¹¦¨, ¬°¤F°ÊºAªº³]©w X servver, ¨Ï¥Î RedHat ³nÅé®M¥ó, ¦³¤@¥ó¨Æ±z¥²¶·¥ýÅܧóªº: ¦b /usr/X11R6/bin ¤Î /usr/X11R6/lib/X11 ¥Ø¿ý¤U, ¦³¤@¨Ç¬ÛÃöªº ³sµ²³]©wÀɤΥؿýÀ³¸Ó§ï¦¨µ´¹ï³sµ². §O§Ñ¤F¥H«áªº X server §ó·s¦w¸Ë¤]­n¦pªkªw»s.

§â filecache ¦w¸Ë¦b runtime/bin ¥Ø¿ý¤U, ¨Ã§â¥¦ªº¨Ï¥Î»¡©ú man page ¦w¸Ë¦b runtime/usr/man/man8 ¥Ø¿ý¤U. §â bootptag ©Î dhcptag ¦w¸Ë ¦b runtime/usr/local/bin ¥Ø¿ý¤U, ¨Ã¥B bootptag.c (©Î dhcptag.c) ¥²¶·©ñ¦b runtime/usr/local/src ¥Ø¿ý¤U: ¥¦¬O¤@­Óµo°e BOOTP/DHCP ­n¨D, ¨Ã¥H¬Û®e©ó shell ªº¼Ð·Ç¿é¥X®æ¦¡¦^À³ BOOTP/DHCP ¤º®eªº¤pµ{¦¡, ´N¦p¤Uªº½d¨Ò©Ò¥Ü:


bootp_your_ip='129.194.71.32'
bootp_server_ip='129.194.77.31'
bootp_filename='XXXclean'
bootp_subnet_mask='255.255.252.0'
bootp_routers='129.194.68.1'
bootp_domain_name_servers='129.194.69.200 129.194.8.7 129.194.4.32'
bootp_host_name='pc7132'
bootp_domain_name='unige.ch'
bootp_root_path='/export/linux/rootfs'
bootp_broadcast_address='129.194.71.255'
bootp_nis_domain='cuisunnet.unige.ch'
bootp_nis_servers='129.194.69.200'
bootp_option_132='dufour'

¼Ð°Oªº¦WºÙ»P RFC 2132 «Ü¬Û¦ü. ¦pªG±z¨Ï¥Î dhcptag, ±z±N±o¨ì¤@¨Ç¥H dhcp_ ¶}ÀYªº¼Ð°O, ³o¨Ç¬O DHCP-³W®æªº¿ï¶µ¤º®e; ¬°¤FÅU¤Î¬Û®e©Ê, ¨ä¥¦ªº¸ê°T¤´µM¥H bootp_ ¬°¦r­º. §Ú­Ì¨Ï¥Î³o­Óµ{¦¡¦Û°Ê³] ©w rc.sysdetect. ³Ì«á, ¦b runtime/lib ¦w¸Ë makeramdisk script . §Ú­Ì±N¥Î¥¦¦Û°Ê²£¥Í ramdisk ¼v¹³ÀÉ. ³o¨Ç³nÅé ³£¦b¶W¤å¥óªºª©¥»¤¤.

²{¦b¸ÕµÛ¥Ñ«È¤áºÝ¥H read-write NFS ¶}¾÷ (¤´µM¥ÎµwºÐ¶}¾÷). ¥¦±N°»´ú±z«È¤áºÝªº­Ó§O²ÕºA, ¨Ã ²£¥Í¾A·íªºÀÉ®. Àˬd /etc/fstab, /etc/hosts, /etc/sysconfig/network ¬O§_³]©w¥¿½T. ¦pªG±z¬Ý¨ìªº¤£¬O³o¼Ë, ½Ð¦b ³æ¤H¤u§@¼Ò¦¡¤U­«¸Õ¤@¹M, ¨Ã§ä¥X±z¦b rc.sysdetect ±Ô­zÀɤ¤©Ò¥Çªº¿ù»~.

µ¥¨ì¥¦¥i¥H¥¿±`¤u§@, ¨ì /lib ¥Ø¿ý¤U°õ¦æ ./makeramdisk. ±N·|ªá´X¬íÄÁ, ¨Ó²£¥Í¤@­Ó ramdisk ¼v¹³Àɵ¹°ß Ūªº NFS «È¤áºÝ. §â²£¥Í¥X¨Ó±o ramdisk image ©ñ¦b³o /lib/ramdisk.gz, ´N³o¼Ë±zªº²ÕºA´Nºü¤F!

¥Ñ Bootprom ¶}¾÷

¦pªG±zÁÙ¥¼§¹¦¨¥¦, ½Ð¦w¸Ë±zªº TCP/IP Bootprom-¬Û®eªº kernel ¼v¹³ÀÉ (¥i¦b³o§ä¨ì /usr/src/linux/arch/i386/boot/bpImage) §Y±z¦øªA¾¹¤Wªº /tftpboot/linux.PX . rc.sysdetect ³o­Ó±Ô­zÀɥΨӪì©l¤Æ±zªº Linux swap ¤Î Linux ¸ê®Æ¤À³Î°Ï. ¦]¬°­n±Ò°Ê¥¦, ¬G½s¿è¦øªA¾¹¤W XXXclean.tab ³o­ÓÀɮרçïÅܤÀ³Î°Ï ªº«¬ºA¥Ñ hex 82 §ï¬° hex 28, ¤Î hex 83 §ï¬° hex 38. ³o¬O¤@ºØ¥¼ª¾ªº¤À³Î°Ï«¬ºA, ¦ý¬O¦w¸Ëµ{§ÇÀɯà§â¥¦·í¦¨¹w³Æ¤À³Î°Ï¨Ó¿ë ÃÑ. ¦b DHCP ªº³]©wÀɤ¤, §â¶}¾÷Àɳ]©w¬° XXXclean , ¨Ï¥¦¯à­«·s «Ø¥ß¤À³Îªí. §O§Ñ¤F¦b­×§ï§¹³]©wÀÉ«á­n­«·s±Ò°Ê DHCP daemon.

³Ì«á, unexport ¥iŪ¼gªº runtime ¥Ø¿ý, ¨Ã export °ßŪªº /export/linux/rootfs ¥Ø¿ý. ­«·s±Ò°Ê«È¤áºÝ, ³o¤@¦¸¨Ï ¥Î¶}¾÷¨Ï¥Î Linux ¿ï³æªº¿ï¶µ. ±zªº¨t²Î²{¦b¤w¬O remote-boot Linux.

¨t²ÎºûÅ@»P§ó·s

¦pªG±z¥H«á·Q§ó·s³nÅé,¦w¸Ë¤@¨Ç¿ù»~­×¥¿ÀɩΦw¥þ©Ê­×¥¿ÀÉ, ½Ð«ö·Ó¤U¦C¨BÆJ:

³o¬O«ü, ±z¥²¶·¦b local ¦w¸Ëªºª¬ºA¤U, ¤~¯à§ó·s±zªº server-based ³]©wªº³nÅé.

3.3 ³]©w DOS 6 ¤Î Windows 3.1

¦b±zªº«È¤áºÝ¹q¸£, ¨Ï¥Î±z³ßÅwªº dos ³nºÐ¶}¾÷ (°O±o¶}¾÷®É, «öªÅ¥ÕÁä¨ú®ø BootPROM ¶}¾÷). ®æ¦¡ ¤Æ±zµwºÐ¤¤ªº dos ¤À³Î°Ï¨Ã¥[¤W /S °Ñ¼Æ, ¨Ï¥¦©ñ¤J§@·~¨t²Î. «Ø¥ß¤@­Ó¦W¬° DOS ªº¤l¥Ø¿ý, §â DOS «þ ¨©¶i¥h. ¦w¸Ë§A©Ò³ßÅwªººô¸ô«È¤áºÝµ{¦¡ (¨Ò¦p Microsoft LanManager), Windows 3.1, µ¥µ¥. ¨Ï¥Î DHCP ³q°T¨ó©w³]©w IP ²ÕºA.

±z¥²¶·«ì´_­ì¥»³Q BootPROM ©Ò¨Ï¥Î±¼ªº°O¾ÐÅéªÅ¶¡ (·í DOS ±Ò°Ê«á³o¨Ç°O¾ÐÅ餣¦A»Ý­n¥Î¨ì°Õ) ¥[¤J¤U­±³o¤@¦æ¨ì±z config.sys ¤ºªº²Ä¤@¦æ:


device=\util\bputil.sys -r

(bputil ¬O¤@­Ó TCP/IP BootPROM ¤u¨ãºÏ¤ù¤¤ªºµ{¦¡). ¤£¥Î©È¨Ï¥Î EMM386 ³Ì¨Î¤Æ±z©Ò¨Ï¥Îªº°O¾ÐÅé, ±z¥i¥H§âºô¸ô¥d ROM ©Ò¦ûªº°Ï°ì¯Ç¤JºÞ²z, ¦]¬°¥¦¦b³o®É¤w¸g¥Î¤£¨ì¤F. ¦ý­n°O±o§âºô¸ô¥d©Ò¨Ï¥Î ªº RAM °Ï¶ô¤£¯Ç¤JºÞ²z, §_«h±z±NµLªk³s±µ¨ì±zªº¦øªA¾¹.

¦pªG±z¤£Åý±zªº«È¤áºÝ¾÷¾¹¨Ï¥ÎµL®Äªºµn¤J¦WºÙ, §â§Ú­Ìªº nobreak.sys pseudo-device ÅX°Êµ{¦¡©ñ¦b±z config.sys ªº¶}ÀY³B¨Ã§â¥H¤U³o¨ÇªF¦è©ñ¨ì±zªº autoexec.bat:


rem -- §Ú­Ì¨Ï¥Î c:\logged ¬°¤@­ÓºX¸¹
del c:\logged >nul
:loginneeded
cls
echo Please type in your login name and password
echo.
net logon *
rem -- the login script ¤w¸g«Ø¥ß¦n c:\logged
if not exist c:\logged goto loginneeded
del c:\logged
rem -- ¨Ï break ¥\¯à¥Í®Ä
echo Yes >NOBRK

­«·s¶}¾÷¨Ã¦b¶}¾÷¿ï³æ¤¤¿ï¾Ü Boot from local hard-disk ¿ï¶µ, ½T©w¥i¥H¶}¾÷.

§â²ÕºA³]©w²¾¨ì¦øªA¾¹

¦^¨ì¦øªA¾¹¤W, «Ø¥ß¤@­Ó¤À¨É¦WºÙ¬° admin , ¥Î¨Ó©ñ¤@¨Ç¨t²ÎºÞ²zªÌ¥ÎªºªFªF. ¦pªG¦øªA¾¹¬O¶] Unix, «Øij±z§â /tftpboot ¤l¥Ø¿ý¥Î softlink ©ñ¤@¥÷¨ì admin , ³o¼Ë±z¥i¥Hª½±µ¥Ñ«È¤áºÝ¶Ç¦^¶}¾÷¼v¹³ÀÉ. ¦b admin ¥Ø ¿ý¤º, «Ø¤@­Ó /utils ¤l¥Ø¿ý¨Ã©ñ¤J¦p¤Uªº¤u¨ã:

±z¤]»Ý­n§â¤@¨Ç¥Î¨Ó²M²zµwºÐ¤Î²£¥ÍÀ£ÁY¼v¹³ªº§å¦¸ÀÉ©ñ¨ì¬Û¦Pªº¥Ø¿ý¤U,³o¨Ç§å¦¸Àɦp¤U:

@echo off
if "%1"=="" goto error
echo >c:\lanman.dos\lmuser.ini
l:\utils\mrzip l:\tftpboot\%1
goto end
:error
echo Usage: MAKEIMG {image-name-without-extension}
:end

²{¦b¦^¨ì±zªº«È¤áºÝ, ¥H¤U±N¥H admin mount ¬°ºÏºÐ¾÷ L: ¬°½d¨Ò§@»¡©ú±µµÛ°õ¦æ±z«Ø¥ßªº§å¦¸ÀÉ, ¦p ªG±zÁÙ¨S°µ¨º¥i¥H«ö¤U¦Cªº«ü¥O°õ¦æ (¤£¤@©w­n¥Îµ´¹ï¸ô®| )


        L:\util\mrzip L:\tftpboot\win31

¤@¤ÀÄÁ¹L«á, ±z¦øªA¾¹¤Wªº /tftpboot ¤l¥Ø¿ý¤U±N¦³¨â­Ó·sÀÉ®×, ¦WºÙ¬° win31.imz, ¬O±zµwºÐ¤º®eªºÀ£ÁY ¼vÅTÀÉwin31.chk, ³o¬O¬ÛÃöªºÀˬdÀÉ (¬O partition boot record ²Ó³¡­×§ï«áªº«þ¨©). ¦b³o¯u¥¿ªº¥Ø¿ý¤º, ¥u ­n«Ø¥ß¤@­Ó bpunzip ªº symbolic link (©Î³o¥Î«þ¨©ªº) ¥B©R¦W¬° win31.P.

±zªºµwºÐ¬°¥Dªº»·ºÝ¶}¾÷³]©w²{¦b¤@¤Á´Nºü°Õ.

´ú¸Õ»·ºÝ¶}¾÷«È¤áºÝ

²{¦b­«·s±Ò°Ê±zªº«È¤áºÝ¨Ã¦b¶}¾÷¿ï³æ¤¤¿ï DOS and Windows 3.1 ªº¿ï¶µ. bpunzip ³oµ{¦¡±N¶Çµ¹±z¤@ ¨Ç¥¦²£¥Í¼v¹³ªºªí®æ°T®§, ¨Ã¦Ûºô¸ô¤U¸ü¾ã­Ó¶}¾÷¼v¹³ÀÉ (¦]³o¬O²Ä¤@¦¸¥¦¬Ý¨ì³o­Ó¶}¾÷¼v¹³ÀÉ). ³o ±N·|ªá±¼¤@¤ÀÄÁ¥ª¥k. ±µµÛ¥¦·|¸ÑÀ£ÁY³o­Ó¼v¹³¨ì DOS ¤À³Î°Ï, ¨Ã¥Ñ¥L¶}¾÷. ³o´N¬O§A­nªº, ±zªº»·ºÝ¶}¾÷«È¤áºÝ§¹¦¨°Õ !

¤U¤@¦¸±z­«·s¶}¾÷, ¥¦¥u·|¸ÑÀ£©Ò³o­Ó¼v¹³ÀÉ, ¤j·§¦b 30 ¬í¤º§¹¦¨.

Âà´«³]©wÀɵ¹¨ä¥L¾÷¾¹

¦pªG±z­n¬°¨C¥x¾÷¾¹­×¥¿¤@¨Ç³]©w (¨Ò¦p¹w³]¦Lªí¾÷), ©ÎªÌ¦pªG±z»Ý­nÅܧó¤@¨Ç¤£¯à³z ¹L DHCP ³q°T¨ó©w­×§ïªººô¸ô³]©w, ±z¥i¥H¨Ï¥Î unzipreg.exe µ{¦¡¨Ó³B²z, ¥¦¥²¶·©ñ¨ì«È¤áºÝªº autoexec.bat (­ì©lµ{¦¡½X¦b ³o). ³oµ{¦¡±NŪ¨ú¤@­Ó¥Ñ bpunzip ²£¥Íªº¯S®íÁôÂÃÀÉ®×, ¦WºÙ¬° BOOTP.ANS, ¥¦ªº¤º®e¬O¥Ñ¦øªA¾¹³z¹L BOOTP/DHCP ³q°T¨ó©w¦^¶Çªº. ±µµÛ, ¥¦±NŪ¨ú²Ä¤@­Ó°Ñ¼Æ©Ò«üªºÀɮצW ºÙ, ÂÇ¥Ñ BOOTP/DHCP ªº¦^À³¤º®e, ¥H UNZIPREG: ¼ÐÅÒ¦W : ³oºØ®æ¦¡¨ú¥N©Ò¦³ªº¦r¦ê, ¨Ã§âµ²ªG¼g¤J ²Ä¤G­Ó°Ñ¼Æ©Ò«üªºÀɮצWºÙ. ¨Ò¦p, ¦p¹L±z¦³­ÓÀɮצW¬° input.bat ¤º®e¬°:


set hostname=UNZIPREG:HOSTNAME:
set domainname=UNZIPREG:DOMAINNAME:
set gateway=UNZIPREG:ROUTER:
set subnetmask=UNZIPREG:SUBNET:
set printer=UNZIPREG:T180:

¦Ó±z°õ¦æ¤F³o­Ó«ü¥O

        unzipreg input.bat output.bat

±z±N±o¨ì¤@­ÓÀɮצW¬° output.bat ¥]§t¤º®e:

set hostname=pc7179
set domainname=unige.ch
set gateway=129.194.76.1
set subnetmask=255.255.252.0
set printer=laserwriter1

°²³]±zªº DHCP ³]©wÀÉ©w¸q³o¥x¾÷¾¹¦W¬° pc7179, »â°ì¦WºÙ¬° unige.ch, µ¥µ¥, ¦Ó option-180 ¼Ð°O¬O laserwriter1.

¤]¥i¥H³z¹L³oºØµn¤J­×§ï Windows ®à­±. §Ú­Ì¼g¤F¤@­Ó¤pµ{¦¡ simple program ¥Î¨Ó¼W¥[ PROGMAN.INI ÀÉ®×, ¤¹³\¬°¤@ ¸s¨Ï¥ÎªÌ³]©w¦P¼Ëªº®à­±.

¦b¬°¥ô¦ó¤@¥x«È¤áºÝ¾÷¾¹³]©w«á, §O§Ñ¤F¨Ï¥Î mrzip ­«·s«Ø¥ßºÏºÐ¼v¹³ÀÉ¥Hºû«ù±zªº©Ò¦³Åܧó.

3.4 ³]©w Windows 95

¦b¦¹¥÷¤å¥ó¥ý«eªºª©¥», §Ú­Ì¨Ï¥Î¹L·L³n¤½¥qªº Windows 95 server-based installation, ¦ý¬O¥Î³o¤èªk¤Ó ¹Lµh­W¤S¤£¬O¨º»òªº¦³»ù­È:

¦]¦¹´X­Ó¤ë«e§Ú­Ì©ñ±ó³o¥÷¿ù»~¦Ê¥Xªº¸ê®Æ (±z¤´µM¥i¦b³o§ä¨ì http://cuiwww.unige.ch/info/pc/remote-boot/win95old/win95old.html) µM«á´«¨ì§Ú­Ì³o­Ó·sªº disk-based »·ºÝ ±Ò°Êªº·§©À. °ò¥»¤W, ³oºØ Windows 95 ¦w¸Ë¤èªk´N¸ò¦w¸Ë DOS¤@¼Ë®e©ö.

«Ø¥ß¤@¥x¿W¥ßªº«È¤áºÝ

¦b«È¤áºÝ¥Î DOS ¶}¾÷, ¦pªG±z¤w¸g³]©w¦n DOS/Windows 3.1 ¨º´NÀH«K¥Ñ¶}¾÷¿ï¶µ¤¤¿ï¤@­Ó, ©ÎªÌ¥Î ¤@­Ó³nºÐ¶}¾÷ («ö space Áä¥i¥H¸õ¹L BootPROM). ¨Ï¥Î²Ä¤@ºØ¤èªkªºÀuÂI¬O§A¤w¸g¦³¤@¥x¥i¨Ï¥Îºô¸ô ªº«È¤áºÝ, ¨Ã¥B¥u»Ý­n§â Windows 95 ªº¦w¸ËºÏ¤ù©ñ¨ì±zªº¦øªA¾¹¤Wªº¬Y­Ó¦a¤è.

¦pªG±z¥Ñ³nºÐ¶}¾÷, ±zªº²Ä¤@¨B¬O¦w¸Ë§@·~¨t²Î, ¤èªk¬O®æ¦¡¤Æ±zµwºÐ¾÷ªº DOS ¤À³Î°Ï¨Ã¥Î /S ªº¿ï ¶µ. ¦pªG±z¨Ï¥Î DOS/Windows 3.1 ªº²ÕºA, ¨º»ò­º¥ý±z­n²M°£¤@¨Ç±z¦w¸Ë Windows 95 ®É¤£»Ý­nªºÀÉ ®×¥H¤Î¤@¨Ç¦b±z³Ì«áªº¶}¾÷¼v¹³¤¤¤£»Ý­nªºÀÉ®× (¨Ò¦p, WINDOWS ³o­Ó¥Ø¿ý).

¶}©l¦w¸Ë Windows 95, ·ÓµÛ¨BÆJ§â¥¦¸Ë¦b local . ¦w¸Ë³Ì«á, µ{¦¡·|­«·s±Ò°Ê±zªº«È¤áºÝ¹q¸£, °µ¤@¨Ç ³]©w¨Ã¦A­«·s±Ò°Ê¤@¦¸. ³o´X¦¸ªº­«·s¶}¾÷, ±z¥²¶·¦A±zªº¶}¾÷¿ï³æ¿ï¾Ü Boot from local hard-disk ¿ï ¶µ. µ¥¨ì±z³]©w¦n±z©Ò»Ý­nªºÅX°Êµ{¦¡«á, ±z¥i¥H°õ¦æ defrag °µ§¹¾ãªºµwºÐ­«²Õ (¥]§t­«²Õ¥¼¨Ï¥Î±o ºÏºÐªÅ¶¡).

±z©Î³\¤]·Q­n¨Ï¥Î BootPROM ©Ò¥e±¼ªº°O¾ÐÅé, ¥u­n¦b config.sys ²Ä¤@¦æ¥[¤W :


device=\util\bputil.sys -r

(bputil ¬O©ñ¦b TCP/IP Bootprom ¤u¨ãºÏ¤ù¤¤). ¤£¦P©ó DOS, ±zÁ×»ÝÁקK¦b Windows 95 ¤¤¨Ï¥Î EMM386 .

¦pªG±z­n¨Ï¥Î Windows 95 OSR2 (©Î¥s MSWIN 4.1, ©ÎªÌ Windows 95 service pack 1, ©ÎªÌ Windows 95 with Internet Explorer), ±z­n¦b MSDOS.SYS ¤¤ªº [Options] ¬q¥[¤@¦æ (¨S¿ù¥¦¬O¤å¦rÀÉ):


AUTOSCAN=0

³o¼Ë¥i¥H¨Ï Windows ª¾¹D±z¶}¾÷®É¤£¦Û°Ê±Ò°Ê ScanDisk .

·í©Ò¦³ªº³nÅé³£©ñ¦b¦øªA¾¹®É, ¦pªG±z­n´î»´ºô¸ô¤Î¦øªA¾¹ªº­t¾á (³o±N¼W¶i±zªº¨t²Î®Ä²v) , ±z¥i ¥H¦Ò¼{¦w¸Ë³o®M¬Û·í¤£¿ùªº Shared LAN Cache,¥Ñ Measurement Techniques, Inc ¥Í²£ªº (°Ñ¦Ò http://www.lancache.com). ³o®M³nÅé¦b¨C¥x«È¤áºÝ¹q¸£°õ¦æ, ¥¦·|¹ï©Ò¦³±qºô¸ô¤W¨ú±oªº¸ê®Æ©ñ¦b°Ï °ì©ÊªºµwºÐ¤¤§Ö¨ú. §Y¨Ï¹³ MS-Office ¦b±z²Ä¤G¦¸°õ¦æ®É¤]·|§ó§Ö... ±zªº¨C¥x«È¤áºÝ¹q¸£³£­n¦³¤@ ¥÷ª©Åv, ¤£¬O¥¦ÁÙ¤£¬O«Ü¶Q, ³o®a¤½¥q¹ï©ó¤j±M°|®Õ¦³¯S´f»ù®æ. §ó¦nªº¬O±z¥i¥H¨ì¥L­Ìªººô­¶¤U¸ü §K¶Oªºµû¦ôª©.

§â³]©wÀɲ¾¨ì¦øªA¾¹

¦øªA¾¹ºÝ, ¦pªG±z¥Ø«eÁÙ¨S¦³«Ø¤@­Ó¦W¬° admin ªº¥Ø¿ý, ¨º´N«Ø¤@­Ó. ³o±N©ñ¤@¨Ç¨t²ÎºÞ²z­n¥ÎªºªF ¦è. ¦pªG¦øªA¾¹¬O Unix ªº¾÷¾¹, ²{¦b§â admin ¥Ø¿ý¥Î softlink ¨ì /tftpboot ¤l¥Ø¿ý¤U, ³o¼Ë±z¥i¥H¥Ñ«È¤áºÝ ª½±µ§â¼v¹³ÀÉ©ñ¨ì³o. ¦b admin ¥Ø¿ý¤º, «Ø¥ß¤@­Ó /utils ¤l¥Ø¿ý¨Ã§â¤U¦C¤u¨ã©ñ¶i¥h:

¦b±zªº«È¤áºÝ¶}­Ó MS-DOS µøµ¡, ¥i¥H§â±zªº admin ¥Îºô¸ôºÏºÐ¾÷±¾¦b L: ¨Ã°õ¦æ¤U¦Cªº«ü¥O (¤£¤@ ©w­n¨Ï¥Îµ´¹ï¸ô®|, ¦h¥´´X­Ó¦rµL®`°Õ :-)


        L:\util\mrzip L:\tftpboot\win95

³o±N¦b¦øªA¾¹ªº /tftpboot ¤l¥Ø¿ý¤U, ²£¥Í¨â­Ó·sÀÉ®×, ¦W¬° win95.imz, ¤@­Ó±z«È¤áºÝµwºÐ¾÷ªºÀ£ÁY¼v¹³ ¤Î win95.chk, Àˬd¥ÎªºÀÉ®× (¨ä¹ê¤º®e¬O§â¶}¾÷¤À³Î°Ï°µ¨Ç³\ªºÅÜ°Ê). ¯u¥¿ªº¥Ø¿ý, ¥u­n«Ø­Ó¦W¬° win95.P ªº²Å¸¹³sµ²¨ì bpunzip (©ÎªÌ«þ­I¤@¥÷) .

²{¦b±zªº Windows 95 »·ºÝ¶}¾÷²ÕºA´N§¹¦¨°Õ.

´ú¸Õ»·ºÝ¶}¾÷«È¤áºÝ

²{¦b­«·s±Ò°Ê±zªº«È¤áºÝ¹q¸£¨Ã±q¶}¾÷¿ï³æ¤¤¿ï¾Ü Windows 95 . bpunzip µ{¦¡±Nµ¹±z¤@¨ÇÃö©ó¥¦§ó·s ¼v¹³ªíªº°T®§, ¨Ã¥B±qºô¸ô¤U¸ü¾ã­Ó¶}¾÷¼v¹³ (¦pªG¥¦¬O²Ä¤@¦¸¬Ý¨ì³o­Ó¶}¾÷¼v¹³). ³o¤j¬ù·|ªá±¼¨â¤ÀÄÁ. ±µµÛ¥¦±N¸ÑÀ£ÁY³o­Ó¼v¹³Àɨì DOS ¤À³Î°Ï, ¨Ã±Ò°Ê¥¦. ´N³o¼Ë, ±zªº»·ºÝ¶}¾÷«È¤áºÝ´N§Ç°Õ! ¤U¤@¦¸±z­«·s¶}¾÷, ¥¦¥u·|¸Ñ¶}³o­Ó¼v¹³ÀÉ, ¤j·§·|ªá 40 ¬í.

Âà´«¬°¨ä¥¦¤À¨­ªº³]©w

Windows 95 »P Windows 3.1 ³Ì¤jªº¤£¦P¬O¥[¤J¤F§Y´¡§Y¥Îªºµ{¦¡½X, §Y¦Û°Ê°»´ú±zªºµwÅé³]³Æ. ¥¦¥» ¨­µLªÙÃa³B, ¦ý°ÝÃD¬O¥X¦b¥¦¤Ó¹LÆF±Ó, ¦Ó¥B¦³®É«á·|¥XÂñ.

¦pªG±z¸ÕµÛ¥Î¦P¼Ëªº¶}¾÷¼v¹³¥h±Ò°Ê¥t¤@¥x«È¤áºÝ¾÷¾¹, ±z±N¦b¦¬¨ì¤@°ï Windows °»´ú ¨ì·sªºµwÅé ³]³Æªº°T®§: ¤@¤ù·sªº­µ®Ä¥d, ¤@´Ê·sªºµwºÐ¾÷, ¤@¤ù·sªººô¸ô¥d, ©ÎªÌ¤@°¦·sªº·Æ¹«... ·|³o¼Ëªº­ì ¦]¦³¤G:

¨Æ¹ê¤W , ¦pªG Windows 95 ªº§Y´¡§Y¥Î¥\¯à¥i¥H¥¿±`¤u§@ªº¸Ü, ¦Û°Ê°»´úÅܧ󪺵wÅé³]³Æ¨Ã¤£·|¥X°Ý ÃD, ©Ò¥H¦pªG§Y´¡§Y¥Î¥\¯à¥¢®Ä®É, °ÝÃD´N¨Ó¤F. ¨Ò¦p, Windows 95 ¹ï¤W§Ú­ÌªºÃ¹§Þ PS2 ·Æ¹«®É´N¤£ ¯à§Y´¡§Y¥Î, §óÁVªº¬O·Æ¹«´N®ø¥¢¤F. ­n¸Ñ¨M³oÃþ°ÝÃD¤èªk´N¬O, ºÉ¥i¯à¨Ï¥þ³¡¹q¸£¦³¬Û¦Pªº³]³Æ.

±zµLªkÁקKªº°ÝÃD¬O¨C¥x¹q¸£ªººô¸ô¥d. «Ü¤£©¯ªº, µ¹§Ú­Ìªº SMC EtherEX ¨Ï¥Îªº§Y´¡§Y¥Îªºµ{¦¡ ½X·|¨Ï¹q¸£·í¾÷. °ß¤@ªº¸Ñªk¬O¨Ï Windows 95 ¬Û«H¥¦¤w¸gª¾¹D¦³³o¤ùºô¸ô¥d, ¥B¤£»ÝIJ°Ê§Y´¡§Y¥Î ¾÷¨î. ³o­Ó§Þ¥©´N¬O³z¹L¶}¾÷¦Û°Ê°õ¦æÀÉ autoexec.bat , ¦Û°Êªº§âÃö©ó³o¤ùºô¸ô¥dªº³]©w­È¥[¤J Windows 95 ªº¨t²Îµù¥U¸ê°T. ­nª`·Nªº¬O¨Ï¥Î PCI ªººô¸ô¥d¨Ã¤£»Ý­n³o­Ó§Þ¥©.

¨ì±zªº«È¤áºÝ¹q¸£, ½s¿è¶}¾÷¦Û°Ê°õ¦æÀÉ autoexec.bat ¨Ã¥[¤J¤U¦C´X¦æ:


rem --- ­×¥¿ Windows ¨t²Îµù¥U¸ê°T¥HÁקK§Y´¡§Y¥Î¥\¯à°»´ú
cls
unzipreg c:\lib\smc.reg c:\temp\smc.reg
regedit /L:c:\win95\system.dat /R:c:\win95\user.dat c:\temp\smc.reg
echo.
del c:\temp\smc.reg

regedit ¬O¼Ð·Ç Windows 95 ªºµ{¦¡. ¦pªG±z¦b Windows 95¤U°õ¦æ¥¦,¥¦¥i¥HÀ°±z¬yÄý±zªº¨t²Îµn¿ý¸ê°T, ©Î ªÌ¦pªG±z¦b DOS ¤U°õ¦æ¥¦, ¥¦¥i¥H¹ï±zªº¨t²Îµn¿ý¸ê°T°µ¤@¨Ç²³æªº­×¥¿. unzipreg.exe ¬O¤@­Ó¦Û»sªº¤pµ{¦¡, ±z¥i¥H©ñ¦b±zªº¸ô®|¤Uªº¥ô¦ó¦a¤è (­ì©lµ{¦¡¦Ü¦b ³o). ¥¦±NŪ¨ú¤@­Ó¥Ñ bpunzip ©Ò²£¥Íªº¯S§OÁôÂÃÀÉ®×, ¦WºÙ¬O BOOTP.ANS, ¥¦¥]§t¨Ó¦Û¦øªA¾¹ªº­ì©l BOOTP/DHCP ¦^À³¸ê°T. µM«á, ¥¦±NŪ¨ú²Ä¤@­Ó°Ñ¼ÆªºÀÉ®×(c:\lib\smc.reg), µM«á¥H BOOTP/DHCP ¦^À³ªº¸ê®Æ¨ú¥NÀɮפº©Ò¦³¥H UNZIPREG:tagname: ¬°®æ¦¡ªº¤º®e, ±µµÛ¼g¤J²Ä¤G­Ó°Ñ¼ÆªºÀÉ®×(c:\temp\smc.reg).

¦b lib ¤l¥Ø¿ý¤U, §Ú­Ì¦³­Ó¦W¬° smc.reg ªºÀɮר䤺®e¦p¤U:


REGEDIT4

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0]
"HardwareID"="*SMC8416,ISAPNP\SMC8416"
"HWRevision"="1.0.10"
"DeviceDesc"="SMC EtherEZ (8416)"
"Class"="Net"
"Driver"="Net\\0001"
"CompatibleIDs"="*SMC8416"
"Mfg"="SMC"
"ConfigFlags"=hex:10,00,00,00

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0\Bindings]
"MSTCP\\0001"=""

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C0\LogConfig]
"0000"=hex:00,04,00,00,00,20,00,00,10,00,00,00,04,00,00,00,00,00,00,00,a8,0e,\
  00,00,20,00,00,00,02,00,00,00,01,00,0c,00,00,00,00,00,00,00,00,00,e0,ff,20,\
  00,40,02,ff,03,00,00,04,03,2c,00,00,00,01,00,00,00,01,00,14,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,e0,ff,ff,00,20,00,00,00,00,0c,00,ff,ff,0f,00,00,\
  00,00,00,2c,00,00,00,01,80,00,00,01,00,14,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,e0,ff,ff,00,80,00,00,00,00,0c,00,ff,5f,10,00,00,00,00,00,00,00,00,\
  00

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1]
"HardwareID"="*SMC8416,ISAPNP\SMC8416"
"HWRevision"="1.0.10"
"DeviceDesc"="SMC EtherEZ (8416)"
"Class"="Net"
"Driver"="Net\\0001"
"CompatibleIDs"="*SMC8416"
"Mfg"="SMC"
"ConfigFlags"=hex:10,00,00,00

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1\Bindings]
"MSTCP\\0001"=""

[HKEY_LOCAL_MACHINE\Enum\ISAPNP\SMC8416\UNZIPREG:MACID:C1\LogConfig]
"0000"=hex:00,04,00,00,00,20,00,00,10,00,00,00,04,00,00,00,00,00,00,00,a8,0e,\
  00,00,20,00,00,00,02,00,00,00,01,00,0c,00,00,00,00,00,00,00,00,00,e0,ff,20,\
  00,40,02,ff,03,00,00,04,03,2c,00,00,00,01,00,00,00,01,00,14,00,00,00,00,00,\
  00,00,00,00,00,00,00,00,00,e0,ff,ff,00,20,00,00,00,00,0c,00,ff,ff,0f,00,00,\
  00,00,00,2c,00,00,00,01,80,00,00,01,00,14,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,e0,ff,ff,00,80,00,00,00,00,0c,00,ff,5f,10,00,00,00,00,00,00,00,00,\
  00

³o­ÓÀɮפ@¶}©l¥Ñ Windows 95 ªº regedit ²£¥Í. §Ú­Ì§âÃö©óºô¸ô¥dªº³]©w³¡¥÷¿é¥X¦¨¤@­ÓÀÉ®× ( HKEY_LOCAL_MACHINE/Enum/ISAPNP/SMC8416) µM«á¥Î UNZIPREG:MACID: °O¸¹¨ú¥Nºô¸ô¥dªºµwÅé¦ì§}. ·í§Ú ­Ì¦b³oÀɮפ¤°õ¦æ unzipreg , ¥¦·|¦Û°Êªº¥Hºô¸ô¥d¯u¹êªºµwÅé¦ì§}­È¨ú¥N§Ú­Ì©Ò³]©wªº°O¸¹. ª`·N³o ¸Ì¦³­Ó¼Æ¦r¦b MACID ¤§«áªº¦³®É¬O C0 ¦³®É¬O C1. §Y¨Ï©ñ¤@­Ó¤£¦s¦bªººô¸ô¥d¦b³o­Óµn¿ýÀɤ¤¤£ ·|¥XÂñ, §Ú­ÌÁÙ¬O§â¨â¶µ³£©ñ¶i¥h.

ÁÙ­n¤@¦¸£², ³o¾ã­Ó§Þ¥©¹ï PCI ºô¸ô¥d¦Ó¨¥¨Ã¤£»Ý­n. ¶¶«K¤@´£ªº¬O, §Ú­Ì¥i¥H¥Î¦P¼Ëªº¤èªk¦Û°Êªº °t¸m¥D¹q¸£¦WºÙ, ·í Windows 95 ¤£¯à³z¹L DHCP ¨úªº³]©w®É. §Ú­Ì¥u¶·¥[¤J¤U¦C´X¦æ¨ì§Ú­Ìªº smc.reg Àɮפ¤:


[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\VNETSUP]
"ComputerName"="UNZIPREG:HOSTNAME:"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\VxD\MSTCP]
"HostName"="UNZIPREG:HOSTNAME:"

[HKEY_LOCAL_MACHINE\System\CurrentControlSet\control\ComputerName\ComputerName]
"ComputerName"="UNZIPREG:HOSTNAME:"

±z¤]¥i¥H¨Ï¥Î¦P¼Ëªº¾÷¾¹«ö·Ó¾÷¾¹ªº«¬ºA¸ò¦ì¸m¨Ó³]©w¨ä¥LªºÀô¹Ò. ³o­Ó½d¨Ò, ±z¤@¼Ë¥i¥H°Ñ¦Ò DOS/Windows 3.1 ¨º¤@¬qªº±Ô­z.

¦bÅܧó¥ô¦ó«È¤áºÝ¾÷¾¹ªº³]©w«á, ¤d¸U§O§Ñ¤F¥Î mrzip ­«·s«Ø¥ßºÏºÐ¼v¹³, §_«h±z©Ò¦³ªº³]©w³£·|¤£ ¨£.

¨Ï¥Î³o­Ó¨t²Îµn¿ý¸ê°Tªº¤p§Þ¥©, ±zªº³]©w¸ê°T±N¥i¥H¥¿±`ªºÂಾ¨ì©Ò¦³ªº¾÷¾¹. ¦pªG±zµLªkÁקK Windows ¥h°»´ú¤@¨Ç¾÷¾¹¤Wªº·sµwÅé, ¸ÕµÛ¥Ñ³o¥x¾÷¾¹­«·s«Ø¥ßºÏºÐ¼v¹³ÀÉ. ¥]§t°w¹ï³o¥x¾÷¾¹©Ò ³]©wªºµn¿ý¸ê°T¤]­n©ñ¤JºÏºÐ¼v¹³¤¤, ¦pªG¶¶§Qªº¸Ü¥i¥H¸Ñ¨M³o­Ó°ÝÃD.

·íºÏºÐ¼v¹³ÀɸÑÀ£ÁY®É·|ªá¤@¨Ç®É¶¡ (³q±`¬O 20-30 ¬í.), ±z¥i¥Hµ¹¨Ï¥ÎªÌ¤@¨Ç°T®§©ÎªÌ´N©ñ±iº}º} ªº¹Ïµ¹¥L­Ì¬Ý. ³o­Ó¤u§@¥i¥H«Ü²³æªº§¹¦¨ (¬Ý¬Ý¤U¤@½g¤å¥óªº BPUNZIP ).

¦pªG±z·Q±o¨ì§ó¦h³]©w Samba ªº¸ê°T»P¤u¨ãµ¹»·ºÝ¶}¾÷ªº¹q¸£¨Ï¥Î, §Ú­ÌÁÙ¼g¤F¥t¤@¥÷¤å¥ó. ¥i¥H ¬Ý¬Ý http://cuiwww.unige.ch/info/pc.


Next Previous Contents