[Home] [Credit Search] [Category Browser] [Staff Roll Call] | The LINUX.COM Article Archive |
Originally Published: Wednesday, 13 December 2000 | Author: Rodney "meff" Gordon II. |
Published to: enhance_articles_multimedia/Audio Articles | Page: 1/1 - [Std View] |
Setting Up Your Own Station: A Free Radio Under Linux Howto. v0.1
Radio Free Linux! Rodney Gordons explains how to setup a Internet radio station for streaming MP3s. Pirate radio stations in the new era -- Not that we'd encourage copyright infringement.
|
OS:
Software:
If you're using Debian, you can just
apt-get install xmms icecast-serverto install xmms and the Icecast server. As for LAME, you can use a program called Alien to convert an RPM package into a Debian package. Just
apt-get install alienand, as root,
alien package.rpmto produce a .deb, which you can install by using
dpkg -i <file>where <file> is the name of the Debian package.
rpm -Uvh <file>where <file> is the name of the RPM to install.
apt-get install xmmsto install xmms and the Icecast server. As for LAME, you can use a program called Alien to convert an RPM package into a Debian package. Just
icecast-server
apt-get install alienand, as root,
alien package.rpmto produce a .deb, which you can install by using
dpkg -i <file>where <file> is the name of the Debian package. You'll need to be root while doing most of this.
If you encounter any difficulty with installation, let me know. My contact information is at the end of this document.
Now that you've installed all of the required software, let's get to setting it up.
location Just west of MarsFill these out with whatever info you want people to see when they come to your station.
rp_email kirk@enterprise.space
server_url http://www.icecast.org/
The next section you will see is the server limits section:
These settings are pretty much outrageous for most users. Depending on how fast your Internet connection is, set these settings accordingly. You'll probably want
max_clients 900
max_clients_per_source 900
max_sources 10
max_admins 5
throttle 10.0
max_clientsaround 10, same with
max_clients_per_sourcethe rest you can usually leave alone. Now scroll down in the file until you come upon these:
encoder_password hackmeIf you installed the Icecast server under Debian, or your version has encrypted password support, it gets a little tricky here. You need to encrypt your password in this file with the mkpasswd program, which is probably installed on your system already. You can encrypt a password like this:
admin_password hackme
oper_password hackme
mkpasswd your_password --cryptCopy and paste this into the configuration file to make it look somewhat like this:
encoder_passwd --WZKu0fXj3bQNo matter which method you used to install, be sure to set these with different passwords from 'hackme'. Generally all of them should have the same password. Remember the password you set here, we'll be using it later when we configure Liveice-XMMS.
admin_passwd --WZKu0fXj3bQ
oper_passwd --WZKu0fXj3bQ
Go farther down until you see:
console_mode 0Change this to 3, so it launches into the background.
The rest of the configuration file you can usually leave alone. All of you advanced users can look around for more interesting things to change if you wish.
Now for configuring Liveice-XMMS:
Reload XMMS so it notices there is another plugin. Rightclick on XMMS, Click Preferences. Go into Effect/General Plugins. Under Effect Plugins you should see Liveice in the list. If you don't, check your installation of Liveice-XMMS. After you've selected Liveice, click Configure.
Under audio format, most of these settings are standard, so you probably won't need to change too much. Change the encoder type to 'Lame' and the executable name to 'lame'. If you already have some other LAME binary on your system, enter the path to it here. Under the Description tab, change anything that's needed.
Go to the Server tab, and change 'Encoder Password' to whatever you put in the Icecast configuration file (remember, that one I told you to remember?). But put it UNencrypted here, of course, if you had to encrypt it.
You're done. Click OK. Check 'Use plugins' in the Preferences dialog that should still be up, and click OK again.
In a terminal, type in 'icecast' and hit enter.. You should see it run and go into the background.
If you're playing a song, click stop, and start playing it again.
Nothing is.. Broken? No BOOM!? Well, you would hope so :) Get your friend to try to connect to your ip with XMMS or some other mp3 player, with the url http://yourcomputer:8000 .. they should hear music! If they don't, check out the FAQ for troubleshooting info.
Otherwise, Congrats, you're now an amateur DJ! :)
Q: People complain
about the quality, what can I do?
A: Well, that's one of the quirks of Internet radio. The most
you can do is change your encoding preferences in Liveice. As a general
guideline if you encode at 24,000 your going about 2k/s, so about ideal for
modem users. If your encoding 128,000 or more, that's more like 11k/s, so you're
merging on the broadband line here. Remember, if you encode at 128,000 and you
have 10 users you're uploading at 110k/s, not many people can handle this. So
make sure you review your connection max settings and such to adjust to
this.
If any of you have more questions/comments I will add them to the FAQ in a later version.
This HOWTO is free
documentation; you can redistribute it and/or modify it under the terms of the
GNU GPL. This document is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability or
fitness for a particular purpose.
Written in Emacs. :)