\documentclass[letterpaper,english]{article}
\nonstopmode
\akai
\usepackage{linuxdoc-sgml}
\usepackage{qwertz}
\usepackage{url}
\usepackage[latin1]{inputenc}
\usepackage{t1enc}
\usepackage[english]{babel}
\usepackage{epsfig}
\usepackage{null}
\def\addbibtoc{
\addcontentsline{toc}{section}{\numberline{\mbox{}}\relax\bibname}
}%end-preamble
\setcounter{page}{1}
\title{¥Î Linux ±±¨î§Aªº®a¹q}
\author{Rui Li        \onlynameurl{ruili@worldnet.att.net}}
\date{v0.003, 26 April 2001}
\abstract{³o½g¤å³¹±Ð§A¦p¦ó¥Î Linux ¨ÓÂ²³æªº±±¨î§Aªº®a¹q. §A¥u»Ý­n°µ¤@­Ó¤p¤pªºÂ²³æ¹q¸ô,´N¥i¥H¥Î Linux ±±¨î§Aªº®a¹q¤F}


\begin{document}
\maketitle
\tableofcontents

\section{Â²¤¶}

¬Û«H«Ü¦h¤H³£·Qª¾¹D Linux ¬O§_¥i¥H±±¨î®a¹q©O¡H³o¤]¤@ª½¬O§Ú¤ñ¸û³ßÅwª±ªºªF¦è,
²{¦b,§Ú¥i¥Hµ¹§A¤@­ÓªÖ©wªºµª®×¡G Linux ¥i¥H«D±`»´ÃPÂ²³æªº±±¨î§Aªº®a¹q!

«e¬q®É¶¡¶¢¨ÓµL¨Æ,´N§â mini-howto ¤¤ coffee-machine ¨º½g¤å³¹¤¤ªº¹q¸ô¬ã¨s¤@µf,
µM«á¦A¥[¥H§ï¶i,°µ¤F­Ó¤pªº®a¹q±±¨îªº¹q¸ô³o¼Ë¥i¥H§Q¥Î crontab ¦Û°Ê³]©w«Ü¦hªF
¦è,¤ñ¦p«Ç¤º¹q¿O,ªÅ½Õ¦b¤@©wªº®É¶¡¦Û°Ê¥´¶}¤§Ãþªº.¤Ï¥¿¥u­n¬O¥Î¹qªºÂ²³æªº¶}
Ãö¥Ø«e³£¯à±±¨î.·íµM,³o­Ó¹q¸ô¤]¥i¥H±±¨î¨ä¥¦ªºªF¦è.¦ý¬O¨º¤]­n¹ï®a¹q°µ¤@ÂI
¤p¤pªº§ï°Ê.¤ñ¦p§Ú®a¤¤ªº VCR ©M VCD ³£³Q§Ú§ï¹L,©Ò¥H ¼·©ñ/°±¤î, «e¶i/«á°h, ÀW¹D
µ¥µ¥³£¥i¥H¥Î¹q¸£±±¨î.¼g­Ó¤pµ{¦¡,ÁÙ¥i¥H§Q¥Î web ¨Ó±±¨î¡] ÀHµM§Ú³£¬O¥Î telnet or ssh ¡^
§Q¥Î¼Æ¾Ú¾÷¼·¤J¥i¥H°µ¨ì¥´¹q¸Ü¨ì¦Û¤vªº¹q¸£¨½«á,¿é¤J¤@²Õ¸¹½X
±±¨î¬Y­Ó®a¹q.§Ú¤U¯Zªº®É­Ô,´N¥i¥H±q¿ì¤½«Ç telnet ¨ì®a¨½,³o¼Ë¦^¥hªº®É­Ô,ªÅ½Õ¤w¸g¥´¶}¤F,
¦pªG®É¶¡ºâªº·Ç,¦^®aªº®É­Ô¿O¤]­è¦n¥´¶}¤F:)

³o­Ó¹q¸ô³Ì¤jªº¦n³B´N¬O{\itshape {\bfseries «D±`Â²³æ}\/}.¥u­n¤­­Ó¹q¤l¤¸¥ó´N¯à°µ¦¨.¥i¥HÅý¤£À´
¹q¸ôªº¤H¤]ª±ªº¶}¤ß.

