newOldUser
Group: Members
Posts: 241
Joined: Oct. 2004 |
|
Posted: 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
-------------- ======== Note ========= The DSL Forum Search default is 'OR' If you search for "cat dog" you will get all "cat" posts and all "dog" posts. If you search for "cat AND dog" you will only find results that contain BOTH "cat" and "dog" Add '*' for wildcards, " cat* and dog* "
|