| View previous topic :: View next topic |
| Author |
Message |
Anonymous Guest
|
Posted: Tue May 16, 2006 10:45 pm Post subject: Permission |
|
|
/usr/bin/install -c icecast /usr/local/bin/icecast
/usr/bin/install: cannot remove `/usr/local/bin/icecast': Permission denied
make[3]: *** [install-binPROGRAMS] Error 1
make[3]: Leaving directory `/home/nemesis/TaZ/icecast-2.3.1/src'
make[2]: *** [install-am] Error 2
make[2]: Leaving directory `/home/nemesis/TaZ/icecast-2.3.1/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/nemesis/TaZ/icecast-2.3.1/src'
make: *** [install-recursive] Error 1
How can i give the enough or the right permission to an account in my server for install icecast server? am having this problem and i cant run the icescast server like root so if somebody knows please give me a hand
thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Tue May 16, 2006 11:39 pm Post subject: |
|
|
yes security can get in the way sometimes
The message you are seeing is because you are installing icecast as a non-root user which does not have access to files under /usr/local. As a general rule, you can build icecast as a non-root user but often you have to install as root. Whether you have root access is another matter of course.
karl |
|
| Back to top |
|
 |
MikeS Code Warrior

Joined: 29 Jun 2005 Posts: 73 Location: Barcelona, Spain
|
Posted: Wed May 17, 2006 8:48 am Post subject: |
|
|
If you don't have root access, you can't install icecast to /usr/local.
Instead, install it somewhere else, or get root to install it for you - once installed, you'll be able to run it either way.
M |
|
| Back to top |
|
 |
Anonymous Guest
|
Posted: Wed May 17, 2006 8:28 pm Post subject: one more |
|
|
ok guys i got a step by step very very good i follow the steps one by one but before writte my nex problem let me put the step by step:
| Quote: |
Icecast2 HOWTO
Rodolfo Martínez
April 17, 2006
This document describes how to set up an Icecast2 server for broadcasting audio over the Internet.
Table of Contents
1. Prerequisites.
2. How it works.
3. Installing
1. libshout.
2. icecast2.
3. lame.
4. ices0.
4. Configuring
1. icecast2.
2. ices0.
5. Running icecast2.
6. Running ices0.
7. Running icecast2 and ices0 at the system boot.
8. Listening the streaming with an audio program
Prerequisites
Table 1. Program requirements
File Description Required?
icecast-2.3.1 Icecast is a streaming media server which currently supports Ogg Vorbis and MP3 audio streams. Yes
ices-0.4 Source client for broadcasting in MP3 format to an icecast2 server. Yes
lame-3.96.1 LAME is an LGPL MP3 encoder. Optional
Table 2. Library requirements
Library Description Required?
libshout-2.2 Library for communicating with and sending data to an icecast server. Yes
libogg Manipulates ogg bitstreams. Yes
libvorbis Supports the Vorbis General Audio Compression Codec. Yes
libxml2 Used to parse the config files. Yes
libxslt Used for building the web-frontend. Yes
curl-7.1x Icecast may be compiled without curl, however this will disable all Directory server interaction. Optional
How it works
The Server opens one or several ports (8000 by default) for the broadcast, it runs a daemon (icecast2) which waits for audio content that will be provided by the client(s) (ices0) in mp3 or ogg format.
One server can broadcast several audio streams simultaneously; also it provides the audio stream information throught a web interface.
The client reads an ogg or mp3 file and sends it to the server.
Any user who wants to listen the audio will connect to the server through an audio program; such as, Windows Media Player®, Winamp, XMMS, Media Player, etc...
Figure 1. Architecture
Installing libshout
1. Make sure that curl, libvorbis, libogg, libxml2 and libxslt are installed. All of these libraries are available in the DVD/CD installation in most Linux distributions.
2. Download libshout.
3. Untarring, configuring, compiling and installing:
$ tar -zxvf libshout-2.2.tar.gz
$ cd libshout-2.2
$ ./configure --prefix=/usr
$ make
$ su
# make install
# exit
Installing icecast2
1. Download icecast2.
2. Untarring, configuring, compiling and installing:
$ tar -zxvf icecast-2.3.1.tar.gz
$ cd icecast-2.3.1
$ ./configure
$ make
$ su
# make install
# exit
Installing lame
1. Download lame.
2. Untarring, configuring, compiling and installing:
$ tar -zxvf lame-3.96.1.tar.gz
$ cd lame-3.96.1
$ ./configure --prefix=/usr
$ make
$ su
# make install
# exit
Installing ices0
1. Download ices0.
2. Untarring, configuring, compiling and installing:
$ tar -zxvf ices-0.4.tar.gz
$ cd ices-0.4
$ ./configure --with-lame
$ make
$ su
# make install
# exit
Configuring icecast2
1. Create user and group for icecast2:
$ su -
# groupadd icecast2
# useradd icecast2 -g icecast2
2. Change icecast2/ices0 ownership:
# cd /usr/local/bin
# chown icecast2.icecast2 icecast ices
# mkdir /usr/local/share/icecast/log
# chown -R icecast2.icecast2 /usr/local/share/icecast
3. Edit icecast2's configuration file:
# vim /usr/local/etc/icecast.xml
and change the lines:
...
<hostname>localhost</hostname>
...
<logdir>/usr/local/var/log/icecast</logdir>
<webroot>/usr/local/share/icecast/web</webroot>
<adminroot>/usr/local/share/icecast/admin</adminroot>
...
<chroot>0</chroot>
<!--
<changeowner>
<user>nobody</user>
<group>nogroup</group>
</changeowner>
-->
...
to:
...
<hostname>your_hostname or ip</hostname>
...
<logdir>/log</logdir>
<webroot>/web</webroot>
<adminroot>/admin</adminroot>
...
<chroot>1</chroot>
<changeowner>
<user>icecast2</user>
<group>icecast2</group>
</changeowner>
...
4. Save and close the file
Configuring ices0
1. Edit ices0's configuration file:
# cp /usr/local/etc/ices.conf.dist /usr/local/etc/ices.conf
# vim /usr/local/etc/ices.conf
and change the lines:
...
<File>playlist.txt</File>
...
<Background>0</Background>
<Verbose>0</Verbose>
...
<Hostname>localhost</Hostname>
<Password>letmein</Password>
...
<Bitrate>128</Bitrate>
<Reencode>0</Reencode>
...
to:
...
<File>/tmp/playlist.txt</File>
...
<Background>1</Background>
<Verbose>1</Verbose>
...
<Hostname>icecast2 server's hostname or ip</Hostname>
<Password>icecast2 server's source password (hackme by default)</Password>
...
<Bitrate>64</Bitrate>
<Reencode>1</Reencode>
...
2. Save and close the file.
3. Create the playlist:
cd /path/to/music's/dir
find `pwd` -name \*.mp3 > /tmp/playlist.txt
Running icecast2
# icecast -c /usr/local/etc/icecast.xml &
Running ices0
# ices -c /usr/local/etc/ices.conf &
Running icecast2 and ices0 at system's boot
1. Save the following file in /etc/init.d/icecast2:
case "$1" in
start)
/usr/local/bin/icecast -c /usr/local/etc/icecast.xml > /dev/null &
;;
stop)
killall icecast
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
2. Save the following file in /etc/init.d/ices0:
case "$1" in
start)
/usr/local/bin/ices -c /usr/local/etc/ices.conf >/dev/null &
;;
stop)
killall --signal SIGINT ices
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
;;
esac
3. Make them executable and create symbolic links:
# chmod 755 /etc/init.d/icecast2
# chmod 755 /etc/init.d/ices0
# cd /etc/init.d/rc3.d
# ln -s ../icecast2 S80icecast2
# ln -s ../ices0 S81ices0
# cd /etc/init.d/rc5.d
# ln -s ../icecast2 S80icecast2
# ln -s ../ices0 S81ices0
# cd /etc/init.d/rc0.d
# ln -s ../ices0 S80ices0
# ln -s ../icecast2 S81icecast2
# cd /etc/init.d/rc6.d
# ln -s ../ices0 S80ices0
# ln -s ../icecast2 S81icecast2
Listening the streaming with an audio program
1. Launch your favorite Internet browser (i.e. Firefox)
2. Open http://server's_ip:8000
3. Click on "Click to listen" link and enjoy!
|
ok my problem comes when i'm installing ices... this is happening: checking for pkg-config... /usr/bin/pkg-config
configure: /usr/bin/pkg-config couldn't find libshout. Try adjusting PKG_CONFIG_PATH.
checking for shout-config... no
configure: error: Could not find a usable libshout
i did 2 things i ran again libshout with --prefix= /user/bin
and i linked the libshout using the command : ln -s /usr/local/libshout... /usr/lib/ when i got the same error after run using --prefix
Trust me guys i did everything that i know, am not a expert in unix and i read and i dont know what more to do, please check this and tell me what can i do ?
Thanks |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed May 17, 2006 10:19 pm Post subject: |
|
|
if ices is not able to locate a libshout then it's either because it's looking in the wrong place or it hasn't been installed for whatever reason. Check what happens with the make install of libshout, specifically for the files shout-config or shout.pc
Your setp by step guide enables chroot, this isn't a requirement, and requires a chroot jail to be setup which many people are not aware how to do.
karl. |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group subRebel style by ktauber
|