³o­Ó¹q¸ô¥i¥H¦A¦¸§ï¨},¯à§¹¦¨§ó¦hªº¥\¯à,³o´N¬Ý§A¦Û¤v«ç»ò±±¨î°Õ. 
§Ú¦b³o¨½´N¥uÁ¿°ò¥»ªºªF¦è.


\section{¨t²Î­n¨D}

ÀH«K§ä¤@¥x¥i¥H¸Ë°_¨Ó Linux ªº¹q¸£,½T©w¦³­Ó¥¿±`¤u§@ªº¨Ã¦C°ð´N¥i¥H¤F.
§Ú¥Ø«e¥¿¦b¥Î¤@¥x 386DX with 4MB RAM 40MB HD ªº¹q¸£±±¨î§Úªº®a¹q. 
³nÅé¤è­±,§A»Ý­n gcc ¥h½s¿è±±¨îªºµ{¦¡. ¦pªG·Q¥Î telnet ±±¨î,¨º»ò§AÁÙ»Ý­n telnetd
§A¥i¥H¦Û¤v¼g­Ó±±¨î¨Ã¦C°ðªºµ{¦¡. §Q¥Î ioperm ©M outb(value,port), ¨Ó±±¨î¨Ã¦C°ð. 
³q¹L value ­Èªº§ïÅÜ¹F¨ì±±¨î¦h²Õ®a¹qªº¥Øªº.

§A¤]¥i¥H¤UºI§Ú¤w¸g¼g¦nªºµ{¦¡,³o­Óµ{¦¡»Ý­n g++ ¨Ó compile
\nameurl{http://home.att.net/~ruili/goldencat/paralle.tar.gz}{}


\section{¹q¸ô°ò¥»­ì²z}

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
§Q¥Î¹q¸£ªº¨Ã¦C°ð¸ê®Æ½u1¨ì¨Ã¦C°ð¸ê®Æ½u9¥i¥H´£¦@0¨ì5¥ñ¹qªº¯S©Ê. ±±¨î¤@­ÓÄ~¹q¾¹¦Ó¹F¨ì±±¨î¹q¾¹ªº¥Øªº.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


»Ý­n­«ÂI»¡¤@¤U,³o¸Ì¥Îªº¬O paralle port,´N¬O±µ¥´¦L¾÷ªº¨º­Ó.¤£¬ORS232.
¦]¬°¦¬¨ì¤£¤ÖE-mail,·d²V paralle port ©M RS232

¤U­±¬O¹q¸£ªº¨Ã¦C°ð©M¤@­Ó³æ¤@ªºÂ²³æ¹q¸ô¡G

§Ú­Ì»Ý­n¥Î¨ìªº¥u¦³ pin 2 ¨ì pin 9 ³o¤K­Ó pin ¡]¥i¥H±o¨ì+5v¡^

pin 18 ¤@ª½¨ì pin 25 ¬O³qªº, ¬O¦a½u

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}

            ____________________________________________________________
           /                                                            \
           \     13  12  11  10   9   8   7   6   5   4   3   2   1     /
            \                                                          /
             \     25  24  23  22  21  20  19  18  17  16  15  14     /
              \______________________________________________________/




                                             | ³o¸Ì¬Oµ¹´£Ä~¹q¾¹¦@¥¿¹q Vcc
                                             |
                                             |
                                    / -------+--------| |---------|
P data              4.7K         B /  c      | 1N4002 |_|         |-------
-----------/\/\/\/\---------+-----| NPN    __ __        | relay   |³o¸Ì±µ®a¹q
                            |     \   e     /_\       |-|         |-------
                 LED        X      \         +--------| |---------|
P Ground                    |       |        |
----------------------------+-------+--------+
µ¹relay¨Ñ¹qªºGround½u                        |
---------------------------------------------+

\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


­ì²z©M¤¶²Ð¡G

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
P data          ¨Ã¦C°ð¸ê®Æ½u ¡]pin2 ¨ì pin9 ³£¬O,³o¸ÌªºÂ²³æ¹q¸ô¥u¥Î¨ì¤F¤@±ø¡^

p Ground        ¨Ã¦C°ð¦a½u ¡]18~25ÀH«K¬D¤@±ø§AÄ±±o¶¶²´ªº¡^

Vcc             ¬Ý§A¥Î¨ººØÄ~¹q¾¹¦Ó©w,§Ú¥Îªº¬O 12V ªºÄ~¹q¾¹©Ò¥H´N±µ­Ó 12V ªºª½¬y¹q·½¨ÑÀ³¾¹

Ground          12V ª½¬y¹q·½¨ÑÀ³¾¹ªº¦a½u

4.7k            4.7K ¹qªý

NPN             §Ú¬OÀH«K§ä¤F­Ó NPN ªº¹q´¹Åé, ³o­Ó¥u­nÀH«K§ä­Ó®t¤£¦hªº NPN ´N¥i¥H¤F
                §Úªº¬Oc2235,¤]¥i¥H¥ÎBC547A©ÎªÌ2N222A

1N4002          1N4002 ªº¤G·¥Åé

LED             µo¥ú¤G·¥ÅéÀH«K§ä­Ó·|µo¥úªº´N¦n¤F.³o¨½·í§@«ü¥Ü¿O
                ·í®a¹qªº¶}Ãö³Q¥´¶}«á,¿O´N·|«G

relay           Ä~¹q¾¹,¥\²v¬Ý§A»Ý­nªº¶R,§Ú³Ì¤pªº³£¥Î300W¡]¦Û¤vºâºâ´Nª¾¹D¤F,¤@­Ó¹q¿O³q±`45W¡^
                ³o¸Ì¿ï¾Üªº¬Ocoil relay. ¥D­n¬O¬Ý§A±µ¬Æ»ò®a¹q.300W¹ï¤j¦h¼Æ³£¨S¦³°ÝÃD.
                ¦pªG±µªÅ½Õ¤§Ãþªº,³Ì¤Ö3000W¤~¦w¥þ
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
³o­Ó¹q¸ô³q¹L¹q¸£ªº¨Ã¦C°ð±o¨ì¤@­Ó+5v¹qÀ£¥´¶}Ä~¹q¾¹,³o¼ËÄ~¹q¾¹¨ºÃäªº®a¹q´N´N³Q±µ³q¤F.
·í¨Ã¦C°ðªº¹qÀ£ÅÜ¦¨0ªº®É­Ô,Ä~¹q¾¹´N·|¸õ¦^Ãö³¬ª¬ºA,®a¹q¤]´NÃö³¬¤F.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


