Windows to Ubuntu Transition Guide

Setting Up A Streaming Music Server


One thing I love to do is configure my computer to stream music over the Internet and then connect to it from work and listen to my own music on-demand. Combined with a remote connection, I can control the play list virtually in real time. Needless to say, this is something, much like remote connection, that once you have it you can’t go back.


Basically, a streaming audio server works by taking music files on your computer, decoding them and re-encoding them on the fly to a temporary file which is served to the listener. When you listen to a stream on the Internet you download a very small MP3 or Ogg Vorbis file which is the temporary file and is constantly changing. If this seems confusing, rest assured you do not have to know how it works to set it up. In this article I will be using Icecast2 for the streaming music server and Ices2 for the decoder/encoder. Just follow these steps:


  1. Open Synaptic Package Manager

  2. Install the packages “aumix-gtk”, “icecast2″, and “ices2″

  3. Open a terminal

  4. Open Aumix by entering:
    aumix

  5. Click the box under “Rec” next to “Vol”, this sets Ubuntu to record (hence, stream) “what you hear”

  6. Close Aumix

  7. Create a configuration directory for Icecast2:
    mkdir ~/.icecast2

  8. Copy the default Icecast2 configuration:
    sudo cp /usr/share/doc/icecast2/icecast_minimal.xml.dist ~/.icecast2/icecast2_config.xml

  9. Now edit the default configuration:
    gedit ~/.icecast2/icecast2_config.xml

  10. Under the Authentication section, change the password to something other than “hackme”
    Note: You do not have to remember this password, so use something obscure. DO NOT use your root password.

  11. Under the Paths section, change the LogDir to “/home/[your_user_name]/.icecast2″

  12. To secure the Icecast2 server, add this under the Logging section:
    <security>
      <chroot>0</chroot>
      <changeowner>
        <user>icecast2</user>
        <group>icecast</group>
      </changeowner>
    </security>

  13. Save the changes and close gEdit

  14. Create a configuration directory for Ices2:
    mkdir ~/.ices2

  15. Copy the default Ices2 configuration:
    sudo cp /usr/share/doc/ices2/examples/ices-alsa.xml ~/.ices2/ices2_config.xml

  16. Now edit the default configuration:
    gedit ~/.ices2/ices2_config.xml

  17. Change the text under Metadata to reflect your information

  18. Change the LogPath to “/home/[your_user_name]/.ices2″

  19. Under the Input section, change the Rate parameter to 48000

  20. Under the Instance section, change the following:
    password= Icecast2 password you set above
    mount= /music.ogg
    samplerate= 48000
    channels= 2
    downmix= 0
    in-rate= 48000
    out-rate= 48000

  21. Save the changes and close gEdit

  22. Make the Icecast2 and Ices2 configuration directories readable and writable to everyone:
    sudo chmod -R 0777 ~/.icecast2
    sudo chmod -R 0777 ~/.ices2
    Note: Don’t worry, after doing this your system is still safe. The security entries we made above prevent a potential attacker from doing any damage.

  23. Close the terminal


Finally done with the setup, don’t worry you will not have to do that again. Now to actually stream music, do this:


  1. Open a Terminal

  2. Start the Icecast2 server:
    sudo icecast2 -c ~/.icecast2/icecast2_config.xml

  3. Open a new terminal tab (File > Open Tab > Default)

  4. Start the Ices2 coder:
    sudo ices2 ~/.ices2/ices2_config.xml

  5. Open your favorite music player and start playing, anything that would normally play from your computer speakers will be streamed to connected clients

  6. Close the terminal

  7. Make sure you forward ports 8000 and 8001 on your firewall

Since the stream is broadcast in Ogg Vorbis format, you will need a player capable reading the format. I use Rhythmbox in Ubuntu and Winamp for Windows. Combine this with remote connection and you have access to your entire music library from any computer. To connect, simply open the location: http://[your ip or domain name]:8000/music.ogg.

Happy listening!


 

Pages: 1 2 3 4 5 6 7 8 9 10

