Thu, 18 Nov 2004

¸¼È¢¤òÇã¤Ã¤Æ¤ß¤¿(º£¹¹)-(2)

¤ª¼ê·Ú NAS + Linux ¤Ç¤¢¤½¤Ù¤ë¡Ö¸¼È¢¡×¤Ç¤¹¤¬¡¢¤¤¤Þ¤Î¤È¤³¤í¥Î¡¼¥È¥é¥Ö¥ë¤ÇÆ°¤¤¤Æ¤¤¤ë¤è¤¦¤Ç¤¹¡£

thttpd + Wiki ¤Ï¥á¥â¥ê¤Ï¿©¤ï¤Ê¤¤¤Ç¤¹¤¬¡¢Ã×̿Ū¤ËÃÙ¤¤¤Î¤Ç¡¢ apache + mod_perl ¤ò»î¤·¤Æ¤ß¤Þ¤·¤¿¡£
¤¬¡¢¤³¤Á¤é¤â¼ã´³Á᤯¤Ê¤ë¤â¤Î¤Î¡¢apache ¤òΩ¤Á¾å¤²¤¿Ãʳ¬¤Ç¥á¥â¥ê¤ò¿©¤¤¤Ä¤Ö¤·¤Æ¤·¤Þ¤¤¤Þ¤·¤¿¡ÊSWAP ¤ò»ÈÍѤ·¤Ï¤¸¤á¤ë¡Ë¡£

LAN ¼Â¸³ÍѤʤΤǡ¢¤½¤ì¤Ç¤â¤¤¤¤¤Î¤Ç¤¹¤¬¡¢¥á¥â¥ê¤òÉáÃʻȤï¤Ê¤¤ apache ¤Ê¤ó¤¾¤ËÀêÎΤµ¤ì¤ë¤Î¤Ï¤¤¤¿¤À¤±¤Ê¤¤¤Î¤Ç¡¢²¿¤«Â¾¤Ë»È¤¨¤½¤¦¤ÊÎà»÷À½Éʤ¬¤Ê¤¤¤«¤Èõ¤·¤Æ¤¤¤¿¤È¤³¤í¡¢¤Á¤ç¤¦¤É Zope ¤ÎÆüËܸìÈǤ¬¥ê¥ê¡¼¥¹¤µ¤ì¤¿¡¢¤È¤¤¤¦¥Ë¥å¡¼¥¹¤ò¤ß¤¿¤Î¤Ç¡¢¶½Ì£È¾Ê¬¤ËÆþ¤ì¤Æ¤ß¤Þ¤·¤¿¡£

Zope ¤¬²¿¤«Ê¬¤«¤é¤Ê¤¤¤Þ¤Þ¡Ê̾Á°¤Ïʹ¤¤¤¿¤³¤È¤¢¤ëÄøÅ١ˤËÆþ¤ì¤Æ¤ß¤¿¤Î¤Ç¤¹¤¬¡¢ZWiki ¤È¤ª¤Þ¤±¤Î Blog ¤òÆ°¤«¤·¤Æ¤ß¤¿¤È¤³¤í¡¢µ¯Æ°»þ°Ê³°¤Ï¤½¤³¤½¤³¤Î¥ì¥¹¥Ý¥ó¥¹¤ÇÆ°ºî¤¹¤ë¤ß¤¿¤¤¤Ê¤Î¤Ç¡¢¥¤¥ó¥¹¥È¡¼¥ë¥á¥â¤ò¡£

ɬÍפʤâ¤Î¤ÏZope ¥¸¥ã¥Ñ¥ó - Zope ÆüËܸìÈǤΥڡ¼¥¸¤Ë¤¢¤ë¤È¤ª¤ê¤Ç¤¹¡£

¸¼È¢¤ËÆþ¤ì¤ëºÝ¤Ë¤Ò¤Ã¤«¤«¤Ã¤¿ÅÀ¤ò¤¤¤¯¤Ä¤«¡£

¡¦Á°½àÈ÷

