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

#76 2011-01-12 18:55:16

midsnipe
Member
Registered: 2010-12-22
Posts: 9

Re: DNS-320 and fun_plug

i use the lighttpd.conf-dns320 but i change for lighttpd.conf-with-php and i have ever the same problem !

Offline

 

#77 2011-01-13 19:12:04

midsnipe
Member
Registered: 2010-12-22
Posts: 9

Re: DNS-320 and fun_plug

hello
I just noticed something in the tut, it is written

"Use THE FOLLOWING if you are there DNS-320:

mkdir / mnt/HD/HD_a2/srv /
ln-s / mnt/HD/HD_a2/srv / / srv

This Link Will Be Lost After rebooting the Device, So You Have to add THE FOLLOWING Two Lines To The End Of The file / ffp / etc / fun_plug.init to recreate The Link Every Time The NAS boots. You Can edit this file using editor like nano year. THE FOLLOWING Use for All Other Than The NAS DNS-320:

# create custom server-Link to the folder
ln-s / mnt/HD_a2/www / / srv

Use this for The DNS-320:
# create custom server-Link to the folder
ln-s / mnt/HD/HD_a2/www / / srv "

the red line would not be opposed to "ln-s / mnt/HD/HD_a2/srv / / srv" as early in the citation (in blue).

Last edited by midsnipe (2011-01-13 19:12:56)

Offline

 

#78 2011-01-14 11:57:44

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

I already said this in this thread it is a TYPO (mistake)

It needs to be  for the dns-320 : to punt in the fun_plug.init file (at the end)

# create custom server-Link to the folder
ln-s / mnt/HD/HD_a2/srv/ /srv

Offline

 

#79 2011-01-14 13:33:26

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

@delacroix, is it possible to boot from usb with the DNS-320 ? As the usbstorage.ko isn't compatible with it... Or can the harddisk where fun_plug 0.5 is installed go to sleep mode on the dns-320 ?

But there is aldready a "/usr/local/modules/driver/usb-storage.ko" module available...

Or an alternative way ?

Tnx

Last edited by djbase (2011-01-14 13:55:12)

Offline

 

#80 2011-01-15 22:27:47

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

I managed to get everything to boot from the usb, how can one check if the harddisk goes to standby ?

Offline

 

#81 2011-01-16 12:21:00

SpaceKnight
Member
Registered: 2010-12-28
Posts: 6

Re: DNS-320 and fun_plug

djbase wrote:

I managed to get everything to boot from the usb, how can one check if the harddisk goes to standby ?

Mind telling me how did you do it? The most crude way to check is let the NAS idle for hour or two and then check the temperature with your bare hand. I got two disks installed. The one with ffp is always hot and the other one is cool after being idle for few hours. big_smile

Offline

 

#82 2011-01-16 15:21:58

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

I followed ui's guide but skipped the usbstorage stuff and the fun_plug scripting stuff. As it seems the usb support on the dns-320 is more advanced then the 323.

Also because I already had the fonz fun_plug installed on the harddrive

I needed to plug the usb after dns-320 was booted otherwise I couldn't format it, so I killed the fat32 partition and partitioned it with ext2 like guide says ( I used an 8gb kingston usb stick)

Then I copied over the entire FFP folder from /mnt/HD/HD_a2 to /mnt/USB/HD_c1


/mnt/USB/HD_c1  = USB mount point

Then I manually edited the fun_plug on the main harddisk to point to the usb like this :



original :
code:

"
# write a log, in case sth goes wrong
FFP_LOG=/mnt/HD/HD_a2/ffp.log
#FFP_LOG=/dev/null
"

