View previous topic :: View next topic |
Author |
Message |
tito Guest
|
Posted: Fri Sep 16, 2005 9:09 am Post subject: error al iniciar |
|
|
hola,
mi problema es el siguiente, estoy usando gentoo e instale el icecast desde el portage (emerge icecast), primero que nada, leo la documentación y me dice que despues de instalar me tiene que crear dos carpetas en el /etc/icecast2 que se llaman log y admin, no las tengo, despues que configuro el icecast.xml e intento arrancarlo con
icecast -c /etc/icecast2/icecast.xml me salta este error
ERROR: You should not run icecast2 as root
Use the changeowner directive in the config file
me fijo en la opcion de changeowner y le pongo usuario root(para probar), no anda tampoco, intento con usuario comun y menos, no tengo permisos.
gracias desde ya. |
|
Back to top |
|
|
tito Guest
|
Posted: Sat Sep 17, 2005 1:45 pm Post subject: ya estaba |
|
|
perdón por no haber buscado bien , ya estaba en el foro, en ingles
http://forum.icecast.org/viewtopic.php?t=179
igual no me queda del todo clara la respuesta, a mi me sígue sin andar, no se que será. |
|
Back to top |
|
|
epe Asesor español
Joined: 27 Aug 2005 Posts: 132 Location: Quito - Ecuador
|
Posted: Sat Sep 17, 2005 3:55 pm Post subject: |
|
|
crea un usuario llamado icecast y pon en el changeowner a ese usuario.
No puedes usar root en el changeowner pues es precisamente para eso, para cambiar el usuario de root a otro con menos privilegios.
saludos
epe _________________ --
http://www.NuestroServer.com
USA: +1 305 359 4495, España: +34 911 877 602
Ecuador: +593 2 600 4454
Se habla español |
|
Back to top |
|
|
Guest
|
Posted: Wed Sep 28, 2005 8:02 pm Post subject: Fake |
|
|
So where can i get the real one from then? |
|
Back to top |
|
|
Guest
|
Posted: Wed Sep 28, 2005 9:09 pm Post subject: |
|
|
me no hablar inglés.
nie gavarit pa anglishki |
|
Back to top |
|
|
tito Guest
|
Posted: Sun Oct 02, 2005 7:52 pm Post subject: ya ta |
|
|
ya ta, ahora si, muchas gracias
seguí estos pasos
crear el grupo y el usuario icecast
Code: |
groupadd icecast
useradd icecast -m -g icecast -G audio -s /bin/bash
passwd icecast
|
crear carpetas y mover todos los archivos de configuración
Code: |
mkdir /home/icecast/icecast
mkdir /home/icecast/icecast/web
cp -R /usr/share/icecast/web/* /home/icecast/icecast/web/
mkdir /home/icecast/icecast/admin
cp -R /usr/share/icecast/admin/* /home/icecast/icecast/admin/
cp /etc/icecast.xml /home/icecast/icecast/
|
crear los logs
Code: |
mkdir /home/icecast/icecast/log
cd /home/icecast/icecast/log
touch access.log
touch error.log
chmod -R 777 /home/icecast/icecast/log/*
|
modificar el archivo de configuración
Code: |
nano /home/icecast/icecast/icecast.xml |
Code: |
File: /home/icecast/icecast/icecast.xml
<source-password>$passwd</source-password>
<relay-password>$passwd</relay-password>
<admin-password>$passwd</admin-password>
<hostname>$hostname</hostname>
<logdir>/home/icecast/icecast/log</logdir>
<webroot>/home/icecast/icecast/web</webroot>
<adminroot>/home/icecast/icecast/admin</adminroot>
<!-- <pidfile>/home/icecast/icecast/icecast.pid</pidfile> -->
<changeowner>
<user>icecast</user> # Cambiar para icecast
<group>icecast</group> # Cambiar para icecast
</changeowner>
|
noten que las rutas cambian y ahora todas apuntan a /home/icecast/icecast.....
iniciar el servidor
Code: |
icecast -c /home/icecast/icecast/icecast.xml & |
saludos
Tito |
|
Back to top |
|
|
epe Asesor español
Joined: 27 Aug 2005 Posts: 132 Location: Quito - Ecuador
|
Posted: Mon Oct 10, 2005 2:18 am Post subject: |
|
|
ahora sólo te faltaría enjaularlo para lograr un poquito más de seguridad... pero hasta ahi, ya vas bien! _________________ --
http://www.NuestroServer.com
USA: +1 305 359 4495, España: +34 911 877 602
Ecuador: +593 2 600 4454
Se habla español |
|
Back to top |
|
|
Anonymous Guest
|
Posted: Tue Aug 29, 2006 4:13 am Post subject: |
|
|
Hola,
No se si alguien vera este post reactivado, pero he seguido las instruciones del mismo y cuando ejecuto el comando
icecast -c /home/icecast/icecast/icecast.xml
me da el error:
cannot change server root unless runing as root
Alguien me puede decir que puedo hacer?
Saludos
Martincho |
|
Back to top |
|
|
|