¸¼È¢¤òÇã¤Ã¤Æ¤ß¤¿(º£¹¹)-(1)¤Ç¤â½ñ¤­¤Þ¤·¤¿¤¬¡¢grep ¤ò ¾å½ñ¤­¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ update ¤·¤Æ¤ª¤­¤Þ¤·¤ç¤¦¡Êº£²ó¤Î¥¤¥ó¥¹¥È¡¼¥ë¤Ë±Æ¶Á¤¬¤¢¤ë¤«¤É¤¦¤«¤Ï»î¤·¤Æ¤Ê¤¤¤Î¤Çʬ¤«¤ê¤Þ¤»¤ó¤¬¡¢configure ¤ÇȯÀ¸¤¹¤ëÌäÂê¤ò²óÈò¤Ç¤­¤ë¤Ï¤º¤Ç¤¹¡Ë¡£

¡¦Python 2.3.3

¸½ºß Python ¤ÎºÇ¿·ÈÇ¤Ï 2.3.4 ¤Î¤è¤¦¤Ç¤¹¤¬¡¢»Ø¼¨¤É¤ª¤ê 2.3.3 ¤òÆþ¤ì¤Æ¤ß¤Þ¤·¤¿¡£
¸¼È¢¤Ë¤Ï Version2.0 ¤¬Æþ¤Ã¤Æ¤¤¤ë¤Î¤Ç¡¢¤³¤ì¤ò²õ¤·¤¿¤¯¤Ê¤±¤ì¤Ð¡¢ÊÌ¥Õ¥©¥ë¥À¤ËÆþ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£
¾å¤Î¥µ¥¤¥È¤ò¤¿¤É¤Ã¤¿¤È¤³¤í¤Ë½ñ¤¤¤Æ¤¢¤ë¤è¤¦¤Ë¡¢/opt/python2.3.3 ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤³¤È¤Ç¶¦Â¸¤¹¤ë¤Ë¤Ï¡¢

./configure --prefix=/opt/python2.3.3

¤Î¤è¤¦¤Ë¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£

¥·¥¹¥Æ¥à¥Ñ¡¼¥Æ¥£¥·¥ç¥ó(/)¤Î²¼¤ËÆþ¤ì¤ë¤Î¤¬¤¤¤ä¤ÊÊý¤Ï¡¢ /mnt/opt ¤òºîÀ®¤·¤Æ¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òŽ¤Ã¤Æ¤ª¤¯¤È¤è¤¤¤«¤È»×¤¤¤Þ¤¹¡£ ¤Þ¤¿¡¢°Ê¹ß¡¢python Íѥѥ屡¼¥¸¤Î¥¤¥ó¥¹¥È¡¼¥é setup.py ¤ò¼Â¹Ô¤¹¤ëºÝ¤Ë¤Ï¡¢¥Õ¥ë¥Ñ¥¹¤Ç/opt/python2.3.3/bin/python ¤È»ØÄꤷ¤Æ¤ä¤ëɬÍפ¬¤Ç¤Æ¤­¤Þ¤¹¡£

¡¦Zope 2.7.3

python ¤Î¥Ñ¥¹¤ò»ØÄꤷ¤Æ

./configure --with-python=/opt/python-2.3.3/bin/python

¤ò¼Â¹Ô¤·¤Þ¤¹¤¬¡¢¤³¤³¤Ç dirname ¤¬¤Ê¤¤¤¿¤á¡¢¥¨¥é¡¼¤È¤Ê¤ê¤Þ¤¹¡£ dirname ¤Ï busybox ¤Ë´Þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¤¬¡¢¥ê¥ó¥¯¤¬¤Ê¤¤¤Î¤Ç¡¢ ºîÀ®¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤·¤¿¡£

#cd /bin
#ln -s busybox dirname

¤¢¤È¤ÏÌäÂê¤Ê¤¯ make , make install ¤Ç¤­¤Þ¤·¤¿¡£

/opt/Zope-2.7/bin/mkzopeinstance.py¡¡¤ò¼Â¹Ô¤¹¤ë¤È zope instance home ¤È¤ä¤é¤ÎºîÀ®°ÌÃÖ¤òʹ¤«¤ì¤Þ¤¹¡£