Added below : (I just copied the ffp.log file even if empty it doesn't matter, it just checks if this file is accessable on the usb stick and if it is it transfers the log to the usb)

Code :
"
if [ -x /mnt/USB/HD_c1/ffp.log ]; then
    FFP_LOG=/mnt/USB/HD_c1/ffp.log
    echo "* Running USB DNS-320 DAV MOD ..."
    FFP_PATH=/mnt/USB/HD_c1/ffp   
    chmod -x /mnt/USB/HD_c1/ffp/start/LOGIN.sh
    chmod -x /mnt/USB/HD_c1/ffp/start/SERVERS.sh
    chmod 600 /mnt/USB/HD_c1/ffp/etc/ssh/ssh_host_dsa_key
    chmod -x /mnt/USB/HD_c1/ffp/etc/ssh/ssh_host_dsa_key
    chmod 600 /mnt/USB/HD_c1/ffp/etc/ssh/ssh_host_rsa_key
    chmod -x /mnt/USB/HD_c1/ffp/etc/ssh/ssh_host_rsa_key
    chmod 755 /mnt/USB/HD_c1/ffp/var/lib/sshd/
    chmod 755 /mnt/USB/HD_c1/ffp/etc/ssh/
fi
"

Al the other files in /ffp/start I moved these to another folder called disabled_usb_items

The problem I noticed is that the usb stick keeps resetting the permission, because of that you need to set them each boot time, and SSH was a bitch.

Due to safety reasons ofcourse.

And you need to point everything else also to the USB mount point...

Last edited by djbase (2011-01-16 15:43:06)

Offline

 

#83 2011-01-16 18:11:42

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

Woehoe, it goes to standby !!!! with the stuff I said in my previous post, even with Sabnzbdplus installed (logs and cache and NZB_Blackhole pointed to USB

wink

pitty sabnzbdplus on the dns-320 is so slow, maybe the dns-325 would be a better candidate

You can check the temperature in the DNS-320 dlink homepage -> status Harddrive Info

And for the standby I checked it to connecting to the mount shares in windows, and if it lags I can hear the harddisk spin up and know it was in standby or hibernation mode.

Finally ...

Last edited by djbase (2011-01-16 18:13:47)

Offline

 

#84 2011-01-16 22:00:18

SpaceKnight
Member
Registered: 2010-12-28
Posts: 6

Re: DNS-320 and fun_plug

djbase wrote:

Woehoe, it goes to standby !!!! with the stuff I said in my previous post, even with Sabnzbdplus installed (logs and cache and NZB_Blackhole pointed to USB

wink

pitty sabnzbdplus on the dns-320 is so slow, maybe the dns-325 would be a better candidate

You can check the temperature in the DNS-320 dlink homepage -> status Harddrive Info

And for the standby I checked it to connecting to the mount shares in windows, and if it lags I can hear the harddisk spin up and know it was in standby or hibernation mode.

Finally ...

Yea, for me the hand temperature test was the quickest of those alternatives. big_smile

Offline

 

#85 2011-01-18 18:20:31

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

I checked it with :
/ffp/start/syslogd.sh
added to the file :  syslogd_flags="-O /ffp/log/sysmessages.log -l 5"

and now I can check if the harddisks go to standby or are awake

Offline

 

#86 2011-01-20 13:26:33

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

Is the DNS-325 also fun-pluggable ?

Because linux  kernel seems same as DNS-325 except for the hardware ofcourse

Because it's really bugging me sabnzbd  plus is so slow :'(

Offline

 

#87 2011-01-21 01:09:54

Dlink
Member
Registered: 2007-11-21
Posts: 106

Re: DNS-320 and fun_plug

djbase wrote:

Is the DNS-325 also fun-pluggable ?

Yes.

Offline

 

#88 2011-01-22 17:31:38

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

Cool ! tnx for the info

And also rather dns-320 compatible ?

Offline

 

#89 2011-01-23 03:14:09

olle
New member
Registered: 2011-01-23
Posts: 1

Re: DNS-320 and fun_plug

Does anyone know of kernel headers for DNS-320? The existing fun_plug ones is for kernel 2.6.9.1 and DNS-320 use 2.6.22.18.

Offline

 

#90 2011-01-24 20:12:53

Dlink
Member
Registered: 2007-11-21
Posts: 106

Re: DNS-320 and fun_plug

djbase wrote:

Cool ! tnx for the info

And also rather dns-320 compatible ?

I am assuming you mean the same architecture? If so the answer is yes. The main differences are Ram increase from 128 to 256mb, CPU clock speed increased from 800mhz to 1.2ghz. There are some other software differences however as far as compiling applications they should be cross-compatible.

Offline

 

#91 2011-01-25 00:25:40

RobRoy
Member
Registered: 2009-04-07
Posts: 16

Re: DNS-320 and fun_plug

Following to available tutorials and hints I installed (no without troubles) funplug and then lighttpd and php. At the moment I stuck at very strange behaviour of webserver.

When I put index.php page with phpinfo() function as described here:
http://nas-tweaks.net/91/installation-a … esting_PHP onto main folder I got as result in my browser huge numer of chinese letters or signs (maybe japanese, no idea smile)

Second problem with configuration of my webserver is, browser doesn't read http://my_DNS-320_ip address but I have to type http://my_DNS-320_ip/index.php to get this chinese webpage?

I copied my configuration files from provided files in folder /examples and don't know what happened and why it doesn't work correctly.

Offline

 

#92 2011-01-25 11:03:22

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

@dlink tnx I meant archtitecture like you said, it's just that even the dns-320 is too slow to handle sabnzbd... maybe the dns-325 is...

Or does the sabnzbdplus run faster trhough debian on a dns-323....?

@roboroy, did you install OPEN-SSL ?

Offline

 

#93 2011-01-25 15:57:39

RobRoy
Member
Registered: 2009-04-07
Posts: 16

Re: DNS-320 and fun_plug

djbase wrote:

@roboroy, did you install OPEN-SSL ?

Of course I did. I did it as a first step and I installed then all available packages.
I noticed when I change option server.port to 8080 in lighttpd.conf, then it starts to work and php as well. After come back in settings to port 80 chinese webpage again. What's going on?
On port 81 dlink configuration page works in both cases flawlessly.

Anyway, port 8080 worked for index.html or index.php so happily went to next step and I started to configure mysql. Then put testmysql.php file taken from nas-tweeks webpage and it gives me chinese output again. On port 8080!!

Last edited by RobRoy (2011-01-25 17:59:35)

Offline

 

#94 2011-01-29 00:01:41

djbase
Member
Registered: 2011-01-05
Posts: 30

Re: DNS-320 and fun_plug

@robroy... Sorry, I can't help you, I don't know what's going on

I myself fucked lighttpd up again too :'( , it works but I installed NzbGet, this works too, but when I put in a login and password, I can't login anymore... strange PHP behaviours... :'(

Offline

 

#95 2011-03-05 14:40:09

skoos
Member
Registered: 2011-03-05
Posts: 6

Re: DNS-320 and fun_plug

Dear All!

I'd like to install an FTP program on the DNS-320 (to be able to transfer large files over the internet without computer).
I'd also like to install Transmission, which version do you recommend for the dns-320? Can I just remove everything else? (Ajax, P2P, are not necessary for me.)

Please tell me this process step by step, I'm a newbie in this.

Thanks a lot!

Offline

 

#96 2011-03-10 10:07:19

skoos
Member
Registered: 2011-03-05
Posts: 6

Re: DNS-320 and fun_plug

Is the Midnight Commander workable under the DNS-320? Which version? Can I use it on the web interface? Or how?

Sorry for the many questions, I'm new in this.

Offline

 

#97 2011-03-14 18:58:39

starsailorz
New member
Registered: 2011-03-14
Posts: 1

Re: DNS-320 and fun_plug

Hello everybody

Does anyone know how to install ffmpeg ? (the exact commands in ssh coz I'm a newbie in Linux world ...)
Is there a way to update Mediatomb ?

Thanx a lot !

Offline

 

#98 2011-04-07 15:48:17

stefanth
Member
Registered: 2010-12-14
Posts: 63

Re: DNS-320 and fun_plug

starsailorz wrote:

Hello everybody

Does anyone know how to install ffmpeg ? (the exact commands in ssh coz I'm a newbie in Linux world ...)

Thanx a lot !

Yes, I know, depending on how many codecs you want support for you need to download some 50-80
different applications and libraries, it takes 12+ hours to compile it all.

The ffmpeg I got is fully featured (except for sun media lib and some Microsoft format) but it takes an hour to transcode 5 minute of a PAL format movie into HD sized format.

So using ffmpeg to "transcode on the fly" is not a solution for the NAS.

starsailorz wrote:

Is there a way to update Mediatomb ?

Thanx a lot !

You mean to get a newer version, yes it is, but you have to compile it up yourself


/Stefan

Last edited by stefanth (2011-04-07 15:52:47)

Offline

 

#99 2011-05-23 00:03:56

azlate
New member
Registered: 2011-05-23
Posts: 1

Re: DNS-320 and fun_plug

how cad mount /dev/sdb?
i have second hdd with data and i want to copy to first hdd until i will reformat

thx

Offline

 

#100 2011-05-25 16:36:05

DeLaCroix
Member
Registered: 2007-08-18
Posts: 91
Website

Re: DNS-320 and fun_plug

azlate wrote:

how cad mount /dev/sdb?
i have second hdd with data and i want to copy to first hdd until i will reformat

thx

This question was also asked (by you...) here and here and was also answered here and here. Sometime i think people will never understand, that this way of posting questions is not really polite.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB