「INN」:修訂間差異
跳至導覽
跳至搜尋
第17行: | 第17行: | ||
== 設定 == | == 設定 == | ||
=== | === ~/etc === | ||
=== | ==== cycbuff.conf ==== | ||
=== inn.conf === | ==== incoming.conf ==== | ||
==== inn.conf ==== | |||
* docnfsstat | * docnfsstat | ||
第36行: | 第38行: | ||
* useoverchan | * useoverchan | ||
=== innreport.conf === | ==== innreport.conf ==== | ||
* html | * html | ||
=== newsfeeds === | ==== newsfeeds ==== | ||
=== storage.conf === | ==== storage.conf ==== | ||
=== readers.conf === | ==== readers.conf ==== | ||
=== active & newsgroups === | === ~/db === | ||
==== active & newsgroups ==== | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> | ||
第52行: | 第56行: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=== crontab === | === ~ === | ||
==== crontab ==== | |||
<syntaxhighlight lang="bash"> | <syntaxhighlight lang="bash"> |
於 2025年1月28日 (二) 05:48 的修訂
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
設定
~/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
~/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
~
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
相關連結
外部連結
- 官方網站 (英文)