- ãããã¯ãŒã¯ã§ã¹ã¿ãã¯ããŠãããããåã·ã¹ãã ãŠãããã§å£ããŠããªãUSBã³ãã¯ã¿ãæ¢ãå¿ èŠã¯ãããŸããã
- ã·ã§ãŒãããã³ã³ã¿ã¯ãã§ãã©ãã·ã¥ãã©ã€ããçŒãå±éºãåããªãã§ãã ããã
- USBã³ã³ãããŒã©ãŒãæžã蟌ãŸããŠããã³ã³ãã¥ãŒã¿ãŒïŒCD-ROMããã®ããŒãã¯èæ ®ãããŠããªãïŒãããã³BIOSã§USBããã€ã¹ããã®ããŒããèš±å¯ãããŠããªãã³ã³ãã¥ãŒã¿ãŒã§ããŒãããå¯äžã®æ¹æ³ã
- ãã¡ãŒã ãŠã§ã¢ããã©ãã·ã¥ããããã®æãŸããæ¹æ³ã
æ¬ ç¹ã®äžã§ããäŒéé床ã®äœäžãšãããŒããã€ã³ãã®å€æŽïŒè£è¶³ïŒã®è€éãã¯ããããã¯ãŒã¯è² è·ã®æ©èœã«åœ±é¿ãäžããããšã«æ°ä»ãããšãã§ããŸãã ããŸããšããŠãUSBã¢ãã çµç±ã§ç¬èªã®ã€ã³ã¿ãŒãããã¢ã¯ã»ã¹ã修埩ãµãŒããŒã«è£ åã§ããŸããããã¯ããŠã€ã«ã¹ã«ææããã³ã³ãã¥ãŒã¿ãŒãããŒã«ã«ãããã¯ãŒã¯äžã®ä»ã®ã³ã³ãã¥ãŒã¿ãŒããéé¢ããããã«å¿ èŠã§ãã ãããã£ãŠãã«ãŒã¿ãŒãå¿ èŠã§ãã
- OpenWrtããã©ãã·ã¥ããå¯èœæ§ã
- USBã³ãã¯ã¿ä»ãã
- ã³ã³ãã¯ããµã€ãºã
æåŸã®é ç®ã䜿çšãããšããããã¯ãŒã¯ãªã©ãããå Žæã§ã¯ãªããä¿®çãµãŒããŒãäœæ¥ããããå Žæã«ç°¡åã«è»¢éã§ããŸãã ãã§ã«è¿°ã¹ãããã«ãããŒãã¹ãšããŠãUSBãããUSBãã©ãã·ã¥ãã©ã€ããSIMã«ãŒããåäœããUSBââã¢ãã ãå¿ èŠã«ãªããŸãã å¥åŠã«æãããããããŸããããã¢ãã ã®éžæã¯é£ããã¿ã¹ã¯ã§ããããããã©ã°ã©ã1ã«åŸã£ãŠ100ïŒ ã®ç¢ºå®æ§ã¯ãããŸããã TL-WR702NïŒãŸãã¯ããããªãŒå èµã®ããé«äŸ¡ãªTP-Link TL-MR3040ã è³Œå ¥ããåã«ãããã€ã¹ã®ããŒãžã§ã³ã«æ³šæããŠãã ãã ããµããŒããããŠããããŒãžã§ã³ã¯ãã¡ãã«ãããŸã ã
OpenWrtã®å ¬åŒããã¥ã¡ã³ãã¯çœ®ãæããŸããã®ã§ãè³Œå ¥ããããã€ã¹ã®ããŒãžã«ç§»åããŠãOpenWrtã®ã€ã³ã¹ããŒã«æé ããèªã¿ãã ãããååãšããŠãã¢ãã«ã®ãã¡ãŒã ãŠã§ã¢ãããŠã³ããŒãããããŠã³ããŒããããã¡ã€ã«ãWebã€ã³ã¿ãŒãã§ã€ã¹çµç±ã§æŽæ°ïŒã€ã³ã¹ããŒã«ïŒããã ãã§ååã§ãã ããããããã©ãã·ã¥ããŠããã«ãŒã¿ãŒãåèµ·åããåŸãWebã€ã³ã¿ãŒãã§ã€ã¹ã倱ãããŸãããããã¯ã«é¥ã£ããã PuttyãããŠã³ããŒãããŠã³ã³ãœãŒã«ãæäœãããããªãã§ãã ããã 1ã€ã®éåžžã«éèŠãªãã€ã³ã-ãããªãäœæ¥ã®åã«ãã€ã³ã¿ãŒãããã¢ã¯ã»ã¹ãæ§æããŸãã ãŸããã·ã¹ãã ããã©ãã·ã¥ãã©ã€ãïŒextrootïŒã«è»¢éããŠãããäœæ¥ã«å¿ èŠãªãã¹ãŠã®ããã±ãŒãžãã€ã³ã¹ããŒã«ããŸãã
転éã®ããã»ã¹ã¯ããã¥ã¡ã³ãã«è©³ãã説æãããŠããããã®ä»¶ã«é¢ããèšäºããããŸã ã ç§èªèº«ãã次ã®ããšããå§ãããŸã
- / overlayãªãã·ã§ã³ã䜿çšããŸãã
- ext2ãã¡ã€ã«ã·ã¹ãã ã䜿çšããŸãïŒopkg install kmod-fs-ext4ïŒã
- ãã®èšäºã¯ããã§ã«ããŒã¯ããããã©ãã·ã¥ãã©ã€ãã®äœ¿çšãæå³ããŠããããšã«æ³šæããŠãã ããã
ãã©ãã·ã¥ãã©ã€ããäºåã«ããŒãã£ã·ã§ã³åå²ããæ©äŒããªãå ŽåïŒã«ãŒãããŒãã£ã·ã§ã³ã®äžã«128MB以äžãã¹ã¯ããããå ŽåïŒã次ã®ããã±ãŒãžãã€ã³ã¹ããŒã«ããå¿ èŠããããŸãïŒfdiskãe2fsprogsãswap-utilsã ãããŠãããã«å ã«é²ã¿ãŸã-ããã§ãåžæãããã¹ãŠã®ããã±ãŒãžãã€ã³ã¹ããŒã«ã§ããŸãã Webã€ã³ã¿ãŒãã§ã€ã¹ãå¿ èŠãªå Žåã¯ã ãã¡ãã«ã¢ã¯ã»ã¹ããŠãã ãããSambaãµãŒããŒãã»ããã¢ããããŠãæšæºã®Microsoft File and Printer AccessãµãŒãã¹ã䜿çšããŠãµãŒããŒã«ãã¡ã€ã«ãã¢ããããŒãã§ããããã«ããŸãã ãããã¯ãŒã¯çµç±ã§ã¢ã¯ã»ã¹ããããã®ããã©ã«ãã®ã«ãŒã«ãããããããã«èšå®ãããŠããå ŽåããŸãããã¡ã€ã¢ãŠã©ãŒã«ã§å¿ èŠãªããŒããéããŸãã ãããè¡ãã«ã¯ã次ã®ã»ã¯ã·ã§ã³ã/ etc / config / firewallãã¡ã€ã«ã«å«ããå¿ èŠããããŸãã
config 'rule' ãªãã·ã§ã³ 'src' 'lan' ãªãã·ã§ã³ 'proto' 'udp' ãªãã·ã§ã³ 'dest_port' '137-138' ãªãã·ã§ã³ 'target' 'ACCEPT' config 'rule' ãªãã·ã§ã³ 'src' 'lan' ãªãã·ã§ã³ 'proto' 'tcp' ãªãã·ã§ã³ 'dest_port' '139' ãªãã·ã§ã³ 'target' 'ACCEPT' config 'rule' ãªãã·ã§ã³ 'src' 'lan' ãªãã·ã§ã³ 'proto' 'tcp' ãªãã·ã§ã³ 'dest_port' '445' ãªãã·ã§ã³ 'target' 'ACCEPT'
ãã¡ã€ã¢ãŠã©ãŒã«ã®èšå®ã®è©³çŽ°ã«ã€ããŠã¯ããã¡ããã芧ãã ããã 次ã«ããªããžããªã§äœ¿çšå¯èœãªsambaã®ããŒãžã§ã³ã確èªããŸãããã
opkg list | grep samba
åãåã£ãååã®ããã±ãŒãžãã€ã³ã¹ããŒã«ããŸãã ããã±ãŒãžã®æäœã«é¢ãã詳现æ å ±ã¯ãã¡ãã§ãã Webã€ã³ã¿ãŒãã§ã€ã¹ãä»ããŠSambaãµãŒããŒã管çããå Žåã¯ãé©åãªã¢ãžã¥ãŒã«ãã€ã³ã¹ããŒã«ããŸãã
opkg install luci-app-samba
説æãå¿ èŠã§ãã ãŸãããŠãŒã¶ãŒã¬ãã«ã§ã¢ã¯ã»ã¹ãã代ããã«ãWindows XPã§ã®åçŽãªãã¡ã€ã«å ±æã«ã»ãŒå¯Ÿå¿ãããªãœãŒã¹ã¬ãã«ã«åãæ¿ããããšããå§ãããŸãã 次ã«ãæ§æãã¡ã€ã«ã¯ã«ãŒã¿ãŒãèµ·åãããã³ã«äœæãããããã/
/etc/samba/smb.conf.template
ãã³ãã¬ãŒããç·šéããããšãã
/etc/samba/smb.conf.template
ãŸãã ãã®å Žåãã»ãã¥ãªãã£ãã©ã¡ãŒã¿ã®ãŠãŒã¶ãŒå€ãå ±æå€ã«çœ®ãæããå¿ èŠããããŸãã
/mnt/pxeboot
ãã£ã¬ã¯ããªãååšããäŸãèããŠã¿ãŸãããïŒã¯ããåæããŸãã/ mntãã©ã«ããŒã¯ããã€ã¹ãããŒãã£ã·ã§ã³ãªã©ãããŠã³ãããããã«äœ¿çšãããŸãããopenwrtã§ã¯ãããã¯ãŒã¯ãªãœãŒã¹ã«æé©ãªãã£ã¬ã¯ããªã§ãïŒããã®ãããªãã£ã¬ã¯ããªããªãå ŽåãäœæããŸã圌ã®ããŒã ïŒ
mkdir -p /mnt/pxeboot
ã»ãã¥ãªãã£å¯Ÿçã«æºæ ããããã«ãnobodyãŠãŒã¶ãŒã®ä»£ããã«ã²ã¹ãã¢ã¯ã»ã¹ãçºçãããããnobodyãŠãŒã¶ãŒãpxebootãã©ã«ããŒã«ããå¿ èŠããããŸãã
chown nobody /mnt/pxeboot
次ã«ã
etc/config/samba
ãã¡ã€ã«ã«sambashareã»ã¯ã·ã§ã³ãèšè¿°ããŸãã
... config 'sambashare' ãªãã·ã§ã³ 'read_only' 'no' ãªãã·ã§ã³ãååããå ±æã ãªãã·ã§ã³ 'path' '/ mnt / pxeboot' ãªãã·ã§ã³ 'guest_ok' 'yes'
次ã®ã³ãã³ãã䜿çšããŠããµãŒãã¹ããªã³ã«ããŠéå§ããŸãã
/etc/init.d/samba enable /etc/init.d/samba start
Sambaã®æ§æã«ã€ããŠã¯ã ããã¥ã¡ã³ãã§è©³ãã説æããŠããŸã ã ããã§ãå¥ã®ã³ã³ãã¥ãŒã¿ãŒãããã¡ã€ã«ãšãã£ã¬ã¯ããªãã¢ããããŒãã§ããã®ã§ããããã¯ãŒã¯å ±æã«tftpdãã©ã«ããŒãäœæãããã®äžã«ãµããã£ã¬ã¯ããªïŒpxelinux.cfgïŒã¡ãã¥ãŒèšå®ïŒãimgïŒãã£ã¹ã¯ã€ã¡ãŒãžïŒãbootããã³sourceïŒWinPEãããŠã³ããŒãããã«ã¯ãåã®èšäºãåç § ïŒ ã pxelinuxã«å¿ èŠãªãã¡ã€ã«ãtftpdãã£ã¬ã¯ããªã«æ³šããŸãããã®ãªã¹ããšèª¬æã¯åã®èšäºã§èª¬æããŠããŸã ã
ããã§ãããŒãã¡ãã¥ãŒãèšå®ããå¿ èŠããããŸããããèšå®ããåã«ããã®ããŒãã¡ãã¥ãŒã®æ§æã決å®ããå¿ èŠããããŸãã ãããŠããã人ã¯å¥ã®ããŒã«ã®ã»ãããå¿ èŠãšããã®ã§ãè°è«ã¯ç¡æå³ã«ãªããŸãã 次ã®ãããªæœè±¡çãªäŸãèŠãŠã¿ãŸãããã
- ããŒã«ã«ããŠã³ããŒã;
- WinPEããŒã
- ããŒããã©ã€ãã®ãŠãŒãã£ãªãã£ã®ãµãã¡ãã¥ãŒã
- Memtest86ã
å®éãããã©ã«ããšhdd.cfgã®2ã€ã®ãã¡ã€ã«ãååŸããŸããåŸè ã§ã¯ãã¡ã€ã³ã¡ãã¥ãŒã«2ã€ã®ãã€ã³ããšæ»ããã€ã³ãã®ã¿ãæå®ããŸãã 1ã€ã®å®çšçãªæ³šæïŒWinPEã€ã¡ãŒãžã«ãã¹ãŠãããã·ã¥ããã®ã§ã¯ãªãã1ã€ã®ãã¡ã€ã«ãããŒãžã£ãŒã§ååã§ããä»ã®ãã¹ãŠã®ããŒã«ã¯ãããã¯ãŒã¯çµç±ã§ååŸã§ããŸãã ãã©ãã·ã¥ãã©ã€ãã®ãµã€ãºãèš±ãå Žåã/ mnt / pxebootãã£ã¬ã¯ããªã«ãµããã©ã«ããŒãäœæããŸãã
- ããŒã«ïŒwindowsãŠãŒãã£ãªãã£ïŒ;
- ã€ã³ã¹ããŒã«ïŒé åžïŒ;
- wimïŒããŸããŸãªããŒãžã§ã³ã®Windowsãå±éããããã®wimã€ã¡ãŒãžïŒã
ããã©ã«ãã®ãã¡ã€ã«ã¯æ¬¡ã®ããã«ãªããŸãã
UI vesamenu.c32 MENU TITLEããŒã¿ãã«PXEããŒããµãŒã㌠ã©ãã«bootlocal MENU LABEL ^ããŒã«ã«ãã£ã¹ã¯ã®èµ·å ã¡ãã¥ãŒã®ããã©ã«ã LOCALBOOT 0 ã¿ã€ã ã¢ãŠã80 åèš9000 LABEL winpe ã¡ãã¥ãŒã©ãã«^ WinPE ã«ãŒãã«pxeboot.0 LABEL hddtools MENU LABEL hdd-tools KERNEL vesamenu.c32 pxelinux.cfg / hdd.cfgãè¿œå ã©ãã«memtest ã¡ãã¥ãŒã©ãã«Memtest86 6.0 ã«ãŒãã«memdisk APPEND iso initrd = img / memtest.iso
ããã¯ãããããhdd.cfgãã¡ã€ã«ã®äŸã«ãããªãããšãããäžåºŠæãåºããŸãã
UI vesamenu.c32 ã¡ãã¥ãŒã¿ã€ãã«ããŒããã©ã€ããã£ã¹ã¯ããŒã« ã©ãã«vcr350 ã¡ãã¥ãŒã©ãã«ãã¯ããªã¢3.5 ã«ãŒãã«memdisk APPEND img initrd = img / fdd3.52.img ã©ãã«Seagate7200.12 MENU LABELãã¡ãŒã ãŠã§ã¢Seagate Barracuda 7200.12 ã«ãŒãã«memdisk APPEND iso initrd = img / barracuda12.iso LABELãªã¿ãŒã³ MENU LABELã¡ã€ã³ã¡ãã¥ãŒã«æ»ã KERNEL vesamenu.c32 pxelinux.cfgãè¿œå /ããã©ã«ã
ãã¹ãŠã®ãã¡ã€ã«ãé©åã«ããŠã³ããŒããããŠããããšã確èªããŠãã ããã ããã§dnsmasqãæ§æã§ããŸã-䟿å©ãªdns-dhcp-tftpdãµãŒããŒãæ§æãã¡ã€ã«ïŒ/ etc / config / dhcpïŒïŒ
æ§ædnsmasq ... ãªãã·ã§ã³enable_tftp '1' ãªãã·ã§ã³tftp_root '/ mnt / pxeboot / tftpd' ... config boot linux ãªãã·ã§ã³ãã¡ã€ã«åãpxelinux.0ã ...
ã€ãŸãã3ã€ã®ãã©ã¡ãŒã¿ãŒã®ã¿ãèšå®ãããŸãã ããã§ããã¹ãŠã®èšå®ã確èªã§ããŸãã ãã¹ãŠãåããŠããªãã®ããã«åããªãçŽ æŽãããã ãããŠãäœããæ©èœããªãå Žåã¯ã©ããªããŸããïŒ ãã¡ãããã·ã¹ãã ãã°ãç£èŠããŸãã ã»ãšãã©ã®WindowsãŠãŒã¶ãŒã¯ãLinuxã倧æåãšå°æåãåºå¥ããããšãç¥ããªããããããŒããšããŒãã¯ç°ãªããã©ã«ããŒã§ãã ããšãã°ãWinPEãèµ·åããã«ã¯ãbootãšBootã®2ã€ã®ãã©ã«ããŒãå¿ èŠã§ãã ããŒãã«ã¯Fontsãã£ã¬ã¯ããªãšBCDãã¡ã€ã«ãå«ãŸãïŒæ£ç¢ºã«ããã«ç€ºããšããïŒãboot.sdiãã¡ã€ã«ã¯ããŒããã£ã¬ã¯ããªã«ãããŸãã ããšãã°ãæ§æãã¡ã€ã«ã§fdd3.52.imgãã¡ã€ã«ãæå®ãããŠããå Žåã«fdd3.52.IMGãã¡ã€ã«ãããŠã³ããŒããããšãæ¡åŒµã¬ãžã¹ã¿ã«æ³šæããŠãã ããããšã©ãŒãçºçããå¯èœæ§ãé«ããªããŸãã
ã¢ã³ããŠã€ã«ã¹ã¯ã巚倧ãªã¢ã³ããŠã€ã«ã¹ããŒã¿ããŒã¹ãããŠã³ããŒãããå¿ èŠããããããç¹å¥ãªã±ãŒã¹ã§ãã éåžžãããã§ã¯2ã€ã®æ¹æ³ã䜿çšããŸããWebãµãŒããŒãä»ããŠããŒã¿ããŒã¹ãããŒãããã³ããŠã³ãããããããšãã°ããã§èª¬æããããã«ãããããinitrdãã¡ã€ã«ã«ããã·ã¥ããŸã ã ããããããã¯å¥ã®èšäºã®ãããã¯ã§ãã