FreeBSD 2.2.7R INN install

FreeBSD 2.2.7R に INN を導入

自宅クローズドLANをベースとして説明します。
本格的運用はINN付属のマニュアルを参照し構築して下さい。
  1. inn-1.7.2.tar.gz を展開 まずinn-1.7.2.tar.gz GETしておいて下さい。 作業ディレクトリは /usr/local/src としました。
    # cp inn-1.7.2.tar.gz /usr/local/src
    # cd /usr/local/src
    # tar zxvf inn-1.7.2.tar.gz
    inn-1.7.2/
    inn-1.7.2/FAQ/
    inn-1.7.2/FAQ/INN-faq_part1
    inn-1.7.2/FAQ/INN-faq_part2
    ...
    ...
    inn-1.7.2/sedf.sysv
    inn-1.7.2/SUPPORT
    #
    
    マニュアル作成
    
    # cd inn-1.7.2
    # cat Install.ms.? | nroff -ms > Install.txt
    

  2. 下準備
    newsユーザの確認
    # vipw
    newsユーザを確認して下さい。
    
    aliaseの編集
    # vi /etc/aliases
    usenet宛てののメールが管理者に届くように設定する。
    
    config.dataの修正
    
    FreeBSDの場合に特に注意すべき項目を下記に示します。
    Perl5へのパスは環境に合わせて下さい。
    
    # cd config
    # cp ../sample-configs/config.data-FreeBSD-2.0 config.data
    # vi config.data
    ...
    ...
    ##  If you need to link in other libraries, add them here.
    ##  On NetBSD and FreeBSD, you must add the -lcrypt directive here
    ##  -lutil on BSD/OS gives you setproctitle() see HAVE_SETPROCTITLE.
    #### =()@>()=
    LIBS                    -lutil -lcrypt
    ...
    ##  Where perl lives
    #### =()<_PATH_PERL             @<_PATH_PERL>@>()=
    _PATH_PERL              /usr/local/bin/perl5
    

  3. コンパイル
    # cd /usr/local/src/inn-1.7.2
    # make world
    ...
    エラー無ければ次へエラーが出た場合には、config.dataを修正する。
    
    # make all
    ...
    # mkdir -p /usr/news /var/news /var/news/spool
    # chown news.news /usr/news /var/news /var/news/spool
    # cd /usr/local/src/inn-1.7.2/
    # sh makedirs.sh
    ...
    + exit 0 ←で終われば完了!
    # make install
    ...
    Do not forget to update your cron entries.
    Also run makehistory if you have to.
    
    # sh BUILD
    ...
    Start a subshell to edit the config files [y or n]?  n 後で作成!
    ...
    
    #
    

  4. 設定ファイルを編集します
    # cd site
    
  5. 起動
    
    # su news
    # /usr/news/bin/rc.news
    Starting innd.
    
    or
    
    # su - news -c /usr/news/bin/rc.news
    Starting innd.
    
    psでnewsユーザでinndが起動している事を確認。
    # ps ax | grep news
     ****  ??  **     0:00.30 /usr/news/bin/innd ・・・
    #
    
    
    ひとまず終了。
    接続してみましょう。
    接続して、controlとjunkグループが見えればOKです。
    
    

  6. ローカルニュースグループを設定

    ニュースグループ test を作成しましょう。

    # /usr/news/bin/ctlinnd newgroup test y
    Ok
    #
    
    crontab に登録しexpireを自動起動。
    # crontab -e -u news
    30 0 * * * /usr/ports/news/inn/samples/news.daily delayrm
    
    上記内容で設定した環境での実施例です。


リンクはご自由に!

スパムが多いので頭に"_"追加してます。
_sugasawa@ceres.dti.ne.jp
Copyright (C) SUGASAWA. All rights reserved.