Saturday, March 19, 2011

Live Internet Radio

Pre Conditions:

uptodate ports collection
Icecast 2.3.1
ICES 2.0.1
FM radio
CPU Pentium 4 512 Ram min
Sound Card on board intel (in addition to Intel's own trial and error yes)
Installation Phase

first login as root to your FreeBSD machine or use sudo

indofreebsd # cd / usr/ports/audio/icecast2

indofreebsd # make install cleanindofreebsd # make install clean

indofreebsd # cd / usr / ports / audio / ICES

indofreebsd # make install clean

here until the installation phase is complete now headed for the stage configuration

Phase configuration:

indofreebsd # vi / usr / local / etc / icecast.xml









<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
<authentication type="url">
<option name="mount_add" value=""/>
<option name="mount_remove" value=""/>
<option name="listener_add" value=""/>
<option name="listener_remove" value=""/>




<alias source="/foo" dest="/bar"/>

<alias source="/" dest="/status.xsl"/>



<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
<logsize>10000</logsize> <!-- Max size of a logfile -->



The next step involves configuring the ICES

indofreebsd#vi /etc/ices-oss.xml

isi file konfigurasi ices

<?xml version="1.0"?>

<!-- run in background -->
<!-- where logs go. -->
<!-- size in kilobytes -->
<!-- 1=error, 2=warn, 3=infoa ,4=debug -->
<!-- logfile is ignored if this is set to 1 -->

<!-- optional filename to write process id to -->
<!-- <pidfile>/home/ices/</pidfile> -->

<!-- metadata used for stream listing -->
<name>IndoFreeBSD Live Radio</name>
<description>CASANOVA 102 FM BALI</description>
<param name="rate">44100</param>
<param name="channels">2</param>

<param name="device">/dev/dsp</param>

<param name="metadata">1</param>
<param name="metadatafilename">test</param>

<yp>1</yp> <!-- allow stream to be advertised on YP, default 0 -->



configuration is complete ICES

The next stage Icecast daemon and ICES

indofreebsd # / usr/local/etc/rc.d/icecast2 start

indofreebsd # ICES / etc / ICES-oss.xml &

for the sound card intel for IHC module is loaded at boot time, it is necessary to add the following parameter in / boot / loader.conf:

snd_ich_load = "YES"

if there is an error log to make sure the directory purposes or ICES icescast already made ​​and then try running again

The next stage is the stage of hardware configuration

1. The first stage of tuning the fm radio to the desired frequency (in this case I use a frequency fm bali womanizer 102)
2. Enter the Line Out cable to the line out radio
3. Enter the line out cable to a computer radio that has been modified into a stereo mic jack
until this stage you've finished configuring its hardware

then please try your internet radio by typing the url that you created earlier in the configuration icescast

eg mine

then I click listen and open it with xmms or winamp and a voice came womanizer fm radio bali

so hopefully useful tutorial from my