Linux

How to setup SHOUTcast server on Linux

SHOUTcast is software designed for streaming media over the Internet. The SHOUTcast system uses a classic client-server configuration. In this tutorial we will show you how to install SHOUTcast on your linux server, and show you how to use it to broadcast a stream of music to clients connected to the server.

Download and install SHOUTcast DNAS server software

The SHOUTcast DNAS (Distributed Network Audio Server) software is the server version of the software that allows you to broadcast to listeners. To use SHOUTcast, you’ll need to download and install SHOUTcast DNAS on your server.
First,a create new user for running SHOUTCast:

# useradd shoutcast

Download DNAS package:

wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_09_09_2014.tar.gz

Extract SHOUTcast files:

# mkdir sc
# tar -xvf sc_serv2_linux_09_09_2014.tar.gz -C sc

Change the ownership from root to the SHOUTcast user:

chown -R shoutcast:shoutcast sh

Configuring SHOUTcast Server

Now create configuration file for SHOUTcast. Open your favorite text editor and create sc_serv.conf in sc directory.

# cd sc/
# nano sc_serv.conf

and paste following line:

adminpassword=password
password=password1
requirestreamconfigs=1
streamadminpassword_1=password2
streamid_1=1
streampassword_1=password3
streampath_1=http://IP.ADD.RE.SS:8000
logfile=sc_serv.log
w3clog=sc_w3c.log
banfile=sc_serv.ban
ripfile=sc_serv.rip

Save the changes to the SHOUTcast configuration file by pressing Control-X, and then Y.

Start SHOUTcast server

Now, start the SHOUTcast server. You’ll want to run your shoutcast in a screen session. Let’s jump into a screen session by entering the following command:

# screen

Start the SHOUTcast server by entering the following command:

# ./sc_serv sc_serv.conf

That is all!

6 Comments

  1. regarding: chown -R shoutcast:shoutcast sh

    I think it have to be “sc” instead of “sh”

  2. the first time it went well, after you format and redid everything gives me this problem

    ./sc_serv sc_serv.conf

    bash: ./sc_serv: No such file or directory

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Close