³o¸Ì¦AÁ¿Á¿relayªº¤u§@­ì²z©M¦p¦ó§â§Aªº®a¹q³sµ²¦brelay¤W,³o³¡¥÷ºâ¬OFAQ°Õ

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
³o¸Ì¬O¤@­Órelay,¤Îrelayªº¤º³¡¤u§@­ì²z¡G

      ____________________________
      |                          |
  1   |                          |  3
 -----|---------s     o----------|-------
      |  coil   s      \switch   |
  2   |         s       \        |  4
 -----|---------s     o- \-------|-------
      |                          |
      |                          |
      |                          |
      |__________________________|

¤W­±µeªº¬O¤@­Ó4¥u¸}ªºrelay.³o¸Ì,relay pin3 ©M pin4 ¥­®É¬OÂ_¶}ªº.
·í pin1 ©M pin2 ¤§¶¡¥[ªº¹qÀ£¥H«á (+12V¡^,³q¹Lcoil,´N·|§â switch
¥´¶}.³o®É­Ô, pin3 ©M pin4 ´N¬O³qªº¤F.¹ê»Ú¤W, pin1, pin2 °_¨ìªº
§@¥Î,¥u¬O±±¨î¶}Ãö¦Ó¤w.

relay¥»¨­´N¬O¤@­Ó¶}Ãö¡G


³o´N¬OrelayÂ_¶}ªºª¬ºA                   relay¥´¶}ªºª¬ºA

       |3                                    |3
       |                                     |
       |                                     |  
       o                                     o
        \                                    |
       o \                                   o
       |                                     |
       |                                     |
       |                                     |
       |4                                    |4

