2012年5月9日水曜日
install ircd on CentOS5 by yum
※this text from livedoor blog 2009/11/13
CentOSにIRCをyumでインストールする
最新の epel-release-?-?.noarch.rpm ファイルをチェック
http://download.fedora.redhat.com/pub/epel/5/i386/
EPELレポジトリをインストール
i386の場合
$ wget http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
$ sudo rpm -Uvh epel-release-5-3.noarch.rpm
x86_64の場合
$ wget http://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
$ sudo epel-release-5-3.noarch.rpm
yumでircd-hybridをインストール
$ sudo yum install ircd-hybrid
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* addons: ftp.iij.ad.jp
* base: ftp.iij.ad.jp
* epel: ftp.iij.ad.jp
* extras: ftp.iij.ad.jp
* updates: ftp.iij.ad.jp
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ircd-hybrid.i386 0:7.2.3-5.el5 set to be updated
--> Finished Dependency Resolution
Dependencies Resolved
=====================================================================================================================
Package Arch Version Repository Size
=====================================================================================================================
Installing:
ircd-hybrid i386 7.2.3-5.el5 epel 618 k
Transaction Summary
=====================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 618 k
Is this ok [y/N]: y
Downloading Packages:
ircd-hybrid-7.2.3-5.el5.i386.rpm | 618 kB 00:00
warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
epel/gpgkey | 1.7 kB 00:00
Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Installing : ircd-hybrid 1/1
Installed:
ircd-hybrid.i386 0:7.2.3-5.el5
Complete!
simple.confをコピー
$ sudo cp /usr/share/doc/ircd-hybrid-7.2.3/simple.conf /etc/ircd/ircd.conf
ircd.confを編集する
$ sudo emacs /etc/ircd/ircd.conf
sidの値を変更する、値は「半角大文字の英字か数字」
例)1ABなど
serverinfo {
name = "irc.example.com";
sid = "_CHANGE_ME_";
description = "Test IRC Server";
hub = no;
};
↓
serverinfo {
name = "irc.example.com";
sid = 1AB;
description = "Test IRC Server";
hub = no;
};
パスワードを設定する
auth {
user = "*@*";
class = "users";
};
↓
auth {
user = "*@*";
class = "users";
password = "thisispassword";
};
ircdをスタートする
$ sudo /etc/init.d/ircd start
Starting ircd: ircd: version hybrid-7.2.3
ircd: pid 22427
ircd: running in background mode from /usr/lib/ircd
[ OK ]
ログを確認する
$ sudo tail -f /var/log/ircd/ircd.log