[radiolivre] Re: Inicialização Icecast
- From: maurothiagobr <maurothiagobr@xxxxxxxxxxxx>
- To: rhatto <rhatto@xxxxxxxxxx>
- Date: Wed, 22 Jun 2005 03:15:05 -0300
Então verifiquei onde está o arquivo darkice.cfg e consta em:
usr/share/doc/darkice/examples/darkice.cfg
Segue em anexo arquivo.
Quando dou o comando:
root@kurumin:/home/kurumin# service icecast2 start
executando servico...
Starting darkice: darkice.
root@kurumin:/home/kurumin#
Segue o arquivo que está em /etc/init.d/icecast2 em anexo.
E também o icecast.xml, que está em: /etc/icecast2/icecast2.xml.
Por Favor, dê uma olhada e se possível monte uma configuração que funcione
em minha conexão Speedy com IP dinâmico.
PEÇO POR FAVOR, EM NOME DE JESUS, POIS SOU MUITO LEIGO NO ASSUNTO!!!
Sei que é uma pessoa com muitos compromissos, que deve possuir
tarefas diárias de grande escala e, que um monte de gente como eu,
fica enviando e-mails, cartas e tudo demais, para falar contigo para uma
solução sobre configurações e coisas do ramo.
Já me prontifiquei de montar um Tutor sobre isso, para o Kuruma,
caso funcione é mais uma Distro que pode contar.
Agradeço novamente pela ajuda!
Deus abençoe!
++++++++++++++++++++++++++++++++++++++++++++++++++
rhatto escreveu:
Olá Thiago, tudo bem? Sinto por não ter respondido várias
de suas mensagens, infelizmente não estou com muito tempo
disponível para cuidar da minha correspondência.
Se o seu icecast2 já está instalado, tudo o que você precisa
fazer é verificar se o script de inicialização está instalado
- tipicamente em /etc/init.d/icecast2 - e se o arquivo de
configuração - tipicamente /etc/icecast.xml - existe e está
com as opções que você deseja.
O apt-get não resolve sempre toda a tarefa de instalação.
Se o seu /etc/icecast.xml não existe, você deve criá-lo. No
nosso manual há um icecast.xml padrão e uma explicação detalhada
de cada seção deste arquivo. De preferência não use as opções
padrões, customize o arquivo da forma como lhe for conveniente.
http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Configurando_o_Icecast_no_GNU_Li
Exemplo de icecast.xml:
http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Exemplo_de_configura_o
Para saber como ligar e desligar seu servidor, dê uma olhada em
http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Rodando_o_Icecast_no_GNU_Linux
falow e boa sorte!
rhatto
Em Tue, Jun 21, 2005 at 03:21:15AM -0300, Mauro Thiago escreveu:
Então Rafael,
não existe este arquivo na pasta /etc/default/icecast2
e fiz instalação via apt-get, só que o arquivo
direciona para esta pasta. Não existe este
documento...
Sei que deve existir o arquivo para configuração, mas
não possui, então gostaria de saber o que devo colocar
dentro deste documento que pede ou fazer
direcionamento para outro arquivo, ai desconheço, pois
sou leigo no assunto.
Obrigado pela atenção e compreensão,
AE MAIS UM MANIFESTANDO O QUE SABE PARA QUE A
COMUNIDADE POSSA OBTER RESPOSTAS... VOU AGITAR ATÉ
APARECER MAIS E MAIS PESSOAS...
NAUM SABEM O PODER QUE POSSUEM NA MÃO!
SE QUEREM MUDAR O PAÍS DIZENDO NÃO AO MONOPÓLIO,
TEMOS QUE COMEÇAR ASSIM, FABRICANDO NOSSA PRÓPRIA
TECNOLOGIA, COMO É O CASO DA URNA ELETRÔNICA...
NÃO EXISTE TECNOLOGIA MELHOR QUE A NOSSA!!!
PENSEM NISSO!
NAUM TEM NADA A VER COM QUE ESTAMOS CONVERSANDO,
MAS ESCUTEI BOATOS QUE NOSSO BRASILEIRO CARLOS
MORIMOTO ESTÁ EM PESQUISA JUNTAMENTO COM LULA PARA
IMPLANTAR O SOFTWARE LIVRE PARA OS "PC´S CONECTADO",
UM PROJETO DO GOVERNO PARA INCLUSÃO DIGITAL!!!
GALERA, A CADA DIA ME SINTO MAIS BRASIL!!!
VIVA OPENSOURCE!
AHHH, SÓ PARA LEMBRAR, RESPEITO A OPINIÃO DE TODAS AS
RELIGIÕES E ETNIAS, DIGO QUE ISSO QUE ESTOU TENTANDO
CONFIGURAR NÃO É PARA GANHOS PESSOAIS E SIM UM
TRABALHO DE CONSCIENTIZAÇÃO DE PESSOAS QUE BUSCAM UM
CONFORTO COM DEUS, ESSE PROJETO É PARA A IGREJA QUE
SOU MEMBRO,
ESTOU PESQUISANDO SOBRE O ASSUNTO, FAZ UM TEMPO, COM
INTUITO DE MONTAR TODA A ESTRUTURA DA WEBRÁDIO DA
IGREJA, TUDO OPENSOURCE. ENTÃO, ANTES QUE FALE QUE
ESTOU INCOMODANDO OU ALGO POR INTERESSE, FIQUE CIENTE
QUE ESTE TRABALHO É COMUNITÁRIO E NÃO TEREI GANHO
ALGUM, APENAS QUE MUITOS POSSAM OUVIR A PALAVRA DE
DEUS!
DEUS ABENÇOE A TODOS!
OBRIGADO DE CORAÇÃO A TODOS QUE CONTRIBUIRAM ATÉ O
MOMENTO POR ESTE PROJETO!
THIAGO.
++++++++++++++++++++++++++++++++++++++++++++++++++++++
--- rafael2k <rafael@xxxxxxxxxx> escreveu:
Em Seg 20 Jun 2005 22:47, Mauro Thiago escreveu:
Então o arquivo que está em /etc/init.d/icecast2
você editou o arquivo
/etc/default/icecast2
?
pode ser assim:
# nano /etc/default/icecast2
depois edite o arquivo de configuração do icecast,
que no debian vai saber
onde está, mas deve estar em algum lugar como:
/etc/icecast/icecast2.xml
abraços,
rafael diniz
# sample DarkIce configuration file, edit for your needs before using
# see the darkice.cfg man page for details
# this section describes general aspects of the live streaming session
[general]
duration = 60 # duration of encoding, in seconds. 0 means forever
bufferSecs = 5 # size of internal slip buffer, in seconds
# this section describes the audio input that will be streamed
[input]
device = /dev/dsp # OSS DSP soundcard device for the audio input
sampleRate = 22050 # sample rate in Hz. try 11025, 22050 or 44100
bitsPerSample = 16 # bits per sample. try 16
channel = 2 # channels. 1 = mono, 2 = stereo
# this section describes a streaming connection to an IceCast server
# there may be up to 8 of these sections, named [icecast-0] ... [icecast-7]
# these can be mixed with [icecast2-x] and [shoutcast-x] sections
[icecast-0]
bitrateMode = cbr # constant bit rate
bitrate = 96 # bitrate of the mp3 stream sent to the server
quality = 0.8 # encoding quality
server = yp.yourserver.com
# host name of the server
port = 9000 # port of the IceCast server, usually 8000
password = hackme # source password to the IceCast server
mountPoint = sample96 # mount point of this stream on the IceCast server
name = DarkIce trial
# name of the stream
description = This is only a trial
# description of the stream
url = http://localhost:9000
# URL related to the stream
genre = my own # genre of the stream
public = yes # advertise this stream?
# this section describes a streaming connection to an IceCast2 server
# there may be up to 8 of these sections, named [icecast2-0] ... [icecast2-7]
# these can be mixed with [icecast-x] and [shoutcast-x] sections
[icecast2-0]
bitrateMode = abr # average bit rate
format = vorbis # format of the stream: ogg vorbis
bitrate = 96 # bitrate of the stream sent to the server
server = yp.yourserver.com
# host name of the server
port = 9000 # port of the IceCast2 server, usually 8000
password = hackme # source password to the IceCast2 server
mountPoint = sample96 # mount point of this stream on the IceCast2 server
name = DarkIce trial
# name of the stream
description = This is only a trial
# description of the stream
url = http://www.yourserver.com
# URL related to the stream
genre = my own # genre of the stream
public = yes # advertise this stream?
# this section describes a streaming connection to a ShoutCast server
# there may be up to 8 of these sections, named [shoutcast-0] ... [shoutcast-7]
# these can be mixed with [icecast-x] and [icecast2-x] sections
[shoutcast-0]
bitrateMode = vbr # variable bit rate mode
quality = 0.5 # encoding quality
server = yp.yourserver.com
# host name of the server
port = 9001 # source port of the ShoutCast server, usually 8001
password = hackme # source password to the ShoutCast server
name = DarkIce trial
# name of the stream
url = http://www.yourserver.com
# URL related to the stream
genre = my own # genre of the stream
public = yes # advertise this stream?
irc = irc.yourserver.com
# IRC info related to the stream
aim = aim here # AIM info related to the stream
icq = I see you too
# ICQ info related to the stream
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11
DAEMON=/usr/bin/darkice
NAME=darkice
DESC=darkice
test -x $DAEMON || exit 0
# Defaults
CONFIGFILE="/usr/share/doc/darkice/examples/darkice.cfg"
USERID=icecast2
GROUPID=icecast
# Reads config file (will override defaults above)
set -e
case "$1" in
start)
echo -n "Starting $DESC: "
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
--background --exec $DAEMON -- -c $CONFIGFILE
echo "$NAME."
;;
stop)
echo -n "Stopping $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
echo "$NAME."
;;
reload|force-reload)
echo "Reloading $DESC configuration files."
start-stop-daemon --stop --signal 1 --quiet --exec $DAEMON
;;
restart)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --chuid $USERID:$GROUPID \
--background --exec $DAEMON -- -c $CONFIGFILE
echo "$NAME."
;;
*)
echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
exit 1
;;
esac<icecast>
<limits>
<clients>10</clients>
<sources>2</sources>
<threadpool>5</threadpool>
<queue-size>102400</queue-size>
<client-timeout>30</client-timeout>
<header-timeout>15</header-timeout>
<source-timeout>10</source-timeout>
<!-- If enabled, this will provide a burst of data when a client
first connects, thereby significantly reducing the startup
time for listeners that do substantial buffering. However,
it also significantly increases latency between the source
client and listening client. For low-latency setups, you
might want to disable this. -->
<burst-on-connect>1</burst-on-connect>
<!-- same as burst-on-connect, but this allows for being more
specific on how much to burst. Most people won't need to
change from the default 64k. Applies to all mountpoints -->
<burst-size>65535</burst-size>
</limits>
<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>
<!-- Uncomment this if you want directory listings -->
<!--
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://dir.xiph.org/cgi-bin/yp-cgi</yp-url>
</directory>
<directory>
<yp-url-timeout>15</yp-url-timeout>
<yp-url>http://www.oddsock.org/cgi-bin/yp-cgi</yp-url>
</directory>
-->
<!-- This is the hostname other people will use to connect to your server.
It affects mainly the urls generated by Icecast for playlists and yp
listings. -->
<hostname>localhost</hostname>
<!-- You can use these two if you only want a single listener -->
<!--<port>8000</port> -->
<!--<bind-address>127.0.0.1</bind-address>-->
<!-- You may have multiple <listener> elements -->
<listen-socket>
<port>8000</port>
<!-- <bind-address>127.0.0.1</bind-address> -->
</listen-socket>
<!--
<listen-socket>
<port>8001</port>
</listen-socket>
-->
<!--<master-server>127.0.0.1</master-server>-->
<!--<master-server-port>8001</master-server-port>-->
<!--<master-update-interval>120</master-update-interval>-->
<!--<master-password>hackme</master-password>-->
<!--
<relay>
<server>127.0.0.1</server>
<port>8001</port>
<mount>/example.ogg</mount>
<local-mount>/different.ogg</local-mount>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata>
</relay>
-->
<!-- Only define a <mount> section if you want to use advanced options,
like alternative usernames or passwords
<mount>
<mount-name>/example-complex.ogg</mount-name>
<username>othersource</username>
<password>hackmemore</password>
<max-listeners>1</max-listeners>
<dump-file>/tmp/dump-example1.ogg</dump-file>
<burst-size>65536</burst-size>
<fallback-mount>/example2.ogg</fallback-mount>
<authentication type="htpasswd">
<option name="filename" value="myauth"/>
<option name="allow_duplicate_users" value="0"/>
</authentication>
</mount>
-->
<fileserve>1</fileserve>
<paths>
<!-- basedir is only used if chroot is enabled -->
<basedir>/usr/share/icecast</basedir>
<!-- Note that if <chroot> is turned on below, these paths must both
be relative to the new root, not the original root -->
<logdir>/usr/var/log/icecast</logdir>
<webroot>/usr/share/icecast/web</webroot>
<adminroot>/usr/share/icecast/admin</adminroot>
<!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> -->
<!-- Aliases: treat requests for 'source' path as being for 'dest' path
May be made specific to a port or bound address using the "port"
and "bind-address" attributes.
-->
<!--
<alias source="/foo" dest="/bar"/>
-->
<!-- Aliases: can also be used for simple redirections as well,
this example will redirect all requests for http://server:port/ to
the status page
-->
<alias source="/" dest="/status.xsl"/>
</paths>
<logging>
<accesslog>access.log</accesslog>
<errorlog>error.log</errorlog>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error -->
</logging>
<security>
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
</security>
</icecast>
- References:
- [radiolivre] Re: Inicialização Icecast
- From: rafael2k
- [radiolivre] Re: [radiolivre] Re: Inicialização Icecast
- From: Mauro Thiago
- [radiolivre] Re: [radiolivre] Re: Inicialização Icecast
- From: rhatto
Other related posts:
- » [radiolivre] Inicialização Icecast
- » [radiolivre] Re: Inicialização Icecast
- » [radiolivre] Re: Inicialização Icecast
- » [radiolivre] Re: Inicialização Icecast
- » [radiolivre] Re: Inicialização Icecast
Olá Thiago, tudo bem? Sinto por não ter respondido várias de suas mensagens, infelizmente não estou com muito tempo disponível para cuidar da minha correspondência.
Se o seu icecast2 já está instalado, tudo o que você precisa
fazer é verificar se o script de inicialização está instalado
- tipicamente em /etc/init.d/icecast2 - e se o arquivo de configuração - tipicamente /etc/icecast.xml - existe e está com as opções que você deseja.
O apt-get não resolve sempre toda a tarefa de instalação. Se o seu /etc/icecast.xml não existe, você deve criá-lo. No nosso manual há um icecast.xml padrão e uma explicação detalhada de cada seção deste arquivo. De preferência não use as opções padrões, customize o arquivo da forma como lhe for conveniente.
http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Configurando_o_Icecast_no_GNU_Li
Exemplo de icecast.xml: http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Exemplo_de_configura_o
Para saber como ligar e desligar seu servidor, dê uma olhada em
http://docs.indymedia.org/view/Sysadmin/IceCastPtBr#Rodando_o_Icecast_no_GNU_Linux
falow e boa sorte! rhatto
Em Tue, Jun 21, 2005 at 03:21:15AM -0300, Mauro Thiago escreveu:
Então Rafael, não existe este arquivo na pasta /etc/default/icecast2 e fiz instalação via apt-get, só que o arquivo direciona para esta pasta. Não existe este documento...
Sei que deve existir o arquivo para configuração, mas não possui, então gostaria de saber o que devo colocar dentro deste documento que pede ou fazer direcionamento para outro arquivo, ai desconheço, pois sou leigo no assunto.
Obrigado pela atenção e compreensão, AE MAIS UM MANIFESTANDO O QUE SABE PARA QUE A COMUNIDADE POSSA OBTER RESPOSTAS... VOU AGITAR ATÉ APARECER MAIS E MAIS PESSOAS...
NAUM SABEM O PODER QUE POSSUEM NA MÃO! SE QUEREM MUDAR O PAÍS DIZENDO NÃO AO MONOPÓLIO, TEMOS QUE COMEÇAR ASSIM, FABRICANDO NOSSA PRÓPRIA TECNOLOGIA, COMO É O CASO DA URNA ELETRÔNICA... NÃO EXISTE TECNOLOGIA MELHOR QUE A NOSSA!!!
PENSEM NISSO! NAUM TEM NADA A VER COM QUE ESTAMOS CONVERSANDO, MAS ESCUTEI BOATOS QUE NOSSO BRASILEIRO CARLOS MORIMOTO ESTÁ EM PESQUISA JUNTAMENTO COM LULA PARA IMPLANTAR O SOFTWARE LIVRE PARA OS "PC´S CONECTADO", UM PROJETO DO GOVERNO PARA INCLUSÃO DIGITAL!!!
GALERA, A CADA DIA ME SINTO MAIS BRASIL!!! VIVA OPENSOURCE!
AHHH, SÓ PARA LEMBRAR, RESPEITO A OPINIÃO DE TODAS AS RELIGIÕES E ETNIAS, DIGO QUE ISSO QUE ESTOU TENTANDO CONFIGURAR NÃO É PARA GANHOS PESSOAIS E SIM UM TRABALHO DE CONSCIENTIZAÇÃO DE PESSOAS QUE BUSCAM UM CONFORTO COM DEUS, ESSE PROJETO É PARA A IGREJA QUE SOU MEMBRO, ESTOU PESQUISANDO SOBRE O ASSUNTO, FAZ UM TEMPO, COM INTUITO DE MONTAR TODA A ESTRUTURA DA WEBRÁDIO DA IGREJA, TUDO OPENSOURCE. ENTÃO, ANTES QUE FALE QUE ESTOU INCOMODANDO OU ALGO POR INTERESSE, FIQUE CIENTE QUE ESTE TRABALHO É COMUNITÁRIO E NÃO TEREI GANHO ALGUM, APENAS QUE MUITOS POSSAM OUVIR A PALAVRA DE DEUS!
DEUS ABENÇOE A TODOS! OBRIGADO DE CORAÇÃO A TODOS QUE CONTRIBUIRAM ATÉ O MOMENTO POR ESTE PROJETO!
THIAGO.
++++++++++++++++++++++++++++++++++++++++++++++++++++++
--- rafael2k <rafael@xxxxxxxxxx> escreveu:
Em Seg 20 Jun 2005 22:47, Mauro Thiago escreveu:
Então o arquivo que está em /etc/init.d/icecast2
você editou o arquivo /etc/default/icecast2 ?
pode ser assim: # nano /etc/default/icecast2
depois edite o arquivo de configuração do icecast,
que no debian vai saber onde está, mas deve estar em algum lugar como:
/etc/icecast/icecast2.xml
abraços, rafael diniz
- [radiolivre] Re: Inicialização Icecast
- From: rafael2k
- [radiolivre] Re: [radiolivre] Re: Inicialização Icecast
- From: Mauro Thiago
- [radiolivre] Re: [radiolivre] Re: Inicialização Icecast
- From: rhatto