ÁÙ¦³¤H°Ý§Ú»¡,¶R¨ìªºrelay¬O¤­¥u¸}ªº,¨º»ò´N¶¶«KÁ¿Á¿ 5 ­Ó pin ªº relay °Õ


           _______________________________
           |                             |
     1     |                             |       5
  ---------|---+            o------------|----------------
           |   |-----------/---- s       |
           |              /      s       |
     3     |             /       s       |
  ---------|-----------o/        s       |       4
           |                 o---s-------|----------------
           |                     |       |
           |                     |       |
     2     |                     |       |
 ----------|---------------------+       |
           |_____________________________|

¤£¤Ó¦nµe,®t¤£¦h´N³o¼Ë°Õ.²{¦b¨ÓÁ¿­ì²z¡G
¥­®Éªºª¬ºA¤U, pin3 ©M pin5 ¬O³qªº. pin5 ©M pin4 ¬OÂ_¶}ªº.
·í¦b pin1 ©M pin2 ¤§¶¡¥[¹q¥H«á¡]12v¡^, pin3 ©M pin5 ´NÂ_¶}
¤F,¦Ó pin5 ©M pin4 ´N±µ³q¤F.¬Ý¤U­±ªº­ì²z¡G



²{¦b¬O relay Ãö³¬ª¬ºA             ³o¬Orelay¥´¶}ª¬ºA
     |5                                  |5
     |                                   |  
     |                                   |
     o                                   o
      \                                  |
     o \                                 o  o
     |  o                                |  |
     |  |                                |  |
     |  |                                |  |
    4|  |3                              4|  |3

relay ÁÙ¦³¥|¥u¸}ªº¤­¥u¸}ªº,³o¸Ì´N¤£¤¶²Ð¤F,­ì²z¤W³£¤@¼Ë,¥u¤£¹L
¸}¶V¦h,¤]´N»¡¬O­Ó¶V½ÆÂøªº¶}Ãö¦Ó¤w.§Ú­Ì¥u¦³¥Î¨ì4¥u¸}´N°÷¤F.

³o¸Ì¦bÁn©ú¤@¤U,¨C­Ó relay ªº³]­p³£·|¤£¤@¼Ë,¤]´N¬O»¡, pin ©ñªº
¦ì¸m¤£¤@¼Ë.§Ú¤W­±µeªº³£¬O­ì²z,¨ãÅé¨º¥u¸}ªø¦b relay ªº¬Æ»ò³¡¦ì,
ÁÙ¬O­n¦Û¤v¥h§PÂ_ªº,¦pªG¦Û¤v¤£·|´ú,¶Rªº®É«J°Ý°Ý¦ÑÁó.
¦³¨Ç relay ·|¦b relay ¦³ pin ªº¦a¤è¼Ð¤@­Ó¤p¤pªº s ,¨º»ò s ¨âÃä
ªº pin ´N¬O pin1, pin2. ³o¸Ìªº s ¬O«ü coil.


±µ¤U¨Ó»¡»¡¦p¦ó§â®a¹q³s±µ¨ì relay ¤W.



                         +-----+ ¹q·½´¡®y
       1 _______3        |   __|________             ||   ||
       --|     |---------+  |  |       |             ||   ||
       2 |relay|4           | (o) (o)  |            _||___||__
       --|_____|----+       |------|---|            |        |
                    |              |                |        | ®a¹q
                    | +------------+                |        |ªº´¡ÀY
                    | |                             |        |  
                    | |                             |        |
                  __|_|__                           |        |
                  | | | |                           |________|
                  | | | | ´¡ÀY 1
                  | | | |
                  |_|_|_| (¤£ºÞµeªº¹³¤£¹³,¤Ï¥¿³o´N¬O­Ó´¡ÀY°Õ¡^
                   || ||
                   || ||
                    
¥u­n§â®a¹qªº´¡ÀY´¡¨ì¨º­Ó¹q·½´¡®y¸Ì­±,´N¦n°Õ.¤]´N¬O»¡,¤£¥Î¹ï®a¹q
°µ¥ô¦óªº§ïÅÜ.¥u­n§ï­Ó´¡®y´N¦n.³o¼Ë¥ô¦ó®a¹q³£¥i¥H¥Î.
¦Ó´¡ÀY 1 ©O,´¡¨ì®a¸ÌÀð¤Wªº¹q·½´¡®y´N¦n.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


