\documentclass[letterpaper]{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{·s»D Leafsite mini-HOWTO}
\author{Florian Kuehnert, {\ttfamily sutok@gmx.de}
Ä¶ªÌ: Mile Yeh {\ttfamily mile@mail.timenet.net}}
\date{v0.3, 4¤@¤ë 1998}
\abstract{³o¥÷ HOWTO ±N·|À°§U§A°w¹ï Usenet ·s»D³]©w¤@­Ó¤pªº leafsite
¥¦¨Ï¥Î§K¶O³nÅé®M¥ó Leafnode .¦³¥ô¦ó°ÝÃD,
«ØÄ³©M·N¨£,½Ð¼g«Hµ¹ Florian Kuehnert
(sutok@gmx.de).§A¦b³o¤å¥ó§ä¨ìªº¥ô¦ó¿ù»~¤]½Ð°eµ¹§Ú. (C) 1998 by Florian Kuehnert.}


\begin{document}
\maketitle

\section{¬°¤°»ò¨Ï¥Î Leafnode? }

¦b¼Ð·Ç®×¨Ò¤W¦pªG§A­n¦b§Aªº¥»¦a¹q¸£¤WÂ÷½u¬Ý·s»D
§A¥²¶·¦w¸Ë¤@­Ó·s»D¦øªA¾¹³nÅé´N¹³ INN ©ÎªÌ CNews.§A¤]
­n¨Ï¥Î nntp ©ÎªÌ uucp Áp±µ¨ì§Aªº·s»D¤W´å.
¨Æ¹ê¤W³o¼Ëªº®M¥ó¥]§t¤ñ§A»Ý­nªº§ó¦h¯S¦â,¦w¸Ë Leafnode §A·|
¸û¦n°õ¦æ.



