One of the first things I setup long ago when I first switched to Ubuntu was a streaming media server. I decided early on to just dive in and see what I could (and couldn’t) do. I had an extra machine lying around so I thought I would give it a try and setup gnump3d.

At this point (years later) I have a dedicated media server running on my fiber connection to offer me access to my music collection from any available internet connection! It’s beautiful! All you’ll need to set this up is an Ubuntu machine (desktop, server, laptop–anything you can store media on) and an internet connection. It can also simply be used on a local network to share music with other users or between computers in your network or home.

sudo aptitude install gnump3d

(as always you can also install that from Synaptic Package manager or Adept).

After this is installed you might want to change a few settings (although it will work just “out-of-the-box” as well).

http://localhost:8888 (access to the media is web-based. this should work if you’ve just installed it on your local machine)

I changed a few settings to customize things to my use and you might want to do the same. Basically we’re just going to make sure that it knows where to find the media files and what port you’d prefer to use.

sudo gedit /etc/gnump3d/gnump3d.conf

Find the line that says:

root = /var/music

and update it to the location of your media. (ie; in my situation I store the music in /media/music)

You might also want to find the line:

port = 8888

and update it to the preferred port. You most likely do not need to change this. It’s personal preference for your network and settings.

A couple of other things you might want to setup. Gnump3d offers a list of themes for the interface. The default is ok, but I prefer another that ships with it. If you’d like to change the theme you can select the “Preferences” option in the menu system and try a few out. If you’d like to use the theme that I prefer you’d want to change the default by editing the line:

theme = Tabular

to:

theme = BlueBox

Ooh, and one more tip that you might be interested in. It is very easy to setup user access to your new media server. If you don’t want someone to have access to your music simple don’t give them a login username and password. To create a list of usernames and passwords for your server simple use the following. (If you do not set any users or passwords anyone will have access):

sudo gedit .password (this file should be located in the root folder of your media. ie; My path is /media/music/.password)

create a username and password pair using the syntax:

username:password (ie; joe:secret, or johnq:denzel)

Each new user and password should be listed on a new line. Enjoy your new musical goodness. Share the love around the network, around the office or around the world!

(I originally found these instructions as part of the Ubuntu Guide. You’ve got to give credit where credit is due.)

If this site has been useful, please consider participating in the Fundraiser.

Other Points of Interest

  • No Related Post

Comments

10 Responses to “How to setup gnump3d for a streaming media server : Ubuntu (5.10 / 6.06.1 / 6.10)”

  1. Byron Clark on December 28th, 2006 12:00 pm

    Thanks for pointing out a great application. I just set gnump3d up on my nslu2 running openslug and it works great. Sweet application.

  2. Ubuntu Tutorials on December 28th, 2006 12:36 pm

    Byron - glad you enjoy it. It is one of my favorite projects! It is nice to have access to my music collection from the office :)

  3. NiKo on December 29th, 2006 2:13 am

    To apply changes, don’t forget to restart the server daemon :

    $ sudo /etc/init.d/gnump3d restart

    Thanks for the howto anyway, it’s a great program :-)

  4. Mario on December 29th, 2006 2:59 am

    Some months ago, I’ve also written a post talking about the same issue, but in spanish language.

    If you want to take a look into it, here you are the URL:
    http://truculencias.pandela.org/?p=43

    Cheers

  5. bobby on December 29th, 2006 4:33 am

    Hey I just thought i’d say Kplaylist waxes the floor with this software. It is an amazing setup for streaming your music you should check it out.

  6. » Backing Up System To Multiple DVDs : Ubuntu Ubuntu Tutorials : Breezy - Dapper - Edgy - Feisty on January 7th, 2007 3:44 pm

    [...] I have a drive holding roughly 60G of media files (.ogg audio & assorted video).  I use this as my central storage for media on my local network (see Setting up Gnump3d for one of the ways I access it). [...]

  7. bknec on January 10th, 2007 9:12 am

    What if I have two locations for my music, like:

    /media/musicfolder1/mp3
    and
    /media/musicfolder2/mp4 or something… anyone know if gnump3d can handle that?

  8. Ubuntu Tutorials on January 10th, 2007 9:31 am

    It may work with a symbolic link. I haven’t tried but its worth a shot.

    Perhaps use something like:
    ln -s /media/musicfolder1/mp4 /media/musicfolder2/

  9. Flatlinebb on July 31st, 2007 5:40 pm

    Creating a symbolic link seems to work just fine. I was able to create a link to a share on my Windows server mounted to /mnt/music inside the ‘root’ folder.

    Just expect to wait a long time while new files get indexed, after running:

    $ sudo /etc/init.d/gnump3d restart

  10. Kariuki Kabue on October 29th, 2007 7:22 am

    What if i want to share movies or DVD files within my local area network and other forms of video files, how would i go about it? For music files it is working ok!, but for dvd movies, it is tricky. I have an Ubuntu Server 7.04, and a combination of both windows and linux clients, and for linux, am using 7.04, but am planning to upgrade the clients to Ubuntu 7.10. Please help coz am trying all tricks, and they seem not to work.

Leave a Comment




    Subscribe to the RSS feed!


    subscribe to the ubuntu tutorials RSS feed

    Ubuntu Tutorials Fundraiser


    Please Donate to
    Server Improvement

    Target amount: USD1,000.00
    Total Donations: USD255.00
    Amount Needed: USD745.00

    Thank you for your support!

    Click to Donate

    Polls



  • Blogroll

  • Ads by Google