§Ú¦Û¤v¼g¤F­Óµ{¦¡¥i¥H«Ü¤è«Kªº±±¨î¨Ã¦C°ðªº¤K±ø¸ê®Æ½u.(»Ý­n g++)

\nameurl{http://home.att.net/~ruili/goldencat/paralle.tar.gz}{}

\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
§¹¾ãªº¹q¸ô¥i¥H±±¨î¤K²ÕÄ~¹q¾¹¤]´N¬O»¡¥i¥H±±¨î¤K²Õ¤£¦Pªº®a¹q.
§AÁÙ»Ý­n¤@­ÓDB25±µÀY(¨Ã¦C°ð±µÀY)ªº±µ¤f,³o¼Ë§Q¥Î¤@±ø¨Ã¦C°ð±Æ½u´N¯àÂ²³æªº§â¹q¸£©M±±¨î¹q¸ô³s±µ¨ì¤@°_¤F.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


§Ú¬O«ØÄ³±µªº®É­Ô,°µ­Ó²°¤l,¹q¸ô³£©ñ¦b²°¤l¨½.²°¤lªº¥¿­±¬O¶}Ãö,«ü¥Ü¿O
©MDB25ªº±µ¤f.¥­¹ê¥Î¨Ã¦C°ð±Æ½u©M¹q¸£³s±µ.
©³¤U¦³¨Ç¹Ï¤ù¥i¥HÅý§A°Ñ¦Ò

\nameurl{http://home.att.net/~ruili/goldencat/p1.jpg}{}

\nameurl{http://home.att.net/~ruili/goldencat/p2.jpg}{}

\nameurl{http://home.att.net/~ruili/goldencat/p3.jpg}{}



\par
\addvspace{\medskipamount}
\nopagebreak\hrule
\begin{verbatim}
§¹¾ãªº¹q¸ô¹Ï¡]±±¨î¤K²ÕÄ~¹q¾¹)¬O¥Î gschem °µ¥X¨Óªº.
\end{verbatim} 
\nopagebreak\hrule 
\addvspace{\medskipamount}


\nameurl{http://home.att.net/~ruili/goldencat/01.png}{}

¦pªG»Ý­n§â¹Ï¤ù©ñ¤j(³o¼Ë¬Ýªº·|²M·¡«Ü¦h)¥i¥H§ä§Ú­n§Ú¥Î gschem ª½±µ¿é¥Xªº¦sÀÉ
¦ý¬O³o»Ý­n gEDA 

¤UºI gEDA \nameurl{http://www.geda.seul.org/}{}

§Úªºhomepage:

\nameurl{http://home.att.net/~ruili/goldencat/index.html}{}


\section{·PÁÂ}

³o¸Ì¯S§O·PÁÂ Rufus Chang \onlynameurl{rufus@chu.url.com.tw}
¦pªG¤£¬O¥L´£Ä³,§Ú´N®Ú¥»¤£·|·Q¨ì¼g³o½g mini-howto.
¬Ýªº¤H¤]¥u¦n¥h bbs §ä,©ÎªÌ¹B®ð¦n¯à§ä¨ì§Úªº homepage :)

¥L¤]À°§U§ÚÂ½Ä¶¤F¤@¨Ç§ÚµLªkÂ½Ä¶¦¨¤¤¤åªº­^¤å³æµü

¤]¯S§O·PÁÂ Chih-Wei Huang \onlynameurl{cwhuang@linux.org.tw}
¯àÅý§Ú§â³o½g mini-howto ©ñ¨ì CLDP


\section{Mirror
§Úªºhomepage:}

\nameurl{http://home.att.net/~ruili/goldencat/index.html}{}



Mirror in Taiwan:

\nameurl{http://www.study-area.net/goldencat/linux-mini-howto/index.html}{}



I'm still looking for a Mirror in People's Republic Of China



English Version (maybe old):

\nameurl{http://www.linuxdoc.org/HOWTO/mini/Home-Electrical-Control/}{}






\section{Copyright and License}

Copyright Rui Li 2000-2001

License is GNU GPL, but it is requested that you retain the author's name
and email on all copies.

·í±z copy ³o½g¤å³¹ªº®É­Ô,½Ð«O¯d§Úªº©m¦W©M E-mail

\end{document}
