ローカル環境のIRCサーバとしてngircdをインストールする
ircd-hybridをインストールしようとしたけど設定がわからなくて挫折。
この行削除しろとか言われても・・・。
なので簡単そうなngircdをインストールすることにする。
OS:CentOS release 6.3
■普通にyumでインストールする。
# yum search ngircd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.riken.jp * epel: ftp.riken.jp * extras: ftp.riken.jp * updates: ftp.riken.jp ============================================================================================== N/S Matched: ngircd ============================================================================================== ngircd.i686 : Next Generation IRC Daemon Name and summary matches only, use "search all" for everything. [root@192 ircd]# yum install ngircd Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: ftp.riken.jp * epel: ftp.riken.jp * extras: ftp.riken.jp * updates: ftp.riken.jp Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package ngircd.i686 0:18-2.el6 will be installed --> Processing Dependency: libident.so.0 for package: ngircd-18-2.el6.i686 --> Running transaction check ---> Package libident.i686 0:0.32-4.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ================================================================================================================================================================================================================= Package Arch Version Repository Size ================================================================================================================================================================================================================= Installing: ngircd i686 18-2.el6 epel 145 k Installing for dependencies: libident i686 0.32-4.el6 epel 13 k Transaction Summary ================================================================================================================================================================================================================= Install 2 Package(s) Total download size: 158 k Installed size: 437 k Is this ok [y/N]: y Downloading Packages: (1/2): libident-0.32-4.el6.i686.rpm | 13 kB 00:00 (2/2): ngircd-18-2.el6.i686.rpm | 145 kB 00:00 ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 375 kB/s | 158 kB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : libident-0.32-4.el6.i686 1/2 Installing : ngircd-18-2.el6.i686 2/2 Verifying : libident-0.32-4.el6.i686 1/2 Verifying : ngircd-18-2.el6.i686 2/2 Installed: ngircd.i686 0:18-2.el6 Dependency Installed: libident.i686 0:0.32-4.el6 Complete!
■設定ファイルを一部変更
# cp /etc/ngircd.conf /etc/ngircd.conf.def # vim /etc/ngircd.conf # diff /etc/ngircd.conf.def /etc/ngircd.conf 47c47,48 < Listen = 127.0.0.1 --- > ;Listen = 127.0.0.1 > Listen = 0.0.0.0 51a53 > MotdFile = /etc/ngircd.motd
■ngircdの起動
# /etc/rc.d/init.d/ngircd start ngircd を起動中: [ OK ]
インストールから起動まではこれだけでOK。
あとはLimeChatとかIRCクライアントで接続するだけ。
※あくまでローカル内の話しです。
[Global]セクションの「Password」とか「Ports」も設定したほうがいいかも。
あと「MotdFile」も作成して何かした表示用の文字を入れておくほうが
エラーでなくていいかも。
あと良くわかんないけど[Channel]セクションを定義しておくと
接続時に勝手に表示されていい感じ。
■参考URL
IRC初心者がIRCを通知ツールとして使ってみる,または個人的IRC環境のメモ
Jenkinsとかからの通知を目標にするぞ。。