How To Setup a Shoutcast Server on Ubuntu

With a Shoutcast server, you can setup your own radio station for others to listen. In this guide, I’ll teach you how to setup a Shoutcast server on Ubuntu. Follow the steps below.

Step 1: Creating a user

For security reasons, we’re going to create a new user:

adduser shoutcast

Enter the required information and su to the new user:

su shoutcast

Step 2: Downloading Shoutcast

Go to the user’s home directory:

cd ~

Download Shoutcast with wget:

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

Now, extract the file:

tar xfz sc*

Next, create a folder for the Shoutcast server. All of the important files will be placed here:

mkdir ../shoutcast

Copy the files to this new folder:

cp sc_serv ../shoutcast

Next, navigate to this directory:

cd ../shoutcast

Shoutcast is installed, now we just need to configure it.

Step 3: Configuring Shoutcast

Create the following folders so that Shoutcast functions correctly:

mkdir control
mkdir logs

Create the configuration file and open it with a text editor:

sc_serv.conf

Append the following to the file:

adminpassword=password
password=password1
requirestreamconfigs=1
streamadminpassword_1=password2
streamid_1=1
streampassword_1=password3
streampath_1=http://ServerIP:8000
logfile=logs/sc_serv.log
w3clog=logs/sc_w3c.log
banfile=control/sc_serv.ban
ripfile=control/sc_serv.rip

Change the adminpassword, password, streamadminpassword_1, and streampassword_1 values to safe passwords. The adminpassword is used to access the web interface, the streampassword_1 is the password for access to the stream. Replace ServerIP with your server IP.
Make the Shoutcast binary executable:

chmod +x sc_serv

Finally, start the Shoutcast server:

./sc_serv &

You can now access the Shoutcast web interface from http://ServerIP:8000. The web interface will allow you to setup your streams and configure more server settings.