「INN」:修訂間差異

出自Gea-Suan Lin's Wiki
跳至導覽 跳至搜尋
Gslin留言 | 貢獻
Gslin留言 | 貢獻
第29行: 第29行:
6 6 * * * ~/bin/ctlinnd flush inpaths!
6 6 * * * ~/bin/ctlinnd flush inpaths!
10 6 * * * ~/bin/sendinpaths
10 6 * * * ~/bin/sendinpaths
</syntaxhighlight>
=== ~/db/ ===
==== active &amp; newsgroups ====
<syntaxhighlight lang="bash">
cd ~/etc; rm -f active; wget -c https://ftp.isc.org/usenet/CONFIG/active; rm -f newsgroups; wget -c https://ftp.isc.org/usenet/CONFIG/newsgroups
</syntaxhighlight>
</syntaxhighlight>


第61行: 第69行:


==== readers.conf ====
==== readers.conf ====
=== ~/db/ ===
==== active &amp; newsgroups ====
<syntaxhighlight lang="bash">
cd ~/etc; rm -f active; wget -c https://ftp.isc.org/usenet/CONFIG/active; rm -f newsgroups; wget -c https://ftp.isc.org/usenet/CONFIG/newsgroups
</syntaxhighlight>


== 相關連結 ==
== 相關連結 ==

於 2025年1月28日 (二) 05:49 的修訂

INN是一套News Server。

安裝

先安裝編譯需要的套件,並且把news帳號的環境設定好:

sudo apt install -y bsd-mailx build-essential libdb-dev libgd-perl libmime-tools-perl libperl-dev libpython3-dev libssl-dev; sudo chsh -s /bin/bash news; sudo mkdir ~news; sudo cp /etc/skel/.[a-z]* ~news/; sudo chown -R news:news ~news

再切到news帳號下下載檔案並且編譯:

sudo su - news -c "wget https://downloads.isc.org/isc/inn/inn-2.6.4.tar.gz; tar zxvf inn-2.6.4.tar.gz; cd inn-2.6.4; ./configure --prefix=/home/news --enable-tagged-hash --with-perl --with-python --with-bdb --with-openssl --with-zlib; make -j4"; cd ~news/inn-2.6.4; sudo make install

設定

~/

crontab

#
@reboot ~/bin/rc.news > /dev/null 2>&1
@reboot ~/bin/nnrpd -D > /dev/null 2>&1
#
1 6 * * * ~/bin/news.daily expireover lowmark
6 6 * * * ~/bin/ctlinnd flush inpaths!
10 6 * * * ~/bin/sendinpaths

~/db/

active & newsgroups

cd ~/etc; rm -f active; wget -c https://ftp.isc.org/usenet/CONFIG/active; rm -f newsgroups; wget -c https://ftp.isc.org/usenet/CONFIG/newsgroups

~/etc/

cycbuff.conf

incoming.conf

inn.conf

  • docnfsstat
  • domain
  • enableoverview
  • noreader
  • organization
  • ovmethod
  • pathhost
  • port
  • runasgroup
  • runasuser
  • server
  • useoverchan

innreport.conf

  • html

newsfeeds

storage.conf

readers.conf

相關連結

外部連結