Radio con icecast2

<!– @page { margin: 2cm } P { margin-bottom: 0.21cm } A:link { so-language: zxx } –>

Hola compadres lectores y fanáticos al software libre pues les traigo un tallercito que se organizó en el espacio de la cereza con el compadre kosa y una vez realizado y concluido nuestro taller pues mi compañero uriel y yo dimos el taller en la UAEM Zumpango pero pues ahora me toca subirlo espero le entiendan y les sea de utilidad y cualquier duda comentario pues haganla llegar se aceptan sugerencias, comentarios y modificaciones y recuerda que este documento esta bajo GFDL

les dejo mi contacto acraciatux@gmail.com

1.-) instalar nuestro servidor icecast2

atravez de #apt-get en debian: #apt-get install icecast2

2.-)editar nuestro archivo de configuracion de el servidor (configurar el servidor)

con #gedit /etc/icecast2/icecast.xml

y veremos un archivo xml y en este solo modificaremos la autentificación

<authentication>

<!– Sources log in with username ‘source’ –>

<source-password>mypass</source-password>

<!– Relays log in username ‘relay’ –>

<relay-password>mypass</relay-password>

<!– Admin logs in with the username given below –>

<admin-user>mypass</admin-user>

<admin-password>mypass</admin-password>

</authentication>

3.-) con # gedit /etc/default/icecast2 modificamos la ultima linea y cambiamos el valor por true

ENABLE=true

4.-) ahora inicamos nuestro servidor atravez del siguiente comando

#/etc/init.d/icecast2 start

3.-) a continuación instalaremos icecast.0.4 descargandolo atravez de la siguiente direccion

http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz

lo descomprimimos atravez de

$tar -xzf ices-0.4.tar.gz (notar que debemos estar en la carpeta donde se descargo)

4.-)instalar atravez de nuestra conocida rutina (para compilar tambien tenemos que estar dentro de la carpeta):

1.- $./configure

2.- $make

3.- #make install

primero al hacer el configure verificar que no tengamos mensajes con dependencias incompletas ejemplo: libshout…no

para resolver esas dependencias podemos descargarlas, compilarlar o instalar con

apt-get install libshout

5.-) ya que instalamos ices.0.4 ahora entramos a la carpeta que contiene ices con el nombre conf

editamos el archivo ices.conf.dist atravez de:

$gedit icecast.conf.dist

<!– Encoder password on the icecast server –>

<Password>aqui tu pass para admin</Password>

<!– Header protocol to use when communicating with the server.

Shoutcast servers need “icy”, icecast 1.x needs “xaudiocast”, and

icecast 2.x needs “http”. –>

<Protocol>http</Protocol>

</Server>

<!– The name of the mountpoint on the icecast server –>

<Mountpoint>/lugar donde se monta</Mountpoint>

<!– The name of the dumpfile on the server for your stream. DO NOT set

this unless you know what you’re doing.

<Dumpfile>ices.dump</Dumpfile>

–>

<!– The name of you stream, not the name of the song! –>

<Name>nombre de tu radio</Name>

<!– Genre of your stream, be it rock or pop or whatever –>

<Genre>tuGenero</Genre>

<!– Longer description of your stream –>

<Description>Default description</Description>

<!– URL to a page describing your stream –>

<URL>http://localhost/</URL>

<!– 0 if you don’t want the icecast server to publish your stream on

the yp server, 1 if you do –>

<Public>0</Public>

<!– calidad de transimicion –>

<!– esto es a manera de conetario –>

<Bitrate>128</Bitrate>

<!– If this is set to 1, and ices is compiled with liblame support,

ices will reencode the stream on the fly to the stream bitrate. –>

<Reencode>0</Reencode>

<!– Number of channels to reencode to, 1 for mono or 2 for stereo –>

<!– Sampe rate to reencode to in Hz. Leave out for LAME’s best choice

<Samplerate>44100</Samplerate>

–>

<Channels>2</Channels>

</Stream>

</ices:Configuration>

y alf final lo guardamos como ices.conf

6.-) estando en la carpeta de conf dentro de icecast

