Log in

View Full Version : Installing SHOUTcast on Windows and Linux.



Recursion
23-08-2010, 09:21 PM
Linux:
I'm going to assume you know how to SSH in to your Linux server and log in as root.

First of all, we're going to add a shoutcast user, it's not secure running services as root:

adduser shoutcast

Now we'll login to this user:

su shoutcast

Change to Shoutcast's home directory:

cd /home/shoutcast

At this point I should mention if you have to put a file directory in like above, you can press tab and it will autocomplete the directory for you, for example in the above you could do "/home/sho <TAB>", it will work for just about anything you need a file or folder name for, in this instance, we can use it with the cd "change directory" command.

Now we're ready to begin installing shoutcast! First of all we'll download the shoutcast server files:

wget http://yp.shoutcast.com/downloads/sc1-9-8/sc_serv_1.9.8_Linux.tar.gz

Make a directory to extract the server into:

mkdir shoutcastserver_1.9.8

And extract the .tar.gz file to a folder:

tar zxvf sc_serv_1.9.8_Linux.tar.gz -C shoutcastserver_1.9.8

Remove the original .tar.gz file to keep things clean:

rm sc_serv_1.9.8_Linux.tar.gz

Go into the directory where the shoutcast files are now installed:

cd shoutcastserver_1.9.8

Now you'll want to edit your Shoutcast configuration:

nano sc_serv.conf

Scroll down to where it says "MaxUser" and change it to how many listeners you want, remember, the more listeners, the more server resources you'll be using up.

Next, scroll down to Password and change this, it will be the password you use to broadcast through the server.

Again scroll down to where it says PortBase, this is the port Shoutcast will use for streaming, you need to pick a port where the port it self and the next one up is available, usually the default 8000 is fine (and because it's one up, it'll be 8001 too).

Press CTRL + O to save the file, and then CTRL + X to exit the Nano text editor.

To start the server and then send it to the background so you can exit PuTTY, type:

./sc_serv &

It should finish loading on something like:

<08/18/10@09:34:25> [sleeping] 0 listeners (0 unique)

Congratulations! You're server is now up and running and you can connect to it using SAM Broadcaster or Winamp!

You may need to open the ports up if you use a firewall such as IPTables.

---------- Post added 23-08-2010 at 10:31 PM ----------

Windows:
I'm going to assume you know how to Remotely connect to your Windows server (if not doing it on your local host).

Some people will disagree with the way I've set this up, but here the SHOUTcast server is set up to start when the computer boots and will run under the "Network Service" user to try and keep things a bit more secure.

You'll need to be logged in as a user with administrative abilities through Remote Desktop and have a text editor like Notepad++ (the configuration file looks awful in Notepad).

Load up Internet Explorer, go to http://www.shoutcast.com/broadcast-tools and download the "SHOUTcast DNAS 1.9.8" server for Windows, save the .exe on your Desktop for ease of access.

As you run through the setup, select these options:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/1_install.png

When it asks you where to install, select (this just makes it a bit easier):

C:\SHOUTcast

And now using something like NotePad++ load up C:\SHOUTcast\sc_serv.ini and edit the three black lines in the screenshot below, they are pretty self explanatory:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/3_config.png

Now, we'll test to make sure the server runs properly. Go to C:\SHOUTcast in Explorer and double click sc_serv.exe, if it looks like the screenshot below, it works!:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/4_test.png

Now, go to the Start menu and find Task Scheduler, if you're on Server 2008 or Windows 7 you can just begin typing it in the search box to get it up.

When it has loaded, on the right hand side click "Create Basic Task..." and fill the details in like the screenshot below:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/6_begintask.png

Click "Next >" and on the next screen check "When the computer starts", hit next again and check "Start a program". Again, hit the "Next >" button and then click "Browse..." next to the program field and select c:\SHOUTcast\sc_serv.exe, check the box about bringing up a property window and then hit Finish:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/9_selectexe.png

Now, you should have the properties box up, in here click "Change User or Group..." and follow these:
1.
http://skitch.*****.co.uk/@Shoutcasttut/windoze/10_finduser1.png

2.
http://skitch.*****.co.uk/@Shoutcasttut/windoze/10_finduser2.png

Now go along to the "Settings" tab and set it up like below and click OK:
http://skitch.*****.co.uk/@Shoutcasttut/windoze/11_settings.png

Done! Now just click on the task in Task Scheduler and click Run on the right hand side, or restart your computer and it will run automatically, ready for you to broadcast!

Just remember, you may need to open up your firewall if using Windows Server 2008 and above and/or portforward on your router if doing this at home. More information on port forwarding can be found at www.portforward.com.

Want to hide these adverts? Register an account for free!