view · edit · print · history

Installing Gnump3d Guide

GNUMP3d? is a streaming server for MP3s?, OGG vorbis files, movies and other media formats.

  1. Install Perl first see http://www.nslu2-linux.org/wiki/Main/HomePage
  2. Go to http://www.gnu.org/software/gnump3d/
  3. Download the tar file http://savannah.gnu.org/download/gnump3d/gnump3d-2.9.8.tar.gz
  4. Read and re-read the Readme info http://www.gnu.org/software/gnump3d/README
  5. Read and re-read the Install info http://www.gnu.org/software/gnump3d/INSTALL
  6. Install it closely following the documentation.
  7. One more thing you will get an error during the install.
  8. This error is addressed by someone elses question in http://www.mail-archive.com/gnump3d-users@gnu.org/msg00143.html
  9. Modify the file as suggested in the previous step
  10. Edit the gnump3d.conf file to suit your situation
  11. Hopefully it works and is serving music , check from a browser on a network connected PC

I have had it serving to 3 PCs? at the same time and it works.

Cheers Jimbojazza

Additional info

To install version 3.0 of GNUMP3d?, I did the following:

  1. Besides Perl, also install the package coreutils.
  2. Modify the Makefile of GNUMP3d?:
    1. CONFDIR = /opt/etc/gnump3d
    2. BINDIR = /opt/bin
    3. TEMPDIR = /opt/share/gnump3d
    4. CONFDIR = /opt/etc/gnump3d
    5. CACHEDIR = /opt/var/cache/gnump3d
    6. SERVEDIR = /opt/var/cache/gnump3d/serving
    7. MANDIR = /opt/share/man/man1
    8. LOGDIR = /opt/var/log/gnump3d
  3. Modify the file bin/getlibdir in the GNUMP3d? directory:

replace the line my @dirs = grep( /^\/usr|^\/Library/, @INC ); with my @dirs = grep( /^\/opt|^\/Library/, @INC );

  1. Modify Makefile (I know this isn't elegant) and remove all "${PREFIX}/"

Regards and good luck, Alex Ernon

Server question

How would I set this up on Unslung so it starts up as a daemon when the slug boots? Presumably it would be like the other scripts in /opt/etc/init.d/ - called something like Sxxgnump3d (where 'xx' is a two-digit number - does this number mean anything, BTW?)?

Many thanks - Tim

Running gnump3d on port 80 next to a web server

The gnump3d deamon is a server on itself, and thus uses its own network port to listen for incoming requests. Wouldn't it be interesting if you could access gnump3d on your local network or via the web without specifying a nasty port number? You can't have 2 server programs listening on the same port, but it is possible to set up the http server, e.g. lighttpd, as a proxy for gnump3d. The http server will then forward certain specific requests on port 80 to gnump3d on its nasty port number. For lighttpd, you need to enable the module mod_proxy to do this. Change the config file of lighttpd to forward e.g. requests to http://gnump3d.your.website.org to gnump3d. Don't forget to set the element hostname in gnump3d.conf: it must be an address that is forwarded to gnump3d by your web server, e.g. http://gnump3d.your.website.org.

view · edit · print · history · Last edited by Alex Ernon.
Based on work by Alex Ernon, Tim Walker, Phil Endecott, and Jingojazza.
Originally by Jingojazza.
Page last modified on July 03, 2008, at 03:03 AM