/mnt °Ê²¼¤Ë¤¹¤ë¤«¡¢/var/zope ¤Ë¤¹¤ë¤È¤­¤Ï¤¢¤é¤«¤¸¤á /mnt/var/zope ¤òºîÀ®¤·¤Æ¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òºîÀ®¤·¤Æ¤ª¤¯¤È¡¢ ÍÆÎ̤ÎÌäÂê¤ò²óÈò¤Ç¤­¤ë¤È»×¤ï¤ì¤Þ¤¹¡£

»ä¤Ï¤Ï¤¸¤á¡¢¾Ã¤·¤Æ¤¢¤ëÀâÌÀ¤Î¤è¤¦¤Ë¡¢¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¤òÍøÍѤ·¤Æ¡Ê/var/zope->/mnt/var/zope¡Ë ¤Ë¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤·¤¿¡Ê°Ê²¼¤ÎÀâÌÀ¤Ï¤½¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡Ë¡£¤¬¡¢µ¯Æ°»þ Product ¤ÎÆɤ߹þ¤ß»þ¤Ë Duplicate ¤Ê¤ó¤È¤«¤Ã¤Æ¤¤¤¦ "Problem" ¤¬¥ì¥Ý¡¼¥È¤µ¤ì¤Æ¤·¤Þ¤Ã¤¿¤Î¤Ç¡¢/var/zope/var ¤À¤± /mnt °Ê²¼¤Ë°Ü¤·¤Þ¤·¤¿¡ÊĨ¤ê¤º¤Ë¥·¥ó¥Ü¥ê¥Ã¥¯¥ê¥ó¥¯¡Ë¡£/var/zope/etc/zope.conf ¤Ç¤â°ÌÃÖ»ØÄê¤Ç¤­¤ë¤è¤¦¤Ç¤¹¤¬¡¢instance home ¤Ïµ¯Æ°¥¹¥¯¥ê¥×¥ÈÅù¤Ç»ØÄꤵ¤ì¤Æ¤¤¤ë¤Î¤Ç¡¢·ë¶É¤´¤Þ¤«¤·¤Þ¤·¤¿¡£

¤³¤³¤Þ¤Ç´°Î»¤·¤¿¤é¡¢zopectl start ¤Çµ¯Æ°¤¹¤ë¤³¤È¤ò³Îǧ¤·¤Æ¤ª¤­¤Þ¤·¤ç¤¦¡£

¾åµ­¥ê¥ó¥¯Àè¤Ë¤â¤¢¤ê¤Þ¤¹¤¬¡¢zope ¤Ï¥æ¡¼¥¶ zope ¤òºîÀ®¤·¤Æµ¯Æ°¤·¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢/var/zope/log ¤È /var/zope/var ¤Ï¥æ¡¼¥¶ zope ¤¬¥¢¥¯¥»¥¹¤Ç¤­¤ë¤è¤¦¤Ë¡¢¥¤¥ó¥¹¥È¡¼¥ë¥¹¥¯¥ê¥×¥È¼Â¹Ô¡Ö¸å¡×¤Ë chmod 1777 ¤¹¤ëɬÍפ¬¤¢¤ê¤Þ¤·¤¿¡Êµ¯Æ°»þ¤Ë¥¨¥é¡¼¤Ë¤Ê¤Ã¤¿¡Ë¡£

¡¦Japanese Codecs

¤³¤ì¤Ï python ¤Î¥¤¥ó¥¹¥È¡¼¥é¡¢setup.py ¤ÇÌäÂê¤Ê¤¯Æþ¤ê¤Þ¤·¤¿¡£

¡¦Placeless Translation Service 1.0rc8
¡¦ZMI Localizer

¤³¤ì¤é¤ÏŸ³«¤·¤Æ¡ÖZope instance ¤Î Product ¥Ç¥£¥ì¥¯¥È¥êÆâ¡×¤È¤ä¤é¤Ë¥³¥Ô¡¼¤¹¤ë¤À¤±¤é¤·¤¤¡¢¤Î¤Ç¤¹¤¬¡¢¤¤¤­¤Ê¤ê´·¤ì¤Ê¤¤ÍѸì¤Ç¸ÍÏǤ¤¤Þ¤·¤¿¡£

