Contents
    1. インストール
    2. tircd.cfg
    3. 注意点
    4. ver 0.10

tircd

  • tircd は,twitter のupdateを取得してきてIRCのプロトコルで流してくれるサーバ.
  • 類似品には twitterIrcGatewayがあるが,twitterIrcGateway は.NET FrameworkなのでLinuxではmonoが必要.armv4l ではetchにmonoが十分にportされてなかったのでこっちにした.

インストール

  • まずCPANで必要なツールをインストールする.
# cpan -i POE POE::Filter::IRCD Net::Twitter
  • cpan を使うのが初めてなら,ここまでが長い.
  • あとはtarballを展開して,
# ./tircd.pl tircd.cfg
  • するだけ

tircd.cfg

  • 設定はこのようにした
sh-3.1# grep -v ^# tircd.cfg | grep .
address 192.168.1.4
port 6667
storage_path /var/lib/tircd
logtype file
logfile /var/log/tircd.log
debug 0
update_timeline 180
update_directs 180
timeline_count 20
long_messages ignore
min_length 20
join_silent 0
  • bindするIPアドレスが最初は127.0.0.1になっているので,localhost以外から使う場合にはそうでないNICに割り当てたものに設定する.

注意点

  • サーバに接続するにはログイン名とパスワードが必要.twitterのものを使う
    • 設定しないと,/motd も実行されない.
  • 無理矢理 /motd を実行すると
Can't call method "http_code" on an undefined value at ./tircd.pl line 910.
  • というエラーが出てサーバが落ちる.
  • 当然であるが,IRCのプロトコルは暗号化されていないので,サーバへは平文のユーザ名とパスワードが通ることに注意.

ver 0.10

  • あらたにCPANモジュール Net::Twitter::Lite が必要になっている.
  • 0.7からバージョンアップする場合には,CPANでインストールする.
# cpan -i Net::Twitter::Lite
Last modified: 2010-05-02 Attached files total: 6MB