Leafnode ¬O¨Ï¥Î¤WÂ²³æ³\¦h¥B«D±`¤pªº¦ý¬O¦³¤@¨Ç
¯ÊÂI: ¦b¦³¤@¨Ç¿ù»~µo¥Íªº±¡§Î¤U Leafnode ¬O½wºCªº©M¿ò¥¢·s»D
. ³o´N¬O¬°¤°»ò§A¤£­n¨Ï¥Î¥¦·í°µ¤@­Ó¤jªº·s»D¦øªA¾¹,
µM¦Ó,³o¬O¾A·íªº¹ï©ó­Ó¤Hªº¥Î¤á,¨Ï¥ÎªÌ¤£­nªá¶O
³\¦h®É¶¡³]©w INN.






\section{¦b­þ¸Ì¨ú±o Leafnode?}

Leafnode¬O¦b \nameurl{ftp://ftp.troll.no/pub/freebies/}{ftp://ftp.troll.no/pub/freebies/} ¥i¥H¨ú±o©M¥¦¬O¥Ñ
Arnt Gulbrandsen ©Òµo®iªº,¥L¬O Troll Tech AS ªº¤@­ÓÂ¾­û.³Ìªñªºª©¥»¬O
1.4 ©M¦b¤@¨Ç Linux distributions (¨Ò¦p Debian), Leafnode ³Q
¥]§t¦b¨ä¤¤.µL½×¦p¦ó,½T©w¨Ï¥Î³Ì±ßªºª©¥»
1.4 ¥¦­×¥¿¤F´X­Ó­«­nªº°ÝÃD.






\section{§Ú­n¦p¦ó¦w¸Ë¥¦?}

©M®M¥ó¤@°_¨Ó¦³¤@­Ó¤pªº¦w¸ËÀ°§U,Åý§Ú­Ì¤@°_°µ§a
:-) --¦pªG§Aªº distribution ¥X³f®É¬O Leafnode {$>$}=1.4 ,
³ÌÁo©úªº¬O¨Ï¥Î¨Æ¥ýÂ½Ä¶¦nªºª©¥»©M©¿²¤
¨BÆJ 1¨ì 4.



1.)½T©w¨S¦³§Oªº·s»D¦øªA¾¹¦b§Aªº¹q¸£¤W°õ¦æ
.·í§AÁä¤J\\ 
{\bfseries \$ telnet localhost nntp}\\ 
§A±N¨ú±o¤@­Ó¿ù»~«H®§.¦pªG§A±o¨ì¤@­Ó³s±µªº´£¥Ü¦^À³¨ì
§Aªº shell ¤W ,§AÀ³­n¤Ï¦w¸Ë INN , CNews ©ÎªÌ¤£ºÞ¤°»ò§A²{¦b¥¿¦b
°õ¦æªº·s»D¦øªA¾¹©M¬d©ú¦b§Aªº /etc/inetd.conf  nntp ¬ÛÃöªºÄæ¦ì

2.)¦b /etc/passwd ¤¤ÀË¬d³o­Ó¦WºÙ,¬d©ú¦³¤@­Ó¨Ï¥ÎªÌ¥s°µ "news",
.¦pªG¦b¸Ì­±¨S¦³,«Ø¥ß¤@­Ó (©ÎªÌÁä¤J\\ 
{\bfseries \$ adduser news}\\ 
©ÎªÌ¨Ï¥Î§Aªº distribution ¤¤¸òÀH¦Ó¨Óªº¤u¨ã).

3.) ¸Ñ¶}­ì©l½X:\\ 
{\bfseries \$tar xfz leafnode-1.4.tar.gz}\\ 
§ïÅÜ¥Ø¿ý¨ì­ì©l½X¥Ø¿ý \\ 
{\bfseries \$ cd leafnode-1.4}

4.) ½sÄ¶µ{¦¡©M¦w¸Ë¥¦\\ 
{\bfseries \$ make; make install}\\ 

5.)½s¿è /usr/lib/leafnode/config (³o¤]³\¬O¦b¥ô¦ó§Oªº¦ì¸m¹³¬O
/etc/leafnode ·í§A¨Ï¥Î§Aªº Linux distribution ªº¤@­Ó¨Æ¥ýÂ½Ä¶¦nªºª©¥»
).³o¤@¦æ "server ="­n«ü¥X§Aªº ISPªº·s»D¦øªA¾¹



6.)½s¿è /etc/nntpserver.³o±N¥]¬A§Aªº¥»¦a¥D¾÷¦W
(localhost ©ÎªÌ¤£ºÞ¤°»ò§A¹q¸£ªº¦WºÙ,©R¥O hostname
±NÀ°§U§A).¦pªG¦b¤@¨Ç°_°ÊÀÉ®×¹³¬O /etc/profile ©ÎªÌ
~/.bash\_profile Àô¹ÒÅÜ¼Æ¬O³Q¥ý©w¸qªº,§A
¤]­n½Õ¾ã§Aªº¹q¸£¦WºÙ.

7.)½s¿è /etc/inetd.conf:¬d©ú¨S¦³¤@¦æ¶}ºÝ¨Ï¥Î
"nntp".¦pªG¦³³o¼Ëªº¤@¦æ,¦b³o¤@¦æ«e©ñ¤@­Ó "\#"
.µM«á¥[¤U¦C¦U¦æ:\\ 
{\bfseries nntp    stream  tcp     nowait  news    /usr/sbin/tcpd /usr/local/sbin/leafnode}\\ 
·í¦³¤H (¨Ò¦p§A :-)³s±µ¨ì§Aªº¹q¸£¦b
NNTP port, leafnode ¶}©l¦p¦P¦øªA¾¹ªºµ{§Ç.

8.) ¥H root ©ÎªÌ news ªº¨­¥÷¶i¦æ³s½u©M°õ¦æ¦æµ{¦¡ "fetch" .²Ä¤@¦¸
fetch ¶}©l,³o±N·|¤U¸ü§Aªº ISP ªº·s»D¸s²Õªº²M³æ.³o
¤]³\ªá¤@ÂI¨à®É¶¡¨Ì§Aªº³s±µ³t«×©M
§Aªº ISP ¥¦ªº active-File ªº¸s²Õªº¼Æ¥Ø¦Ó©w.

9.) ¶}©l§A³Ì·Rªº newsreader (·s»DÅª¨ú­û) (slrn, (r)tin©M knews ¬O¤@­Ó
¦nªº¶}©l)©M­q¾\¥þ³¡§A­n¬Ýªº¸s²Õ.¤p¤ß¤£­n¥u
­q¾\³o¨Ç¸s²Õ,¤]¶i¤J¸s²Õ¤¤,§Y¨Ï·í¥L­Ì¬OªÅªº.

10.) ­«·s¶}©l±Ò°Ê fetch ¤U¸ü©Ò¦³·Q­n¨ú±oªº¸s²Õªº·s»D
.

 


\section{§Ú­n¦p¦óºûÅ@ leafnode?}

²{¦b§A¦³¤@­Ó¹B§@ªº·s»D¨t²Î¥¿¦b°õ¦æ,¦ý¬O
¤´µM¤@¨Ç¨Æª«­n°µ.§A¤]³\­n½s¿èÀÉ®× /usr/lib/leafnode/config
¨Ó³]©w§Aªº¸s²Õªº´Áº¡¤é´Á.³o¸¹½X·N«ä¬O,¦ó®É¥H«eªº
«H®§À³³Q§R°£.¦pªG§A¬Ýªº¤@¨Ç¸s²Õ¦³³\¦h·s»D¼Ð·Ç®É¶¡ 20 ¤Ñ³q±`¬O¹L¦h
¤Óªø, °w¹ï§Aªº¨t²Î¦Ó¨¥ 4 ¤Ñ©ÎªÌ¤@­Ó¬P´Á
¬O¦b¦h¼Æ±¡ªp¤U¬O¤@­Ó¦n®É¶¡.°w¹ï©Ò¦³¸s²Õ§A¥i¥H§ïÅÜ­pºâµ²ªG
("expire = n" ¥h§ì¦í¾ã­Óªº¸s²Õ n¤Ñ),¦ý¬O§A§i¶D
leafnode °w¹ï¤@¨Ç¤À¶}¸s²Õ§ïÅÜ®É¶¡¼¶¼g¦p¤U\\ 
groupexpire foo.bar n\\ 
°w¹ï¸s²Õ foo.bar ¨ì n ¤Ñ¥h³]©w´Áº¡®É¶¡.

