SHOUTcast is a multiplatform freeware audio streaming technology which uses MP3 or ACC encoding of audio content and HTTP as the transport protocol to broadcast web radio, also known as Internet radio. The output format is supported by multiple clients including XMMS, Amarok, Apple iTunes and others. However, before you start, keep in mind a few things (requirements):
- A SHOUTcast station requires an unfirewalled connection in order to be added to shoutcast.com's list. So, you'll either need to open ports 8000/tcp and 8001/tcp (if you're running a firewall), or forward ports 8000/tcp and 8001/tcp to your LAN ip (if you're using NAT and your shoutcast server PC is behind router/gateway).
Installation
- First, you should create a ned user to run the server: Don't run it as root for safety's sake.
- Untar and create an easy to use directory tree (you're still logged in with user shoutcast):
# tar xfz shoutcast-x-x-x-linux-glibc6.tar.gz -C shoutcast/
# tar xfz sc_trans_posix_xxx.tgz
# mv sc_trans_040/ sc_trans
Configuration
- Change directory to shoutcast/ and open sc_serv.conf using your favorite text editor and edit these values to get things quickly up and running:
Password=streaming
PortBase=8000
AdminPassword=MyPassword
ServerIp=131.107.what.ever.is.your.ip
ServerPort=8000
Password=streaming
StreamTitle=blah # this will be displayed in the players
StreamURL=http://131.107.your.ip # or the domain name if it points to the same IP
Shuffle=1 # set to 0 to play songs in order
# mkdir content
[.. add mp3 files to the content/ directory ..]
# find /home/shoutcast/sc_trans/content -type f -name "*.mp3" > playlist.lst
# cd /home/shoutcast/sc_trans && ./sc_trans sc_trans.conf &