DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2009-05-21 17:46:58

qryptiq
Member
From: New Ro
Registered: 2009-03-10
Posts: 49

ability to view pictures via URL

Is there an app that will allow me to view my pictures via URL? I currently have Dolphin but it doesn't have the ability to do this.

thanks


~~~~~~~~~~~~~~~~~~~
DNS-321, 2x1.5tb Barracudas

Offline

 

#2 2009-05-21 18:57:24

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: ability to view pictures via URL

what about a webserver :-) like lighttpd ?

Offline

 

#3 2009-05-21 21:43:50

qryptiq
Member
From: New Ro
Registered: 2009-03-10
Posts: 49

Re: ability to view pictures via URL

i am running lighttpd... is there something i have to do to get this functionality? or is there something i have to add?


~~~~~~~~~~~~~~~~~~~
DNS-321, 2x1.5tb Barracudas

Offline

 

#4 2009-05-21 22:39:44

luusac
Member
Registered: 2008-04-29
Posts: 360

Re: ability to view pictures via URL

no, just put in the url to the image and it will serve it up (if thats all you want, if you want a gallery you will have to look at another solution like perl/python/php - there are lots of galleries based on these - but you will still need a httpd light lighttpd).  BUT unless you have got lighttpd running on port 80 then webs (built in webserver) will be intercepting the request (unless you are specifying the port to use in the url).  Look at /ffp/start/kickwebs.sh - (I am assuming you have ffp as you are running lighttpd). I believe that this kills webs, lighttpd.sh can then run which executes lighttpd, which binds to the now available port 80.  webs automatically restarts, as it finds port 80 already in use it goes to the next available port (I think I remember reading this in a post at somepoint - do a search on thir forum if it doesn't).
The only other issue I can think of is your router/firewall - it will allow port 80 by default, but if you have lightpd on another port like 81 or 8080 the router may be blocking the request - in which case change the configuration on your router.

Offline

 

#5 2009-05-23 01:13:44

bjby
Member
Registered: 2009-02-22
Posts: 265

Re: ability to view pictures via URL

There are many ways to do this. Here is one

1. Get the most basic config of Lighttpd running

2. Generate a image html album directory. I used the tool "shalbum"

3. Copy the album directory to a folder accessed by lighttpd e.g. /mnt/HD_a2/www/pages/.

Offline

 

#6 2009-05-23 21:15:17

qryptiq
Member
From: New Ro
Registered: 2009-03-10
Posts: 49

Re: ability to view pictures via URL

thank you all,

i tried it with a sample png provided by lighttpd and sure enough it works. However, what if i want to view pictures outside default www directory? such as /mnt/HD_a2/My_Pictures - is it possible to point lighttpd to see this directory? I'm also thinking if i would want to make it public or not? so maybe i'll stick with your suggestion and place pictures in /www/pages/ area for viewing... hmm, i had to say that aloud to answer my own question - thanks again...


~~~~~~~~~~~~~~~~~~~
DNS-321, 2x1.5tb Barracudas

Offline

 

#7 2009-05-23 23:52:08

perssinaasappel
Member
From: Europe
Registered: 2008-10-22
Posts: 59

Re: ability to view pictures via URL

bjby wrote:

2. Generate a image html album directory. I used the tool "shalbum"

Interesting, thanks for the pointer.
Do you run shalbum on your NAS?
The shalbum readme tells that one have to install GraphicsMagick or ImageMagick.
So I guess you have to install all this on a Linux distro and then copy the output to /mnt/HD_a2/www/pages/ ?
Have you done any experiments to see what's best, GraphicsMagick or ImageMagick?

Thx.


CH3SNAS • 1.05b5 • ffp 0.5 • 2x WD Caviar Green WD5000AACS • nzbget(web)

Offline

 

#8 2009-05-24 20:14:59

vedeja
Member
Registered: 2008-02-21
Posts: 161

Re: ability to view pictures via URL

Allow me to recommend Single File PHP Gallery, found at http://sye.dk/sfpg/ It requires GD and first-off thumbnail creation is of course somewhat slow on the DNS-323 (make sure you turn on thumbnail caching to prevent re-generation upon every new request). But the point is that it's simple. You only create new folders and add new files to the directory structure, voila! Web is automatically output!


¤ 2 x 500 GB Samsung Spinpoint ¤ FFP 0.5 ¤ Custom fanscript ¤
¤ Lighttpd 1.4.19 ¤ Transmission 1.50 ¤ FW 1.07 ¤

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB