ネットラジオServerを建てるのだ。って、事でicecast 2.3.2をインスコ。
ここ
から icecast-2.3.2.tar.gzをdownload。普通にconfigure, make, make install。
defaultの設定ファイルは、/usr/local/etc/icecast.xml です。取り敢えず変更するところは、パスワードやらポート番号辺り。source passwordは配信時の。relayはわからんw
<authentication>
<!-- Sources log in with username 'source' -->
<source-password>hackme</source-password>
<!-- Relays log in username 'relay' -->
<relay-password>hackme</relay-password>
<!-- Admin logs in with the username given below -->
<admin-user>admin</admin-user>
<admin-password>hackme</admin-password>
</authentication>
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
<!-- <shoutcast-mount>/stream</shoutcast-mount> -->
</listen-socket>
視聴に認証をかけたいのなら以下を記述する。ディレクトリ(/usr/local/etc/icecase)は書込できるようにしておく。ユーザはicecastの管理画面(http://サーバ:ポート/admin/)から追加可能。
allow_duplicate_usersは、'1'だと同じID/PWでログイン可能。'0'にすると個別設定となる。
<mount>
<mount-name>/foobar</mount-name>
<authentication type="htpasswd">
<option name="filename" value="/usr/local/etc/icecast/htpasswd"/>
<option name="allow_duplicate_users" value="1"/>
</authentication>
</mount>
サーバ起動:
/usr/local/bin/icecast -c /usr/local/etc/icecast.xml -b
クライアントは
ねとらじスケープ
で桶。icecast2の接続設定があります。
サーバはねとらじや、radilogを使えばいいぢゃんって、話ではないの。個別認証したかったのさ。