|
|
|
|
How to install Shoutcast Server on Linux?
By Scott Seong
As an Internet consulting company, we had an opportunity to setup Internet Radio station with Nullsoft's SHOUTcast application. Our client is a local Radio Broadcasting Company (Chicago Radio Korea, AM1330), inspired to expand it's audiences by offering an Internet Radio.
We initially installed SHOUTcast server on a Windows 2003 server, but buffering in Windows Media player was a major problem. The media player play starts to buffer audio after listening about 10 minutes of continuous broadcasting. We were fairly new to the SHOUTcast, so we're not sure there is a configuration change that can be made to correct this buffering problem. This led us to experiment Linux version, and the result was great! So, we decided to write up this article although it doesn't directly relates to web hosting topic.
SHOUTcast is a free application that allows anyone to start their own radio station, or streaming audio. The executable binaries are available at shoutcast.com.
Installation Procedure
Assumptions:
A. SHOUTcast application runs on a server connected to the Internet. You may use shared or dedicated server for hosting Internet Radio (SHOUTcast) application, and allow others to connect to it by an IP or domain name.
B. With security consideration, SHOUTcast server will be run by a Linux user (except for root). Running the SHOUTcast as a regular Linux user will tighten the server security considerably.
1. Create a Linux user with 'adduser' command. This user will be solely responsible for running and operating SHOUTcast server application.
bash# adduser -c "Shoutcast User" shoutcast
bash# passwd shoutcast
2. Download the latest copy of SHOUTcast Server at shoutcast.com. SHOUTcast Server is available for the following platforms: Windows, Mac OS, FreeBSD, Linux and Solaris.
3. Extract the the downloaded tar file.
Login as a shoutcast user.
bash% tar xfz shoutcast-{x.y.z}-linux-glibc6.tar.gz
bash% mv shoutcast-{x.y.z}-linux-glibc6 ~
4. Configure SHOUTcast Server
Edit the sc_serv.conf file as described on shoutcast.com website with your favorite editor. Settings you may with to change include "MaxUser", "Password", "PortBase", "AdminPassword" and among others.
5 Start the SHOUTcast Server
bash% ./sc_serv sc_serv.conf >/dev/null 2>&1 &
Or create a shoutcast daemon called shoutcastd in the home directory.
[Content of shoutcastd file]
#!/bin/bash
./sc_serv sc_serv.conf >/dev/null 2>&1 &
[End of shoutcastd file]
bash% chmod +x shoutcastd
bash% ./shoutcastd
|
|
|
|
|
|