Linux¤á¤â

Îɤ¯½Ð¤Æ¤¯¤ë ¡Øi386¡Ù ¤Ã¤Æ¥Ê¥ó¤À¡©

¥Þ¥·¥ó¤ËÀѤó¤Ç¤¤¤ëÀФˤè¤Ã¤Æ·è¤Þ¤ë¤ß¤¿¤¤¤Ç¤¹

i38680386
i48680486
i586Pentium, MMX Pentium
i686Pentium Pro, PentiumII, PentiumIII, Celeron
?PentiumIV

ÀѤó¤Ç¤¤¤ëÀФòÄ´¤Ù¤ë¤Ë¤Ï

$ 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°Ê³°¤Ç¤Î´Ä¶­ÀßÄê

input type=hidden name="CG" value="/etc/other1.cfg"> ¤òjpform.html¤ËÄɲÃ

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¤ò¤«¤Þ¤¹¤È¤¤¤¤¤ß¤¿¤¤
http://i16.jp/soft/postanalog.htm

¥æ¡¼¥¶¡¼¤´¤È¤Î»ÈÍÑÎΰè¤òÄ´¤Ù¤ë

# 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

°Ê²¼¤º¤é¤º¤é¡¦¡¦¡¦¡¦

¥³¥ó¥½¡¼¥ë¤Çʸ»ú²½¤±¤¹¤ë

  • ²ò·èÊýË¡1
    kon¤ò¼Â¹Ô¤¹¤ë
  • ²ò·èÊýË¡2
    $ export LANG=en_US
    ¤ò¼Â¹Ô¤¹¤ë
    ¥Ç¥Õ¥©¥ë¥È¤ÎÀßÄê¤òÊѤ¨¤ë¤Ë¤Ï /etc/sysconfig/i18n ¥Õ¥¡¥¤¥ë¤ÎLANG¤òÊѹ¹¤¹¤ë

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

¤È¤·¤Æ¥Û¥¹¥È̾¤ò½ñ¤­´¹¤¨¤Þ¤¹¡£
hostname ¥³¥Þ¥ó¥É¤Ç¿·¤·¤¤¥Û¥¹¥È̾¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤«³Îǧ¤·¤Þ¤¹¡£


¥È¥Ã¥×   ÊÔ½¸ Åà·ë º¹Ê¬ ¥Ð¥Ã¥¯¥¢¥Ã¥× źÉÕ Ê£À½ ̾Á°Êѹ¹ ¥ê¥í¡¼¥É   ¿·µ¬ °ìÍ÷ ¸¡º÷ ºÇ½ª¹¹¿·   ¥Ø¥ë¥×   ºÇ½ª¹¹¿·¤ÎRSS
Last-modified: 2021-09-19 (Æü) 19:09:37