¥Ç¥£¥¹¥¯Ìµ¤·¤Î X ¥µ¡¼¥Ð: °ì¤Ä¤Î¥¬¥¤¥É | ||
---|---|---|
前のページ |
/etc/inetd.conf ¥Õ¥¡¥¤¥ë¤¬ tftp ¤ä bootps ¤Ë¤Ä¤¤¤Æ¤Î¥¨¥ó¥È¥ê¤ò»ý¤Ã¤Æ¤¤¤ë¤«¤É¤¦¤«¤ò³Îǧ¤·¤Æ¤¯¤À¤µ¤¤¡£ ¤ï¤¿¤·¤Î¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹¡£
tftp dgram udp wait nobody /usr/libexec/tftpd tftpd /tftpboot # # Additions by who ever you are bootps dgram udp wait root /usr/libexec/bootpd bootpd /etc/bootptab
¤â¤· /etc/inetd.conf ¥Õ¥¡¥¤¥ë¤òÊѹ¹¤·¤¿¤È¤¤Ë¤Ï¡¢ inetd(8) ¤Ë HUP ¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤ò¤¹¤ë¤Ë¤Ï¡¢inetd ¤Î¥×¥í¥»¥¹ ID ¤ò ps -ax | grep inetd | grep -v grep ¤·¤Æ ¼èÆÀ¤·¤Æ¤¯¤À¤µ¤¤¡£¥×¥í¥»¥¹ ID ¤¬¤ï¤«¤Ã¤¿¤é¡¢ ¤½¤ì¤Ë¸þ¤±¤Æ HUP ¥·¥°¥Ê¥ë¤òÁ÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£ ¤³¤ì¤Ï kill -HUP <pid> ¤È¤·¤Æ¹Ô¤¤¤Þ¤¹¡£ ¤³¤ì¤Ë¤è¤Ã¤Æ inetd ¤Ï¤½¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤òÆɤßľ¤·¤Þ¤¹¡£
¥Ç¥£¥¹¥¯Ìµ¤·¥·¥¹¥Æ¥à¾å¤Ç¥Ö¡¼¥È¥í¡¼¥À¤¬½ÐÎϤ·¤¿ addr ¤Î½ÐÎϤò³Ð¤¨¤Æ¤¤¤ë¤Ç¤·¤ç¤¦¤«? ¤³¤³¤Ç¤½¤ì¤¬É¬ÍפȤʤë¤Î¤Ç¤¹¡£
/etc/bootptab (¤ª¤½¤é¤¯¥Õ¥¡¥¤¥ë¤òºîÀ®¤·¤Æ) ¤Ë ¥¨¥ó¥È¥ê¤ò²Ã¤¨¤Æ¤¯¤À¤µ¤¤¡£¤½¤ì¤Ï¤³¤ì¤ÈƱÍͤνñ¼°¤Ç½ñ¤¤Þ¤·¤ç¤¦¡£
altair:\ :ht=ether:\ :ha=004001432666:\ :sm=255.255.255.0:\ :hn:\ :ds=199.246.76.1:\ :ip=199.246.76.2:\ :gw=199.246.76.1:\ :vm=rfc1048:
¤³¤ì¤é¤Î¹Ô¤Ï¼¡¤Î¤è¤¦¤Ê°ÕÌ£¤Ç¤¹¡£
altair | ¥É¥á¥¤¥ó̾¤ò½ü¤¤¤¿¥Ç¥£¥¹¥¯Ìµ¤·¤Î¥·¥¹¥Æ¥à¤Î̾Á° |
ht=ether | “¥¤¡¼¥µ¥Í¥Ã¥È”¥Ï¡¼¥É¥¦¥§¥¢¥¿¥¤¥× |
ha=004001432666 | (Àè¤ËµÏ¿¤·¤¿) ¥Ï¡¼¥É¥¦¥§¥¢¤Î¥¢¥É¥ì¥¹ |
sm=255.255.255.0 | ¥µ¥Ö¥Í¥Ã¥È¥Þ¥¹¥¯ |
hn | ¥¯¥é¥¤¥¢¥ó¥È¤Ë¥¯¥é¥¤¥¢¥ó¥È¤Î¥Û¥¹¥È̾¤òÁ÷¤ë¤è¤¦¡¢ ¥µ¡¼¥Ð¤ËÅÁ¤¨¤Þ¤¹ |
ds=199.246.76.1 | ¥É¥á¥¤¥ó¥µ¡¼¥Ð¤¬¤É¤ì¤Ê¤Î¤«¤ò¥¯¥é¥¤¥¢¥ó¥È¤ËÅÁ¤¨¤Þ¤¹ |
ip=199.246.76.2 | ¥¯¥é¥¤¥¢¥ó¥È¤Î IP ¥¢¥É¥ì¥¹¤¬²¿¤Ê¤Î¤«¤ò ¥¯¥é¥¤¥¢¥ó¥È¤ËÅÁ¤¨¤Þ¤¹ |
gw=199.246.76.1 | ¥Ç¥Õ¥©¥ë¥È¥²¡¼¥È¥¦¥§¥¤¤¬¤É¤ì¤Ê¤Î¤«¤ò ¥¯¥é¥¤¥¢¥ó¥È¤ËÅÁ¤¨¤Þ¤¹ |
vm=... | ¤³¤ì¤Ï¤½¤Î¤Þ¤Þ¤Ë¤·¤Æ¤ª¤¤¤Æ¤¯¤À¤µ¤¤ |
注意: IP ¥¢¥É¥ì¥¹¤ÏÀµ¤·¤¯ÀßÄꤷ¤Æ¤¯¤À¤µ¤¤¡£ ¾å¤Î¥¢¥É¥ì¥¹¤Ï¤ï¤¿¤·¤À¤±¤Î¤â¤Î¤Ç¤¹¡£
/tftpboot ¥Ç¥£¥ì¥¯¥È¥ê¤ò¥µ¡¼¥Ð¤ËºîÀ®¤·¤Æ¡¢ ¥µ¡¼¥Ð¤¬¥µ¡¼¥Ó¥¹¤ò¹Ô¤¦¥Ç¥£¥¹¥¯Ìµ¤·¤Î¥·¥¹¥Æ¥à¤Î¤¿¤á¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤ò¤³¤Î¥Ç¥£¥ì¥¯¥È¥ê¤ËÆþ¤ì¤Æ¤ª¤¤Þ¤¹¡£ ¤³¤ì¤é¤Î¥Õ¥¡¥¤¥ë¤Ï cfg.ip ¤È¤¤¤¦Ì¾Á°¤Ë¤Ê¤Ã¤Æ¤¤¤Æ¡¢ip ¤Ï¥Ç¥£¥¹¥¯Ìµ¤·¥·¥¹¥Æ¥à¤Î IP ¥¢¥É¥ì¥¹¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£ altair ¤ÎÀßÄê¥Õ¥¡¥¤¥ë¤Ï /tftpboot/cfg.199.246.76.2 ¤È¤Ê¤ê¤Þ¤¹¡£¤³¤ÎÃæ¿È¤Ï¼¡¤Î¤è¤¦¤Ë¤Ê¤Ã¤Æ¤¤¤Þ¤¹:
rootfs 199.246.76.1:/DiskLess/rootfs/altair hostname altair.example.com
hostname altair.example.com ¤Î¹Ô¤Ïñ¤Ë¥Ç¥£¥¹¥¯Ìµ¤·¤Î¥·¥¹¥Æ¥à¤¬¤É¤Î¤è¤¦¤Ê´°Á´¤Ê¥É¥á¥¤¥ó̾¤ò»ý¤Ã¤Æ¤¤¤ë¤Î¤«¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£
rootfs 199.246.76.1:/DiskLess/rootfs/altair ¤Î¹Ô¤Ï¥Ç¥£¥¹¥¯Ìµ¤·¤Î¥·¥¹¥Æ¥à¤¬ NFS ¤Ç¥Þ¥¦¥ó¥È¤Ç¤¤ë¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¾ì½ê¤òɽ¤·¤Æ¤¤¤Þ¤¹¡£
注意: NFS ¤Ç¥Þ¥¦¥ó¥È¤µ¤ì¤¿¥ë¡¼¥È¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ï Æɤ߽Ф·µö²Ä¤À¤±¤Ç ¥Þ¥¦¥ó¥È¤µ¤ì¤Þ¤¹¡£
¥Ç¥£¥¹¥¯Ìµ¤·¤Î¥·¥¹¥Æ¥à¤Î³¬ÁؤÏÍ׵ᤵ¤ì¤ì¤ÐÆɤ߽ñ¤²Äǽ¤Ë¤·¤Æ¡¢ ¥Þ¥¦¥ó¥È¤·Ä¾¤¹¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
¤ï¤¿¤·¤ÏͽÈ÷¤Î 386DX-40 ¤òÀìÍѤΠX üËö¤È¤·¤Æ»ÈÍѤ·¤Æ¤¤¤Þ¤¹¡£
altair ¤Î³¬Áؤϼ¡¤ÎÄ̤ê¤Ç¤¹¡£
/
/bin
/etc
/tmp
/sbin
/dev
/dev/fd
/usr
/var
/var/run
¼ÂºÝ¤Î¥Õ¥¡¥¤¥ë¤Î¥ê¥¹¥È¤Ï¼¡¤ÎÄ̤ê¤Ç¤¹¡£
-r-xr-xr-x 1 root wheel 779984 Dec 11 23:44 ./kernel -r-xr-xr-x 1 root bin 299008 Dec 12 00:22 ./bin/sh -rw-r--r-- 1 root wheel 499 Dec 15 15:54 ./etc/rc -rw-r--r-- 1 root wheel 1411 Dec 11 23:19 ./etc/ttys -rw-r--r-- 1 root wheel 157 Dec 15 15:42 ./etc/hosts -rw-r--r-- 1 root bin 1569 Dec 15 15:26 ./etc/XF86Config.altair -r-x------ 1 bin bin 151552 Jun 10 1995 ./sbin/init -r-xr-xr-x 1 bin bin 176128 Jun 10 1995 ./sbin/ifconfig -r-xr-xr-x 1 bin bin 110592 Jun 10 1995 ./sbin/mount_nfs -r-xr-xr-x 1 bin bin 135168 Jun 10 1995 ./sbin/reboot -r-xr-xr-x 1 root bin 73728 Dec 13 22:38 ./sbin/mount -r-xr-xr-x 1 root wheel 1992 Jun 10 1995 ./dev/MAKEDEV.local -r-xr-xr-x 1 root wheel 24419 Jun 10 1995 ./dev/MAKEDEV
(FreeBSD 5.X ¤Ë¤ª¤¤¤Æ½é´ü¾õÂÖ¤Ç͸ú¤Ë¤Ê¤Ã¤Æ¤¤¤ë) devfs(5) ¤òÍøÍѤ·¤Æ¤¤¤Ê¤¤¤Î¤Ç¤¢¤ì¤Ð¡¢dev ¥Ç¥£¥ì¥¯¥È¥ê¤Ç MAKEDEV all ¤¹¤ë¤Î¤ò˺¤ì¤º¤Ë¡£
altair ¤Î /etc/rc ¤Ï ¼¡¤ÎÄ̤ê¤Ç¤¹¡£
#!/bin/sh # PATH=/bin:/ export PATH # # localhost ¤ÎÀßÄê /sbin/ifconfig lo0 127.0.0.1 # # ¥¤¡¼¥µ¥Í¥Ã¥È¥«¡¼¥É¤ÎÀßÄê /sbin/ifconfig ed0 199.246.76.2 netmask 0xffffff00 # # NFS ¤Ç root ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë /sbin/mount antares:/DiskLess/rootfs/altair / # # NFS ¤Ç /usr ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥Þ¥¦¥ó¥È¤¹¤ë /sbin/mount antares:/DiskLess/usr /usr # /usr/X11R6/bin/XF86_SVGA -query antares -xf86config /etc/XF86Config.altair > /dev/null 2>&1 # # X ¤ò½ªÎ»¤¹¤ë¤ÈºÆµ¯Æ° /sbin/reboot # # ¤¦¤Þ¤¯¹Ô¤«¤Ê¤¤¤È¤¤Ë¤Ï.... exit 1
¥³¥á¥ó¥È¤ä¼ÁÌä¤Ï¤É¤ó¤Ê¤â¤Î¤Ç¤â´¿·Þ¤·¤Þ¤¹¡£
ËÜʸ½ñ¡¢¤ª¤è¤Ó¾¤Îʸ½ñ¤Ï ftp://ftp.FreeBSD.org/pub/FreeBSD/doc/ ¤«¤é¥À¥¦¥ó¥í¡¼¥É¤Ç¤¤Þ¤¹¡£
FreeBSD ¤Ë´Ø¤¹¤ë¼ÁÌ䤬¤¢¤ë¾ì¹ç¤Ë¤Ï¡¢¥É¥¥å¥á¥ó¥È ¤òÆɤó¤À¾å¤Ç <questions@FreeBSD.org> ¤Þ¤Ç (±Ñ¸ì¤Ç)
Ï¢Íí¤·¤Æ¤¯¤À¤µ¤¤¡£
ËÜʸ½ñ¤Ë´Ø¤¹¤ë¼ÁÌä¤Ë¤Ä¤¤¤Æ¤Ï¡¢<doc@FreeBSD.org> ¤Þ¤ÇÅŻҥ᡼¥ë¤ò (±Ñ¸ì¤Ç)
Á÷¤Ã¤Æ¤¯¤À¤µ¤¤¡£