Îɤ¯½Ð¤Æ¤¯¤ë ¡Øi386¡Ù ¤Ã¤Æ¥Ê¥ó¤À¡© †¥Þ¥·¥ó¤ËÀѤó¤Ç¤¤¤ëÀФˤè¤Ã¤Æ·è¤Þ¤ë¤ß¤¿¤¤¤Ç¤¹
ÀѤó¤Ç¤¤¤ëÀФòÄ´¤Ù¤ë¤Ë¤Ï $ uname -m NIC¤ËÊ£¿ô¤ÎIP¤ò³ä¤êÅö¤Æ¤ë †# /sbin/ifconfig eth0:0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255 ºÆµ¯Æ°¤·¤Æ¤â͸ú¤Ë¤¹¤ë¤Ë¤Ï /etc/rc.d/rc.local ¤Ëµ½Ò¤·¤Æ¤ª¤¯ ¥Ý¡¼¥È¥¹¥¥ã¥ó †# nmap -sT localhost Starting nmap 3.50 ( http://www.insecure.org/nmap/ ) at 2004-10-18 11:25 JST Interesting ports on localhost.localdomain (127.0.0.1): (The 1653 ports scanned but not shown below are in state: closed) PORT STATE SERVICE 21/tcp open ftp 22/tcp open ssh 25/tcp open smtp 80/tcp open http 110/tcp open pop3 199/tcp open smux Nmap run completed -- 1 IP address (1 host up) scanned in 0.528 seconds nmap¤¬Æþ¤Ã¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï°Ê²¼¤Ç¥¤¥ó¥¹¥È¡¼¥ë¤·¤Þ¤¹¡£ # yum install namp ¥·¥§¥ë¤ÎÀÚ¤êÂؤ¨ †% chsh username % /bin/csh ¤³¤ì¤Ç¡¢¼¡²ó¤Î¥í¥°¥¤¥ó»þ¤«¤écsh ¤¬»È¤ï¤ì¤ë¤³¤È¤Ë¤Ê¤ê¤Þ¤¹¡£³Îǧ¤·¤Æ¤ß¤ë¤È¡¢ % grep username /etc/passwd username:*:100:100::/home/username:/bin/csh bash¤ËÌ᤹¤È¤¤Ï % chsh username % /bin/bash analog¥¤¥ó¥¹¥È¡¼¥ë †# rpm -ivh analog-4.16-2.i386.rpm # cp /home/httpd/cgi-bin/anlgform.pl /home/user/public_ html/anlgform.cgi # cp /var/analog-4.16/lang/jpform.html /home/user/public_html/tool/ # cp -r /home/httpd/html/images/ /home/user/public_html/images # chmod 0705 /home/user/public_html/anlgform.cgi # chgrp -R user.user /home/user/public_html/* [¥½¡¼¥¹¤«¤é¥¤¥ó¥¹¥È¡¼¥ë] http://www.analog.cx/download.html # tar xvzf analog-5.30.tar.gz # cd analog-5.30/src # make # cd .. # cp anlgform.pl /home/user/public_ html/anlgform.cgi # cp -r ./images/ /home/user/public_html/images # chmod 0705 /home/user/public_html/anlgform.cgi # chgrp -R user.user /home/user/public_html/* analog.cfg¤Ï http://www.jp.analog.cx/ ¤«¤é¤¤¤¿¤À¤¤¤Æ /etc/analog.cfg ¤ËÊݸ jpform.html¤Î°Ê²¼¤ò½¤Àµ <!-- form action="/cgi-bin/anlgform.pl" method="POST" --> ¢ <form action="anlgform.cgi" method="POST"> ¹àÌÜÀßÄê # vi /etc/analog.cfg HOSTNAME "[your domain]" LOGFILE /var/log/httpd/access_log ¢¨hint analog.cfg°Ê³°¤Ç¤Î´Ä¶ÀßÄê
cron¤ÇÆ°¤«¤¹¤Ë¤Ï analog.cfg ¤Ë°Ê²¼¤òÄɲà LANGUAGE JAPANESE-EUC LANGFILE /usr/share/analog/lang/jpe.lng DESCFILE /usr/share/analog/lang/jpedesc.txt DOMAINSFILE /usr/share/analog/lang/jpedom.tab # crontab -e 30 4 * * * /usr/bin/analog ¸¡º÷¸ì¶ç¤Îʸ»ú²½¤±¤Ïpostanalog¤ò¤«¤Þ¤¹¤È¤¤¤¤¤ß¤¿¤¤ ¥æ¡¼¥¶¡¼¤´¤È¤Î»ÈÍÑÎΰè¤òÄ´¤Ù¤ë †# du -s /home/* | sort -nr telnet¤Ç¥Ö¥é¥¦¥¸¥ó¥° †$ telnet example.com 80 Trying 211.14.15.5... Connected to yahoo.co.jp. Escape character is '^]'. GET / HTTP/1.0[Enter] Host: example.com [Enter] HTTP/1.1 200 OK °Ê²¼¤º¤é¤º¤é¡¦¡¦¡¦¡¦ ¥³¥ó¥½¡¼¥ë¤Çʸ»ú²½¤±¤¹¤ë †
kernel¤Î¥¢¥Ã¥×¥°¥ì¡¼¥É †# rpm -ivh kernel-2.4.20-20.8.i686.rpm (-Uvh or -Fvh¤Ç¤Ï¤Ê¤¤) LILO¤Î¾ì¹ç # vi /etc/lilo.conf default ¤ò¿·¤¿¤ËÆþ¤ì¤¿label¤Ë½ñ¤´¹¤¨ # lilo GRUB¤Î¾ì¹ç # vi /boot/grub/grub.conf default=0 ¥Û¥¹¥È̾¤òÊѹ¹¤·¤¿¤¤¤¬ºÆµ¯Æ°¤Ï¤·¤¿¤¯¤Ê¤¤ †/etc/sysconfig/network ¤ò½ñ¤´¹¤¨¤Þ¤¹¡£ # hostname new.example.com ¤È¤·¤Æ¥Û¥¹¥È̾¤ò½ñ¤´¹¤¨¤Þ¤¹¡£ |