INN

来自Gea-Suan Lin's Wiki
跳转到导航 跳转到搜索

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.7.2.tar.gz; tar xvf inn-2.7.2.tar.gz; cd inn-2.7.2; ./configure --prefix=/home/news --enable-tagged-hash --with-perl --with-python --with-bdb --with-openssl --with-zlib; make -j4"; cd ~news/inn-2.7.2; 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/

control.ctl

主要是把key抓下來匯入:

grep '^# Key URL:' ~/etc/control.ctl | cut -c 12- | xargs -P64 -I% bash -c "curl --connect-timeout 10 -s % | gpg --import"

cycbuff.conf

incoming.conf

inn.conf

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

innreport.conf

  • html

newsfeeds

  • ME
  • innfeed!
  • overview!
  • inpaths!

storage.conf

readers.conf

相關連結

外部連結