JimmyJazz
October 8th, 2005, 06:01 AM
This HOWTO will explain how to set up an online radio station for an example to tune into mine: http://jimmyjazz.homeip.net:808/listenwavy/
*NOTE: you can play whatever you want on your station but, for the record I reccomend complying with the copyright laws as they may be set out in your region*
There are alot of way to set up an online radio station but for the sake of simplicity I will explain how I do it personally.
All online station are made up of two parts the server and the source.
THE SERVER...
for my station I use the standard shoutcast server, Icecast is a better open source server but for my need I use shoutcast.
download shoutcast:
wget http://www.shoutcast.com/downloads/sc1-9-5/shoutcast-1-9-5-linux-glibc6.tar.gz
untar it:
tar -zxvf shoutcast-1-9-5-linux-glibc6.tar.gz
move to a usable location (i.e. /usr/local/bin)
cd shoutcast-1-9-5-linux-glibc6/
sudo cp sc_serv /usr/local/bin
sudo cp sc_serv.conf /usr/local/etc
sudo chmod 755 /usr/local/bin/sc_serv
edit the config:
sudo nano /usr/local/etc/sc_serv.conf
at this point the only thing you should need to change in this file is the password. save it. next step...
Launch the server:
sudo sc_serv /usr/local/etc/sc_serv.conf
test it in a browser:
localhost:8000
Works? good...
now its time to feed some music to your new server. For this I use ices 0.4 (which handles mp3s if you wanna use OGG you can use ices 2.0)
THE SOURCE...
get ices:
wget http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz
(at this point there doesn't seem to be a package in repos for ices 0.4 so we are going to build from source however, there is one for ices 2.0 so you can just 'apt-get install ices2' if you wanna
go that route but if you do that you're on your own from here.)
untar it:
tar -zxvf ices-0.4.tar.gz
okay time to build it:
you will need Lame (sudo apt-get install lame liblame-dev)
you may need some other dependencies but you should be able to figure out what from simpley reading any error messages that come up.
we are compiling with lame I don't reccomend compiling without it although you can. Okay enough talk...
./configure --with-lame
no errors? then...
sudo make
sudo make install
if everything worked without error then you now have ices compiled and ready for fun...
now lets do some configing, first off you are going to want to put all the mp3s you want to play on your station in a directory together (it can contain sub directories as well)
now we make a handy playlist for ices to read...
find /path/to/your/mp3s -type f -name "*.mp3" > /path/to/your/mp3s/play.lst
now you have a nice big playlist containing all the mp3s in the directory you indicated and better yet its formatted in a way ices can read, now we config ices...
sudo nano /usr/local/etc/ices.conf.dist
okay this config is real self explainatory but the main thing you wanna change is the playlist handler so enter the path to that playlist we just made.
now get down were you see the server config section, this is where you will specify howto feed the music to the server we set up earlier. Hostname will be the address to your server, localhost will usally work but you may need something more specific (if you are not sure just type localhost:8000 in a browser and see if anything happens). Keep the port at 8000 for now. Enter the password from your server config file in the password section. Now this the protocol should be set to 'icy' (without quotes) that important since we are feeding to a shoutcast server. The rest of the config file is up to you to figure out, you'll see parts there where you name your stream and what not. Remeber an average broadband connection can't handle very many people at 128k stereo so don't be to greedy (unless you have a sweet connection).
Go ahead and save you file when you are done...I'll wait...
okay lets launch this baby...
ices -c /usr/local/etc/ices.conf.dist
you're done! now if everything went well you can goto 'localhost:8000' in your browser and start enjoying some tunes.
If you have any questions feel free to ask me. and umm listen to my station here: http://jimmyjazz.homeip.net:808/listenwavy
*NOTE: you may have noticed there arn't many good GUI interfaces for sourcing to a shoutcast server on Linux if anyone would like to start some sort of easy plugin for say BEEP_MEDIA_PLAYER I would be really interested in hearing about it*
*NOTE: you can play whatever you want on your station but, for the record I reccomend complying with the copyright laws as they may be set out in your region*
There are alot of way to set up an online radio station but for the sake of simplicity I will explain how I do it personally.
All online station are made up of two parts the server and the source.
THE SERVER...
for my station I use the standard shoutcast server, Icecast is a better open source server but for my need I use shoutcast.
download shoutcast:
wget http://www.shoutcast.com/downloads/sc1-9-5/shoutcast-1-9-5-linux-glibc6.tar.gz
untar it:
tar -zxvf shoutcast-1-9-5-linux-glibc6.tar.gz
move to a usable location (i.e. /usr/local/bin)
cd shoutcast-1-9-5-linux-glibc6/
sudo cp sc_serv /usr/local/bin
sudo cp sc_serv.conf /usr/local/etc
sudo chmod 755 /usr/local/bin/sc_serv
edit the config:
sudo nano /usr/local/etc/sc_serv.conf
at this point the only thing you should need to change in this file is the password. save it. next step...
Launch the server:
sudo sc_serv /usr/local/etc/sc_serv.conf
test it in a browser:
localhost:8000
Works? good...
now its time to feed some music to your new server. For this I use ices 0.4 (which handles mp3s if you wanna use OGG you can use ices 2.0)
THE SOURCE...
get ices:
wget http://downloads.us.xiph.org/releases/ices/ices-0.4.tar.gz
(at this point there doesn't seem to be a package in repos for ices 0.4 so we are going to build from source however, there is one for ices 2.0 so you can just 'apt-get install ices2' if you wanna
go that route but if you do that you're on your own from here.)
untar it:
tar -zxvf ices-0.4.tar.gz
okay time to build it:
you will need Lame (sudo apt-get install lame liblame-dev)
you may need some other dependencies but you should be able to figure out what from simpley reading any error messages that come up.
we are compiling with lame I don't reccomend compiling without it although you can. Okay enough talk...
./configure --with-lame
no errors? then...
sudo make
sudo make install
if everything worked without error then you now have ices compiled and ready for fun...
now lets do some configing, first off you are going to want to put all the mp3s you want to play on your station in a directory together (it can contain sub directories as well)
now we make a handy playlist for ices to read...
find /path/to/your/mp3s -type f -name "*.mp3" > /path/to/your/mp3s/play.lst
now you have a nice big playlist containing all the mp3s in the directory you indicated and better yet its formatted in a way ices can read, now we config ices...
sudo nano /usr/local/etc/ices.conf.dist
okay this config is real self explainatory but the main thing you wanna change is the playlist handler so enter the path to that playlist we just made.
now get down were you see the server config section, this is where you will specify howto feed the music to the server we set up earlier. Hostname will be the address to your server, localhost will usally work but you may need something more specific (if you are not sure just type localhost:8000 in a browser and see if anything happens). Keep the port at 8000 for now. Enter the password from your server config file in the password section. Now this the protocol should be set to 'icy' (without quotes) that important since we are feeding to a shoutcast server. The rest of the config file is up to you to figure out, you'll see parts there where you name your stream and what not. Remeber an average broadband connection can't handle very many people at 128k stereo so don't be to greedy (unless you have a sweet connection).
Go ahead and save you file when you are done...I'll wait...
okay lets launch this baby...
ices -c /usr/local/etc/ices.conf.dist
you're done! now if everything went well you can goto 'localhost:8000' in your browser and start enjoying some tunes.
If you have any questions feel free to ask me. and umm listen to my station here: http://jimmyjazz.homeip.net:808/listenwavy
*NOTE: you may have noticed there arn't many good GUI interfaces for sourcing to a shoutcast server on Linux if anyone would like to start some sort of easy plugin for say BEEP_MEDIA_PLAYER I would be really interested in hearing about it*