21:01 <@jesse_> 時間到囉 21:02 <@kevinwatt> //nod 21:02 <@kevinwatt> 那開始囉. :) 21:02 <@jesse_> 等一下... 21:02 <@jesse_> 開始錄音了 :) 21:02 <@kevinwatt> 喔... :) 21:02 <@jesse_> k 21:02 <@jesse_> 那請 kevinwatt 開始吧! 21:02 * jesse_ 拍手 21:02 <@kevinwatt> * What's INN? 21:02 <@kevinwatt> INN 並不是指其字義上的"館",而是InterNet News的縮寫。 21:03 <@kevinwatt> 接下來要考一下古。 21:03 <@kevinwatt> 所謂的NetNews也就是大家熟知的Usenet。 21:03 <@kevinwatt> Usenet並不是Use 跟 Net兩個字所組成,而是已User's Net的角度去延伸 21:03 <@kevinwatt> 出Usenet這樣的詞彙。 21:03 <@jesse_> 要公告廣播的 url... 21:04 <@jesse_> http://icecast.debian.org.tw:8000/D.ogg 21:04 <@kevinwatt> jesse_: http://news.debian.org.tw/ircc.m3u 21:04 <@kevinwatt> Usenet 是屬於網路應用上的概念,它的實體也就是我們所謂的NetNews。 21:04 <@kevinwatt> 從早期的惠多網(Fidonet)或是國內少數人曾使用過的BITNET 其實就已經存在Usenet 21:04 <@kevinwatt> 的雛型了。 21:05 <@kevinwatt> 早期的層次比較簡單。已FidoType而言,當時在台灣存在著亞洲區ZD各縣市Host與單一站 21:05 <@kevinwatt> 台的Node。 21:05 <@kevinwatt> 由ZD負責對國外接轉信,HOST向ZD接轉信,而Node向Host接轉信。 21:05 <@kevinwatt> ZD->HOST->Node 21:05 <@kevinwatt> 是一種樹狀結構的轉信方式。 21:05 <@kevinwatt> Usenet 在當時是衡跨FidoType與InterNet等多種網路的一種概念。 21:05 <@kevinwatt> 它將所有的資訊串連起來。可以使用NNRP連結,可以透過BBS張貼, 21:05 <@kevinwatt> 甚至是透過其它的News轉入。 21:05 <@kevinwatt> Usenet裡有所謂群組的概念,也就是我們所稱呼的討論區。 21:05 <@kevinwatt> 全世界目前任有在使用的群組加起來超過四萬筆。 21:05 <@kevinwatt> 對於這部份的歷史國內有多位大師的文件都有詳細的記錄,故不在此詳細說明... 21:06 <@kevinwatt> 當WWW在今日的盛行... 許多古老的服務漸漸沒落(像Gopher...),但Usenet依然健在。 21:06 <@kevinwatt> 其實是因為Usenet本身有許多不可抹滅的特性。 21:06 <@jesse_> 廣播的 url : http://icecast.debian.org.tw:9000/D.ogg 21:08 <@kevinwatt> 一直到現在Linux kernel之類的OSS軟體的開發多數也都還是仰賴Usenet的溝通, 21:08 <@kevinwatt> 連微軟都有自己的Usenet討論群組。 21:08 <@kevinwatt> UNIX早期有幾個大型的新聞傳送軟體,Bnews、Cnews及INN。 21:09 <@kevinwatt> Bnews的最後一板應該是 1989-10-31 停止發行,而 Cnews 從 1988 年到現在目前 21:09 <@kevinwatt> 還依然有人在使用,然而新功能從1995年後就停止Release了。 21:09 <@kevinwatt> (目前你還是可以找到debian所提供的cnews deb package 已經是cr.g7-37了) 21:09 <@kevinwatt> 比較新的新聞傳送軟體如Leafnode、DNews。 21:10 <@kevinwatt> 接下來,就是我們今天的主題。 21:10 <@kevinwatt> ======================================================================== 21:10 <@kevinwatt> InterNetNews package (INN) 是一個 Usenet 上所使用的 News 系統。 21:11 <@kevinwatt> 一個包含了 innd、NNTP server、nnrpd,與newsreading server的系統。 21:11 <@kevinwatt> INN根據RFC 1036與RFC 977兩套規則發展。 21:11 <@kevinwatt> http://www.faqs.org/rfcs/rfc1036.html 21:11 <@kevinwatt> http://www.faqs.org/rfcs/rfc977.html 21:11 <@kevinwatt> 一個包含了 innd、NNTP server、nnrpd,與newsreading server的系統。 21:11 <@kevinwatt> INN的開發有兩種板本,STABLE 跟 CURRENT。 21:11 <@kevinwatt> STABLE的板本只會進行Bug 的修正, CURRENT 則是開發中的板本。 21:11 <@kevinwatt> 一般情況下, latest snapshot 的STABLE板本應該是較適合公開服務的。 21:12 <@kevinwatt> 前一個STABLE是2.3.5,而目前已經轉移到 INN 2.4.0 上了。 21:12 <@kevinwatt> INN 2.4.x 的Release將會把主力放在Bug的修正上。 21:12 <@kevinwatt> 在修改中的2.4.x,將來會直接進入2.5.x的序號。 21:13 <@kevinwatt> 目前而言最穩定的板本應該是2.4.x,而2.3.5的板本將不會再有更新的變動。 21:13 <@kevinwatt> =========================================================================== 21:13 <@kevinwatt> * INN2安裝 21:13 <@kevinwatt> 你可以從這裡取得最新板的INN2 21:13 <@kevinwatt> ftp://ftp.isc.org/isc/inn/ 21:14 <@kevinwatt> 或者, apt-get install inn2 inn2-inews 21:14 <@kevinwatt> Debian unstable version已經使用一個相當新的STABLE INN2板本了。 21:14 <@kevinwatt> INN2跟INN明顯的不同是 INN2 可供非常複雜的News Server環境使用,是對大型 21:14 <@kevinwatt> 站台而言很值得參考使用的系統。 21:15 <@kevinwatt> Debian上的INN仍然存在,但是適用於比較簡單的環境。 21:15 <@kevinwatt> 在一開始安裝Debian's INN 啟動時只簡單的設定 本地端使用 。 21:15 <@kevinwatt> 你需要注意到其它Package的板本是否有大於目前的板本。 21:16 <@kevinwatt> ================================================================ 21:16 <@kevinwatt> libc6 (>= 2.3.2-1) 21:16 <@kevinwatt> GNU C Library 21:16 <@kevinwatt> libperl5.8 (>= 5.8.0) 21:16 <@kevinwatt> Shared Perl library. 21:16 <@kevinwatt> libdb4.1 21:16 <@kevinwatt> Berkeley v4.1 Database Libraries [runtime] 21:16 <@kevinwatt> debconf (>= 0.5) 21:16 <@kevinwatt> Debian configuration management system 21:16 <@kevinwatt> ================================================================ 21:17 <@kevinwatt> 編輯/etc/news/inn.conf 21:17 <@kevinwatt> # General Settings 21:17 <@kevinwatt> domain: debian.org.tw 21:17 <@kevinwatt> 然後再起動 21:17 <@kevinwatt> /etc/init.d/inn2 restart 21:17 <@kevinwatt> 如果沒有問題,那麼就裝好了。如果有其它的問題,那麼就還沒裝好... (廢) 21:18 <@kevinwatt> <問題時間> 21:18 <@jesse_> INN 是指 INN 1.x.x 嗎? 21:18 <@kevinwatt> jesse_: 是的. 沒錯. :) 21:19 <@kevinwatt> ========================================================================== 21:19 <@kevinwatt> INSTALL FAQ:(沒裝好才需要處理) 21:19 <@kevinwatt> <繼續> 21:19 <@kevinwatt> cat /var/log/news/news.err這個ERROR MESSAGE。 21:20 <@kevinwatt> 如果你發現有這一行。 21:20 <@kevinwatt> Nov 13 07:01:51 hikari innd: SERVER cant dbzinit /var/lib/news/history 21:20 <@kevinwatt> No such file or directory 21:20 <@kevinwatt> 這個算是比較常見的問題。 21:20 <@kevinwatt> 排除它,建立history 21:20 <@kevinwatt> cd /var/lib/news 21:20 <@kevinwatt> rm history* 21:20 <@kevinwatt> touch history 21:20 <@kevinwatt> makedbz -i 21:20 <@kevinwatt> rename history.n. history. history* 21:20 <@kevinwatt> 把中間的 n 去除。 21:21 <@kevinwatt> makedbz 會因為 configure 下的參數而出現不同檔案, 只用 --with-perl 21:21 <@kevinwatt> 會出現三個檔案, 分別是 history.n.hash history.n.dir history.n.index 21:21 <@kevinwatt> =========================================================================== 21:22 <@kevinwatt> 事實上在inn2的設定檔大部份都在 /etc/news下. 21:22 <@kevinwatt> INN 的相關系統設定 21:22 <@kevinwatt> * 接收誰餵過來的信件 incoming.conf (設定餵過來的主機名稱與位置) 21:22 <@kevinwatt> * 餵送出去 newsfeeds, innfeed.conf 21:22 <@kevinwatt> * 定期清理 expire.ctl 21:22 <@kevinwatt> * 系統監督 innwatch.ctl 21:22 <@kevinwatt> * 系統報告 innreport.conf 21:23 <@kevinwatt> 餵過來... 指的是上游下游間的轉信動作。 21:25 <@kevinwatt> <沒問題的話我們開始講解設定檔) 21:25 <@jesse_> 廣播的 url : http://icecast.debian.org.tw:9000/D.ogg 21:25 <@kevinwatt> ## inn.conf -- INN configuration data 21:26 <@kevinwatt> 在/etc/news/inn.conf 21:26 <@kevinwatt> ## Format: 21:26 <@kevinwatt> ## : 21:26 <@kevinwatt> ## <功能項>:<空白跟空白><設定值> 21:26 <@kevinwatt> ## 你可以參考 inn.conf(5) 的 man page 對每一項參數進行管理。 21:26 <@kevinwatt> ## 範例檔基本上的目地分成兩種設定; 快速, 還有一些必要設定的參數 21:26 <@kevinwatt> ## (或者應該被設定在幾乎所有的案例當中的), 21:27 <@kevinwatt> ## 21:27 <@kevinwatt> ## 必要設定 21:27 <@kevinwatt> ## 21:27 <@kevinwatt> ## 已下的參數都是需要設定的,縱使內定的值也許是可使用... 21:27 <@kevinwatt> mta: "/usr/sbin/sendmail -oi -oem %s" 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ## 當然,就是設定你的MTA 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> organization: "LastLoveSong InterNetNews site" 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ## 團體, 公會, 協會或單位名稱 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ovmethod: tradindexed 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ## 指的是 "overview storage method" 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ## overview 用在提供索引來取得文件放置的位置,同時也要供NNRP軟體來查尋閱讀。 21:28 <@kevinwatt> ## 21:28 <@kevinwatt> ## 目前有三種。 21:29 <@kevinwatt> ## 21:29 <@kevinwatt> ## 我們針對其特性做介紹 21:29 <@kevinwatt> ## 21:29 <@kevinwatt> ## 1. tradindexed 讀取快速 寫入慢 21:30 <@kevinwatt> ## 21:30 <@kevinwatt> ## 2. buffindexed 用了緩衝區來儲存所有的 overvew 寫入快讀取慢,需設定 21:30 <@kevinwatt> ## buffindexed.conf 21:30 <@kevinwatt> ## 21:30 <@kevinwatt> ## 3. ovdb 是使用BerkeleyDB library建立的overview資料,需要 BerkeleyDB 21:30 <@kevinwatt> ## library 2.6之後的板本(最好是3 or 4 )另外需設定 ovdb.conf 21:30 <@kevinwatt> ## 21:30 <@kevinwatt> hismethod: hisv6 21:33 <@kevinwatt> ## 21:33 <@kevinwatt> ## history的記錄方式。事實上它只能夠設成hisv6,但這並不是內定的。 21:33 <@kevinwatt> ## 所以還一定要設定。 21:33 <@kevinwatt> ## 21:33 <@kevinwatt> ## hisv6 是指 history v6 format,系統升級時需要按照這個固定格式。 21:33 <@kevinwatt> ## 21:34 <@kevinwatt> pathhost: kevinwatt.ossug.org 21:34 <@kevinwatt> ## 若為空時為FQDN,該設定主要會顯示出現在文章標頭的path。 21:34 <@kevinwatt> pathnews: /usr/lib/news 21:34 <@kevinwatt> ## 21:34 <@kevinwatt> ## 一般設定 21:34 <@kevinwatt> ## 21:36 <@kevinwatt> ## 一般設定 21:36 <@kevinwatt> ## 21:36 <@kevinwatt> #domain: ossug.org 21:36 <@kevinwatt> ## 若domain沒設定的話,INN會自動設定 21:36 <@kevinwatt> #innflags: 21:36 <@kevinwatt> mailcmd: /usr/lib/news/bin/innmail 21:36 <@kevinwatt> server: u122-184.u61-70.giga.net.tw 21:36 <@kevinwatt> ## default NNTP server 21:36 <@kevinwatt> ## 21:36 <@kevinwatt> # 21:36 <@kevinwatt> ## Feed Configuration 21:36 <@kevinwatt> ## 餵送設定,這個地方設定出去跟進來的資料。 21:36 <@kevinwatt> # 21:37 <@kevinwatt> artcutoff: 10 21:37 <@kevinwatt> ## 這個設定應該跟 expire.ctl 裡的 /remember/ 項一樣。 21:37 <@kevinwatt> ## 預設值應該是10 21:37 <@kevinwatt> # 21:37 <@kevinwatt> #bindaddress: 21:37 <@kevinwatt> # 21:37 <@kevinwatt> ## Which IP address innd(8) should bind itself to 21:37 <@kevinwatt> ## 預設值是不設定 21:37 <@kevinwatt> # 21:37 <@kevinwatt> #bindaddress6: 21:38 <@jesse_> 不一樣會怎麼樣嗎? 21:39 <@kevinwatt> jesse_: 我也不知道.. 沒試過... XD 21:39 <@kevinwatt> dontrejectfiltered: false 21:39 <@kevinwatt> ## 一般innd若有設定article filters則會擋掉incoming articles。 21:39 <@kevinwatt> ## 除非是不要擋,不然不需要更動此項設定。 21:40 <@kevinwatt> hiscachesize: 256 21:40 <@kevinwatt> # 21:40 <@kevinwatt> # 使用到多少K的記憶體做為history file的Cache 21:40 <@kevinwatt> ignorenewsgroups: false 21:40 <@kevinwatt> immediatecancel: false 21:40 <@kevinwatt> linecountfuzz: 0 21:40 <@kevinwatt> maxartsize: 1000000 21:40 <@kevinwatt> maxconnections: 50 21:40 <@kevinwatt> #pathalias: 21:40 <@kevinwatt> pgpverify: true 21:40 <@kevinwatt> port: 119 21:40 <@kevinwatt> refusecybercancels: false 21:40 <@kevinwatt> remembertrash: true 21:40 <@kevinwatt> #sourceaddress: 21:40 <@kevinwatt> #sourceaddress6: 21:40 <@kevinwatt> verifycancels: false 21:40 <@kevinwatt> wanttrash: false 21:40 <@kevinwatt> wipcheck: 5 21:40 <@kevinwatt> wipexpire: 10 21:40 <@kevinwatt> # Article Storage 21:40 <@kevinwatt> cnfscheckfudgesize: 0 21:40 <@kevinwatt> enableoverview: true 21:40 <@kevinwatt> groupbaseexpiry: true 21:40 <@kevinwatt> mergetogroups: false 21:40 <@kevinwatt> overcachesize: 15 21:40 <@kevinwatt> #ovgrouppat: 21:40 <@kevinwatt> storeonxref: true 21:41 <@kevinwatt> useoverchan: false 21:41 <@kevinwatt> wireformat: false 21:41 <@kevinwatt> xrefslave: false 21:41 <@kevinwatt> nfswriter: false 21:41 <@kevinwatt> # Reading 21:41 <@kevinwatt> allownewnews: true 21:41 <@kevinwatt> articlemmap: false 21:41 <@kevinwatt> clienttimeout: 600 21:41 <@kevinwatt> initialtimeout: 10 21:41 <@kevinwatt> msgidcachesize: 10000 21:41 <@kevinwatt> nnrpdcheckart: true 21:41 <@kevinwatt> noreader: false 21:41 <@kevinwatt> readerswhenstopped: false 21:41 <@kevinwatt> readertrack: false 21:41 <@kevinwatt> nfsreader: false 21:41 <@kevinwatt> nfsreaderdelay: 60 21:41 <@kevinwatt> tradindexedmmap: true 21:41 <@kevinwatt> nnrpdloadlimit: 16 21:41 <@kevinwatt> # Reading -- Keyword Support 21:41 <@kevinwatt> # 21:41 <@kevinwatt> # 這個功能主要是overview Options之一,用來做一些簡單的Word-Counting。 21:41 <@kevinwatt> # 21:41 <@kevinwatt> # 啟動這個的時後若不停止INND和刪除正在執行的Overview Database, 21:42 <@kevinwatt> # 新增時將有可能照成很多困擾.... 21:42 <@kevinwatt> # 21:42 <@kevinwatt> # 當然, 你也必需要完全支援這一項功能。 21:42 <@kevinwatt> keywords: false 21:42 <@kevinwatt> # Whether the keyword generation support should be enabled 21:42 <@kevinwatt> keyartlimit: 100000 21:42 <@kevinwatt> # Articles larger than this value in bytes will not have keywords generated 21:42 <@kevinwatt> keylimit: 512 21:42 <@kevinwatt> # Maximum number of bytes allocated for keyword data 21:42 <@kevinwatt> keymaxwords: 250 21:42 <@kevinwatt> # Maximum number of keywords that will be generated for an article 21:42 <@kevinwatt> # Posting 21:42 <@kevinwatt> addnntppostingdate: true 21:42 <@kevinwatt> addnntppostinghost: true 21:42 <@kevinwatt> checkincludedtext: false 21:42 <@kevinwatt> complaints: news@lls.twbbs.org 21:42 <@kevinwatt> # X-Complaints-To: 的設定。 21:42 <@kevinwatt> # 用來設定投訴信箱,請參考Header。 21:42 <@kevinwatt> # 21:42 <@kevinwatt> fromhost: lls.twbbs.org 21:42 <@kevinwatt> ## 21:42 <@kevinwatt> ## 用來自動幫local的使用者建立e-mail addresses 21:42 <@kevinwatt> ## 21:42 <@kevinwatt> ## @fromhost 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> ## 這個設定同樣也會被inews跟mailpost這兩個cmds取用。 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> localmaxartsize: 1000000 21:43 <@kevinwatt> moderatormailer: kevinwatt@ossug.org 21:43 <@kevinwatt> ## 管理者信箱 21:43 <@kevinwatt> nnrpdauthsender: false 21:43 <@kevinwatt> #nnrpdposthost: 21:43 <@kevinwatt> nnrpdpostport: 119 21:43 <@kevinwatt> spoolfirst: false 21:43 <@kevinwatt> strippostcc: false 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> ## Posting -- Exponential Backoff Algorithm(指數倒退演算法) 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> ## 這是一種演算法,有點類似CSMA/CD所採用的Binary Exponential Backoff。 21:43 <@kevinwatt> ## 在這邊所使用的演算式為 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> ## sleep time = 1 + (previous sleep time * backoffk) 21:43 <@kevinwatt> ## 21:43 <@kevinwatt> ## 經由指數倒退演算法,nnrpd可以支援管理大量的張貼人數。 21:43 <@kevinwatt> ## 每一篇來自同一個IP的的文章會被壘積起來(延遲時間比照演算法的Sleeptime) 21:43 <@kevinwatt> ## 21:44 <@kevinwatt> ## 事實上,張貼認何東西。 文章都會被接受,但是效率會漸漸減少。 21:44 <@kevinwatt> ## 21:44 <@kevinwatt> backoffauth: false 21:44 <@kevinwatt> #backoffdb: 21:44 <@kevinwatt> backoffk: 1 21:44 <@kevinwatt> backoffpostfast: 0 21:44 <@kevinwatt> backoffpostslow: 1 21:44 <@kevinwatt> backofftrigger: 10000 21:45 <@kevinwatt> Victor_: 直接在這邊問? 21:45 < Victor_> 我想問一下 現在的 news 架構還是樹狀的嗎? 21:45 < Victor_> 還是網狀的 :) 21:46 <@kevinwatt> Victor_: 現在News的架構是網狀的. :) 21:46 < Victor_> 那會不會有 loop 的問題呢? 21:47 <@kevinwatt> Victor_: Loop會有. 所以事實上有很多的機制來預防.... 21:48 < Victor_> kevinwatt: 是 news 本身 protocol 做掉的嗎? 21:49 <@kevinwatt> Victor_: 不是. 是各系統的功能... 21:49 <@kevinwatt> Victor_: 但NEWS會有Message ID. 21:49 < Victor_> kevinwatt: 了解了 ^^ 抱歉 請繼續 :pp 21:50 <@jesse_> path 應該也可以用來做 loop detection ? 21:50 <@kevinwatt> jesse_: //nod 21:51 <@kevinwatt> 不好意思. 由於打字跟講話同步比較累...有一些問題的完整回應是使用口述的方式. :) 21:52 * Victor_ 旁邊有別人 沒聽 XD 21:52 <@kevinwatt> Victor_: .... (唔... 那我還是繼續...) 21:53 <@kevinwatt> # Monitoring 21:53 <@kevinwatt> # 這邊變數用來控制innwatch的表現。 21:53 <@kevinwatt> # innwatch這隻程式是用來監控INN。 21:53 <@kevinwatt> # 若有錯誤發生,將會通知 news 管理者。 21:53 <@kevinwatt> doinnwatch: true 21:53 <@kevinwatt> # start innwatch(8) from rc.news 21:53 <@kevinwatt> innwatchbatchspace: 800 21:53 <@kevinwatt> innwatchlibspace: 25000 21:53 <@kevinwatt> innwatchloload: 1000 21:54 <@kevinwatt> innwatchhiload: 2000 21:54 <@kevinwatt> innwatchpauseload: 1500 21:54 <@kevinwatt> innwatchsleeptime: 600 21:54 <@kevinwatt> innwatchspoolnodes: 200 21:54 <@kevinwatt> innwatchspoolspace: 8000 21:54 <@kevinwatt> # Logging 21:54 <@kevinwatt> # 這些參數用來管理INN的Log記錄。 21:54 <@kevinwatt> # 21:54 <@kevinwatt> docnfsstat: false 21:54 <@kevinwatt> logartsize: true 21:54 <@kevinwatt> logcancelcomm: false 21:54 <@kevinwatt> logcycles: 3 21:54 <@kevinwatt> logipaddr: true 21:54 <@kevinwatt> logsitename: true 21:54 <@kevinwatt> nnrpdoverstats: false 21:54 <@kevinwatt> nntpactsync: 200 21:54 <@kevinwatt> nntplinklog: false 21:54 <@kevinwatt> status: 0 21:54 <@kevinwatt> timer: 0 21:55 <@kevinwatt> # System Tuning 21:55 <@kevinwatt> badiocount: 5 21:55 <@kevinwatt> blockbackoff: 120 21:55 <@kevinwatt> chaninacttime: 600 21:55 <@kevinwatt> chanretrytime: 300 21:55 <@kevinwatt> datamovethreshold: 8192 21:55 <@kevinwatt> icdsynccount: 10 21:55 <@kevinwatt> keepmmappedthreshold: 1024 21:55 <@kevinwatt> #maxcmdreadsize: 21:55 <@kevinwatt> maxforks: 10 21:55 <@kevinwatt> nicekids: 4 21:55 <@kevinwatt> nicenewnews: 0 21:55 <@kevinwatt> nicennrpd: 0 21:55 <@kevinwatt> pauseretrytime: 300 21:55 <@kevinwatt> peertimeout: 3600 21:55 <@kevinwatt> rlimitnofile: -1 21:55 <@kevinwatt> # Paths 21:55 <@kevinwatt> # INN的檔案放置路逕。 21:55 <@kevinwatt> # 21:55 <@kevinwatt> patharchive: /var/spool/news/archive 21:55 <@kevinwatt> patharticles: /var/spool/news/articles 21:55 <@kevinwatt> # News文章存放的路逕 21:55 <@kevinwatt> # 21:55 <@kevinwatt> # 若您打算在 storage.conf 使用 tradspool method (storage.conf負責管理系統 21:56 <@kevinwatt> # 使用何種方式儲存文章。),那麼您News文章裡都是很小的檔案。 21:56 <@kevinwatt> # 所以如果要在ext2模式下很多管理者會將每個 block 分割為 2KB左右。 21:56 <@kevinwatt> # 21:56 <@kevinwatt> # mke2fs -b 2048 -i 1024 /dev/hdb1 21:56 <@kevinwatt> # 21:56 <@kevinwatt> # 當然啦,reiserfs在這方面的表現更好,不但對4K以下的小檔案搜尋快速 21:56 <@kevinwatt> # (採用Binary Search Tree) 而且inode的極限值可達4294967295。 21:56 <@kevinwatt> # 21:56 <@kevinwatt> # 如果你要使用CNFS method (一樣是storage.conf的儲存模式),那麼您應該會建數 21:56 <@kevinwatt> # 個非常大的檔案,這個時後可能使用XFS效能會來的更好。 21:57 <@kevinwatt> # 21:57 <@kevinwatt> pathbin: /usr/lib/news/bin 21:57 <@kevinwatt> # 21:57 <@kevinwatt> # 一些INN可用的執行檔,很多管理上需要使用的檔案也都放在這邊。 21:57 <@kevinwatt> # 21:57 <@kevinwatt> # 如 inncheck、ctlinnd 21:57 <@kevinwatt> # 21:57 <@kevinwatt> pathcontrol: /usr/lib/news/bin/control 21:57 <@kevinwatt> # 21:57 <@kevinwatt> # 一些Feed的控制檔。 21:57 <@kevinwatt> # 21:57 <@kevinwatt> # checkgroups.pl newgroup.pl sendme.pl senduuname.pl 21:57 <@kevinwatt> # ihave.pl rmgroup.pl sendsys.pl version.pl 21:57 <@kevinwatt> # 21:57 <@kevinwatt> pathdb: /var/lib/news 21:57 <@kevinwatt> # active、history跟newsgroups.. 等。 21:57 <@kevinwatt> # 21:57 <@kevinwatt> pathetc: /etc/news 21:57 <@kevinwatt> # 21:57 <@kevinwatt> # 設定檔 21:58 <@kevinwatt> pathfilter: /etc/news/filter 21:58 <@kevinwatt> pathhttp: /var/log/news 21:58 <@kevinwatt> pathincoming: /var/spool/news/incoming 21:58 <@kevinwatt> pathlog: /var/log/news 21:58 <@kevinwatt> pathoutgoing: /var/spool/news/outgoing 21:58 <@kevinwatt> pathoverview: /var/spool/news/overview 21:58 <@kevinwatt> pathrun: /var/run/news 21:58 <@kevinwatt> pathspool: /var/spool/news 21:58 <@kevinwatt> pathtmp: /var/spool/news/incoming/tmp 21:59 <@kevinwatt> <暫停> 21:59 <@jesse_> 廣播的 url : http://icecast.debian.org.tw:9000/D.ogg 21:59 <@kevinwatt> 各位還有沒有甚麼問題... :) 21:59 <@jesse_> 我看 dot 是用 timehash ? 22:00 <@jesse_> kevinwatt: XD 去倒水啊.. ^^ 22:01 <@kevinwatt> jesse_: 嗯... 對. 但cnfs比較快... XD 22:02 <@jesse_> timehash 就是那個一封信一個檔的方式嗎? 22:02 <@kevinwatt> jesse_: 我等一下講/etc/news/storage.conf的時後會講道... :) 22:03 <@jesse_> k 22:03 <@jesse_> 繼續吧 22:03 <@jesse_> 突然聽到背景音樂... 22:04 <@kevinwatt> ## auth "<名稱>" { 22:04 <@kevinwatt> ## hosts: "<由何處的機器所組成(hosts list)>" 22:04 <@kevinwatt> ## auth: "<認證程式>" 22:04 <@kevinwatt> ## res: "" 22:04 <@kevinwatt> ## default: "" 22:04 <@kevinwatt> ## default-domain: "" 22:04 <@kevinwatt> ## } 22:04 <@kevinwatt> err.... 22:04 <@kevinwatt> /etc/news/readers.conf 22:04 <@kevinwatt> 讀取張貼權限設定檔 22:05 <@kevinwatt> ## auth "<名稱>" { 22:05 <@kevinwatt> ## hosts: "<由何處的機器所組成(hosts list)>" 22:05 <@kevinwatt> ## auth: "<認證程式>" 22:05 <@kevinwatt> ## res: "" 22:05 <@kevinwatt> ## default: "" 22:05 <@kevinwatt> ## default-domain: "" 22:05 <@kevinwatt> ## } 22:05 <@kevinwatt> ## access "<名稱>" { 22:05 <@kevinwatt> ## users: "" 22:05 <@kevinwatt> ## newsgroups: "" 22:05 <@kevinwatt> ## read: "" 22:05 <@kevinwatt> ## post: "" 22:05 <@kevinwatt> ## access: "" 22:05 <@kevinwatt> ## } 22:05 <@kevinwatt> # 22:05 <@kevinwatt> # auth 用來判斷群組內的使用者或群組外的。 22:05 <@kevinwatt> # access 則是管裡各群組的權限。 22:05 <@kevinwatt> auth "localhost" { 22:05 <@kevinwatt> hosts: "localhost, 127.0.0.1, stdin" 22:05 <@kevinwatt> default: "" 22:05 <@kevinwatt> } 22:05 <@kevinwatt> access "localhost" { 22:05 <@kevinwatt> users: "" 22:05 <@kevinwatt> newsgroups: "*" 22:05 <@kevinwatt> access: RPA 22:05 <@kevinwatt> } 22:06 <@kevinwatt> auth "debian" { 22:06 <@kevinwatt> hosts: "linux4.cc.ntu.edu.tw" 22:06 <@kevinwatt> default: "" 22:06 <@kevinwatt> } 22:06 <@kevinwatt> access "debian" { 22:06 <@kevinwatt> users: "" 22:06 <@kevinwatt> newsgroups: "tw.*" 22:06 <@kevinwatt> access: RP 22:06 <@kevinwatt> } 22:07 <@kevinwatt> # 限制來源 22:07 <@kevinwatt> # 沒有反指的區域被排除在外。 22:07 <@kevinwatt> auth "other" { 22:07 <@kevinwatt> hosts: "*.tw, *.com, *.org, *.edu, *.cn, *.jp, *.hk" 22:07 <@kevinwatt> default: "" 22:07 <@kevinwatt> } 22:07 <@kevinwatt> access "other" { 22:08 <@kevinwatt> users: "" 22:08 <@kevinwatt> newsgroups: "tw.*" 22:08 <@kevinwatt> access: RP 22:08 <@kevinwatt> } 22:08 <@kevinwatt> ## 沒有列在裡面的也會被排除。 22:08 <@kevinwatt> #(忘了打進去) 22:09 <@kevinwatt> auth "read-only" { 22:09 <@kevinwatt> # 限制來源 22:09 <@kevinwatt> # de來的只可以貼test區 22:09 <@kevinwatt> hosts: "*.de" 22:09 <@kevinwatt> default: "" 22:09 <@kevinwatt> } 22:09 <@kevinwatt> access "read-only" { 22:09 <@kevinwatt> hosts: "" 22:09 <@kevinwatt> read: "tw.*" 22:09 <@kevinwatt> post: "tw.debian.test" 22:09 <@kevinwatt> } 22:11 <@kevinwatt> /etc/news/incoming.conf 22:11 <@kevinwatt> 接收何人的餵信... 22:11 <@kevinwatt> streaming: true # streaming allowed by default 22:11 <@kevinwatt> max-connections: 8 # per feed 22:11 <@kevinwatt> peer ME { 22:11 <@kevinwatt> hostname: "localhost, 127.0.0.1" 22:11 <@kevinwatt> } 22:12 <@kevinwatt> peer debian { 22:12 <@kevinwatt> hostname: "linux4.cc.ntu.edu.tw, 140.112.8.142" 22:12 <@kevinwatt> } 22:12 <@kevinwatt> peer buty { 22:12 <@kevinwatt> hostname: "buty, 139.175.13.15" 22:12 <@kevinwatt> } 22:13 <@kevinwatt> group fast-sites { 22:13 <@kevinwatt> max-connections: 15 22:13 <@kevinwatt> # Another peer. The ``max-connections'' value from the 22:13 <@kevinwatt> # ``fast-sites'' group scope is used. 22:13 <@kevinwatt> peer ossug.org { 22:13 <@kevinwatt> hostname: ossug.org 22:13 <@kevinwatt> } 22:13 <@kevinwatt> peer netnews.nctu.edu.tw { 22:13 <@kevinwatt> hostname: netnews.nctu.edu.tw 22:13 <@kevinwatt> max-connections: 20 # he can really cook. 22:13 <@kevinwatt> } 22:13 <@kevinwatt> } 22:14 <@kevinwatt> /etc/news/storage.conf 22:14 <@kevinwatt> News的記錄方式 22:14 <@kevinwatt> # method <所選用的method方式> { 22:14 <@kevinwatt> # newsgroups: 22:14 <@kevinwatt> # class: 22:14 <@kevinwatt> # size: <文章最小Size>[,<文章最大Size>] 22:14 <@kevinwatt> # expires: <最少保留時間>[,<最大保留時間>] 22:14 <@kevinwatt> # options: <參數(僅供`cnfs'使用)> 22:14 <@kevinwatt> # } 22:14 <@kevinwatt> # 22:15 <@kevinwatt> # 是介於0~255的數字。 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # method的方式有五種 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # cnfs Cyclic News File System, 其效能應該是最快的(比trash慢) 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # timehash /timecaf-nn/bb/aacc.CF 會依資料的抵達時間放入多筆資料 22:15 <@kevinwatt> # nn是的十六進位數。bbaacc則是到達時間的十 22:15 <@kevinwatt> # 六進位數。 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # timecaf 跟timehash相似,/time-nn/bb/cc/yyyy-aadd `yyyy'是序號式的 22:15 <@kevinwatt> # 十六進位數。 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # tradspool 目錄格式是/news/group/name/nnnnn。`news/group/name'是group 22:15 <@kevinwatt> # 名稱,`nnnnn'則是一個序號式的名稱。 22:15 <@kevinwatt> # 22:15 <@kevinwatt> # trash 丟棄 22:15 <@kevinwatt> # 22:16 <@kevinwatt> method tradspool { 22:16 <@kevinwatt> class: 1 22:16 <@kevinwatt> newsgroups: * 22:16 <@kevinwatt> } 22:16 <@kevinwatt> # 22:16 <@kevinwatt> # 如果要使用 CNFS 的方式,要另外設定 CNFS 的一些參數。 22:16 <@kevinwatt> # 22:17 <@kevinwatt> # FAQS 文章大於0, 小於3999。 22:17 <@kevinwatt> # SMALLAREA 文章大於0, 小於3999。 22:17 <@kevinwatt> # BIGAREA 文章大於4000,小於1000000。 22:17 <@kevinwatt> # 22:17 <@kevinwatt> #method cnfs { 22:17 <@kevinwatt> # newsgroups: gnu.* 22:17 <@kevinwatt> # class: 1 22:17 <@kevinwatt> # size: 0,3999 22:17 <@kevinwatt> # expires: 4d1s 22:17 <@kevinwatt> # options: FAQS 22:17 <@kevinwatt> #} 22:17 <@kevinwatt> #method cnfs { 22:17 <@kevinwatt> # newsgroups: *,!gnu.*,!tw.debian 22:17 <@kevinwatt> # class: 2 22:17 <@kevinwatt> # size: 0,3999 22:17 <@kevinwatt> # expires: 0s,4d 22:17 <@kevinwatt> # options: SMALLAREA 22:17 <@kevinwatt> #} 22:17 <@kevinwatt> #method cnfs { 22:17 <@kevinwatt> # newsgroups: tw.debian.* 22:17 <@kevinwatt> # class: 3 22:17 <@kevinwatt> # size: 4000,1000000 22:17 <@kevinwatt> # options: BIGAREA 22:17 <@kevinwatt> #} 22:17 <@kevinwatt> 要設定CNFS除了這邊 22:17 <@kevinwatt> 要另外看到一個設定檔 /etc/news/cycbuff.conf 22:18 <@kevinwatt> # 這個要根據 storage.conf 的設定來設。 22:18 <@kevinwatt> # 先用dd建一個1k為單位的512000k空間。 22:18 <@kevinwatt> # 22:18 <@kevinwatt> # dd if=/dev/zero of=/export/cycbuffs/one bs=1024 count=512000 22:18 <@kevinwatt> # 22:18 <@kevinwatt> # bs=bytes 22:18 <@kevinwatt> # count=blocks寫入block數 22:18 <@kevinwatt> # 22:18 <@kevinwatt> cycbuff:ONE:/export/cycbuffs/one:512000 22:18 <@kevinwatt> cycbuff:TWO:/export/cycbuffs/two:512000 22:18 <@kevinwatt> cycbuff:THREE:/export/cycbuffs/three:512000 22:18 <@kevinwatt> cycbuff:FOUR:/export/cycbuffs/four:512000 22:19 <@kevinwatt> # 參考storage.conf 22:19 <@kevinwatt> # 22:19 <@kevinwatt> # FAQS 存文章至少大於0, 小於3999。 22:19 <@kevinwatt> # SMALLAREA 存文章至少大於0, 小於3999。 22:19 <@kevinwatt> # BIGAREA 是存文章至少大於4000(最小),小於1000000(最大)。 22:19 <@kevinwatt> metacycbuff:BIGAREA:ONE,TWO 22:19 <@kevinwatt> metacycbuff:SMALLAREA:THREE 22:19 <@kevinwatt> metacycbuff:FAQS:FOUR 22:20 <@jesse_> 有問題.. 22:20 <@kevinwatt> 請說... :) 22:20 <@jesse_> 像上面把 tw.debian.* 指定為 bigarea, 但要是信件太小呢? 22:22 <@kevinwatt> jesse_: 太小會被丟到SMALLAREA裡 22:22 <@kevinwatt> jesse_: 可以發現到SMALLAREA的NewsGroup我們設成newsgroups: * 22:22 * kevinwatt 去WC 22:23 <@jesse_> 嗯, 看到了.. :) 22:24 <@kevinwatt> 還有沒有別的問題??? 22:24 <@kevinwatt> XD 22:24 <@kevinwatt> 還是繼續? 22:24 <@jesse_> 繼續吧 :) 22:24 <@kevinwatt> 好... 22:25 <@kevinwatt> /etc/news/innfeed.conf & /etc/news/newsfeeds 22:25 <@kevinwatt> ## 全域變數的設定。 22:25 <@kevinwatt> ## 22:25 <@kevinwatt> pid-file: innfeed.pid # relative to pathrun 22:25 <@kevinwatt> debug-level: 0 22:25 <@kevinwatt> use-mmap: false 22:25 <@kevinwatt> log-file: innfeed.log # relative to pathlog 22:25 <@kevinwatt> stdio-fdmax: 0 22:25 <@kevinwatt> ## Uncomment the next line to include the contents 22:26 <@kevinwatt> ## of ``testfile'' at this point. 22:26 <@kevinwatt> #$INCLUDE testfile 22:26 <@kevinwatt> backlog-directory: innfeed # relative to pathspool 22:26 <@kevinwatt> backlog-rotate-period: 60 22:26 <@kevinwatt> backlog-ckpt-period: 30 22:26 <@kevinwatt> backlog-newfile-period: 600 22:26 <@kevinwatt> dns-retry: 900 22:26 <@kevinwatt> dns-expire: 86400 22:26 <@kevinwatt> close-period: 86400 22:26 <@kevinwatt> gen-html: false 22:26 <@kevinwatt> status-file: innfeed.status # relative to pathlog 22:26 <@kevinwatt> connection-stats: false 22:26 <@kevinwatt> host-queue-highwater: 200 22:26 <@kevinwatt> stats-period: 600 22:26 <@kevinwatt> stats-reset: 43200 22:26 <@kevinwatt> max-reconnect-time: 3600 22:26 <@kevinwatt> initial-reconnect-time: 30 22:26 <@kevinwatt> ## Defaults for all peers. These must all exist at 22:26 <@kevinwatt> ## global scope. Any of them can be redefined 22:26 <@kevinwatt> ## inside a peer or group definition. 22:26 <@kevinwatt> ## 22:26 <@kevinwatt> article-timeout: 600 22:26 <@kevinwatt> response-timeout: 300 22:27 <@kevinwatt> initial-connections: 1 22:27 <@kevinwatt> max-connections: 5 22:27 <@kevinwatt> max-queue-size: 5 22:27 <@kevinwatt> streaming: true 22:27 <@kevinwatt> no-check-high: 95.0 22:27 <@kevinwatt> no-check-low: 90.0 22:27 <@kevinwatt> no-check-filter: 50.0 22:27 <@kevinwatt> port-number: 119 22:27 <@kevinwatt> drop-deferred: false 22:27 <@kevinwatt> min-queue-connection: false 22:27 <@kevinwatt> backlog-limit: 0 22:27 <@kevinwatt> backlog-factor: 1.10 22:27 <@kevinwatt> backlog-limit-highwater: 0 22:27 <@kevinwatt> dynamic-method: 3 22:27 <@kevinwatt> dynamic-backlog-filter: 0.7 22:27 <@kevinwatt> dynamic-backlog-low: 25.0 22:27 <@kevinwatt> dynamic-backlog-high: 50.0 22:27 <@kevinwatt> no-backlog: false 22:27 <@kevinwatt> backlog-feed-first: false 22:27 <@kevinwatt> # 餵給誰好味。 22:27 <@kevinwatt> peer debian { 22:27 <@kevinwatt> ip-name: linux4.cc.ntu.edu.tw 22:27 <@kevinwatt> max-connections: 10 22:28 <@kevinwatt> } 22:28 <@kevinwatt> # 群組好味 22:28 <@kevinwatt> # 22:28 <@kevinwatt> group lalalamysong { 22:28 <@kevinwatt> max-connections: 7 22:28 <@kevinwatt> peer lls.twbbs.org { 22:28 <@kevinwatt> # 如果沒設定, ip-name 會內定為 lls.twbbs.org 22:28 <@kevinwatt> streaming: false 22:28 <@kevinwatt> } 22:28 <@kevinwatt> peer bbs.ossug.org { 22:28 <@kevinwatt> ip-name: 61.70.122.184 22:28 <@kevinwatt> } 22:28 <@kevinwatt> } 22:28 <@kevinwatt> ## 22:28 <@kevinwatt> ## newsfeeds - determine where Usenet articles get sent 22:28 <@kevinwatt> ## 22:28 <@kevinwatt> ## Format: 22:28 <@kevinwatt> ## (1) site[/exclude,exclude...]\ 22:28 <@kevinwatt> ## (2) :pattern,pattern...[/distrib,distrib...]\ 22:28 <@kevinwatt> ## (3) :flag,flag...\ 22:28 <@kevinwatt> ## (4) :parameter 22:28 <@kevinwatt> ## 22:28 <@kevinwatt> ## (1) 22:28 <@kevinwatt> ## site通常是代稱,若在site後面加上!則會在NEWS文章中的path:以此種方式 22:29 <@kevinwatt> ## 顯示出sitename,不設定的話會以pathhost的設定為主。 22:29 <@kevinwatt> ## 22:29 <@kevinwatt> ## exclude指的是文章header 的 path:中若文章有經過對方的位置,表示對方 22:29 <@kevinwatt> ## 已經有收到過這篇文章了。 22:29 <@kevinwatt> ## ex: 22:29 <@kevinwatt> ## debian/linux4.cc.ntu.edu.tw,news.debian.org.tw\ 22:29 <@kevinwatt> ## 22:29 <@kevinwatt> ## (2) 22:29 <@kevinwatt> ## pattern表示送文章的模式,在這邊將餵送groups的條件設妥。 22:29 <@kevinwatt> ## ex: 22:29 <@kevinwatt> ## :!*,tw.*\ 22:29 <@kevinwatt> ## 22:29 <@kevinwatt> ## (3) 22:29 <@kevinwatt> ## flag是用來訂定餵送時的限制,FLAG VALUES的種類多多。其中T type是拿來做 22:29 <@kevinwatt> ## 傳送模式所使用的。 22:29 <@kevinwatt> ## 在這邊只介紹一個,其它的可自行參考man newsfeeds。 22:29 <@kevinwatt> ## m Funnel (multiple entries feed into one) 22:29 <@kevinwatt> ## 22:29 <@kevinwatt> ## 將多個餵送的資料會整成一個資料區塊送出。(Funnel 漏斗,這邊的意思是指 22:29 <@kevinwatt> ## 如通過漏斗般移動) 22:29 <@kevinwatt> ## 22:32 <@kevinwatt> ## 22:32 <@kevinwatt> ## ex: 22:32 <@kevinwatt> ## :Tm 22:32 <@kevinwatt> ## 22:32 <@kevinwatt> ## (4) 22:32 <@kevinwatt> ## parameter的設定要由FEED TYPES決定, 22:32 <@kevinwatt> ## 如果是使用Tm的話可以這樣設。 22:32 <@kevinwatt> ## ex: 22:32 <@kevinwatt> ## :innfeed! 22:32 <@kevinwatt> ## 22:32 <@kevinwatt> ## 在這邊會呼叫 22:32 <@kevinwatt> ## innfeed!:!*\ 22:32 <@kevinwatt> ## :Tc,Wnm*\ 22:32 <@kevinwatt> ## :/usr/lib/news/bin/startinnfeed 22:32 <@kevinwatt> ## 22:32 <@kevinwatt> ## 22:33 <@kevinwatt> ME:!*/!local,!collabra-internal:: 22:33 <@kevinwatt> #ME這行是設以下的餵信的初始值 22:33 <@kevinwatt> controlchan!\ 22:33 <@kevinwatt> :!*,control,control.*,!control.cancel\ 22:33 <@kevinwatt> :Tc,Wnsm:/usr/lib/news/bin/controlchan 22:33 <@kevinwatt> # site必需跟innfeed.conf裡取的一樣。 22:33 <@kevinwatt> # 22:33 <@kevinwatt> debian/linux4.cc.ntu.edu.tw,news.debian.org.tw\ 22:33 <@kevinwatt> :!*,tw.*\ 22:33 <@kevinwatt> :Tm:innfeed! 22:34 <@kevinwatt> innfeed!:!*\ 22:34 <@kevinwatt> :Tc,Wnm*\ 22:34 <@kevinwatt> :/usr/lib/news/bin/startinnfeed 22:34 <@kevinwatt> /etc/news/expire.ctl 22:34 <@kevinwatt> ##這是用來設定文章保留天數的檔案,刪除的動做會在news.daily被啟動。 22:35 <@kevinwatt> ## 22:35 <@kevinwatt> ## /remember/: 文章過期後會在 history 裡面最多保留幾天 22:35 <@kevinwatt> ## 設定一定的時間可避免old articles被再送回來。 22:35 <@kevinwatt> /remember/:14 22:35 <@kevinwatt> ## :::: 22:35 <@kevinwatt> ## 名稱 22:35 <@kevinwatt> ## NewsGroup的種類。 22:35 <@kevinwatt> ## A 代表所有的。 22:35 <@kevinwatt> ## M 代表有人管。 22:35 <@kevinwatt> ## U 代表沒人管。 22:35 <@kevinwatt> ## 文章最少保留幾天。 22:35 <@kevinwatt> ## User指定的expire少於此的話以keep為準。 22:35 <@kevinwatt> ## 文章一般保留幾天。 22:35 <@kevinwatt> ## 22:35 <@kevinwatt> ## 文章最長保留幾天。 22:35 <@kevinwatt> ## User指定的expire多於此的話以purge為準。 22:35 <@kevinwatt> ## word "never." 22:35 <@kevinwatt> ## 永不過期。 22:35 <@kevinwatt> *:A:1:10:never 22:35 <@kevinwatt> tw.*:A:10:10:10 22:35 <@kevinwatt> tw.debian.*:A:never:never:never 22:37 <@kevinwatt> /etc/news/innwatch.ctl 22:38 <@kevinwatt> ## 會監控系統執行狀態的程式,必要的時後它可是會停止服務使用者的。 22:39 <@kevinwatt> 接下來講的這些比較清鬆... (覺得我會講到十二點...) 22:39 <@jesse_> XD 22:40 <@kevinwatt> /var/lib/news/ 下面的檔案 22:40 <@kevinwatt> /var/lib/news/active 22:40 <@jesse_> mosix 可以下次講.. :P 22:40 <@kevinwatt> active 的檔案格式 22:40 <@kevinwatt> [name] [High] [Low] [Flags] 22:40 <@kevinwatt> control 0000000000 0000000001 n 22:40 <@kevinwatt> control.cancel 0000000003 0000000001 n 22:40 <@kevinwatt> control.checkgroups 0000000000 0000000001 n 22:40 <@kevinwatt> control.newgroup 0000000000 0000000001 n 22:40 <@kevinwatt> control.rmgroup 0000000000 0000000001 n 22:40 <@kevinwatt> junk 0000000000 0000000001 n 22:40 <@kevinwatt> local.general 0000000000 0000000001 y 22:40 <@kevinwatt> local.test 0000000000 0000000001 y 22:40 <@kevinwatt> tw.debian.general 0000000000 0000000001 y 22:40 <@kevinwatt> tw.debian.test 0000000007 0000000008 y 22:40 <@kevinwatt> tw.debian.hurd 0000000001 0000000002 y 22:40 <@kevinwatt> 此檔案官方建議不要手動修改,最好是使用ctlinnd建立。 22:40 <@kevinwatt> [Flags] 可用的設定有 22:40 <@kevinwatt> * y 22:40 <@kevinwatt> 該group允許使用者直接張貼與讀取。 22:41 <@kevinwatt> * m 22:41 <@kevinwatt> 此group有專門的moderator(管理者),張貼的POST會先寄到moderator的手上。 22:41 <@kevinwatt> 由moderator審核後再丟出去。 22:41 <@kevinwatt> * n 22:41 <@kevinwatt> 不允許張貼,但接受遠端的餵送。 22:41 <@kevinwatt> * x 22:41 <@kevinwatt> 不允許張貼,但可由系統產生POST。 22:41 <@kevinwatt> * j 22:41 <@kevinwatt> POST將會自動轉貼到junk區。 22:41 <@kevinwatt> * =foo.bar 22:41 <@kevinwatt> 將該討論區的POST自動轉貼到 foo.bar 這個Group。(等於是有指名的j) 22:45 <@kevinwatt> /etc/news/subscriptions 22:45 <@kevinwatt> 此檔為推薦訂閱的NewsGroup 22:45 <@kevinwatt> 在client第一次連結時如果有支援這項功能,下面的newsgroups會被推薦訂閱 22:45 <@kevinwatt> kevin@lls:/etc/news$ cat subscriptions 22:45 <@kevinwatt> news.announce.newusers 22:45 <@kevinwatt> news.newusers.questions 22:45 <@kevinwatt> misc.test 22:45 <@kevinwatt> misc.test.moderated 22:45 <@kevinwatt> news.announce.newgroups 22:45 <@kevinwatt> news.answers 22:46 <@kevinwatt> /var/lib/news/newsgroups 22:47 <@kevinwatt> lls:/var/lib/news# cat newsgroups 22:47 <@kevinwatt> control Various control messages (no posting) 22:47 <@kevinwatt> control.cancel Cancel messages (no posting) 22:47 <@kevinwatt> control.checkgroups Hierarchy check control messages (no posting) 22:47 <@kevinwatt> control.newgroup Newsgroup creation control messages (no posting) 22:47 <@kevinwatt> control.rmgroup Newsgroup removal control messages (no posting) 22:47 <@kevinwatt> junk Unfiled articles (no posting) 22:47 <@kevinwatt> local.general Local general group 22:47 <@kevinwatt> local.test Local test group 22:49 <@kevinwatt> /etc/control.ctl 22:49 <@kevinwatt> /etc/news/control.ctl 22:51 <@kevinwatt> ## NCTU (Taiwan) 22:51 <@kevinwatt> checkgroups:chen@cc.nctu.edu.tw:nctu.*:doit 22:51 <@kevinwatt> newgroup:chen@cc.nctu.edu.tw:nctu.*:doit 22:51 <@kevinwatt> rmgroup:chen@cc.nctu.edu.tw:nctu.*:doit 22:52 <@kevinwatt> ## Debian Newsgroups (Debian Taiwan groups) 22:52 <@kevinwatt> newgroup:news@debian.org.tw:tw.debian.*:doit 22:52 <@kevinwatt> rmgroup:news@debian.org.tw:tw.debian.*:doit 22:52 <@kevinwatt> ## Debian Newsgroups (Debian Taiwan groups) 22:52 <@kevinwatt> newgroup:news@debian.org.tw:tw.debian.*:doit 22:52 <@kevinwatt> rmgroup:news@debian.org.tw:tw.debian.*:doit 22:52 <@kevinwatt> /etc/news/innreport.conf 22:53 <@kevinwatt> innreport 是一套相當不錯的 inn log file 的統計及分析軟體 22:53 <@kevinwatt> /usr/lib/news/bin/ctlinnd 22:53 <@kevinwatt> 重新載入設定檔。 22:53 <@kevinwatt> ctlinnd reload [config] [reason] 22:53 <@kevinwatt> ex: 22:53 <@kevinwatt> #ctlinnd reload active balabala 22:53 <@kevinwatt> #ctlinnd reload newsfeeds newfeed 22:53 <@kevinwatt> #ctlinnd reload incoming.conf newcoming.. 22:53 <@kevinwatt> 新增一個討論群組。 22:53 <@kevinwatt> ctlinnd reload [groupname] 22:53 <@kevinwatt> #ctlinnd newgroup tw.debian.abc 22:53 <@kevinwatt> 刪除一個討論群組。 22:53 <@kevinwatt> ctlinnd rmgroup [groupname] 22:53 <@kevinwatt> #ctlinnd rmgroup tw.debian.abc 22:53 <@kevinwatt> 刪除一篇指定Message-ID 的POST。 22:53 <@kevinwatt> ctlinnd cancel [Message-ID] 22:54 <@kevinwatt> #ctlinnd cancel 3BCBF4B3.8AD48C8F@linux.org.hk 22:54 <@kevinwatt> 暫停服務 22:54 <@kevinwatt> ctlinnd pause [reason] 22:54 <@kevinwatt> #ctlinnd pause stop... 22:54 <@kevinwatt> 暫停服務並關閉history 22:54 <@kevinwatt> ctlinnd throttle [reason] 22:54 <@kevinwatt> #ctlinnd throttle balabala 22:54 <@kevinwatt> 繼續服務 22:54 <@kevinwatt> ctlinnd go [reason] 22:54 <@kevinwatt> #ctlinnd go balabala 22:54 <@kevinwatt> go可以讓已暫停服務繼續服務但reason必需要跟暫停時所下的一樣。 22:55 <@kevinwatt> 其它套件介紹: suck 22:56 <@kevinwatt> lls:/etc/suck# cat get-news.conf 22:56 <@kevinwatt> # Your default local NNTP server. 22:56 <@kevinwatt> server: kevinwatt.ossug.org 22:56 <@kevinwatt> servtype: inn2.3 22:56 <@kevinwatt> remoteserver: quimby.gnus.org 22:56 <@kevinwatt> outgoingfile: quimby.gnus.org 22:56 <@kevinwatt> sedcmd: /^NNTP-Posting-Host:\|^NNTP-Posting-Date:\|^X-Complaints-To:\|^Xref:\|^X-Trace:\|^X-Server-Date:/d 22:56 <@kevinwatt> suckoptions: -q -n 22:57 <@kevinwatt> lls:/etc/suck# cat sucknewsrc 22:57 <@kevinwatt> gnu.gcc.announce 16 22:57 <@kevinwatt> gnu.gcc.help 8450 22:57 <@kevinwatt> gnu.gcc 1029 22:57 <@kevinwatt> gnu.gcc.bug 11 22:59 <@kevinwatt> 呼........ 22:59 * jesse_ 拍手 22:59 < tsung> 還有結束音樂... 23:00 <@jesse_> ^^ 23:00 < tsung> 真是不錯的一堂課.. :) 23:00 <@jesse_> 多謝 kevinwatt ^^ 23:01 < Victor_> 辛苦囉 ^^ 23:01 <@kevinwatt> jesse_: 唔... 下次換經理了. XD 23:01 <@jesse_> K 經理下次可以講 mosix ^^ 23:02 <@jesse_> 停止錄音囉! 23:02 <@kevinwatt> jesse_: ...ㄟ.......... 23:02 <@kevinwatt> //nod 23:03 < Victor_> 偷偷問一下 我可以跟 tw.debian.* 轉信嗎 ^^|| 23:03 <@jesse_> 我來試聽一下錄音.. :) 23:04 <@kevinwatt> Victor_: 當然可以... XD 23:04 <@jesse_> 硬碟聲音真的很大.. XD 23:04 <@jesse_> 錄音 ok, 晚點來轉 ogg 23:04 < Victor_> 因為不知道他 permsission 的設定 :p 23:06 <@kevinwatt> Victor_: 嗯... 轉信位置是? 23:06 < Victor_> kevinwatt: ptt.cc :) 23:06 <@kevinwatt> Victor_: 要轉哪些group? 23:06 <@kevinwatt> ptt.cc.ntu.edu.tw? XD 23:06 < Victor_> kevinwatt: XD 23:07 < Victor_> kevinwatt: 來個 announce, general 吧 :p (hurd 文章會很多嗎) 23:07 <@kevinwatt> Victor_: 應該是每年會有一篇... (err....) 23:08 <@jesse_> @_@ 23:08 < Victor_> :p 23:08 * kevinwatt 每年貼一篇。 23:09 < Victor_> 呃 那其他的該不會... XD 23:09 <@jesse_> 我還沒弄 moto.dot 的轉信.. :P 23:09 <@kevinwatt> 嗯... news.debian.org.tw還沒有到config去打廣告... :P 23:12 <@kevinwatt> unknown host ptt.cc.ntu.edu.tw 23:12 <@kevinwatt> 好像錯了... err... 23:13 < kcwu> just ptt.cc 23:13 <@kevinwatt> Oops. 23:13 * kcwu 有空再來看 log 教學 23:15 <@jesse_> log 我整理好後會放到 http://ircconf.debian.org.tw/ 上 23:15 <@jesse_> 語音也會壓成 ogg 檔放在那裡 23:15 < Victor_> 耶 新板成立 等文章:p 23:16 <@kevinwatt> 耶... (news.debian.org.tw成立4個月來第一個轉信達成...) 23:16 <@jesse_> 賀! 23:16 < Victor_> 第一個.. ^^;