Corruptive News Just news from a guy who moved from London to Bristol.

7Dec/064

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:\docsPrograms\edna-0.6\ntsvc python ednaNTSvc.py -c C:\docsPrograms\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:\docsPrograms\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
Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
Filed under: News Leave a comment
Comments (4) Trackbacks (0)
  1. Just getting:

    Traceback (most recent call last):
    File “edna”, line 47, in
    import ezt
    ImportError: No module named ezt

  2. What does line 47 say? Is it “import ezt”?
    Make sure you have the same version of AciveState python. And those files mentioned are in the correct directories.
    Failing that, do what I did. Search for similar errors. Chances are others had the same error ;)

  3. Copied the file to python folder… now a new error…

    root@UNSORTED:/usr/bin# edna:49: DeprecationWarning: the md5 module is deprecated; use hashlib instead
    import md5
    edna:70: DeprecationWarning: the sha module is deprecated; use the hashlib module instead
    import sha
    edna: edna.conf:No such file
    Traceback (most recent call last):
    File “edna”, line 1162, in
    raise systemExit
    NameError: name ‘systemExit’ is not defined

  4. Latest Plan?
    Don’t use this setup, use Subsonic (4.5);
    http://sourceforge.net/projects/subsonic/files/subsonic/4.5/


Leave a comment

(required)

Preview:

Spam protection by WP Captcha-Free

No trackbacks yet.