<br><br><div class="gmail_quote">On 23 June 2010 22:23, Rob Beard <span dir="ltr">&lt;<a href="mailto:rob@esdelle.co.uk">rob@esdelle.co.uk</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On 23/06/10 22:09, Simon Greenwood wrote:<br>
&gt;<br>
&gt;<br>
&gt; On 23 June 2010 21:45, Rob Beard &lt;<a href="mailto:rob@esdelle.co.uk">rob@esdelle.co.uk</a><br>
</div><div class="im">&gt; &lt;mailto:<a href="mailto:rob@esdelle.co.uk">rob@esdelle.co.uk</a>&gt;&gt; wrote:<br>
&gt;<br>
&gt;     Hi folks,<br>
&gt;<br>
&gt;     I&#39;m trying to setup Shoutcast on a VPS server for a mate of mine as a<br>
&gt;     favour.  The VPS server is running Ubuntu 8.04 AMD64.<br>
&gt;<br>
&gt;     Now I gather from reading up, it is recommended that the shoutcast<br>
&gt;     daemon is run as a user rather than root (presumably for security<br>
&gt;     purposes).<br>
&gt;<br>
&gt;     The thing is, I can&#39;t figure out how to do it.  At first I thought of<br>
&gt;     creating an init script, but presumably it&#39;ll run as root?<br>
&gt;<br>
&gt;     I also thought about cron, but I guess that would require me to enter a<br>
&gt;     start time (so if the server goes down say in the middle of the day then<br>
&gt;     it&#39;ll have to wait until the start time in the crontab?)<br>
&gt;<br>
&gt;     So I wondered if there was any way of running the shoutcast daemon as<br>
&gt;     another user basically from when the machine boots?<br>
&gt;<br>
&gt;<br>
&gt; You can set the user and group in the security stanza of the<br>
&gt; configuration file. You can then launch it from an init script and it<br>
&gt; should run as the user.<br>
&gt;<br>
&gt; Running it from cron is also valid, but you run a script every minute<br>
&gt; (or whatever interval you want) that checks for the pid file or running<br>
&gt; process and restarts the server if it can&#39;t find one or the other.<br>
&gt;<br>
&gt; Icecast is better documented and more actively supported than shoutcast<br>
&gt; on Linux - the old shoutcast documentation doesn&#39;t seem to exist anymore.<br>
&gt;<br>
&gt; s/<br>
&gt;<br>
<br>
</div>Thanks Simon and Neil,<br>
<br>
I&#39;ve used Icecast in the past, seems much better than Shoutcast as far<br>
as documentation goes.  I&#39;m not sure why he specifically needs Shoutcast.<br>
<br>
I don&#39;t suppose you know if Icecast is compatible with Shoutcast is it?<br>
  (I mean for streaming to the server, at the moment I&#39;m using Winamp<br>
with the Shoutcast DSP plugin to send the audio to the server and then<br>
the Gnome Movie Player app to play the stream).<br>
<div><div></div><div class="h5"><br></div></div></blockquote><div><br></div><div>Icecast is the same code as shoutcast but open source. I&#39;m not sure if it supports mp3 out of the box with Ubuntu but it does eventually (I haven&#39;t used it for years to be honest).</div>
<div><br></div><div>s/</div></div><br clear="all"><br>-- <br>Save BBC 6 Music <a href="http://www.love6music.com">http://www.love6music.com</a><br>My CV: <a href="http://bit.ly/sfgreenwood_cv">http://bit.ly/sfgreenwood_cv</a><br>
Linkedin: <a href="http://www.linkedin.com/in/simonfgreenwood">http://www.linkedin.com/in/simonfgreenwood</a><br>Twitter: @sfgreenwood<br>