How to install Shoutcast Server on CentOS 8

Shoutcast is proprietary software that is being used to stream media over the Internet, especially used in music live streaming by the radio stations on Internet. It is specially for creating or listening to Internet audio broadcasts. Shoutcast allows us to broadcast a stream of music to the remote client connected to the server.

Once Shoutcast is in your server, you can use media players like Winamp or Mixxx to connect to a streaming server and broadcast audio playlists to the Internet. 

This tutorial covers installation of Shoutcast on CentOS 8.

First, you need to add user Shoutcast. You will use this user’s directory and privileges to install Shoutcast server. Also, make sure to disable your firewall.

systemctl stop firewalld.service
systemctl disable firewalld.service
adduser shoutcast

Secondly, Move into directory shoutcast.

cd /home/shoutcast

Download the latest shoutcast server tar file from their official website.

wget http://download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64-latest.tar.gz

Create a directory named sc where you will install / extract the tar file.

mkdir sc
mv sc_serv2_linux_x64-latest.tar.gz /home/shoutcast/sc/
cd sc/
tar -xvzf sc_serv2_linux_x64-latest.tar.gz 

Remove the tar file after installation of Shoutcast server.

rm sc_serv2_linux_x64-latest.tar.gz

In order to run and operate Shoutcast server according to your need you need to create a configuration file.

nano sc_serv_basic.conf

Add the following configuration in the newly created configuration file.

adminpassword=password
password=password1
requirestreamconfigs=1
streamadminpassword_1=password2

streamid_1=1
streampassword_1=password3
streampath_1=http://192.168.7.38:8000/stream/1/


#################NEW CONFIG##########
shoutcast1clientdebug=0
shoutcast2clientdebug=0
httpclientdebug=0
flvclientdebug=0
shoutcastsourcedebug=0
uvox2sourcedebug=0
httpsourcedebug=0
relayshoutcastdebug=0
relayuvoxdebug=0
relaydebug=0
httpstyledebug=0
webclientdebug=0
admetricsdebug=0
yp2debug=0
streamdatadebug=0
statsdebug=0
microserverdebug=0
threadrunnerdebug=0
buffertype=1
adaptivebuffersize=10

Password statement in this configuration are important, which you must change accordingly:

  • adminpassword – Admin password required to perform remote administration via the web interface to the server.
  • streampassword_1 – Password required by the remote media player to connect and stream media content to the server.

Now, Start Shoutcast server in background.

./sc_serv sc_serv_basic.conf &

Open your Browser with the configured url to see you Shoutcast server. you can replace your IP in the following url.

http://192.168.7.40:8000

Shoutcast server is installed and configured in your CentOS 8 machine. You can now add streams according to your need in the configuration file.

Creating Daemon Script to start & Stop Shoutcast Server:

We will create a daemon script to start and stop shoutcast server.

Create a file “shoutcast_server.sh” in path /usr/local/bin.

touch /usr/local/bin/shout_server.sh

Open shoutcast_server with nano editor and paste the following confiuration to create daemon script.

nano /usr/local/bin/shout_server.sh

#!/bin/bash
case $1 in
                start)
cd /home/shoutcast/sc/
./sc_serv sc_serv_basic.conf &
              ;;
                stop)
killall sc_serv
                ;;

                *)
echo "Usage radio start|stop"
                ;;
esac

Write and quit the file. make this file executable by changing permission as follows:

chmod +x /usr/local/bin/shoutcast_server.sh

Now start and stop shoutcast server using daemon script.

/usr/local/bin/shoutcast_server.sh start
/usr/local/bin/shoutcast_server.sh stop

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest articles

x