/usr/share/doc/HOWTO/ja-html/Windows-Modem-Sharing-2.html is in doc-linux-ja-html 2006.05.25-1.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
<META NAME="GENERATOR" CONTENT="SGML-Tools 1.0.9">
<TITLE>LINUX MODEM SHARING MINI-HOWTO: ¥µ¡¼¥Ð¦¤ÎÀßÄê(Linux)</TITLE>
<LINK HREF="Windows-Modem-Sharing-3.html" REL=next>
<LINK HREF="Windows-Modem-Sharing-1.html" REL=previous>
<LINK HREF="Windows-Modem-Sharing.html#toc2" REL=contents>
</HEAD>
<BODY>
<A HREF="Windows-Modem-Sharing-3.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Windows-Modem-Sharing-1.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Windows-Modem-Sharing.html#toc2">Ìܼ¡¤Ø</A>
<HR>
<H2><A NAME="s2">2. ¥µ¡¼¥Ð¦¤ÎÀßÄê(Linux)</A></H2>
<P>¥µ¡¼¥Ð¤Ë¤ÏLinux¤ò»È¤¤¡¢°Ê²¼¤Î¤³¤È¤òÁ°Äó¤È¤·¤ÆÏä·¤ò¿Ê¤á¤Þ¤¹¡£
<OL>
<LI>¥â¥Ç¥à¤Ï<CODE>/dev/ttyS</CODE><I>x</I>¥Ç¥Ð¥¤¥¹¤ò»È¤¤¤Þ¤¹¡£</LI>
<LI><CODE>isdn4linux</CODE> <CODE>/dev/ttyI</CODE><I>x</I>¥Ç¥Ð¥¤¥¹
(<EM>ÌõÃí¡§</EM><CODE>isdn4linux</CODE>¤Î¥µ¥¤¥È¤Ïftp://ftp.franken.de/pub/isdn4linux/¤Ê¤É
¤Ç¤¹¡£ISDN²óÀþ¤Ç¤Ê¤¤¤È¡Ö²óÀþ¤¬»ÈÍÑÃæ¤Ç¤¹¡£¤·¤Ð¤é¤¯¤·¤Æ¤«¤é¤ä¤êľ¤·¤Æ
¤ß¤Æ²¼¤µ¤¤¡×(Windows95¦)¤È¤¤¤¦¥á¥Ã¥»¡¼¥¸¤¬½Ð¤ë¤Î¤Ç¤¹¤¬¡¢¤¦¤Þ¤¯¤¤¤Ã¤¿Êý¤¬
¤ª¤é¤ì¤¿¤é¤¼¤Ò¶µ¤¨¤Æ²¼¤µ¤¤)</LI>
</OL>
¤â¤Ã¤È¤â´Êñ¤Ê¥»¥Ã¥È¥¢¥Ã¥×¤È¤·¤Æ<CODE>modem demon</CODE>¤òµ¯Æ°¤¹¤ë¤¿¤á¤Î
£µ¹Ôperl¥¹¥¯¥ê¥×¥È¤ò»È¤¤¤Þ¤¹¡£
<P>$ cat /usr/sbin/modemd
<HR>
<PRE>
#!/usr/bin/perl
select((select(STDOUT), $| = 1)[$[]);
select((select(STDIN), $| = 1)[$[]);
exec 'cu -s 115200 -l /dev/ttyS1';
die '$0: Cant exec cu: $!\n';
</PRE>
<HR>
¥¯¥é¥¤¥¢¥ó¥È¤¬Å¬Åö¤Ê¥Ý¡¼¥È¤ËÀܳ¤·¤Æ¤¤¤ë¾ì¹ç¡¢¥â¥Ç¥à¥Ç¡¼¥â¥ó(modemd)¤Ï
<CODE>inetd</CODE>¥×¥í¥»¥¹¤Ë¤è¤Ã¤Æ³«»Ï¤µ¤ì¤Þ¤¹¡£°Ê²¼½Ò¤Ù¤ë¤è¤¦¤Ë
¥â¥Ç¥à¥Ç¡¼¥â¥ó¤Ïñ¤Ë'<CODE>cu</CODE>'¥³¥Þ¥ó¥É¤Îɸ½àÆþÎÏ/½ÐÎϤò¥½¥±¥Ã¥È¥Ï¥ó¥É¥ë¤ËÀܳ
¤·¤Æ¡¢'<CODE>cu</CODE>'¥Ï¥ó¥É¥ë¤ò¼ÂºÝ¤Î¥â¥Ç¥à¥Ç¥Ð¥¤¥¹¤È¤¹¤ë¤À¤±¤Ç¤¹¡£'<CODE>cu</CODE>'¥³¥Þ¥ó
¥É¤¬¥·¥¹¥Æ¥à¤Ë¤Ê¤¤¾ì¹ç¤Ï¡¤UUCP¥Ñ¥Ã¥±¡¼¥¸¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ²¼¤µ¤¤¡£
'cu'¤Ï UUCP¤Î°ìÉô¤Ç¤¹(<EM>ÌõÃí¡§</EM>cu ¤Ï¾¤Î¥·¥¹¥Æ¥à¤ò¥³¡¼¥ë¥¢¥Ã¥×(Call up)
¤¹¤ë¥³¥Þ¥ó¥É¤Ç¤¹)¡£
<P>¥â¥Ç¥à¥Ç¡¼¥â¥ó¤Î¸ºß¤ÏÀßÄê¥Õ¥¡¥¤¥ë¤ò¥¢¥Ã¥×¥Ç¡¼¥È¤¹¤ë¤³¤È¤Çinetd¥×¥í¥»¥¹
¤È¤·¤Æǧ¼±¤µ¤ì¤Þ¤¹¡£ÀßÄê¥Õ¥¡¥¤¥ë¤ÏÄ̾ï<CODE>/etc/inetd/conf</CODE>¤Ë
<HR>
<PRE>
#
# modem daemon
#
modem stream tcp nowait root /usr/sbin/tcpd /usr/sbin/modemd /dev/ttyS1
</PRE>
<HR>
¤È½ñ¤«¤ì¤Þ¤¹(<EM>ÌõÃí¡§</EM><CODE>/dev/ttyS1</CODE>¤ÏŬÅö¤Ê¥Ç¥Ð¥¤¥¹¤ËÊѹ¹¤·¤Þ¤¹)¡£
¤³¤ì¤òÆ°ºî¤µ¤»¤ë¤¿¤á¤Ë¡¤<CODE>/etc/services</CODE>¤Ë¥¨¥ó¥È¥ê¡¼¤µ¤»¤Þ¤¹¡£
<HR>
<PRE>
modem 2006/tcp modemd
</PRE>
<HR>
¤³¤ÎÎã¤Ç¤Ï¡¢¥·¥ó¥Ü¥ê¥Ã¥¯Ì¾¤Ï¥Ý¡¼¥ÈÈÖ¹æ2006¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£
¥Ý¡¼¥ÈÈÖ¹æ¤Ï»ÈÍѤµ¤ì¤Æ¤¤¤Ê¤¤¥µ¡¼¥Ó¥¹¤Î¤â¤Î¤¬»È¤¨¤Þ¤¹¡£Êѹ¹¸å¡¤inetd¥×¥í¥»¥¹
¤Ë¥·¥°¥Ê¥ë¤òÁ÷¤ê¤Þ¤¹¡£¤³¤ì¤Ïinetd¤ÇÀßÄê¤òºÆÅÙÆɤ߹þ¤ß¡¢¥×¥í¥»¥¹¤òºÆ³«¤µ¤»¤ë
¤¿¤á¤ËɬÍפǤ¹¡£
<PRE>
$ ps |grep inetd
194 ? S 0:00 /usr/sbin/inetd
kill -HUP 194
</PRE>
¤³¤ì¤Ç¥µ¡¼¥Ð¦¤Ï¥¯¥é¥¤¥¢¥ó¥È¤«¤é¤ÎÍ×µá¤ò¼õ¤±¤ë½àÈ÷¤¬¤Ç¤¤Þ¤·¤¿¡£
Àµ¤·¤¯µ¡Ç½¤·¤Æ¤¤¤ë¤«¤Ï°Ê²¼¤Î¤è¤¦¤Ë¤·¤Æ³Îǧ¤Ç¤¤Þ¤¹¡£
<PRE>
$ telnet localhost modem
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
</PRE>
¤µ¤¢¡¤¥â¥Ç¥à¤Ë¤Ä¤Ê¤¬¤ê¤Þ¤·¤¿¡£¥»¥Ã¥È¥¢¥Ã¥×¤ò³Îǧ¤¹¤ë¤¿¤á¤Ë'AT'¥³¥Þ¥ó¥É¤ò
¤¦¤Á¤³¤ó¤Ç¤ß¤Þ¤¹¡£
<PRE>
atz
atz
OK
ati1
ati1
Linux ISDN
OK
^]
telnet>quit
$
</PRE>
¥â¥Ç¥à¥µ¡¼¥Ð¤ÇPerl¥¹¥¯¥ê¥×¥È¤ò»È¤¦Âå¤ï¤ê¤Ë¡¤mserver¤È¤¤¤¦¥×¥í¥°¥é¥à¤â
¤¢¤ê¤Þ¤¹¡£<CODE>ftp://ftp.innet.be/pub/staff/carl/</CODE>¤«¤éÆþ¼ê¤Ç¤¤Þ¤¹¡£
¤¦¤Þ¤¯¤ß¤Ä¤«¤é¤Ê¤¤»þ¤Ïarchie¥³¥Þ¥ó¥É¤Ç¸¡º÷¤¹¤ë¤«Å¬Åö¤Ê¥µ¡¼¥Á¥¨¥ó¥¸¥ó
¤ò»È¤Ã¤Æmserver¤Îºß½è¤òõ¤·¤Æ²¼¤µ¤¤¡£Ãø¼Ô¤Ï¤Þ¤Àmserver¤ò¥¤¥ó¥¹¥È¡¼¥ë¤·¤Æ
»È¤Ã¤Æ¤¤¤Ê¤¤¤Î¤Ç¤³¤ì°Ê¾å¤Ï¥³¥á¥ó¥È¤Ç¤¤Þ¤»¤ó(ÌõÃí¡§mserver¤Ï¥Í¥Ã¥È¥ï¡¼¥¯
¤Ë·Ò¤¬¤Ã¤Æ¤¤¤ë¾¤Î¥Û¥¹¥È¤«¤é¥â¥Ç¥à¤ò»È¤¦¤¿¤á¤Î¥Í¥Ã¥È¥ï¡¼¥¯¥â¥Ç¥à¥µ¡¼¥Ð
¥×¥í¥°¥é¥à¤Ç¤¹¡£¥â¥Ç¥à¥Ç¥Ð¥¤¥¹¤Ï¥ê¥â¡¼¥È¥Û¥¹¥È¤¬¥µ¡¼¥Ð¤ËÀܳ¤µ¤ì¤¿»þ¤À¤±
¥ª¡¼¥×¥ó¤µ¤ì¤Þ¤¹¡£¾Ü¤·¤¯¤Ïmserver¥Ñ¥Ã¥±¡¼¥¸¤ÎREADME¤Ë½ñ¤«¤ì¤Æ¤¤¤Þ¤¹)¡£
<P>
<HR>
<A HREF="Windows-Modem-Sharing-3.html">¼¡¤Î¥Ú¡¼¥¸</A>
<A HREF="Windows-Modem-Sharing-1.html">Á°¤Î¥Ú¡¼¥¸</A>
<A HREF="Windows-Modem-Sharing.html#toc2">Ìܼ¡¤Ø</A>
</BODY>
</HTML>
|