EDNA server tweaks


Forum: Apps
Topic: EDNA server tweaks
started by: newOldUser

Posted by newOldUser on Jan. 15 2006,13:43
This post is a continuation of the thread < DSL as a Home Server > .  It warped into a discussion on how to change the mp3 server dsl package, EDNA, into a document server.

EDNA does a great job of serving up music. It creates web pages on the fly and then streams your selections to you.  So you have EDNA running on your server box and then from any client machine on the net that has access to that box you can listen to your music.  It's small and quick and I find myself using it more then I thought I would.

I did some poking around over at the < Edna on SourceForge > for some updates.  Patch   < 791444 > seemed real interesting.  This patch does several things. It adds Icons to the Edna display, it creates a standard size for  any images displayed and it turns Edna into a document server...

I found this very interesting. Now I could serve up online manuals with my music.

I had hoped to write up a nice blog entry on all the changes and how to make them but that isn't going to happen (at least for a while). So.... I've started this topic in the hopes that others will do some research and testing on their own.

Here's a starting point...  After you apply the patch (which I wound up doing manually) take a look in the edna.py file and add these lines:
Code Sample

# Extensions of non-streamed, non-media files we want to serve: (and their MIME type)
plainfiles_extensions = {
 '.txt' : 'text/plain',
 '.bak' : 'text/plain',
 '.php' : 'text/plain',
 '.html' : 'text/html',
 '.htm' : 'text/html',
 '.pdf' : 'application/pdf',
 }


You should be able to find where they go by searching for "non-streamed".   This lists the type of documents that Edna will serve.

I've made these changes and have been using it for a few weeks.  I've been getting an occasional Exception message so I'm not sure this is ready for prime-time yet.  I haven't tracked the exception down yet and I'm not sure if it's in the new code or would have happened with the original Edna.  

If you feel lucky, give the patch a try and let us know what you think.

Good luck

Posted by newOldUser on Jan. 15 2006,14:40
Some screenshots of the update Edna pages
< Code and Screenshots (at bottom of page) >

Posted by dmoc on Jan. 15 2006,18:40
Check permissions on your images page.
Posted by newOldUser on Jan. 17 2006,17:09
Permissions on the image page are wide open. Perhaps your ISP blocks blogspot.com?
Posted by kennedy101@hotmail.com on Feb. 01 2006,08:56
Thought this would be a good forum to ask a question about edna and transcoding. After patching with the search2.patch (685550) and the sternwill/images patch (791444) everything works fine. Im able to search my shared directories and when I enter a directory with an image it shows up fine. The problemI have arises after I edit edna.py per the following post (http://mailman.lyra.org/pipermail/edna/2001-August/000232.html) the image display breaks. It appears that edna is attempting to send the jpg image to lame for transcoding. How can I improve upon the "quick and dirty" hack of edna.py to only transcode audio files?

Im not a coder, but willing to try.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.