Enviado em 14/11/2011 - 10:40h
Estava procurando um script que pudesse instalar e executar o shoutcast e o autodj, bom não achei nenhum então optei por criar um:
#################### variáveis #####################
##############criador de playlist###################
pasta=/* #colocar a pasta da MP3
##############configuracao server###################
pass=1234 # senha para dj
apass=12345 # Senha para acesso HTTP
##############configuração autodj###################
qualidade=98000 # qualiade da radio em bitrate
radio=nome da radio # nome da sua radio
url=http://seusite.com # seu site
genero=genero # Genero da sua radio
user=admin # user do testUI
passUI=admin # senha do testUI
####################################################
############## final variáveis #####################
####################################################
####################################################
###### NAO MODIFICAR O SCRIPT A PARTIR DAKI!! ######
####################################################
####################################################
echo -----install shoutcast-----##
mkdir /radio/
mkdir /radio/server/
mkdir /radio/dj/
cd /radio/server/
wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_07_31_2011.tar.gz
tar -zxvf sc_serv2_linux_07_31_2011.tar.gz
echo logfile=logs/sc_serv.log >> sc_serv.conf
echo w3clog=logs/sc_w3c.log >> sc_serv.conf
echo banfile=control/sc_serv.ban >> sc_serv.conf
echo ripfile=control/sc_serv.rip >> sc_serv.conf
echo password=$pass >> sc_serv.conf
echo adminpassword=$apass >> sc_serv.conf
echo streamid=1 >> sc_serv.conf
echo streampath=/test.aac >> sc_serv.conf
echo publicserver=always >> sc_serv.conf
echo streamauthhash=12345 >> sc_serv.conf
chmod 777 sc_serv.conf
#####################################################################
echo -----install dj-------##
cd /radio/dj/
wget http://download.nullsoft.com/shoutcast/tools/sc_trans_linux_10_07_2011.tar.gz
tar -zxvf sc_trans_linux_10_07_2011.tar.gz
echo logfile=logs/sc_trans.log >> sc_trans.conf
echo calendarrewrite=0 >> sc_trans.conf
echo encoder_1=aacp >> sc_trans.conf
echo bitrate_1=$qualidade >> sc_trans.conf
echo outprotocol_1=3 >> sc_trans.conf
echo serverip_1=127.0.0.1 >> sc_trans.conf
echo serverport_1=8000 >> sc_trans.conf
echo password_1=$pass >> sc_trans.conf
echo streamid_1=1 >> sc_trans.conf
echo endpointname_1=/Bob >> sc_trans.conf
echo streamtitle=$radio >> sc_trans.conf
echo streamurl=$url >> sc_trans.conf
echo genre=$genero >> sc_trans.conf
echo playlistfile=/radio/play.lst >> sc_trans.conf
echo adminport=7998 >> sc_trans.conf
echo adminuser=$user >> sc_trans.conf
echo adminpassword=$passUI >> sc_trans.conf
chmod 777 sc_trans.conf
##################################################################
echo executando servidor
find $pasta > /radio/play.lst
cd /radio/server/
./sc_serv sc_serv.conf > /radio/shoutcast.log &
cd /radio/dj/
./sc_trans sc_trans.conf > /radio/dj.log &
exit
Enviar mensagem ao usuário trabalhando com as opções do php.ini
Meu Fork do Plugin de Integração do CVS para o KDevelop
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Criando uma VPC na AWS via CLI
Multifuncional HP imprime mas não digitaliza
Dica básica para escrever um Artigo.
Como Exibir Imagens Aleatórias no Neofetch para Personalizar seu Terminal
Pegar a ultima ocorrencia viva (0)
O que você está ouvindo agora? [2] (167)
Sony Vaio placa Intel Centrono[condor Peak] rede wifi inidisponível (0)