@jesse_時間到囉
@kevinwatt //nod
@kevinwatt那開始囉. :)
@jesse_等一下...
@jesse_開始錄音了 :)
@kevinwatt喔... :)
@jesse_k
@jesse_那請 kevinwatt 開始吧!
* jesse_ 拍手
@kevinwatt* What's INN?
@kevinwattINN 並不是指其字義上的"館",而是InterNet News的縮寫。
@kevinwatt接下來要考一下古。
@kevinwatt所謂的NetNews也就是大家熟知的Usenet。
@kevinwattUsenet並不是Use 跟 Net兩個字所組成,而是已User's Net的角度去延伸
@kevinwatt出Usenet這樣的詞彙。                                            
@jesse_要公告廣播的 url...
@jesse_http://icecast.debian.org.tw:8000/D.ogg
@kevinwattjesse_: http://news.debian.org.tw/ircc.m3u
@kevinwattUsenet 是屬於網路應用上的概念,它的實體也就是我們所謂的NetNews。
@kevinwatt從早期的惠多網(Fidonet)或是國內少數人曾使用過的BITNET 其實就已經存在Usenet
@kevinwatt的雛型了。                                                                
@kevinwatt早期的層次比較簡單。已FidoType而言,當時在台灣存在著亞洲區ZD各縣市Host與單一站
@kevinwatt台的Node。                                                                    
@kevinwatt由ZD負責對國外接轉信,HOST向ZD接轉信,而Node向Host接轉信。
@kevinwattZD->HOST->Node
@kevinwatt是一種樹狀結構的轉信方式。
@kevinwattUsenet 在當時是衡跨FidoType與InterNet等多種網路的一種概念。
@kevinwatt它將所有的資訊串連起來。可以使用NNRP連結,可以透過BBS張貼,
@kevinwatt甚至是透過其它的News轉入。
@kevinwattUsenet裡有所謂群組的概念,也就是我們所稱呼的討論區。
@kevinwatt全世界目前任有在使用的群組加起來超過四萬筆。
@kevinwatt對於這部份的歷史國內有多位大師的文件都有詳細的記錄,故不在此詳細說明...
@kevinwatt當WWW在今日的盛行... 許多古老的服務漸漸沒落(像Gopher...),但Usenet依然健在。
@kevinwatt其實是因為Usenet本身有許多不可抹滅的特性。
@jesse_廣播的 url : http://icecast.debian.org.tw:9000/D.ogg
@kevinwatt一直到現在Linux kernel之類的OSS軟體的開發多數也都還是仰賴Usenet的溝通,
@kevinwatt連微軟都有自己的Usenet討論群組。
@kevinwattUNIX早期有幾個大型的新聞傳送軟體,Bnews、Cnews及INN。
@kevinwattBnews的最後一板應該是 1989-10-31 停止發行,而 Cnews 從 1988 年到現在目前
@kevinwatt還依然有人在使用,然而新功能從1995年後就停止Release了。
@kevinwatt(目前你還是可以找到debian所提供的cnews deb package 已經是cr.g7-37了)
@kevinwatt比較新的新聞傳送軟體如Leafnode、DNews。
@kevinwatt接下來,就是我們今天的主題。
@kevinwatt========================================================================
@kevinwatt    InterNetNews package (INN) 是一個 Usenet 上所使用的 News 系統。
@kevinwatt    一個包含了 innd、NNTP server、nnrpd,與newsreading server的系統。
@kevinwatt    INN根據RFC 1036與RFC 977兩套規則發展。
@kevinwatt    http://www.faqs.org/rfcs/rfc1036.html
@kevinwatt    http://www.faqs.org/rfcs/rfc977.html
@kevinwatt    一個包含了 innd、NNTP server、nnrpd,與newsreading server的系統。
@kevinwatt    INN的開發有兩種板本,STABLE 跟 CURRENT。
@kevinwatt    STABLE的板本只會進行Bug 的修正, CURRENT 則是開發中的板本。
@kevinwatt    一般情況下, latest snapshot 的STABLE板本應該是較適合公開服務的。
@kevinwatt    前一個STABLE是2.3.5,而目前已經轉移到 INN 2.4.0 上了。
@kevinwatt    INN 2.4.x 的Release將會把主力放在Bug的修正上。
@kevinwatt    在修改中的2.4.x,將來會直接進入2.5.x的序號。
@kevinwatt    目前而言最穩定的板本應該是2.4.x,而2.3.5的板本將不會再有更新的變動。
@kevinwatt===========================================================================
@kevinwatt* INN2安裝                                                                
@kevinwatt你可以從這裡取得最新板的INN2
@kevinwattftp://ftp.isc.org/isc/inn/
@kevinwatt或者, apt-get install inn2 inn2-inews
@kevinwattDebian unstable version已經使用一個相當新的STABLE INN2板本了。
@kevinwattINN2跟INN明顯的不同是 INN2 可供非常複雜的News Server環境使用,是對大型
@kevinwatt站台而言很值得參考使用的系統。                                        
@kevinwattDebian上的INN仍然存在,但是適用於比較簡單的環境。
@kevinwatt在一開始安裝Debian's INN 啟動時只簡單的設定 本地端使用 。
@kevinwatt你需要注意到其它Package的板本是否有大於目前的板本。      
@kevinwatt================================================================
@kevinwattlibc6 (>= 2.3.2-1)                                              
@kevinwatt    GNU C Library
@kevinwattlibperl5.8 (>= 5.8.0)
@kevinwatt    Shared Perl library.
@kevinwattlibdb4.1
@kevinwatt    Berkeley v4.1 Database Libraries [runtime]
@kevinwattdebconf (>= 0.5)
@kevinwatt    Debian configuration management system
@kevinwatt================================================================
@kevinwatt編輯/etc/news/inn.conf
@kevinwatt# General Settings
@kevinwattdomain:                 debian.org.tw
@kevinwatt然後再起動
@kevinwatt/etc/init.d/inn2 restart
@kevinwatt如果沒有問題,那麼就裝好了。如果有其它的問題,那麼就還沒裝好... (廢)
@kevinwatt<問題時間>
@jesse_INN 是指 INN 1.x.x 嗎?
@kevinwattjesse_: 是的. 沒錯. :)
@kevinwatt==========================================================================
@kevinwattINSTALL FAQ:(沒裝好才需要處理)                                            
@kevinwatt<繼續>
@kevinwatt    cat /var/log/news/news.err這個ERROR MESSAGE。
@kevinwatt    如果你發現有這一行。
@kevinwatt    Nov 13 07:01:51 hikari innd: SERVER cant dbzinit /var/lib/news/history
@kevinwatt    No such file or directory                                            
@kevinwatt    這個算是比較常見的問題。
@kevinwatt    排除它,建立history    
@kevinwatt    cd /var/lib/news
@kevinwatt    rm history*    
@kevinwatt    touch history
@kevinwatt    makedbz -i  
@kevinwatt    rename history.n. history. history*
@kevinwatt    把中間的 n 去除。                  
@kevinwatt    makedbz 會因為 configure 下的參數而出現不同檔案, 只用 --with-perl
@kevinwatt    會出現三個檔案, 分別是 history.n.hash history.n.dir history.n.index
@kevinwatt===========================================================================
@kevinwatt事實上在inn2的設定檔大部份都在 /etc/news下.
@kevinwatt INN 的相關系統設定
@kevinwatt    * 接收誰餵過來的信件  incoming.conf (設定餵過來的主機名稱與位置)
@kevinwatt    * 餵送出去            newsfeeds, innfeed.conf                  
@kevinwatt    * 定期清理            expire.ctl            
@kevinwatt    * 系統監督            innwatch.ctl
@kevinwatt    * 系統報告            innreport.conf
@kevinwatt餵過來... 指的是上游下游間的轉信動作。
@kevinwatt<沒問題的話我們開始講解設定檔)
@jesse_廣播的 url : http://icecast.debian.org.tw:9000/D.ogg
@kevinwatt##  inn.conf -- INN configuration data
@kevinwatt在/etc/news/inn.conf
@kevinwatt##  Format:
@kevinwatt##      <parameter>:<whitespace><value>
@kevinwatt##      <功能項>:<空白跟空白><設定值>
@kevinwatt##  你可以參考 inn.conf(5) 的 man page 對每一項參數進行管理。
@kevinwatt##  範例檔基本上的目地分成兩種設定; 快速, 還有一些必要設定的參數
@kevinwatt##  (或者應該被設定在幾乎所有的案例當中的),
@kevinwatt##
@kevinwatt## 必要設定
@kevinwatt##
@kevinwatt## 已下的參數都是需要設定的,縱使內定的值也許是可使用...
@kevinwattmta:                    "/usr/sbin/sendmail -oi -oem %s"
@kevinwatt##
@kevinwatt##                      當然,就是設定你的MTA
@kevinwatt##
@kevinwattorganization:           "LastLoveSong InterNetNews site"
@kevinwatt##
@kevinwatt##                       團體, 公會, 協會或單位名稱
@kevinwatt##
@kevinwattovmethod:               tradindexed
@kevinwatt##
@kevinwatt## 指的是 "overview storage method"
@kevinwatt##
@kevinwatt## overview 用在提供索引來取得文件放置的位置,同時也要供NNRP軟體來查尋閱讀。
@kevinwatt##
@kevinwatt## 目前有三種。
@kevinwatt##
@kevinwatt## 我們針對其特性做介紹
@kevinwatt##
@kevinwatt## 1. tradindexed 讀取快速 寫入慢
@kevinwatt##
@kevinwatt## 2. buffindexed 用了緩衝區來儲存所有的 overvew 寫入快讀取慢,需設定
@kevinwatt##                buffindexed.conf
@kevinwatt##
@kevinwatt## 3. ovdb        是使用BerkeleyDB library建立的overview資料,需要 BerkeleyDB
@kevinwatt##                library 2.6之後的板本(最好是3 or 4 )另外需設定 ovdb.conf
@kevinwatt##
@kevinwatthismethod:              hisv6
@kevinwatt##
@kevinwatt## history的記錄方式。事實上它只能夠設成hisv6,但這並不是內定的。
@kevinwatt## 所以還一定要設定。
@kevinwatt##
@kevinwatt## hisv6 是指 history v6 format,系統升級時需要按照這個固定格式。
@kevinwatt##
@kevinwattpathhost:               kevinwatt.ossug.org
@kevinwatt## 若為空時為FQDN,該設定主要會顯示出現在文章標頭的path。
@kevinwattpathnews:               /usr/lib/news
@kevinwatt##
@kevinwatt## 一般設定
@kevinwatt##
@kevinwatt## 一般設定
@kevinwatt##
@kevinwatt#domain:                        ossug.org
@kevinwatt## 若domain沒設定的話,INN會自動設定
@kevinwatt#innflags:
@kevinwattmailcmd:                /usr/lib/news/bin/innmail
@kevinwattserver:                 u122-184.u61-70.giga.net.tw
@kevinwatt## default NNTP server
@kevinwatt##
@kevinwatt#
@kevinwatt## Feed Configuration
@kevinwatt## 餵送設定,這個地方設定出去跟進來的資料。
@kevinwatt#
@kevinwattartcutoff:              10
@kevinwatt## 這個設定應該跟 expire.ctl 裡的 /remember/ 項一樣。
@kevinwatt## 預設值應該是10
@kevinwatt#
@kevinwatt#bindaddress:
@kevinwatt#
@kevinwatt## Which IP address innd(8) should bind itself to
@kevinwatt## 預設值是不設定
@kevinwatt#
@kevinwatt#bindaddress6:
@jesse_不一樣會怎麼樣嗎?
@kevinwattjesse_: 我也不知道.. 沒試過... XD
@kevinwattdontrejectfiltered:     false
@kevinwatt## 一般innd若有設定article filters則會擋掉incoming articles。
@kevinwatt## 除非是不要擋,不然不需要更動此項設定。
@kevinwatthiscachesize:           256
@kevinwatt#
@kevinwatt# 使用到多少K的記憶體做為history file的Cache
@kevinwattignorenewsgroups:       false
@kevinwattimmediatecancel:        false
@kevinwattlinecountfuzz:          0
@kevinwattmaxartsize:             1000000
@kevinwattmaxconnections:         50
@kevinwatt#pathalias:
@kevinwattpgpverify:              true
@kevinwattport:                   119
@kevinwattrefusecybercancels:     false
@kevinwattremembertrash:          true
@kevinwatt#sourceaddress:
@kevinwatt#sourceaddress6:
@kevinwattverifycancels:          false
@kevinwattwanttrash:              false
@kevinwattwipcheck:               5
@kevinwattwipexpire:              10
@kevinwatt# Article Storage
@kevinwattcnfscheckfudgesize:     0
@kevinwattenableoverview:         true
@kevinwattgroupbaseexpiry:        true
@kevinwattmergetogroups:          false
@kevinwattovercachesize:          15
@kevinwatt#ovgrouppat:
@kevinwattstoreonxref:            true
@kevinwattuseoverchan:            false
@kevinwattwireformat:             false
@kevinwattxrefslave:              false
@kevinwattnfswriter:              false
@kevinwatt# Reading
@kevinwattallownewnews:           true
@kevinwattarticlemmap:            false
@kevinwattclienttimeout:          600
@kevinwattinitialtimeout:         10
@kevinwattmsgidcachesize:         10000
@kevinwattnnrpdcheckart:          true
@kevinwattnoreader:               false
@kevinwattreaderswhenstopped:     false
@kevinwattreadertrack:            false
@kevinwattnfsreader:              false
@kevinwattnfsreaderdelay:         60
@kevinwatttradindexedmmap:        true
@kevinwattnnrpdloadlimit:         16
@kevinwatt# Reading -- Keyword Support
@kevinwatt#
@kevinwatt# 這個功能主要是overview Options之一,用來做一些簡單的Word-Counting。
@kevinwatt#
@kevinwatt# 啟動這個的時後若不停止INND和刪除正在執行的Overview Database,
@kevinwatt# 新增時將有可能照成很多困擾....
@kevinwatt#
@kevinwatt# 當然, 你也必需要完全支援這一項功能。
@kevinwattkeywords:               false
@kevinwatt# Whether the keyword generation support should be enabled
@kevinwattkeyartlimit:            100000
@kevinwatt# Articles larger than this value in bytes will not have keywords generated
@kevinwattkeylimit:               512
@kevinwatt# Maximum number of bytes allocated for keyword data
@kevinwattkeymaxwords:            250
@kevinwatt# Maximum number of keywords that will be generated for an article
@kevinwatt# Posting
@kevinwattaddnntppostingdate:     true
@kevinwattaddnntppostinghost:     true
@kevinwattcheckincludedtext:      false
@kevinwattcomplaints: news@lls.twbbs.org
@kevinwatt# X-Complaints-To: 的設定。
@kevinwatt# 用來設定投訴信箱,請參考Header。
@kevinwatt#
@kevinwattfromhost: lls.twbbs.org
@kevinwatt##
@kevinwatt## 用來自動幫local的使用者建立e-mail addresses
@kevinwatt##
@kevinwatt## <user>@fromhost
@kevinwatt##
@kevinwatt## 這個設定同樣也會被inews跟mailpost這兩個cmds取用。
@kevinwatt##
@kevinwattlocalmaxartsize:        1000000
@kevinwattmoderatormailer:        kevinwatt@ossug.org
@kevinwatt## 管理者信箱
@kevinwattnnrpdauthsender:        false
@kevinwatt#nnrpdposthost:
@kevinwattnnrpdpostport:          119
@kevinwattspoolfirst:             false
@kevinwattstrippostcc:            false
@kevinwatt##
@kevinwatt## Posting -- Exponential Backoff Algorithm(指數倒退演算法)
@kevinwatt##
@kevinwatt## 這是一種演算法,有點類似CSMA/CD所採用的Binary Exponential Backoff。
@kevinwatt## 在這邊所使用的演算式為
@kevinwatt##
@kevinwatt##        sleep time = 1 + (previous sleep time * backoffk)
@kevinwatt##
@kevinwatt## 經由指數倒退演算法,nnrpd可以支援管理大量的張貼人數。
@kevinwatt## 每一篇來自同一個IP的的文章會被壘積起來(延遲時間比照演算法的Sleeptime)
@kevinwatt##
@kevinwatt## 事實上,張貼認何東西。 文章都會被接受,但是效率會漸漸減少。
@kevinwatt##
@kevinwattbackoffauth:            false
@kevinwatt#backoffdb:
@kevinwattbackoffk:               1
@kevinwattbackoffpostfast:        0
@kevinwattbackoffpostslow:        1
@kevinwattbackofftrigger:         10000
@kevinwattVictor_: 直接在這邊問?
Victor_我想問一下 現在的 news 架構還是樹狀的嗎?
Victor_還是網狀的 :)
@kevinwattVictor_: 現在News的架構是網狀的. :)
Victor_那會不會有 loop 的問題呢?
@kevinwattVictor_: Loop會有. 所以事實上有很多的機制來預防....
Victor_kevinwatt: 是 news 本身 protocol 做掉的嗎?
@kevinwattVictor_: 不是. 是各系統的功能...
@kevinwattVictor_: 但NEWS會有Message ID.
Victor_kevinwatt: 了解了 ^^ 抱歉 請繼續 :pp
@jesse_path 應該也可以用來做 loop detection ?
@kevinwattjesse_: //nod
@kevinwatt不好意思. 由於打字跟講話同步比較累...有一些問題的完整回應是使用口述的方式. :)
* Victor_ 旁邊有別人 沒聽 XD
@kevinwattVictor_: .... (唔... 那我還是繼續...)
@kevinwatt# Monitoring
@kevinwatt# 這邊變數用來控制innwatch的表現。
@kevinwatt# innwatch這隻程式是用來監控INN。
@kevinwatt# 若有錯誤發生,將會通知 news 管理者。
@kevinwattdoinnwatch:             true
@kevinwatt# start innwatch(8) from rc.news
@kevinwattinnwatchbatchspace:     800
@kevinwattinnwatchlibspace:       25000
@kevinwattinnwatchloload:         1000
@kevinwattinnwatchhiload:         2000
@kevinwattinnwatchpauseload:      1500
@kevinwattinnwatchsleeptime:      600
@kevinwattinnwatchspoolnodes:     200
@kevinwattinnwatchspoolspace:     8000
@kevinwatt# Logging
@kevinwatt# 這些參數用來管理INN的Log記錄。
@kevinwatt#
@kevinwattdocnfsstat:             false
@kevinwattlogartsize:             true
@kevinwattlogcancelcomm:          false
@kevinwattlogcycles:              3
@kevinwattlogipaddr:              true
@kevinwattlogsitename:            true
@kevinwattnnrpdoverstats:         false
@kevinwattnntpactsync:            200
@kevinwattnntplinklog:            false
@kevinwattstatus:                 0
@kevinwatttimer:                  0
@kevinwatt# System Tuning
@kevinwattbadiocount:             5
@kevinwattblockbackoff:           120
@kevinwattchaninacttime:          600
@kevinwattchanretrytime:          300
@kevinwattdatamovethreshold:      8192
@kevinwatticdsynccount:           10
@kevinwattkeepmmappedthreshold:   1024
@kevinwatt#maxcmdreadsize:
@kevinwattmaxforks:               10
@kevinwattnicekids:               4
@kevinwattnicenewnews:            0
@kevinwattnicennrpd:              0
@kevinwattpauseretrytime:         300
@kevinwattpeertimeout:            3600
@kevinwattrlimitnofile:           -1
@kevinwatt# Paths
@kevinwatt# INN的檔案放置路逕。
@kevinwatt#
@kevinwattpatharchive:            /var/spool/news/archive
@kevinwattpatharticles:           /var/spool/news/articles
@kevinwatt# News文章存放的路逕
@kevinwatt#
@kevinwatt# 若您打算在 storage.conf 使用 tradspool method (storage.conf負責管理系統
@kevinwatt# 使用何種方式儲存文章。),那麼您News文章裡都是很小的檔案。
@kevinwatt# 所以如果要在ext2模式下很多管理者會將每個 block 分割為 2KB左右。
@kevinwatt#
@kevinwatt# mke2fs -b 2048 -i 1024 /dev/hdb1
@kevinwatt#
@kevinwatt# 當然啦,reiserfs在這方面的表現更好,不但對4K以下的小檔案搜尋快速
@kevinwatt# (採用Binary Search Tree) 而且inode的極限值可達4294967295。
@kevinwatt#
@kevinwatt# 如果你要使用CNFS method (一樣是storage.conf的儲存模式),那麼您應該會建數
@kevinwatt# 個非常大的檔案,這個時後可能使用XFS效能會來的更好。
@kevinwatt#
@kevinwattpathbin:                /usr/lib/news/bin
@kevinwatt#
@kevinwatt# 一些INN可用的執行檔,很多管理上需要使用的檔案也都放在這邊。
@kevinwatt#
@kevinwatt# 如 inncheck、ctlinnd
@kevinwatt#
@kevinwattpathcontrol:            /usr/lib/news/bin/control
@kevinwatt#
@kevinwatt# 一些Feed的控制檔。
@kevinwatt#
@kevinwatt# checkgroups.pl  newgroup.pl  sendme.pl   senduuname.pl
@kevinwatt# ihave.pl        rmgroup.pl   sendsys.pl  version.pl
@kevinwatt#
@kevinwattpathdb:                 /var/lib/news
@kevinwatt# active、history跟newsgroups.. 等。
@kevinwatt#
@kevinwattpathetc:                /etc/news
@kevinwatt#
@kevinwatt# 設定檔
@kevinwattpathfilter:             /etc/news/filter
@kevinwattpathhttp:               /var/log/news
@kevinwattpathincoming:           /var/spool/news/incoming
@kevinwattpathlog:                /var/log/news
@kevinwattpathoutgoing:           /var/spool/news/outgoing
@kevinwattpathoverview:           /var/spool/news/overview
@kevinwattpathrun:                /var/run/news
@kevinwattpathspool:              /var/spool/news
@kevinwattpathtmp:                /var/spool/news/incoming/tmp
@kevinwatt<暫停>
@jesse_廣播的 url : http://icecast.debian.org.tw:9000/D.ogg
@kevinwatt各位還有沒有甚麼問題... :)
@jesse_我看 dot 是用 timehash ?
@jesse_kevinwatt: XD  去倒水啊.. ^^
@kevinwattjesse_: 嗯... 對. 但cnfs比較快... XD
@jesse_timehash 就是那個一封信一個檔的方式嗎?
@kevinwattjesse_: 我等一下講/etc/news/storage.conf的時後會講道... :)
@jesse_k
@jesse_繼續吧
@jesse_突然聽到背景音樂...
@kevinwatt##      auth "<名稱>" {
@kevinwatt##              hosts: "<由何處的機器所組成(hosts list)>"
@kevinwatt##              auth: "<認證程式>"                      
@kevinwatt##              res: "<resprog>"  
@kevinwatt##              default: "<identity>"
@kevinwatt##              default-domain: "<email-domain>"
@kevinwatt##      }                                      
@kevinwatterr....
@kevinwatt/etc/news/readers.conf
@kevinwatt讀取張貼權限設定檔
@kevinwatt##      auth "<名稱>" {
@kevinwatt##              hosts: "<由何處的機器所組成(hosts list)>"
@kevinwatt##              auth: "<認證程式>"                      
@kevinwatt##              res: "<resprog>"  
@kevinwatt##              default: "<identity>"
@kevinwatt##              default-domain: "<email-domain>"
@kevinwatt##      }                                      
@kevinwatt##      access "<名稱>" {
@kevinwatt##              users: "<userlist>"
@kevinwatt##              newsgroups: "<newsgroups>"
@kevinwatt##              read: "<read>"            
@kevinwatt##              post: "<post>"
@kevinwatt##              access: "<perm>"
@kevinwatt##      }                      
@kevinwatt#        
@kevinwatt#       auth 用來判斷群組內的使用者或群組外的。
@kevinwatt#       access 則是管裡各群組的權限。          
@kevinwattauth "localhost" {
@kevinwatt    hosts: "localhost, 127.0.0.1, stdin"
@kevinwatt    default: "<localhost>"
@kevinwatt}
@kevinwattaccess "localhost" {
@kevinwatt    users: "<localhost>"
@kevinwatt    newsgroups: "*"
@kevinwatt    access: RPA
@kevinwatt}
@kevinwattauth "debian" {
@kevinwatt    hosts: "linux4.cc.ntu.edu.tw"
@kevinwatt    default: "<debian>"
@kevinwatt}
@kevinwattaccess "debian" {
@kevinwatt    users: "<debian>"
@kevinwatt    newsgroups: "tw.*"
@kevinwatt    access: RP
@kevinwatt}
@kevinwatt#        限制來源
@kevinwatt#        沒有反指的區域被排除在外。
@kevinwattauth "other" {
@kevinwatt        hosts: "*.tw, *.com, *.org, *.edu, *.cn, *.jp, *.hk"
@kevinwatt        default: "<other>"
@kevinwatt}
@kevinwattaccess "other" {
@kevinwatt        users: "<other>"
@kevinwatt        newsgroups: "tw.*"
@kevinwatt        access: RP
@kevinwatt}
@kevinwatt## 沒有列在裡面的也會被排除。
@kevinwatt#(忘了打進去)
@kevinwattauth "read-only" {
@kevinwatt#       限制來源  
@kevinwatt#       de來的只可以貼test區
@kevinwatt    hosts: "*.de"
@kevinwatt    default: "<readonly>"
@kevinwatt}                        
@kevinwattaccess "read-only" {
@kevinwatt    hosts: "<readonly>"
@kevinwatt    read: "tw.*"
@kevinwatt    post: "tw.debian.test"
@kevinwatt}
@kevinwatt/etc/news/incoming.conf
@kevinwatt接收何人的餵信...
@kevinwattstreaming:              true   # streaming allowed by default
@kevinwattmax-connections:        8      # per feed
@kevinwattpeer ME {  
@kevinwatt  hostname:         "localhost, 127.0.0.1"
@kevinwatt}              
@kevinwattpeer debian {
@kevinwatt  hostname:         "linux4.cc.ntu.edu.tw, 140.112.8.142"
@kevinwatt}
@kevinwattpeer buty {
@kevinwatt  hostname:         "buty, 139.175.13.15"
@kevinwatt}
@kevinwatt      group fast-sites {
@kevinwatt           max-connections: 15
@kevinwatt           # Another peer. The ``max-connections'' value from the
@kevinwatt           # ``fast-sites'' group scope is used.
@kevinwatt           peer ossug.org {
@kevinwatt                hostname: ossug.org
@kevinwatt           }
@kevinwatt           peer netnews.nctu.edu.tw {
@kevinwatt                hostname: netnews.nctu.edu.tw
@kevinwatt                max-connections: 20 # he can really cook.
@kevinwatt           }
@kevinwatt      }
@kevinwatt/etc/news/storage.conf
@kevinwattNews的記錄方式
@kevinwatt#      method <所選用的method方式> {
@kevinwatt#            newsgroups: <Group名稱>
@kevinwatt#            class: <storage_class>
@kevinwatt#            size: <文章最小Size>[,<文章最大Size>]
@kevinwatt#            expires: <最少保留時間>[,<最大保留時間>]
@kevinwatt#            options: <參數(僅供`cnfs'使用)>        
@kevinwatt#        }                                  
@kevinwatt#        
@kevinwatt#      <storage_class>是介於0~255的數字。
@kevinwatt#                                        
@kevinwatt#       method的方式有五種
@kevinwatt#                        
@kevinwatt#
@kevinwatt#    cnfs        Cyclic News File System, 其效能應該是最快的(比trash慢)
@kevinwatt#                                                                      
@kevinwatt#    timehash    /timecaf-nn/bb/aacc.CF   會依資料的抵達時間放入多筆資料
@kevinwatt#                nn是<storage_class>的十六進位數。bbaacc則是到達時間的十
@kevinwatt#                六進位數。                                            
@kevinwatt#                          
@kevinwatt#    timecaf     跟timehash相似,/time-nn/bb/cc/yyyy-aadd `yyyy'是序號式的
@kevinwatt#                十六進位數。                                            
@kevinwatt#                            
@kevinwatt#    tradspool   目錄格式是/news/group/name/nnnnn。`news/group/name'是group
@kevinwatt#                名稱,`nnnnn'則是一個序號式的名稱。
@kevinwatt#
@kevinwatt#    trash       丟棄
@kevinwatt#
@kevinwattmethod tradspool {
@kevinwatt        class: 1
@kevinwatt        newsgroups: *
@kevinwatt}
@kevinwatt#
@kevinwatt# 如果要使用 CNFS 的方式,要另外設定 CNFS 的一些參數。
@kevinwatt#
@kevinwatt# FAQS 文章大於0, 小於3999。
@kevinwatt# SMALLAREA 文章大於0, 小於3999。
@kevinwatt# BIGAREA 文章大於4000,小於1000000。
@kevinwatt#
@kevinwatt#method cnfs {
@kevinwatt#       newsgroups: gnu.*
@kevinwatt#       class: 1        
@kevinwatt#       size: 0,3999
@kevinwatt#       expires: 4d1s
@kevinwatt#       options: FAQS
@kevinwatt#}                  
@kevinwatt#method cnfs {
@kevinwatt#       newsgroups: *,!gnu.*,!tw.debian
@kevinwatt#       class: 2                      
@kevinwatt#       size: 0,3999
@kevinwatt#       expires: 0s,4d
@kevinwatt#       options: SMALLAREA
@kevinwatt#}                        
@kevinwatt#method cnfs {
@kevinwatt#       newsgroups: tw.debian.*
@kevinwatt#       class: 3              
@kevinwatt#       size: 4000,1000000
@kevinwatt#       options: BIGAREA  
@kevinwatt#}                      
@kevinwatt要設定CNFS除了這邊
@kevinwatt要另外看到一個設定檔 /etc/news/cycbuff.conf
@kevinwatt# 這個要根據 storage.conf 的設定來設。
@kevinwatt# 先用dd建一個1k為單位的512000k空間。
@kevinwatt#                                    
@kevinwatt# dd if=/dev/zero of=/export/cycbuffs/one bs=1024 count=512000
@kevinwatt#                                                            
@kevinwatt#       bs=bytes
@kevinwatt#       count=blocks寫入block數
@kevinwatt#                              
@kevinwattcycbuff:ONE:/export/cycbuffs/one:512000
@kevinwattcycbuff:TWO:/export/cycbuffs/two:512000
@kevinwattcycbuff:THREE:/export/cycbuffs/three:512000
@kevinwattcycbuff:FOUR:/export/cycbuffs/four:512000  
@kevinwatt# 參考storage.conf
@kevinwatt#
@kevinwatt# FAQS 存文章至少大於0, 小於3999。
@kevinwatt# SMALLAREA 存文章至少大於0, 小於3999。
@kevinwatt# BIGAREA 是存文章至少大於4000(最小),小於1000000(最大)。
@kevinwattmetacycbuff:BIGAREA:ONE,TWO
@kevinwattmetacycbuff:SMALLAREA:THREE
@kevinwattmetacycbuff:FAQS:FOUR
@jesse_有問題..
@kevinwatt請說... :)
@jesse_像上面把 tw.debian.* 指定為 bigarea, 但要是信件太小呢?
@kevinwattjesse_: 太小會被丟到SMALLAREA裡
@kevinwattjesse_: 可以發現到SMALLAREA的NewsGroup我們設成newsgroups: *
* kevinwatt 去WC
@jesse_嗯, 看到了.. :)
@kevinwatt還有沒有別的問題???
@kevinwattXD
@kevinwatt還是繼續?
@jesse_繼續吧 :)
@kevinwatt好...
@kevinwatt/etc/news/innfeed.conf & /etc/news/newsfeeds
@kevinwatt## 全域變數的設定。
@kevinwatt##                                          
@kevinwattpid-file:                       innfeed.pid             # relative to pathrun
@kevinwattdebug-level:                    0                                            
@kevinwattuse-mmap:                       false
@kevinwattlog-file:                       innfeed.log             # relative to pathlog
@kevinwattstdio-fdmax:                    0                                            
@kevinwatt## Uncomment the next line to include the contents
@kevinwatt## of ``testfile'' at this point.                
@kevinwatt#$INCLUDE testfile
@kevinwattbacklog-directory:              innfeed                 # relative to pathspool
@kevinwattbacklog-rotate-period:          60                                            
@kevinwattbacklog-ckpt-period:            30
@kevinwattbacklog-newfile-period:         600
@kevinwattdns-retry:                      900
@kevinwattdns-expire:                     86400
@kevinwattclose-period:                   86400
@kevinwattgen-html:                       false
@kevinwattstatus-file:                    innfeed.status          # relative to pathlog
@kevinwattconnection-stats:               false                                        
@kevinwatthost-queue-highwater:           200  
@kevinwattstats-period:                   600
@kevinwattstats-reset:                    43200
@kevinwattmax-reconnect-time:             3600
@kevinwattinitial-reconnect-time:         30  
@kevinwatt## Defaults for all peers. These must all exist at
@kevinwatt## global scope. Any of them can be redefined    
@kevinwatt## inside a peer or group definition.        
@kevinwatt##                                  
@kevinwattarticle-timeout:                600
@kevinwattresponse-timeout:               300
@kevinwattinitial-connections:            1  
@kevinwattmax-connections:                5
@kevinwattmax-queue-size:                 5
@kevinwattstreaming:                      true
@kevinwattno-check-high:                  95.0
@kevinwattno-check-low:                   90.0
@kevinwattno-check-filter:                50.0
@kevinwattport-number:                    119
@kevinwattdrop-deferred:                  false
@kevinwattmin-queue-connection:           false
@kevinwattbacklog-limit:                  0    
@kevinwattbacklog-factor:                 1.10
@kevinwattbacklog-limit-highwater:        0  
@kevinwattdynamic-method:                 3
@kevinwattdynamic-backlog-filter:         0.7
@kevinwattdynamic-backlog-low:            25.0
@kevinwattdynamic-backlog-high:           50.0
@kevinwattno-backlog:                     false
@kevinwattbacklog-feed-first:             false
@kevinwatt# 餵給誰好味。
@kevinwattpeer debian {
@kevinwatt        ip-name:                linux4.cc.ntu.edu.tw
@kevinwatt        max-connections:        10                  
@kevinwatt}
@kevinwatt# 群組好味
@kevinwatt#        
@kevinwattgroup lalalamysong {
@kevinwatt        max-connections: 7
@kevinwatt        peer lls.twbbs.org {
@kevinwatt                # 如果沒設定, ip-name 會內定為 lls.twbbs.org
@kevinwatt                streaming:              false                
@kevinwatt        }                                    
@kevinwatt        peer bbs.ossug.org {
@kevinwatt                ip-name:        61.70.122.184
@kevinwatt        }                                    
@kevinwatt}        
@kevinwatt##
@kevinwatt##  newsfeeds - determine where Usenet articles get sent
@kevinwatt##                                                      
@kevinwatt##  Format:
@kevinwatt##   (1)   site[/exclude,exclude...]\
@kevinwatt##   (2)           :pattern,pattern...[/distrib,distrib...]\
@kevinwatt##   (3)           :flag,flag...\                          
@kevinwatt##   (4)           :parameter    
@kevinwatt##                          
@kevinwatt##  (1)
@kevinwatt##  site通常是代稱,若在site後面加上!則會在NEWS文章中的path:以此種方式
@kevinwatt##  顯示出sitename,不設定的話會以pathhost的設定為主。                
@kevinwatt##                                                    
@kevinwatt##  exclude指的是文章header 的 path:中若文章有經過對方的位置,表示對方
@kevinwatt##  已經有收到過這篇文章了。                                          
@kevinwatt##  ex:                    
@kevinwatt##       debian/linux4.cc.ntu.edu.tw,news.debian.org.tw\
@kevinwatt##                                                      
@kevinwatt##  (2)
@kevinwatt##  pattern表示送文章的模式,在這邊將餵送groups的條件設妥。
@kevinwatt##  ex:                                                    
@kevinwatt##        :!*,tw.*\
@kevinwatt##                
@kevinwatt##  (3)
@kevinwatt##  flag是用來訂定餵送時的限制,FLAG VALUES的種類多多。其中T type是拿來做
@kevinwatt##  傳送模式所使用的。
@kevinwatt##  在這邊只介紹一個,其它的可自行參考man newsfeeds。
@kevinwatt##  m        Funnel (multiple entries feed into one)
@kevinwatt##
@kevinwatt##  將多個餵送的資料會整成一個資料區塊送出。(Funnel 漏斗,這邊的意思是指
@kevinwatt##  如通過漏斗般移動)
@kevinwatt##
@kevinwatt##
@kevinwatt##  ex:
@kevinwatt##       :Tm
@kevinwatt##          
@kevinwatt##  (4)
@kevinwatt##  parameter的設定要由FEED TYPES決定,
@kevinwatt##  如果是使用Tm的話可以這樣設。      
@kevinwatt##  ex:                        
@kevinwatt##      :innfeed!
@kevinwatt##              
@kevinwatt##  在這邊會呼叫
@kevinwatt##     innfeed!:!*\
@kevinwatt##             :Tc,Wnm*\
@kevinwatt##             :/usr/lib/news/bin/startinnfeed
@kevinwatt##                                            
@kevinwatt##
@kevinwattME:!*/!local,!collabra-internal::
@kevinwatt#ME這行是設以下的餵信的初始值
@kevinwattcontrolchan!\                                                    
@kevinwatt        :!*,control,control.*,!control.cancel\
@kevinwatt        :Tc,Wnsm:/usr/lib/news/bin/controlchan
@kevinwatt# site必需跟innfeed.conf裡取的一樣。
@kevinwatt#                                  
@kevinwattdebian/linux4.cc.ntu.edu.tw,news.debian.org.tw\
@kevinwatt        :!*,tw.*\                              
@kevinwatt        :Tm:innfeed!
@kevinwattinnfeed!:!*\
@kevinwatt        :Tc,Wnm*\
@kevinwatt        :/usr/lib/news/bin/startinnfeed
@kevinwatt/etc/news/expire.ctl
@kevinwatt##這是用來設定文章保留天數的檔案,刪除的動做會在news.daily被啟動。
@kevinwatt##
@kevinwatt##  /remember/:<keep> 文章過期後會在 history 裡面最多保留幾天
@kevinwatt##                    設定一定的時間可避免old articles被再送回來。
@kevinwatt/remember/:14                                                    
@kevinwatt##  <patterns>:<modflag>:<keep>:<default>:<purge>
@kevinwatt##  <patterns>  名稱                            
@kevinwatt##  <modflag>   NewsGroup的種類。
@kevinwatt##              A 代表所有的。  
@kevinwatt##              M 代表有人管。
@kevinwatt##              U 代表沒人管。
@kevinwatt##  <keep>      文章最少保留幾天。
@kevinwatt##              User指定的expire少於此的話以keep為準。
@kevinwatt##  <default>   文章一般保留幾天。                    
@kevinwatt##                                
@kevinwatt##  <purge>     文章最長保留幾天。
@kevinwatt##              User指定的expire多於此的話以purge為準。
@kevinwatt##  word "never."                                      
@kevinwatt##              永不過期。
@kevinwatt*:A:1:10:never            
@kevinwatttw.*:A:10:10:10
@kevinwatttw.debian.*:A:never:never:never
@kevinwatt/etc/news/innwatch.ctl
@kevinwatt##  會監控系統執行狀態的程式,必要的時後它可是會停止服務使用者的。
@kevinwatt接下來講的這些比較清鬆... (覺得我會講到十二點...)
@jesse_XD
@kevinwatt/var/lib/news/ 下面的檔案
@kevinwatt/var/lib/news/active
@jesse_mosix 可以下次講.. :P
@kevinwattactive 的檔案格式
@kevinwatt[name]    [High]       [Low]  [Flags]
@kevinwattcontrol 0000000000 0000000001 n      
@kevinwattcontrol.cancel 0000000003 0000000001 n
@kevinwattcontrol.checkgroups 0000000000 0000000001 n
@kevinwattcontrol.newgroup 0000000000 0000000001 n  
@kevinwattcontrol.rmgroup 0000000000 0000000001 n
@kevinwattjunk 0000000000 0000000001 n          
@kevinwattlocal.general 0000000000 0000000001 y
@kevinwattlocal.test 0000000000 0000000001 y  
@kevinwatttw.debian.general 0000000000 0000000001 y
@kevinwatttw.debian.test 0000000007 0000000008 y  
@kevinwatttw.debian.hurd 0000000001 0000000002 y
@kevinwatt此檔案官方建議不要手動修改,最好是使用ctlinnd建立。
@kevinwatt[Flags] 可用的設定有
@kevinwatt    * y
@kevinwatt      該group允許使用者直接張貼與讀取。
@kevinwatt    * m
@kevinwatt      此group有專門的moderator(管理者),張貼的POST會先寄到moderator的手上。
@kevinwatt      由moderator審核後再丟出去。                                          
@kevinwatt    * n
@kevinwatt      不允許張貼,但接受遠端的餵送。
@kevinwatt    * x
@kevinwatt      不允許張貼,但可由系統產生POST。
@kevinwatt    * j
@kevinwatt      POST將會自動轉貼到junk區。
@kevinwatt    * =foo.bar
@kevinwatt      將該討論區的POST自動轉貼到 foo.bar 這個Group。(等於是有指名的j)
@kevinwatt/etc/news/subscriptions
@kevinwatt此檔為推薦訂閱的NewsGroup
@kevinwatt在client第一次連結時如果有支援這項功能,下面的newsgroups會被推薦訂閱
@kevinwattkevin@lls:/etc/news$ cat subscriptions
@kevinwattnews.announce.newusers                
@kevinwattnews.newusers.questions
@kevinwattmisc.test              
@kevinwattmisc.test.moderated
@kevinwattnews.announce.newgroups
@kevinwattnews.answers          
@kevinwatt/var/lib/news/newsgroups
@kevinwattlls:/var/lib/news# cat newsgroups
@kevinwattcontrol                 Various control messages (no posting)
@kevinwattcontrol.cancel          Cancel messages (no posting)
@kevinwattcontrol.checkgroups     Hierarchy check control messages (no posting)
@kevinwattcontrol.newgroup        Newsgroup creation control messages (no posting)
@kevinwattcontrol.rmgroup         Newsgroup removal control messages (no posting)
@kevinwattjunk                    Unfiled articles (no posting)
@kevinwattlocal.general           Local general group
@kevinwattlocal.test              Local test group
@kevinwatt/etc/control.ctl
@kevinwatt/etc/news/control.ctl
@kevinwatt## NCTU (Taiwan)
@kevinwattcheckgroups:chen@cc.nctu.edu.tw:nctu.*:doit
@kevinwattnewgroup:chen@cc.nctu.edu.tw:nctu.*:doit
@kevinwattrmgroup:chen@cc.nctu.edu.tw:nctu.*:doit
@kevinwatt## Debian Newsgroups (Debian Taiwan groups)
@kevinwattnewgroup:news@debian.org.tw:tw.debian.*:doit
@kevinwattrmgroup:news@debian.org.tw:tw.debian.*:doit
@kevinwatt## Debian Newsgroups (Debian Taiwan groups)
@kevinwattnewgroup:news@debian.org.tw:tw.debian.*:doit
@kevinwattrmgroup:news@debian.org.tw:tw.debian.*:doit
@kevinwatt/etc/news/innreport.conf
@kevinwattinnreport 是一套相當不錯的 inn log file 的統計及分析軟體  
@kevinwatt/usr/lib/news/bin/ctlinnd
@kevinwatt重新載入設定檔。
@kevinwatt    ctlinnd reload [config] [reason]
@kevinwatt    ex:
@kevinwatt    #ctlinnd reload active balabala
@kevinwatt    #ctlinnd reload newsfeeds newfeed
@kevinwatt    #ctlinnd reload incoming.conf newcoming..
@kevinwatt新增一個討論群組。
@kevinwatt    ctlinnd reload [groupname]
@kevinwatt    #ctlinnd newgroup tw.debian.abc
@kevinwatt刪除一個討論群組。
@kevinwatt    ctlinnd rmgroup [groupname]
@kevinwatt    #ctlinnd rmgroup tw.debian.abc
@kevinwatt刪除一篇指定Message-ID 的POST。
@kevinwatt     ctlinnd cancel [Message-ID]
@kevinwatt    #ctlinnd cancel 3BCBF4B3.8AD48C8F@linux.org.hk
@kevinwatt暫停服務
@kevinwatt    ctlinnd pause [reason]
@kevinwatt    #ctlinnd pause stop...
@kevinwatt暫停服務並關閉history
@kevinwatt    ctlinnd throttle [reason]
@kevinwatt    #ctlinnd throttle balabala
@kevinwatt繼續服務
@kevinwatt    ctlinnd go [reason]
@kevinwatt    #ctlinnd go balabala
@kevinwatt    go可以讓已暫停服務繼續服務但reason必需要跟暫停時所下的一樣。
@kevinwatt其它套件介紹: suck
@kevinwattlls:/etc/suck# cat get-news.conf
@kevinwatt# Your default local NNTP server.
@kevinwattserver: kevinwatt.ossug.org
@kevinwattservtype: inn2.3
@kevinwattremoteserver: quimby.gnus.org
@kevinwattoutgoingfile: quimby.gnus.org
@kevinwattsedcmd: /^NNTP-Posting-Host:\|^NNTP-Posting-Date:\|^X-Complaints-To:\|^Xref:\|^X-Trace:\|^X-Server-Date:/d
@kevinwattsuckoptions: -q -n
@kevinwattlls:/etc/suck# cat sucknewsrc
@kevinwattgnu.gcc.announce 16
@kevinwattgnu.gcc.help 8450
@kevinwattgnu.gcc 1029
@kevinwattgnu.gcc.bug 11
@kevinwatt呼........
* jesse_ 拍手
tsung還有結束音樂...
@jesse_^^
tsung真是不錯的一堂課.. :)
@jesse_多謝 kevinwatt ^^
Victor_辛苦囉 ^^
@kevinwattjesse_: 唔... 下次換經理了. XD
@jesse_K 經理下次可以講 mosix ^^
@jesse_停止錄音囉!
@kevinwattjesse_: ...ㄟ..........
@kevinwatt //nod
Victor_偷偷問一下 我可以跟 tw.debian.* 轉信嗎 ^^||
@jesse_我來試聽一下錄音.. :)
@kevinwattVictor_: 當然可以... XD
@jesse_硬碟聲音真的很大.. XD
@jesse_錄音 ok, 晚點來轉 ogg
Victor_因為不知道他 permsission 的設定 :p
@kevinwattVictor_: 嗯... 轉信位置是?
Victor_kevinwatt: ptt.cc :)
@kevinwattVictor_: 要轉哪些group?
@kevinwattptt.cc.ntu.edu.tw? XD
Victor_kevinwatt: XD
Victor_kevinwatt: 來個 announce, general 吧 :p (hurd 文章會很多嗎)
@kevinwattVictor_: 應該是每年會有一篇... (err....)
@jesse_@_@
Victor_:p
* kevinwatt 每年貼一篇。
Victor_呃 那其他的該不會... XD
@jesse_我還沒弄 moto.dot 的轉信.. :P
@kevinwatt嗯... news.debian.org.tw還沒有到config去打廣告... :P
@kevinwattunknown host ptt.cc.ntu.edu.tw
@kevinwatt好像錯了... err...
kcwujust ptt.cc
@kevinwattOops.
* kcwu 有空再來看 log 教學
@jesse_log 我整理好後會放到 http://ircconf.debian.org.tw/
@jesse_語音也會壓成 ogg 檔放在那裡
Victor_耶 新板成立 等文章:p
@kevinwatt耶... (news.debian.org.tw成立4個月來第一個轉信達成...)
@jesse_賀!
Victor_第一個.. ^^;

Generated by irclog2html.pl 2.1 by Jeff Waugh - find it at freshmeat.net!