For Kubuntu Feisty. Might work on Ubuntu as well.
I always wanted to set up a shout cast to be able to share my music, and have the possibility to change the song I broadcast whenever I want. As I understand, most of the applications available only let you share a play-list. I googled some, and found Internet DJ Console that would let you stream music to a simple SHOUTcast. It also let you change songs whenever I wanted. I was surprised how easy it was to set up, both the SHOUTcast-server and Internet DJ Console. Thought I share how I did it even if it's easy to figure out by yourself. I don't think I will be able to help much if this don't work for you as I am a noob even after 2 years of using linux (guess I'm slow
).
SHOUTcast-server:
Download it here decompress it to a location of your choice and move to that location. You might want to make a folder to decompress them to. Now we need to change some settings in the sc_serv.conf. Every settings here is well explained, but the settings I changed is these:
Code:
; ***************************
; Required stuff
; ***************************
Password: ***** I don't tell you mine ;)
MaxUser=20 Set as high as your connection can handle
PortBase=8000 I did not changed this, but you need to open this port in your router/firewall.
; ***************************
; Network configuration
; ***************************
SrcIP=127.0.0.1
This is all I changed. Save and close. Now lets test if it works. Open a console an cd to the directory where you decompressed the server files and run ./sc_serv Hopefully it will start nicely. You might want to make a short cut to the server to make it more easy to start it.
Internet DJ Console:
This you will find in the repository. Open a console and do (or install it from Synaptic):
Code:
sudo apt-get install idjc libxine-extracodecs
After it is installed, in a console do:
Code:
echo "/usr/bin/jackd -d alsa -r 44100" >~/.jackdrc
it will start jackd when Internet DJ console starts. Start it (you will probably find it in KDE/Gnome menu) and Click on Server (Radio Server).
Under "Connection" set this:
In "Type:" select Shoutcast
In "Host:" localhost
In "Port:" 8000
in "pass" the password you picked in sc_serv.conf
Under Encoding:
in "Format" I have mp3 (ogg will work too I guess)
in "Bitrate" I have 192 (the higher you set this, the delay to the clients will be less, but also hog more bandwidth.)
I ticked the box Stereo.
Under "Stream Info" it is your choice. I only have "DJ Name: Eazy" Rest I have blank.
Connect to your SHOUTcast-server by clicking on the "Server Connect"-button, then close "Radio Server"-window. Only thing left is to add some music to the play lists, start a song, and lastly click on "Stream"-button.
The address ppl will need to be able to connect to your SHOUTcast is: http://your.external.IP:8000/listen.pls
Alternative to Internet DJ Console
The few ppl that have tested my howto reports they have problems with the sound (probably jack that is acting up), so I tried to find a different solution and I found LiveIce. It is a plugin to Xmms which I have tried before, but I could never make it work until now. Here is what I did:
Code:
sudo apt-get install xmms-liveice
Start xmms and press Ctrl + P.
Click on the second tab from the left. Select "LiveIce 1.0.0" and click on configure.
The settings I have there:
In the tab Audio Format
Audio Format:
Sample Rate (Hz): 44100
Number Of Channels: Stereo
Stream Bitrate (bps): 64000
Encoder:
Encoder Type: Lame (3.21 and above)
Executable name: /usr/bin/lame
Description tab:
Its your choice I guess.
In the tab Server
Server Location:
Server Address: localhost
Server Port: 8001 (yes needs to be 8001 even though your server is set to 8000, its a bug.)
Encoder Password: pass to the shoutcast server
Extra Icecast Only Features:
Unselect Use X-Audiocast Headers
Unselect Enable Icecast Title Data
Stream Mountpoint: listen.pls (don't know if this is needed to be this, but there probably has to be something here)
Remote Dumpfile I have unselected.
Now click ok (twice) and close Xmms. Start your shoutcast-server and then start Xmms. Now you should be ready to shout.
The address ppl need to connect is http://IP:8000
Happy Shouting!!
If you got suggestions to this howto, please tell them so I can improve it.