¤Ê¤ó¤Î¤³¤Ã¤Á¤ã¤È»×¤¤¤Þ¤·¤¿¤¬¡¢¤É¤¦¤ä¤é¾åµ­¤¬»Ø¤¹¤Î¤Ï¤µ¤Ã¤­»ØÄꤷ¤¿ instance home °Ê²¼¤Î /var/zope/Products ¤Î¤³¤È¤Î¤è¤¦¤Ç¤¹¡£

/opt/Zope-2.7/skel °Ê²¼¤Ë¤âƱ¤¸¤è¤¦¤Ê¥Õ¥©¥ë¥À¤¬¤Ç¤­¤Þ¤¹¤¬¡¢¤³¤Ã¤Á¤Ï¥¤¥ó¥¹¥¿¥ó¥¹¤ÎÁÇ¡©¤ß¤¿¤¤¤Ç¤¹¤Í¡Êʬ¤«¤Ã¤Æ¤Ê¤¤¡Ë¡£

¤³¤³¤Ë¾åµ­¤Î¥¢¡¼¥«¥¤¥Ö¤òŸ³«¤·¤Æ¤Ç¤­¤ë¡¢[PlacelessTranslationService][COREBlog][ZMILocalizer] ¤ò¥Ç¥£¥ì¥¯¥È¥ê¤´¤È¥³¥Ô¡¼¤·¤Þ¤¹¡£

Zope ¤Î¥³¥ó¥È¥í¡¼¥ë¥Ñ¥Í¥ë¤«¤é¥ê¥Ö¡¼¥È¤¹¤ë¤«¡¢/var/zope/bin/zopectl stop ¤ÇÍî¤È¤·¤Æ¡¢ºÆµ¯Æ°¤·¤Þ¤¹¡£

¤³¤ì¤Ç¡¢¥È¥Ã¥×¥Ú¡¼¥¸ http://ZOPE¥Û¥¹¥È:8080/ ¤Î QuickStart ¤¬ÆüËܸ첽¤µ¤ì¤Þ......¤»¤ó¤Ç¤·¤¿(w

¸¶°ø¤Ï¥Ö¥é¥¦¥¶¤ÎÁ÷¤Ã¤Æ¤¤¤ë¾ðÊó¤Ç¡¢¸À¸ì¤¬ en-us ¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤·¤¿¡ÊFireFox ¤ò±Ñ¸ìÈǤ«¤é¥¢¥Ã¥×¥Ç¡¼¥È¤·¤Æ¤¤¤¿¤¿¤á¡©¡Ë¡£
¤¢¤ï¤Æ¤Æ jp ¤òÄɲ䷤ơ¢Ìµ»öÆüËܸì¤Î QuickStart ¤¬É½¼¨¤µ¤ì¤Þ¤·¤¿¡£

¥á¥â¥ê»ÈÍÑÎ̤Ǥ¹¤¬¡¢°Ê²¼¤Î¤è¤¦¤Ê´¶¤¸¤Ç¤¹¡£¡Êµ¯Æ°¸å¡¢COREBLOG ¤òɽ¼¨¤·¤¿¾õÂÖ¡Ë

zope@YANEURA1:/$ free
             total       used       free     shared    buffers     cached
Mem:         62800      61544       1256          0       7196      22752
-/+ buffers/cache:      31596      31204
Swap:       257032          0     257032

Äɵ­¡£

reStructuredText ¤ÇÆüËܸì¤òÆþ¤ì¤ë¤È¥¨¥é¡¼¤Ë¤Ê¤ë

¢ª¾ÝÊâBlog (coreblog)¤Ë¤¢¤ë input-encoding,output-encoding ¤ò »ØÄꤹ¤ëÊýË¡¤Ç²óÈò¤Ç¤­¤ë¤è¤¦¤Ç¤¹¡£

posted at: 19:53 | permanent link