³o¿W¥ß³]©w¤£·|¨Ï leafnode §R°£¥H«eÂÂªº«H®§,¤@­Ó
¤À¶}µ{¦¡·|­t³d°w¹ï³o­Ó: texpire.³o¤]³\¬O¶}©l
·í°µ¤@­Ó cron ªº¤u§@©ÎªÌ¾a©R¥O¦C.¦pªG§Aªº¹q¸£¬O¥þ¤Ñ­Ô¶}¾÷ªº,
§A¤]³\­n¥[¤U¦C¦U¦æ¨ì news' crontab ÀÉ®× (½s¿è
³o,¥Î news ªº¨­¥÷µn¤J©MÁä¤J "crontab -e"©ÎªÌ¥H root ¨­¥÷Áä¤J"crontab -u
news -e"):\\ 
0 19 * * * /usr/local/sbin/texpire\\ 
³o¦æ³y¦¨ cron daemon ¨C¤@¤Ñ¦b 19:00 ¶}©l texpire 
.ÀË¬d crontab »¡©ú­¶¦³§ó¦hªº½Õ¾ã´y­z.¦pªG
§Aªº¹q¸£¬O¨S¦³³W«h¦a¶}¾÷,§A¤]³\­n¨C¤@¦¸±Ò°Ê texpire
,·í§Aª`·N¨ì³o¥H­P¨ú±oÅÜ±o¸ûºCªº.¨Ï¥Î "cron-method" ¹B§@ªº«Ü¦n.




\section{¥¦¬O¦p¦ó¹B§@?}

Leafnode ¬O¤@­Ó "¯uªº" NNTP¦øªA¾¹,¥¦ªº·N«ä¬O§A¥i¥H¤]±q¤@­Ó¤£¦Pªº¹q¸£¤Wµn¤J
(¸g¥Ñ¸Uºûºô,§½³¡ºôµ¸µ¥µ¥
.¨C¦¸§A¥Î§Aªº newsreader (·s»DÅª¨ú­û)¶i¤J¤@­Ó¸s²Õ,§Aªº reader (Åª¨ú­û)
°e¸ê®Æ¨ì leafnode ©M½Ð¨D¥¦.¦pªG¸s²Õ
¨S¦³¦s¦b, leafnode ±N·|³Ð³y¤@ªÅÀÉ®×
/var/spool/news/interesting.groups,¦W¦r¹³¬O¸s²Õ.·í¤U¦¸§A¹B¦æ
fetch ,³o±N·|¨ú±o¸s²Õªº«H®§.¦pªG¤@­Ó
·s»D¸s²Õ¨S¦³¤@­Ó©T©wªº®É¶¡³Q«ô³X, leafnode ±N·|°±¤î
¥h¨ú±o¥¦ªº¤å³¹©M±q /var/spool/news/interesting.groups ¤¤§R°£¥¦ªº¦WºÙ
.©Ò¥H¦pªG§A·N¥~¦a¥u­q¾\¤F¤@­Ó
°ª¬y¶qªº·s»D¸s²Õ,§A¤]³\­n¾a¤â°Ê§R°£¥¦ªºÀÉ®×
,¤U¤@­Ó¬P´Á§A´N¤£¥²­n¤U¸ü©Ò¦³ªº°T®§.

¤@­Ó¬P´Á¬O°w¹ï§A¬O¤£°÷ªº?§A­n¥h«×°²¤T¬P´Á
©M¤´µM­n¨ú±o·s»D¶Ü?¤£©¯ªº,¨S¦³¿ï¶µ¦b leafnode ¤§¤¤¨Ó
§ïÅÜ¥¦.¦ý¬O§A¥i¥H½s¿èÀÉ®× leafnode.h ©M­«·s½sÄ¶¥¦.
\#defined ³q±`¬O TIMEOUT\_LONG ©M TIMEOUT\_SHORT,¥u­n³]©w
®É¶¡¦b¥H¬í­pºâ.¥t¥~ªº,Â²³æªº¸Ñ¨M¬O©w¸q¤@­Ó cron-job
¨C±ß°µ "touch /var/spool/news/interesting.groups/*" ³o¥ó¨Æ.

