InspIRCd を導入してみる ( FreeBSD 編 )

29 05 2008

さて、InspIRCd をインストールしてみます。とりあえず、下準備は完了したので続いて InspIRCd のセットアップに入ります。引き続き、root 権限での作業です。データベースモジュールなどの表示が出てきますが、今回はとりあえずスルーします。

# cd /usr/ports/irc/inspircd
# make
inspircd dialog 
===>  Vulnerability check disabled, database not found
===>  Found saved configuration for inspircd-1.1.19
=> InspIRCd-1.1.19.tar.bz2 doesn’t seem to exist in /usr/ports/distfiles/.

ここで /usr/ports/distfiles の中に InspIRCd-1.1.19.tar.bz2 のファイルがないと警告が出てきました。ダウンロードをしようとするのですがどうもうまくいかないので、強制的にファイルを置いてみました。

# cd /usr/ports/distfiles
# wget
http://www.inspircd.org/downloads/InspIRCd-1.1.19.tar.bz2

その後、戻って make を実行するとすでに設定した状況を元に、どんどん進んでいって、以下の画面がしばらくしたら表示されます。

*************************************
*        BUILD COMPLETE!            *
*                                   *
*   To install InspIRCd, type:      *
*         make install              *
*************************************

ということで、プログラムの作成は完了です。ちなみに最初のダイアログ形式のものは2回目以降の make では出てきませんが、make config とすることで表示されます。

build が成功したので、取り急ぎ一気にインストールしてしまいます。

# make install
<snip>
      This port has installed the following startup scripts which may cause
      these network services to be started at boot time.
/usr/local/etc/rc.d/inspircd

      If there are vulnerabilities in these programs there may be a security
      risk to the system. FreeBSD makes no guarantee about the security of
      ports included in the Ports Collection. Please type ‘make deinstall’
      to deinstall the port if this is a concern.

      For more information, and contact details about the security
      status of this software, see the following webpage:
http://www.inspircd.org/

必要なファイルが /usr/local/etc などに展開されていきます。あとは設定ファイルを作って動かしていく形になります。とりあえずサンプルの設定ファイルをコピーして使います。

# cd /usr/local/etc/inspircd/
# cp inspircd.conf.example inspircd.conf
# vi inspircd.conf

設定は XML に記載する形になっています。diepass と restartpass は設定しましょう。

<power diepass="" restartpass="" pause="2">

 

あとこの2行も削除しましょう。

<die value="You should probably edit your config *PROPERLY* and try again.">
<die value="User error. Insert new user and press any key. (you didn't edit your config properly.)">

 

そして設定ファイルの状況があっているか、動かしてみましょう。

# /usr/local/inspircd/inspircd checkconf
Config check complete

続いて、OS 起動時にきちんとサーバーが立ち上がるように、/etc/rc.conf に以下の1行を追加します。

inspircd_enable=”YES”

 

参考:http://gigazine.net/index.php?/news/comments/20080128_inspircd/


操作

情報

コメントする

以下に詳細を記入するか、アイコンをクリックしてログインしてください。

Gravatar
WordPress.com ロゴ

WordPress.com アカウントを使ってコメントしています。 ログアウト / 変更 )

Twitter 画像

Twitter アカウントを使ってコメントしています。 ログアウト / 変更 )

Facebook の写真

Facebook アカウントを使ってコメントしています。 ログアウト / 変更 )

%s に接続中




フォロー

Get every new post delivered to your Inbox.

現在1,817人フォロワーがいます。