How to install SHOUTcast on Debian

SHOUTcast Radio is the ultimate directory of online radio stations. With over 45,000 music, talk, sports and community radio stations from the US and around the world, SHOUTcast is unparalleled in the breath of content available, no matter where you are, at the press of a button.

The embedded web player lets you listen whilst simultaneously exploring other stations in the directory. The search function allows you to find your favorite songs and artists playing across the network, and our categories will make sure you won’t have to spend time shuffling through music you don’t want to hear.

Want to start your own Internet Radio station? The FREE SHOUTcast broadcasting tools allow you to broadcast your audio content online and become part of one of the largest directory of radio stations on the web. There are two parts to running a SHOUTcast radio station:

SHOUTcast DNAS – This is the SHOUTcast server, the piece of software thats responsible for actually streaming the audio data to your listeners.
SHOUTcast DSP / Transcoder – This is the tool with which you manage your station’s playlist.

What is the SHOUTcast DNAS?

SHOUTcast DNAS stands for Distributed Network Audio Software. The DNAS, also known as “SC_SERV,” is a software program that is installed on a network server. All listeners that wish to tune into a SHOUTcast stream connect to the SHOUTcast DNAS. The DNAS is also responsible for updating the SHOUTcast directory with now playing and other information relevant to the audio stream.

The SHOUTcast Radio DNAS software is available for the following platforms:

1. Windows – All versions
2. Linux glibc (intel)
3. FreeBSD 3.x (intel)
4. FreeBSD 4.x (intel)
5. BSDi (intel)
6. Solaris 7 (ULTRASPARC)

Download SHOUTcast DNAS here.

How to install SHOUTcast on Debian
We assume you have a debian server installed, if not please see this article about installing a Debian webserver: How to setup Debian Squeeze 6 with Lighttpd, MySQL & PHP.

Simple SHOUTcast install

# mkdir /var/shoutcast
# cd /var/shoutcast
# wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz
# tar zxvf sc_serv2_linux_x64_07_31_2011.tar.gz
# rm sc_serv2_linux_x64_07_31_2011.tar.gz

# nano shoutcast

#!/bin/bash
#########################
# Start Shoutcast Wrapper
#########################
/var/shoutcast/sc_serv /var/shoutcast/sc_serv_basic.conf > /dev/null &

# chmod +x shoutcast

# ./shoutcast

Configure SHOUTcast
Your SHOUTcast Server should be ready now, you can start configuring your Shoutcast “sc_serv.conf” file.

Hereunder an example of a simple configuration:

logfile=/var/shoutcast/logs/sc_serv.log
w3clog=/var/shoutcast/logs/sc_w3c.log
banfile=/var/shoutcast/control/sc_serv.ban
ripfile=/var/shoutcast/control/sc_serv.rip
maxuser=1024
publicserver=always
;portbase=80
password=youruserpassword
adminpassword=youradminpassword
streamid=1
streampath=/test.aac
streamauthhash_1=AStrYoPZFp1rd52TR78f

Startup SHOUTcast automatically on system (re)boot

# nano /etc/init.d/shoutcast

#! /bin/sh
# /etc/init.d/shoutcast
#

# Run the script
/var/shoutcast/shoutcast/./shoutcast
exit 0

# chmod 755 /etc/init.d/shoutcast

# update-rc.d shoutcast defaults