¦pªG§A­n¨ú±o¤@­Ó¾ã­Óªº¥i¥Îªº¸s²Õªº²M³æ,¬Ý¤@¤UÀÉ®×
/usr/lib/leafnode/groupinfo,¦b­þ¸Ì§A±N·|§ä¨ì¤@­ÓÂ²µuªº´y­z¸s²Õ.

¦pªG§A­n±q§Aªº·s»D¤W´å­«·sÅª¨ú·s»D¸s²Õªº²M³æ (Á|¨Ò
·í§A­n¬Ý¤@­Ó·sªº¸s²Õ),¥u­n§R°£ÀÉ®×
/var/spool/news/active.read. Fetch ¤U¦¸¨ú±o®É±N·|³Ð³y¥¦©M
¨ú±o·sªº²M³æ.Fetch ¤]±N·|¨C¤@¦¸­«·sÅª¨ú¸s²Õ²M³æ
,©Ò¥H§A¤£»Ý­n¤â°Ê°µ³o¥ó¨Æ.




\section{§ÚÀ³¸Ó¨Ï¥Î¤°»ò newsreader (·s»DÅª¨ú­û)?}

¨S¦³°w¹ï Linux ªº newsreader (·s»DÅª¨ú­û),´N¹³¬O¨S¦³
½s¿è¾¹.§Ú³Ì·Rªº newsreader (·s»DÅª¨ú­û)¬O gnus¼Ò¦¡¤Uªº emacs ¦b°w¹ï Linux ¥¦¦³
³Ì¦hªº¥i³]©wªº reader (Åª¨ú­û) .¦h¼Æ¤H¦b²×ºÝ¾÷¤W¬O¨Ï¥Î slrn©M
tin ,¦b X ¤§¤U³\¦h¤H¨Ï¥Î knews.¤]¦³¨Ï¥Î trn,
nn ©M§ó¦hºØ reader (Åª¨ú­û),©Ò¥H¸Õ¸Õ¤°»ò¬O§A³ß·Rªº.°ß¤@§A¤£­n¨Ï¥Îªº¬O reader (Åª¨ú­û)
Netscape ,¥¦¬O¤jªº, ¨S¦³¯S¦â,¤£Ã­©wªº,©M
¦³®É¥¦«Ø¥ßÃa±¼ªº posting(±i¶K).µL½×¦p¦ó,³o¬O§Aªº­Ó¤Hªº¨M©w.



µL½×¦p¦ó, knews ¹ï©ó§Aªº²Ä¤@¦¸¸gÅç¬O¤£¿ùªº¦Ò¼{,¥¦¬O
¨Ï¥ÎªÌ¤Íµ½ªº©M®e©ö¤F¸Ñ.




\section{¦b­þ¸Ì§Ú¥i¥H¨ú±o§ó¦h¸ê®Æ?}

¤@¨Ç¤å¥ó¬O¥Ñ Leafnode®M¥ó´£¨Ñ (¬Ý
¤å¥ó INSTALL ©M README,­ì©l½X¬O¤]¤Q¤À¦³½ìªº).¦pªG
§A­nª¾¹D§ó¦hÃö©ó "Â¾·~ªº"©M "¤jªº"·s»DªA°È¾¹,
ÀË¬d INN FAQ (¥L­Ì¬O¥Ñ INN ®M¥ó´£¨Ñªº).¨ú±o
¸ê®ÆÃö©ó§Aªº newsreader (·s»DÅª¨ú­û),Áä¤J man "name of your newsreader" (§Aªº·s»DÅª¨ú­ûªº¦WºÙ)
©ÎªÌÀË¬d§Oªº¤å¥ó¦b /usr/doc.

¦pªG§A¦³¥ô¦ó°ÝÃDÃö©ó·s»D¨t²Î,¥u­n¦b¤@¾A·íªº·s»D¸s²Õµo°Ý
(¬Ý news.software.ALL ªº¶¥¯Å²ÕÂ´).

¦pªG§A¦³¥ô¦ó¸ß°Ý,ª`¸Ñ©ÎªÌ­q¥¿Ãö©ó³o
HOWTO,¥uºÞ¼g«Hµ¹§Ú (sutok@gmx.de).




\section{ÁÂÁÂ}

§Ú·QÁÂÁÂ Michael Schulz (michaels@home.on-luebeck.de)
°w¹ï¥LªºÀ°§UÃö©ó¤@¨Ç»y¨¥°ÝÃD©M Cornelius Krasel
(krasel@wpxx02.toxi.uni-wuerzburg.de) °w¹ï¥Lªº "touch *"-§Þ¥©.





\end{document}