Free eBook!

Like what you read?

If so, please join over 28,000 people who receive our exclusive weekly newsletter and computer tips, and get FREE COPIES of 5 eBooks we created, as our gift to you for subscribing. Just enter your name and email below:

Post A Comment Using Facebook

  • CC

    Until the Linux community can come up with a CAD program that is as mature as AutoCAD for Architecture 2009 (etc) and the new ‘better’ kid on the block Revit for Architecture, then Linux will be nothing more than a novelty. A novelty that is very serious on networking and file sharing, but not too serious on other business applications including Architecture.

    • BCC

      CC, you are 1000000% right!

    • BCooK

      there ARE two different CAD programs within Ubuntu Linux that work just as well as AutoCAD. Further more a program called WINE will act as a windows install and run up to AutoCAD 2005. Another program called Crossover from, code weavers, will run up to AutoCAD 2009, but it cost about $30 for the standard version. Ubuntu Linux took me two days to integrate everything from windows I needed… I’LL NEVER GO BACK TO WINDOWS!!!

  • Greg Grego

    Hmmm. Keep an open mind about using Linux as a desktop replacement for windows? I tried and really made an effort because I’ve read the propaganda about Ubuntu, their various flavors and other related projects. I purchased what I thought would be a simple laptop to to convert to Linux (ASUS eeepc 1000hd) and was very disappointed. It came preinstalled with windows XP and I wanted to take advantage of all those Linux performance enhancements.

    The fact was that no “distro” of linux I installed, even the ones supposedly designed for the eeepc, worked with the hardware. The installations were noticeably slower and far more convoluted than installing XP. I could never get the wi-fi working no matter what I did and I tried many many suggestions by on-line experts without success. All the hardware worked fine (and faster) running XP. If you want to get any real work done and need to run real software packages, don’t believe any of the nonsense about Linux being better than any version of windows with the exception of maybe 3.1.

  • marcg

    Learning ubuntu coming from windows? Worth it? Very much so. For those of us not able to afford Windows (and believe it or not there are many millions in the US that fit that description) Ubuntu is a fit. I have built many computers and installed Ubuntu on them for people who can’t afford Windows and can’t afford the many applications others would then purchase and install in Windows. They need free stuff that works. Ubuntu Linux provides that. And for many folks low income folks that are new to computers, The transition is that much easier as they haven’t accumulated years and years of Windows habits.

    This is a good guide. Thanks for helpin out.

  • http://www.cybercolloids.net Kevin Philp

    What a bunch of negative comments! OK – AutoCad don’t do a Linux version, complain to AutoCad not Ubuntu. Linux is an operating system and a damned good one, its no less of a system because AutoCad doesn’t run on it. maybe it doesn’t suit your needs – fine, use something else. It is used by a lot of people and is growing, I run a small company and it uses Linux – there are businesses out there that don’t need Autocad.

  • http://none RC

    for someone just trying out Ubuntu, this was extremely useful. thanks!

  • Nickolas

    For those of you who still need windows specific applications, there is always Wine.

  • Alex C.

    Nice guide, except for automatix. As for the ACAD comments, AutoDesk is the problem. As for the XP faster then a Linux distro on an eeepc, wrong. I will bet my zx14 motorcycle that Linux runs better than XP on a eeepc. If you love Windows, then stay with it. If you ar frustrated by Windows but are lazy, get a Mac. If you are curious and don’t mind making adjustments, try Ubuntu.

  • Jupp C

    nice. im soon finished downloading ubuntu, and im looking forward to try linux out for the first time ever.
    i use my pc mostly for music making, photo and video editing. and thats why ive been stucked with windows so far, but now ill give it a try.
    im looking foreward to try all the open source softwares in those categories.. and if they are to limited for my use, ill try ‘wine’..

  • zak26

    I’m so so sorry to read those lines that complains about Ubuntu, as I see it Ubuntu is a great OS, the problem as some say (And I agree) is that AutoDesk doesn’t make a version for Linux, the problem may not be just how much it cost to have a OS like Windows, because I have bought it and I’m very dissapointed at it, there are so many reasons and also I consider myself a some experienced AutoCAD user ’cause I have created some small programs that some people and I use very frecuently, and also created some programs not AutoCAD related but useful for some of us, but I got tired of having problems with the traditional OS (for so many people around the world Winbugs, sorry Windows) and I started to search for something that may fill my needs and found Ubuntu, I’m not so experienced in it ’cause I have used it just 4 months, but it really works for me, I haven’t moved totally to Ubuntu ’cause I use a very specific version of AutoCAD (Civil3D), but I’m still trying to find out something that replaces it in Ubuntu.

    And my experience is that my computers run far better in Ubuntu than in Winbugs, but in my country is not so open the comunity, so we still have to use the traditional OS for some operations with the goberment for say, but I hope that changes.

    So to say at the end, thanks for posting aids for us that are not so used to know the system, thanks to people like you, the Ubuntu comunity is growing and we become better.

  • http://Website(optional) anonymoose

    There are a large number of technical, scientific, engineering, and medical programs for Linux that can be used instead of Windows alternatives.

    Ubuntuguide.org (http://ubuntuguide.org)

    and

    Kubuntuguide.org (http://kubuntuguide.org)

    list a large selection of these, as well as instructions for those new to Linux and how to proceed.

    Both guides have been around for several years and are constantly updated.

  • JC

    Thank you Jason for this very good transition tutorial… just what I need for the OJT job that I’m doing now…thanks again…keep it up!

  • JC

    I Hope You will do also how different it is between ubuntu and windows in networking and DNS configuration…

  • Chumpeter

    - STAND UP -
    Write a mail msg asking 4 autocad 4
    linux

    Now!!

  • Ross

    Hey
    Ok, so I am considering the switch from windows vista to ubuntu.

    What happens to all my files when i switch? are they deleted?

    Can I go back to vista If I don’t like ubuntu? is it hard?

    Thanks for your help.

  • http://computertlc.net Computer Cleanup and Virus Removal, Lake Geneva, WI

    The only qualm I have with the current release of Ubuntu (10.04) is dual-booting with older (Windows 2000 and Windows XP) versions of the Windows operating system.

    Up until 10.04 I had never had a problem with a dual-boot configuration. Then. Then I had two fail, back to back.

    Now, I’ve been working with Linux, in some variation or another, since RedHat 5. So I’m comfortable with it. Very.

    But this wigged me out. I was able to recover one machine (the XP box) but not the Windows 2000 machine.

    So I’m a little gun shy.

    Peace,

    Karl A. Krogmann

  • Clarry

    OK, i'm about to give up already, installed Ubuntu 10.04 OK and nice, I then tried to follow this guide the link to Automatix does not work, found Ultamatix downloaded it then did the dreaded command line thing and it says I need Python2.5 which I could not find. Is this guide out of date ?, is there a more up to date version ?

PCMech Insider Cover Images - Subscribe To Get Your Copies!
Learn More
Every week, hundreds of tech enthusiasts, computer owners
and geeks read The Insider, the digital magazine of PCMech.

What’s Your Preference?

Daily Alerts

Each day we send out a quick email to thousands of PCMECH readers to notify them of new posts. This email is just a short, plain email with titles and links to our latest posts. You can unsubscribe from this service at any time.

You can subscribe to it by leaving your email address in the following field and confirming your subscription when you get an email asking you to do so.

Enter your email address for
Daily Updates:

Weekly Newsletter

Running for over 6 years, the PCMECH weekly newsletter helps you keep tabs on the world of tech. Each issue includes news bits, an article, an exclusive rant as well as a download of the week. This newsletter is subscribed to by over 28,000 readers (many who also subscribe to the other option) - come join the community!

To subscribe to this weekly newsletter simply add your email address to the following field and then follow the confirmation prompts. You will be able to unsubscribe at any time.

Enter your email address for
Free Weekly Newsletter: