ãããã±ã¼ã¸ãã
- ãã¾ãå ¥ãæ¿ãããªãããå ¥ãæ¿ãããããªããã®
- 好ãã«å ¥ãæ¿ãããããã®
ã®2ã¤ã«åé¡ãã¦ãããæ°å¹´èªåãã©ã管çãã¦ããããæ¸ãã¦ã¿ããã¨æãã¾ãã主ã«æ§æ管çã®åãå£ã®è©±ã«ãªãã¾ãã
ãã¾ãå ¥ãæ¿ãããªãããå ¥ãæ¿ãããããªããã®
å ·ä½çã«ã¯ã
- åºæ¬çãªã½ããã¦ã¨ã¢
- coreutilsã¨ãtarã¨ããããã£ãé¡ã®ãã®
ã§ãã
ãããã¯æåã®æåã«ãµã¼ãã¼ãã»ããã¢ããããã¨ãã«ããã£ã¹ããªã®ãã¤ããªããã±ã¼ã¸ãå ¥ãã¦åºæ¬çã«ã¯ããã§ããã¾ãã§ãã
ãã¼ã¸ã§ã³ç®¡çãä¾åé¢ä¿ã®ç®¡çã¯ãã£ã¹ããªã®ããã±ã¼ã¸ã·ã¹ãã ã«ãä»»ãã§ãã
ã»ããã¢ããå¾ã¯ãã£ã½ã©ã®ãã¨ããªãéããã¢ã³ã¤ã³ã¹ãã¼ã«ããã¦ã³ã°ã¬ã¼ãã¯åºæ¬çã«ãã¾ãããã¢ããã°ã¬ã¼ããæ¬å½ã«æ¬å½ã«å½±é¿ã®ããã»ãã¥ãªãã£ä¿®æ£ã®ã¿ã追å ã¤ã³ã¹ãã¼ã«ã¯å¾ããå¿ è¦ãªãã®ãåºã¦ããããã£ã¹ããªã®ããã±ã¼ã¸ã·ã¹ãã ã使ã£ã¦é©å®å ¥ãã¾ãã
ãã£ã¹ããªã®ããã±ã¼ã¸ã·ã¹ãã ã¯æéãçµã¤ã¨ãã®å¯¿å½ãæéåããåé¡ã«ãªãã¾ãããèªåã¯Ubuntu LTSã®serverã®æ¹(ãªãªã¼ã¹ãã5å¹´ãµãã¼ã)ã使ãããã«ãã¦ãã¾ããã
ãã¦ããµã¼ãã¼ãè¤æ°å°ããå ´åã¯ã©ããã¦ãããã§ãããã¾ãã£ã¨å ¨é¨ã³ãã¼ãã¦çµããã§ãã
ãã¨ã§è¿½å ã§ããã±ã¼ã¸ãå ¥ããéã¯ãåãµã¼ãã¼ã§ã·ã³ã·ã³ãã¤ããªããã±ã¼ã¸ãã¤ã³ã¹ãã¼ã«ããã®ã§ã¯ãªããèµ·ç¹ãµã¼ãã¼ã«ã ãã¤ã³ã¹ãã¼ã«ãã¦ãã¨ã¯(ããã±ã¼ã¸ã®ç®¡çæ å ±ãå«ã)ã¾ãã£ã¨ã³ãã¼ããã ãã§ãã
ãã¾ãã£ã¨ã³ãã¼ãã«ã¯ã以ä¸ã®ãããªrsync -avRã(root権éã§)å®è¡ããã¹ã¯ãªãããæ¸ãã¦ä½¿ã£ã¦ãã¾ããã
- ãªãã·ã§ã³ã«ãã£ã¦åæã³ãã¼ãããã£ã¬ã¯ããªããµã¼ãã¼ãåãæ¿ããããããã«
- ããã¤ãã®ãã¡ã¤ã«ã¯åæã³ãã¼ããé¤å¤ããããã« (rsync --filter='. -'ã§æ¨æºå
¥åããåæ¨é¸æã®ãã£ã«ã¿å®ç¾©ãèªãæã)
- /var/ ä¸ã®ããã¤ã
- ãã ã /var/lib/dpkg/ ãªã©ããã±ã¼ã¸ã·ã¹ãã ã®ç®¡çæ å ±ã¯é¤å¤ããªã
- /etc/ ä¸ã®ld.so.cache, adjtime, mtab ã¨ã
- /tmp/, /proc/, /dev/ ã¨ã
- /service/ã¨daemontoolsã®log/main/
- ã¡ã¼ã«ãã¥ã¼
- lost+found/
- LOCAL/
- ãã¼ã«ã«ã«ã¼ã«ã§ãä»ãµã¼ãã¼ã«åæã³ãã¼ãããããªããã®ã¯ LOCAL/ ã¨ããåã®ãã£ã¬ã¯ããªé ä¸ã«ç½®ããã¨ã«ãã¦ãã¾ããã
- /var/ ä¸ã®ããã¤ã
ããããæ°ãããµã¼ãã¼ãã»ããã¢ããããã¨ãã¯kickstartçã¯ä½¿ããããã®ã¾ãã£ã¨ã³ãã¼ã¹ã¯ãªããã使ã£ã¦çãã¦ããµã¼ãã¼ããã¾ãã¾ãã¾ã³ãã¼ãã¦çµããã§ããã¡ã¤ã«/ãã£ã¬ã¯ããªã®ãªã¼ãã¼ãã°ã«ã¼ãããã¼ããã·ã§ã³ãmtimeã¾ã§ãã£ããã¾ã£ããåããµã¼ãã¼ãã§ããããã¾ãã
ãã®åæã³ãã¼ã®å¯¾è±¡(ã³ãã¼å )ã¨ãªããµã¼ãã¼ã¯ããã£ã¹ã¯ãã¼ããã¦ããå ¨ã¦ã®ãµã¼ãã¼ã§ãã
ãå ¨é¨ã®ãµã¼ãã¼ã®å 容ãåãã ã¨ãå½¹å²(Webãµã¼ãã¼ã¨ãã¡ã¼ã«ãµã¼ãã¼ã¨ãã¨ã)åãã¯ã©ããã¦ãã®ï¼ãã¨ããçåãåºã¦ããã¨æãã¾ãããããã¯ããèªåãä½è ã§ãããï¼(ã©ãããå½¹å²ãå²ãå½ã¦ããã¦ããã)ãæ å ±ã管çã»åç §ããä»çµã¿ã¨ãããã«åºã¥ãã¦é©å®ã
- è¨å®ãã¡ã¤ã«ã®çæãsymlinkå¼µããªã©
- ãã®ä»ããããã®èª¿æ´
- ãµã¼ãã¼ããã»ã¹ã®èµ·å
ãããrcã¹ã¯ãªãããç¨æãã¦å®ç¾ãã¦ãã¾ããã
以ä¸2ç¹ããã¾ãã£ã¨ã³ãã¼ãã¨ãèªå¾çã«å½¹å²ãã¾ã¨ãããã¿ãã®ãããã§ãããã¾ãå ¥ãæ¿ãããªãããå ¥ãæ¿ãããããªããé¡ã®ããã±ã¼ã¸ã®ç®¡çã³ã¹ãã¯ã»ã¼ã¼ãã«ãã¦ãã¾ããã
ãã®ãã¾ãã£ã¨ã³ãã¼ãä½æ¦ã®åæã¨ãã¦ã
- ãã¼ãã¦ã¨ã¢ã®ã¢ã¼ããã¯ãã£ãæ··å¨ãã¦ããªã (i386, x86_64)
- ãã¼ãã¦ã¨ã¢ã®æ··å¨ã¯å¤§ä¸å¤«ãªããã«ãã¦ãã¾ããããã¼ãããkernel modeuleã®å·®ç°ãªã©ã¯ããã¼ãã¦ã¨ã¢æ å ±ãåç §ãã¦ãããå¡©æ¢ ã«insmodããããã«ãã¦ãã¾ããã
- ãã£ã¹ããªã¨ãã®ãã¼ã¸ã§ã³ãæ··å¨ãã¦ããªã
ã§ããå¿ è¦ãããã¾ãã
ã¢ã¼ããã¯ãã£ã®éãã許容ããã¨ãã¨ããã«é¢åãããåé¡ãå´åºããã®ã§ãä»ãªãx86_64ã«çµ±ä¸ããªãçç±ã¯ãªãã¨æãã¾ãã(ã¬ãã·ããã¸ã¸ã§ã¦ãããå ´åãããã¾ããããã)
ãã£ã¹ããªã¨ãã¼ã¸ã§ã³ãåºå®åããã¨ããã©ã¤ãã©ãªã®ãã¼ã¸ã§ã³ãå¤ãã¦(èªåãã«ãã®)XXXãã¤ã³ã¹ãã¼ã«ã§ããªããã¨ããåé¡ãåºã¦ãã¾ããå½±é¿ç¯å²ã®ç¢ºèªä½æ¥ã大å¤ã§ããæ°ããã®ã«å
¥ãæ¿ãã¡ããããæ¢åã®ã©ã¤ãã©ãªã«å½±é¿ããªãããã«æ°ããã©ã¤ãã©ãªãå
¥ããããã¦å¯¾å¿ãã¦ãã¾ãããlibcãlibc5ããglibcã«å
¥ãæ¿ããã¨ã以å¤ã¯ãããã§è¦å´ããè¨æ¶ã¯ãã¾ãããã¾ããã(éãããã ãããããã¾ããã)
好ãã«å ¥ãæ¿ãããããã®
å ·ä½çã«ã¯ã
- kernel 㨠kernel module
- ãµã¼ãã¼ã®å½¹å²ã«ç´çµããããã«ã¦ã§ã¢
- Apcheã¨ãNginxã¨ãMySQLã¨ã
- Webã¢ããªã®éçºè¨èªã¾ãã
ã§ãã
kernel 㨠kernel module
kernelã¯ãã£ã¹ããªä»å±ã®ã ã¨ãã³ãã¼ããããå½ãã£ã¦ã¦ããããããã®ãæ°æã¡æªãã®ã§ãkernel.orgé å¸ã®vanilla kernelããã«ããã¦ä½¿ã£ã¦ãã¾ããã
make-kpkgçã®ãã£ã¹ããªä»å±ã®æ¯æ´ãã¼ã«ãããã¾ãæ©æµãæããããªãã£ãã®ã§ä½¿ã£ã¦ãã¾ããã§ããã
èªåãã«ããªã®ã§ãããã£ã¹ããªä»å±ã®kernelãå¤ãã¦ããã®ãã¼ãã¦ã¨ã¢ã®ãã©ã¤ãããªãããã¨ããããã¨ãããã¾ããã
ãµã¼ãã¼ã®å½¹å²ã«ç´çµããããã«ã¦ã§ã¢
ãæ°ãããã¼ã¸ã§ã³ã使ãããããã¡ãã£ã¨ãããå½ã¦ã¦ä½¿ããããã¨ãããã¨ãå¤ã ããã®ã§ãApacheçã®ããã«ã¦ã§ã¢ã¯ãã£ã¹ããªã®ããã±ã¼ã¸ã¯ä½¿ããèªåãã«ãã§å ¥ãã¦ãã¾ããã
ã¤ã³ã¹ãã¼ã«ãã£ã¬ã¯ããªããã¼ã¸ã§ã³ç®¡çãªã©ã¯ã
ã«æ¸ããéãã§ãã
è¤æ°ãµã¼ãã¼ã®å ´åã¯ãåè¿°ã®ãã¾ãã£ã¨ã³ãã¼ãã¹ã¯ãªããã使ã£ã¦åæã³ãã¼ããã ãã§çµããã§ããrpmåãdebåãªã©ã¯å
¨ã微塵ãã¤ããã¯ãã³ãå¿
è¦æ§ãæãããã¨ããªãã®ã§ä¸åãããã¨ãããã¾ããã
Webã¢ããªã®éçºè¨èªã¾ãã
Perlã®å ´åã§ãããperlæ¬ä½ã¨ã¢ã¸ã¥ã¼ã«ã¯Webãµã¼ãã¹ãã¨ã«å®å ¨ã«åé¢ãã¦ç®¡çãã¦ãã¾ããã
ããã«ããããsystem perlãããªãã¦ãã¦ããã¼ã¸ã§ã³ã®perlã使ãããï¼ããã¨ãªãã®Webãµã¼ãã¹ãã¢ã¸ã¥ã¼ã«ã®ãã¼ã¸ã§ã³ä¸ããããã§èª¤åä½ããï¼ï¼ãã¨ãã£ãåé¡ã¨ããããã°ã§ãã
管çã¨ãã£ã¦ãã¤ã³ãã©æ å½è ã¯ã»ã¼ã»ã¼ãã¼ã¿ããã§ãã¢ããªéçºè ãèªç±ã«ã
ã§ãperlæ¬ä½ãextlibãã¾ãã¾ããã£ãã git ã«å ¥ãã¦ä¸ä»£ç®¡çãã¦ãã¾ããã
ã»ããµã¼ãã¼ã¸ã®å±éã¯ãã¾ãã£ã¨ã³ãã¼ãã§ä¸çºã§ãã
ããã³ã«
ä»åç´¹ä»ããã®ã¯ããã¾ã§ããªã¬ã¯ãããã¦ãããã¨ããã話ã§ãã®ã§ãã»ãã«ããããããªææ³ãèããããã¨æãã¾ãã
ããã±ã¼ã¸ç®¡çã«éãã¾ããããå¹ççã§æéã®ããããªã éç¨ã«ã¤ãã¦æ¯éãæè¦äº¤æãããã§ããã