Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: EDNA server tweaks, use Edna as a document server< Next Oldest | Next Newest >
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Jan. 15 2006,13:43 QUOTE

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* "
Back to top
Profile PM 
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Jan. 15 2006,14:40 QUOTE

Some screenshots of the update Edna pages
Code and Screenshots (at bottom of page)


--------------
======== 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* "
Back to top
Profile PM 
dmoc Offline





Group: Members
Posts: 21
Joined: Jan. 2006
Posted: Jan. 15 2006,18:40 QUOTE

Check permissions on your images page.
Back to top
Profile PM 
newOldUser Offline





Group: Members
Posts: 241
Joined: Oct. 2004
Posted: Jan. 17 2006,17:09 QUOTE

Permissions on the image page are wide open. Perhaps your ISP blocks blogspot.com?

--------------
======== 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* "
Back to top
Profile PM 
kennedy101@hotmail.com
Unregistered






Posted: Feb. 01 2006,08:56 QUOTE

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.
Back to top
4 replies since Jan. 15 2006,13:43 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: EDNA server tweaks

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code