$find /la/ruta/de/tu/musica/*.formato (mp3, ogg) >> playlist.txt

7.-)por ultimo cargamos el archivo de configuracion de ice con atravez de la siguiente linea

$ices -c /la/ruta/de/ices-0.4/conf/ices.conf

y nos deberia aparecer el servidor con la musica reproducida

y listo felicidades tienes tu primer radio por internet bajo gnu/linux

1.-) instalar nuestro servidor icecast2

atravez de #apt-get en debian: #apt-get install icecast2

2.-)editar nuestro archivo de configuracion de el servidor (configurar el servidor)

con #gedit /etc/icecast2/icecast.xml

y veremos un archivo xml y en este solo modificaremos la autentificación

<authentication>

<!– Sources log in with username ‘source’ –>

<source-password>mypass</source-password>

<!– Relays log in username ‘relay’ –>

<relay-password>mypass</relay-password>

<!– Admin logs in with the username given below –>

<admin-user>mypass</admin-user>

<admin-password>mypass</admin-password>

</authentication>

3.-) con # gedit /etc/default/icecast2 modificamos la ultima linea y cambiamos el valor por true

ENABLE=true

4.-) ahora inicamos nuestro servidor atravez del siguiente comando

#/etc/init.d/icecast2 start

3.-) a continuación instalaremos icecast.0.4 descargandolo atravez de la siguiente direccion

http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz

lo descomprimimos atravez de

$tar -xzf ices-0.4.tar.gz (notar que debemos estar en la carpeta donde se descargo)

4.-)instalar atravez de nuestra conocida rutina (para compilar tambien tenemos que estar dentro de la carpeta):

1.- $./configure

2.- $make

3.- #make install

primero al hacer el configure verificar que no tengamos mensajes con dependencias incompletas ejemplo: libshout…no

para resolver esas dependencias podemos descargarlas, compilarlar o instalar con

apt-get install libshout

5.-) ya que instalamos ices.0.4 ahora entramos a la carpeta que contiene ices con el nombre conf

editamos el archivo ices.conf.dist atravez de:

$gedit icecast.conf.dist

<!– Encoder password on the icecast server –>

<Password>aqui tu pass para admin</Password>

<!– Header protocol to use when communicating with the server.

Shoutcast servers need “icy”, icecast 1.x needs “xaudiocast”, and

icecast 2.x needs “http”. –>

<Protocol>http</Protocol>

</Server>

<!– The name of the mountpoint on the icecast server –>

<Mountpoint>/lugar donde se monta</Mountpoint>

<!– The name of the dumpfile on the server for your stream. DO NOT set

this unless you know what you’re doing.

<Dumpfile>ices.dump</Dumpfile>

–>

<!– The name of you stream, not the name of the song! –>

<Name>nombre de tu radio</Name>

<!– Genre of your stream, be it rock or pop or whatever –>

<Genre>tuGenero</Genre>

<!– Longer description of your stream –>

<Description>Default description</Description>

<!– URL to a page describing your stream –>

<URL>http://localhost/</URL>

<!– 0 if you don’t want the icecast server to publish your stream on

the yp server, 1 if you do –>

<Public>0</Public>

<!– calidad de transimicion –>

<!– esto es a manera de conetario –>

<Bitrate>128</Bitrate>

<!– If this is set to 1, and ices is compiled with liblame support,

ices will reencode the stream on the fly to the stream bitrate. –>

<Reencode>0</Reencode>

<!– Number of channels to reencode to, 1 for mono or 2 for stereo –>

<!– Sampe rate to reencode to in Hz. Leave out for LAME’s best choice

<Samplerate>44100</Samplerate>

–>

<Channels>2</Channels>

</Stream>

</ices:Configuration>

y alf final lo guardamos como ices.conf

6.-) estando en la carpeta de conf dentro de icecast

$find /la/ruta/de/tu/musica/*.formato (mp3, ogg) >> playlist.txt

7.-)por ultimo cargamos el archivo de configuracion de ice con atravez de la siguiente linea

$ices -c /la/ruta/de/ices-0.4/conf/ices.conf

y nos deberia aparecer el servidor con la musica reproducida

y listo felicidades tienes tu primer radio por internet bajo gnu/linux