Installing Shoutcast on CentOs – shoutcast version 1 and 2

And now for something completly different, since it isn't all about work hard, we need to shoutcastplay hard too. I was asked to build a shoutcast server on a linux centOs 6.6 server.

 

It's not that hard to set up a shoutcast stream:

Fire up your linux server and add a new shoutcast user:

adduser shoutcast
passwd shoutcast

now sign in using this new account

su - shoutcast

create a new directory

mkdir shoutcast

and go there

cd shoutcast

Now I am gonna dowload shoutcast, im using 64x but you can find more installs here:

http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/

wget http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz
wget http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/sc_trans_linux_x64_10_07_2011.tar.gz

Let's open up the packages

tar -zxvf http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz
tar -zxvf http://mirror.lchost.net/download.nullsoft.com/shoutcast/tools/sc_serv2_linux_x64_07_31_2011.tar.gz
[shoutcast@test shoutcast]$ ls -l

If you already downloaded a shoutcast versiom locally (f.e. the outdated, but populair shoutcast version 1.9.8), you can upload the zipped .tar.gz folder to your ftp and skip wget part and just tar from the location on your server.

tar -zxvf sc_serv_1.9.8_Linux.tar.gz

Just remember, shoutcast v1 is 32bit and your server probably is 64, in this case, update your library with 32bit support. For more info on this subject: 64bit bad elf interpreter

yum install glibc.i686
sudo yum install glibc.i686

Next we are gonna edit the config files in nano.

nano sc_serv.conf

If nano isnt installed yet, you must install this first:

yum install nano

you need to configure these config files to your settings.

I will highlight the most important changes

sc_serv_basic.conf:

logfile=logs/sc_serv.log
w3clog=logs/sc_w3c.log
banfile=control/sc_serv.ban
ripfile=control/sc_serv.rip
password=chaneg this
adminpassword=change this
streamid=1
streampath=http://myIP or dns:80/

and sc_trans_basic.conf

streamtitle=My first Shoutcast Server
streamurl=http://www.myurl.com/
genre=Misc
inheritconfig=sc_serv.conf
logfile=sc_trans.log
uvoxradiometadata=1
uvoxnewmetadata=0
playlistfile=playlist.lst
shuffle=0

also add:

streamauthhash= you can leave this open now, w'll get back to it later!

serverport=8555
serverip=localhost
encoder=mp3
mp3quality=1
bitrate=192000

we need to restart the server

./sc_serv sc_serv.conf sc_trans.conf

now go to your browser and type in your IP and port number and you will see your shoutcast server up ad running.

You can use the stream addres to bring up your performance,

you'll see ity streams only local , you need to add one more important step

last but important step to take, you added the streamauthhash, you need to get an authentication hash, you can get one using this link from your shoutcast admin:

http://yourIP:your port/index.html?sid=0

Now restart the shoutcast server and stream your podcast or music show

 

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.