Archive for December, 2006

MP3 Server

MP3 Server Here is how to setup an MP3 server in about 5 minutes.

  1. Get ActiveState Python.
  2. Install ActivePython-2.4.3.12-win32-x86.msi in my case. (python-2.5.msi did not work so there is some time saved)
  3. Get edna MP3 server
  4. edna at sourceforge.net
  5. Read the README of course and edit the edna.conf
  6. Mine reads
     #
     # edna.conf -- configuration file for edna.py
     #
     [server]
     port = 6969
     # If you want to allow downloading of ZIP archives of directory contents, # specify the maximum size of an archive in MB.
    
    zip = 1
     dir1 = C:/docs/1Music = 01Music_C dir2 = G:/1Music = 01Music_G
    
    dir3 = K:/1Music = 01Music_K
     [extra] # Extra options
    
    #
    # You don't need to change this, but maybe you
    need more output or want to enable some special features
     # Set this to 1 to get more output debug_level = 0
     # Mark all files as new if they are newer than days_new
     days_new = 30
  7. You will want to run it as a service as described by Greg Stein
  8. Navigate to C:\docs\04Programs\edna-0.6\ntsvc
  9. Start > Run > cmd cd C:\docs\04Programs\edna-0.6\ntsvc python ednaNTSvc.py -c C:\docs\04Programs\edna-0.6\edna.conf --startup auto install
  10. I then get an error when running it from services.msc
  11. confused
  12. Lets look at Start > Run > eventvwr.msc
  13. Python could not import the service's module File "C:\docs\04Programs\edna-0.6\ntsvc\ednaNTSvc.py", line 27, in ? import edna exceptions.ImportError: No module named edna
  14. Hmm, Lets look at line 27 then:
  15. 27 import edna
  16. Looks like it can’t do this
  17. I will search the edna mailing list for “service” later.
  18. Oh well, just keep it simple and run edna.py
  19. edna: serving on port 6969...
  20. Ok, so it was more than 5 minutes but the service would have been cool.
  21. But wait, in the mailing list I found the answer
  22. The question was answered in 2004
  23. JTT>... I finallyjust stuck the JTT> mp3info.pyc, edna.pyc, and ezt.pyc files in the root of the JTT> python directory
  24. If you did not get that, copy those files to C:\Python24 and run edna from services.msc.

Finally, the whole point is to have a server so use:

  1. DynDNS to setup foo.dyndns.org
  2. If you have a Netgear DG834 v2 then login to your router enter the settings needed
  3. Point your browser to http://foo.dyndns.org:6969
  4. MP3 Server

Next Page »

Close
E-mail It