Linux(Debian)-Netradio-Station-HOWTO ==================================== 2'2003 by Jens Wilke jens at wilke org This howto descibes, how to set up a Radiostation on the net with GNU/GPL software. Radiostation in this case means, you want to stream from line-in AND file input. Assume you're running Debian Woody. Icecast 2 Streaming server doesn't work together with Muse. There's oggment, which streams to icecast2, but oggment is very buggy and i'm not shure, if developement continues. Nevertheless, if you only want either streaming a playlist or line-in, you can install icecast2. Check out http://melmoth.dyndns.org/stream/doc/index.html for documentation. Otherwise do the following: 1. Install Icecast streaming server 1.3.11, which is a Woody Package. 'apt-get install icecast' Do not enter passwords in /etc/icecast/icecast.conf, they won't work, even if you use encrypted. Protect Port 8000 of your box by a firewall. 2. You will need an upstream to icecast, originally this is done by liveice, which is an extra package, witch belongs to the icecast family but didn't work for me. 3. Choose wether you only want to stream (mp3/ogg) files, or if you also want live input from your soundcard. 3.1 To stream files you just need shout, which is included in the icecast package. Build a playlist file with your mp3s, check man shout for options, you might need to give an emtpy -P option. 3.2 If you want to do live radio you might need MuSE http://muse.dyne.org/ I didn't get liveice starting up. The following is for developing version 0.7.2 of MuSE - Get lame 3.9x from http://sourceforge.net/project/showfiles.php?group_id=290 compile and install by hand (untar, ./configure, make, make install) - If you want oggvorbis support get and install it: http://www.xiph.org/ogg/vorbis/index.html - Get Muse from http://muse.dyne.org/ untar 'tar -xzf MuSE-0.7.2.tar.gz' 'cd MuSE-0.7.2' compile it by hand './configure && make && make install' or type fakeroot rules binary and install the *.deb with dpkg -i muse-streamer_0.7.2-1_i386.deb MuSE has 3 interfaces: command line, ncurses and gtk. command line crashes directly after start with a segfault ncurses has strange behavior and crashes, if you add a file to the playlist during streaming, if you builded a debian package it will crash, when you open the connect dialogue. gtk was the only way for me to get it working. Just type muse to get it running. The disadwantage is, that you cannot fade between channels in the gtk frontend. You can add files to each channel with the right mousebutton. Mixture of formats, frequenzy and bitrate in one channel sometimes cause errors. ok, Muse is running 4. start icecast 5. Connect to icecast. Click the "Let's stream" Button in MuSE Fill out "icecast" and "Lame" dialogues. 48 kbps/44 kHz mono worked ok 24/16 also, Press apply, if you're finished with Lame, then press connect for icecast. Don't use a password, protect Port 8000 on your firewall. You will find some useful information on the shell, where icecast is running. Due to the pasword problem, we will need another server to broadcast the sream. 6. Install peercast (www.peercast.org) Peercast is a p2p Radionetwork, so you won't need tons of bandwith. If the binaries don't do it, compile it without -static flags in the configure file 7. start peercast, you can run it in the backround 'peercast&' 7.1 Point your Browser to http://localhost:7144 7.2 Go to "Broadcast" fill out the form URL is http://localhost:8000/live (If 'live' is the mountpoint you entered in muse) Few words about peercast Firewall: dynamic firewall might be necessary to configure configuration of static firewall might help clients to connect, but is not really necessary, due to peercast only uses ACK packages to communicate. (like trojan horse do ;)