<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.0.10">
</HEAD>
<BODY>
Hello,<BR>
<BR>
Clueless newbie using ices 0.4 and icecast 2.<BR>
<BR>
Situation: a small closed network, no worries about security.<BR>
<BR>
Error I am bumping into:<BR>
[devprog1@localhost ices-0.4]$ ices<BR>
Logfile opened<BR>
Playing /home/devprog1/mp3/01.mp3<BR>
Error during send: Mount failed on http://127.0.0.1:8000/ices, error: Login failed<BR>
<BR>
Following are my two config files, could anyone help me out?<BR>
<BR>
TIA,<BR>
Bert<BR>
<BR>
<icecast><BR>
<limits><BR>
<clients>100</clients><BR>
<sources>2</sources><BR>
<threadpool>5</threadpool><BR>
<queue-size>102400</queue-size><BR>
<client-timeout>30</client-timeout><BR>
<header-timeout>15</header-timeout><BR>
<source-timeout>10</source-timeout><BR>
<!-- If enabled, this will provide a burst of data when a client <BR>
first connects, thereby significantly reducing the startup <BR>
time for listeners that do substantial buffering. However,<BR>
it also significantly increases latency between the source<BR>
client and listening client. For low-latency setups, you<BR>
might want to disable this. --><BR>
<burst-on-connect>1</burst-on-connect><BR>
<!-- same as burst-on-connect, but this allows for being more<BR>
specific on how much to burst. Most people won't need to<BR>
change from the default 64k. Applies to all mountpoints --><BR>
<burst-size>65535</burst-size><BR>
</limits><BR>
<BR>
<authentication><BR>
<!-- Sources log in with username 'source' --><BR>
<source-password>mypasword</source-password><BR>
<!-- Relays log in username 'relay' --><BR>
<relay-password>hackme</relay-password><BR>
<BR>
<!-- Admin logs in with the username given below --><BR>
<admin-user>devprog1</admin-user><BR>
<admin-password>mypassword</admin-password><BR>
</authentication><BR>
<BR>
<!-- Uncomment this if you want directory listings --><BR>
<!--<BR>
<directory><BR>
<yp-url-timeout>15</yp-url-timeout><BR>
<yp-url><A HREF="http://dir.xiph.org/cgi-bin/yp-cgi<">http://dir.xiph.org/cgi-bin/yp-cgi<</A>/yp-url><BR>
</directory><BR>
<directory><BR>
<yp-url-timeout>15</yp-url-timeout><BR>
<yp-url><A HREF="http://www.oddsock.org/cgi-bin/yp-cgi<">http://www.oddsock.org/cgi-bin/yp-cgi<</A>/yp-url><BR>
</directory><BR>
--><BR>
<BR>
<!-- This is the hostname other people will use to connect to your server.<BR>
It affects mainly the urls generated by Icecast for playlists and yp<BR>
listings. --><BR>
<hostname>localhost</hostname><BR>
<BR>
<!-- You can use these two if you only want a single listener --><BR>
<!--<port>8000</port> --><BR>
<!--<bind-address>127.0.0.1</bind-address>--><BR>
<BR>
<!-- You may have multiple <listener> elements --><BR>
<listen-socket><BR>
<port>8000</port><BR>
<!-- <bind-address>127.0.0.1</bind-address> --><BR>
</listen-socket><BR>
<!--<BR>
<listen-socket><BR>
<port>8001</port><BR>
</listen-socket><BR>
--><BR>
<BR>
<!--<master-server>127.0.0.1</master-server>--><BR>
<!--<master-server-port>8001</master-server-port>--><BR>
<!--<master-update-interval>120</master-update-interval>--><BR>
<!--<master-password>hackme</master-password>--><BR>
<!--<BR>
<relay><BR>
<server>127.0.0.1</server><BR>
<port>8001</port><BR>
<mount>/example.ogg</mount><BR>
<local-mount>/different.ogg</local-mount><BR>
<BR>
<relay-shoutcast-metadata>0</relay-shoutcast-metadata><BR>
</relay><BR>
--><BR>
<BR>
<!-- Only define a <mount> section if you want to use advanced options,<BR>
like alternative usernames or passwords<BR>
<mount><BR>
<mount-name>/example-complex.ogg</mount-name><BR>
<BR>
<username>devprog1</username><BR>
<password>mypassword</password><BR>
<BR>
<max-listeners>1</max-listeners><BR>
<dump-file>/tmp/dump-example1.ogg</dump-file><BR>
<burst-size>65536</burst-size><BR>
<fallback-mount>/example2.ogg</fallback-mount><BR>
<authentication type="htpasswd"><BR>
<option name="filename" value="myauth"/><BR>
<option name="allow_duplicate_users" value="0"/><BR>
</authentication><BR>
</mount><BR>
--><BR>
<BR>
<fileserve>1</fileserve><BR>
<BR>
<paths><BR>
<!-- basedir is only used if chroot is enabled --><BR>
<basedir>/usr/share/icecast</basedir><BR>
<BR>
<!-- Note that if <chroot> is turned on below, these paths must both<BR>
be relative to the new root, not the original root --><BR>
<logdir>/usr/share/icecast/log</logdir><BR>
<webroot>/usr/share/icecast/web</webroot><BR>
<adminroot>/usr/share/icecast/admin</adminroot><BR>
<!-- <pidfile>/usr/share/icecast/icecast.pid</pidfile> --><BR>
<BR>
<!-- Aliases: treat requests for 'source' path as being for 'dest' path<BR>
May be made specific to a port or bound address using the "port"<BR>
and "bind-address" attributes.<BR>
--><BR>
<!--<BR>
<alias source="/foo" dest="/bar"/><BR>
--><BR>
<!-- Aliases: can also be used for simple redirections as well,<BR>
this example will redirect all requests for http://server:port/ to<BR>
the status page<BR>
--><BR>
<alias source="/" dest="/status.xsl"/><BR>
</paths><BR>
<BR>
<logging><BR>
<accesslog>access.log</accesslog><BR>
<errorlog>error.log</errorlog><BR>
<loglevel>4</loglevel> <!-- 4 Debug, 3 Info, 2 Warn, 1 Error --><BR>
</logging><BR>
<BR>
<security><BR>
<chroot>0</chroot><BR>
<!--<BR>
<changeowner><BR>
<user>nobody</user><BR>
<group>nogroup</group><BR>
</changeowner><BR>
--><BR>
</security><BR>
</icecast><BR>
<BR>
<BR>
<BR>
<BR>
<?xml version="1.0"?><BR>
<ices:Configuration xmlns:ices="<A HREF="http://www.icecast.org/projects/ices">http://www.icecast.org/projects/ices</A>"><BR>
<Playlist><BR>
<!-- This is the filename used as a playlist when using the builtin <BR>
playlist handler. --><BR>
<File>/root/reference/software/icecast/ices-0.4/playlist.txt</File><BR>
<!-- Set this to 0 if you don't want to randomize your playlist, and to<BR>
1 if you do. --><BR>
<Randomize>1</Randomize><BR>
<!-- One of builtin, perl, or python. --><BR>
<Type>builtin</Type><BR>
<!-- Module name to pass to the playlist handler if using perl or python.<BR>
If you use the builtin playlist handler then this is ignored --><BR>
<Module>ices</Module><BR>
<!-- Set this to the number of seconds to crossfade between tracks.<BR>
Leave out or set to zero to disable crossfading (the default).<BR>
<Crossfade>5</Crossfade><BR>
--><BR>
</Playlist><BR>
<BR>
<Execution><BR>
<!-- Set this to 1 if you want ices to launch in the background as a<BR>
daemon --><BR>
<Background>0</Background><BR>
<!-- Set this to 1 if you want to see more verbose output from ices --><BR>
<Verbose>1</Verbose><BR>
<!-- This directory specifies where ices should put the logfile, cue file<BR>
and pid file (if daemonizing). Don't use /tmp if you have l33t h4x0rz<BR>
on your server. --><BR>
<BaseDirectory>/tmp</BaseDirectory><BR>
</Execution><BR>
<BR>
<Stream><BR>
<Server><BR>
<!-- Hostname or ip of the icecast server you want to connect to --><BR>
<Hostname>localhost</Hostname><BR>
<!-- Port of the same --><BR>
<Port>8000</Port><BR>
<!-- Encoder password on the icecast server --><BR>
<Password>mypassword</Password><BR>
<!-- Header protocol to use when communicating with the server.<BR>
Shoutcast servers need "icy", icecast 1.x needs "xaudiocast", and<BR>
icecast 2.x needs "http". --><BR>
<Protocol>http</Protocol><BR>
</Server><BR>
<BR>
<!-- The name of the mountpoint on the icecast server --> <BR>
<Mountpoint>/ices</Mountpoint><BR>
<!-- The name of the dumpfile on the server for your stream. DO NOT set<BR>
this unless you know what you're doing.<BR>
<Dumpfile>ices.dump</Dumpfile><BR>
--><BR>
<!-- The name of you stream, not the name of the song! --><BR>
<Name>mp3</Name><BR>
<!-- Genre of your stream, be it rock or pop or whatever --><BR>
<Genre>Physics</Genre><BR>
<!-- Longer description of your stream --><BR>
<Description>mp3 Lectures on Physics</Description><BR>
<!-- URL to a page describing your stream --><BR>
<URL><A HREF="http://localhost/<">http://localhost/<</A>/URL><BR>
<!-- 0 if you don't want the icecast server to publish your stream on<BR>
the yp server, 1 if you do --><BR>
<Public>0</Public><BR>
<BR>
<!-- Stream bitrate, used to specify bitrate if reencoding, otherwise<BR>
just used for display on YP and on the server. Try to keep it<BR>
accurate --><BR>
<Bitrate>128</Bitrate><BR>
<!-- If this is set to 1, and ices is compiled with liblame support,<BR>
ices will reencode the stream on the fly to the stream bitrate. --><BR>
<Reencode>0</Reencode><BR>
<!-- Number of channels to reencode to, 1 for mono or 2 for stereo --><BR>
<!-- Sampe rate to reencode to in Hz. Leave out for LAME's best choice<BR>
<Samplerate>44100</Samplerate><BR>
--><BR>
<Channels>1</Channels><BR>
</Stream><BR>
</ices:Configuration><BR>
<BR>
<BR>
</BODY>
</HTML>