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

#226 2008-04-18 14:37:31

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated fun_plug

rap wrote:

I'm still a little confused about how things get built for the different versions of funplug .

I looked here http://www.inreto.de/dns323/fun-plug/0.5/packages/ which is where I thought the official available packages for 0.5 lived and there's no mention of transmission their.

Sorry for the confusion, I understand it's not always simple. That's one reason why I started howto:ffp - to provide a place to list what's available, where it's discussed, what version it's made for, etc. inreto.de only hosts my own packages. Contributions are welcome and should be listed on the howto page.

Offline

 

#227 2008-04-19 17:13:55

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated fun_plug

rejong wrote:

Code:

 # set | grep LD_     
LD_LIBRARY_PATH='/lib:/usr/lib:'

This seems to be the problem, can I set the LD_LIBRARY_PATH in /ffp/etc/profile or is there another/better way to do this?

I've recompiled most of the packages, and hardcoded the runtime paths into programs and libraries (RPATH). This should fix the problem even if LD_LIBRARY_PATH remains set (at least my testcase worked now). Nonetheless, I've added the unset command to /ffp/etc/rc.

Since really most of the packages are affected, I recommend to reinstall the funplug. If you do this, please play a little with our testcases and let me know if it works reliably now.

Offline

 

#228 2008-04-23 22:17:41

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

Re: Updated fun_plug

Is GD2 available for ffp 0.5? I would like to try http://scry.org/ or http://www.phpalbum.net/


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

Offline

 

#229 2008-04-23 22:57:04

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Offline

 

#230 2008-04-24 10:49:52

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

Re: Updated fun_plug


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

Offline

 

#231 2008-04-24 11:35:52

5h4rk
Member
Registered: 2008-01-26
Posts: 27

Re: Updated fun_plug

Hi, can anyone help me with this error please?

Code:

root@nas:/mnt/HD_a2/www/pages/svn# svnadmin create asdf
root@nas:/mnt/HD_a2/www/pages/svn# sh /mnt/HD_a2/ffp/start/svnserve.sh restart
killall: svnserve: no process killed
ERROR: svnserve not found or not executable
root@nas:/mnt/HD_a2/www/pages/svn#

I'm using 0.5.
Thanks


FFP 0.5 | FW 1.0.5

Offline

 

#232 2008-04-24 12:33:32

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Updated fun_plug

As I suspected: The startup script svnserve.sh is intended for use with funplug-0.3 or 0.4.
You can NOT use it with 0.5. Someone has to rewrite it so it's compatible with funplug-0.5

EDIT: I fixed up a 0.5er version of the script, but I can't give guarantees, as I don't use svnserve.

Last edited by KyleK (2008-04-24 13:01:22)


Attachments:
Attachment Icon svnserve.sh, Size: 215 bytes, Downloads: 765

Offline

 

#233 2008-04-24 16:27:10

5h4rk
Member
Registered: 2008-01-26
Posts: 27

Re: Updated fun_plug

KyleK wrote:

As I suspected: The startup script svnserve.sh is intended for use with funplug-0.3 or 0.4.
You can NOT use it with 0.5. Someone has to rewrite it so it's compatible with funplug-0.5

EDIT: I fixed up a 0.5er version of the script, but I can't give guarantees, as I don't use svnserve.

Thanks you! That worked!


FFP 0.5 | FW 1.0.5

Offline

 

#234 2008-04-26 20:50:43

mozkill
Member
Registered: 2008-04-26
Posts: 20

Re: Updated fun_plug

After fun_plug 0.5 install finishes, I am left with a "ffp" directory, a ffp.log file, a "www" directory, and a fun_plug executable (1057 bytes).  Will it hurt anything to delete this file.  Is it required? 

When I installed, I put the "fun_plug" executable and the "fun_plug.tgz" file in the root of my drive.  The documentation for fun_plug install said that it would clean itself up but it didn't... it left the executable file.

Last edited by mozkill (2008-04-26 20:54:00)

Offline

 

#235 2008-04-26 21:13:03

KyleK
Member
From: Dresden, Germany
Registered: 2007-12-05
Posts: 1178

Re: Updated fun_plug

the fun_plug script is essential to the fun_plug functionality. You have to leave it there in order to enjoy SSH/Telnet access and additional tools.
Upon boot, the DNS firmware looks specifically for a file named "fun_plug", and if it finds it, it executes it. If you remove it, none of the additional programs will be loaded.

Offline

 

#236 2008-04-27 22:56:00

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

Re: Updated fun_plug

vedeja wrote:

Is GD2 available for ffp 0.5? I would like to try http://scry.org/ or http://www.phpalbum.net/

What about ImageMagick and G1 Gallery? I read at Shadowandy's about it but I guess it must be compiled over to run with funplug 0.5.


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

Offline

 

#237 2008-05-01 05:14:49

n0d3
New member
Registered: 2008-04-30
Posts: 3

Re: Updated fun_plug

Anyone can tell me what I did wrong when I setup Open SSH? Previously dropbear on 0.4 worked just fine.

ssh root@ipaddress
root@ipaddress's password:
-sh: /home/root: Permission denied
root@Casper:~#

I still can access /home/root/

Offline

 

#238 2008-05-02 22:13:30

cachibachero
New member
Registered: 2008-05-02
Posts: 3

Re: Updated fun_plug

Hello everybody.
I tried to install a web interface for ftp use. I have tried Web-FTP-2.2.1, phpwebftp33, and Web-FTP-2.2.1 but it seems like the ftp extension for php is not installed I'm not an expert, so I did a copy of the ftp extension folder from the source of php to: ../ffp/include/php/ext. still not working. Is there any way to install php extensions? or is necessarily make some compilation into the funplug?
Thanks in advance.

Last edited by cachibachero (2008-05-02 22:18:58)

Offline

 

#239 2008-05-03 11:43:08

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated fun_plug

cachibachero wrote:

but it seems like the ftp extension for php is not installed

I've compiled the new php release 5.2.6 yesterday with --enable-ftp=shared. You need to enable it in /ffp/etc/php.ini:

Code:

[php]
extension=ftp.so

Offline

 

#240 2008-05-04 20:00:38

SilentException
Member
From: Island of Krk, Croatia
Registered: 2008-05-04
Posts: 148

Re: Updated fun_plug

thank you fonz, i was also looking for php ftp support wink

in addition to adding extension=ftp.so i also had to modify this line in php.ini:

Code:

extension_dir = "/ffp/lib/php/extensions/no-debug-non-zts-20060613/"

as it was default set to "./" (working dir).

now ftp over php works! i'm currently using net2ftp but there is a problem.

problem is that i wanted to use php ftp interface to set and download stuff directly to dns-323 nas in background but still havent found anything useful. all of the php ftp clients download stuff to the computer running web browser..
maybe someone could point me into right direction here..


D-Link DNS-323 v1.05 fun_plug-ed + many mods,  2 x 320GB Seagate Barracuda 7200.10 RAID0, Cat6 Gigabit Network, 9k Jumbo Frames, Average (WRITE): 19,32 MB/sec, Average (READ): 28,6 MB/sec

Offline

 

#241 2008-05-04 21:58:27

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

Re: Updated fun_plug

SilentException wrote:

interface to set and download stuff directly to dns-323 nas in background but still havent found anything useful.

Sorry but on my CH3SNAS, I have an Interface for Downloads, which directly was included by Conceptronic... and it works in the Background. Instead of logging in, i can press the other button to manage my downloads.

Just my 2 cents

Offline

 

#242 2008-05-05 06:20:19

cachibachero
New member
Registered: 2008-05-02
Posts: 3

Re: Updated fun_plug

Thanks guys for all the support.
One more question:
It is possible to upload large files with the web interface?
I've modified the php.ini file, but still can't do it.
Thanks again.

Offline

 

#243 2008-05-05 22:37:11

jietang
New member
Registered: 2007-05-25
Posts: 3

Re: Updated fun_plug

fonz wrote:

jietang wrote:

run the fun_plug on a usb flash drive

I haven't done this myself, but others have. They might be able to provide more detailed instructions.

Here's how it's supposed to work:
- install funplug (0.5) as usual to /mnt/HD_a2/ffp
- manually mount your usb drive and copy the ffp directory
- change/extend the fun_plug script to load required kernel modules and mount the usb disk
- if successful, make it create a /ffp -> /path/to/mounted/usb/ffp symlink instead of /ffp -> /mnt/HD_a2/ffp
- fall back to /ffp -> /mnt/HD_a2/ffp if usb disk couldn't be mounted or ffp directory wasn't found

Thank you, fonz. I got it working by adapting your usbdisk.sh start script per your instructions above.

Offline

 

#244 2008-05-06 17:48:22

Levis
Member
Registered: 2008-05-06
Posts: 40

Re: Updated fun_plug

Fonz really thank you for fun_plug, you have opened a new world to me big_smile

Even if I'm using v0.4, don't know if I want to upgrade now

Offline

 

#245 2008-05-07 01:33:02

jietang
New member
Registered: 2007-05-25
Posts: 3

Re: Updated fun_plug

Hello.

Has anyone else experienced the password restriction of 5-8 characters via the command-line under ffp 0.5? The long passwords just get truncated to 8 under version 0.5, but not under 0.3 or 0.4. However, it appears that the use of most, if not all, special characters (i.e.  ~,`,!,@,#,$,%,^,&) is still legal, as it is under previous versions fun_plug.

Specifying the absolute path of passwd (/ffp/bin/passwd) and creating an entirely new user with /ffp/bin/adduser made no difference. And, of course, I ran the store-passwd.sh script after making changes. Also, I am running busybox-1.10.1-3.

Thanks.

Offline

 

#246 2008-05-10 22:32:58

WildSioux
Member
Registered: 2007-03-05
Posts: 71

Re: Updated fun_plug

Hello,

Its time for me to revisit this thread again for help from the gurus here.  I have had everything running successfully with the help of everyone here for a year now.  This includes moving to a different state requiring only a change to lighttpd.conf to reflect new IP address and to sh lighttpd.

My question now is, with v0.4, is it possible to run two domain names?  I would like to store pictures to link to a photography website keeping it separate from my main site.  I believe it is since I found some sample lighttpd.conf with more than one "host."  However, in my lighttpd.conf they are termed as "Virtual Host" and the formatting is different.  Here is my lighttpd.conf with the virtual host lines...

###### virtual hosts
##
##  If you want name-based virtual hosting add the next three settings and load
##  mod_simple_vhost
##
## document-root =
##   virtual-server-root + virtual-server-default-host + virtual-server-docroot
## or
##   virtual-server-root + http-host + virtual-server-docroot
##
#simple-vhost.server-root   = "/www/"
#simple-vhost.default-host  = "domain1.com"
#simple-vhost.document-root = "/pages/"

Do I just add these three lines?  Where, below the last line above?
#simple-vhost.server.root = "/www/"
#simple-vhoste.default-host = "domain2.com"
#simple-vhost.document-root = "/pages2/"

That is similar to how the sample I saw but it had
[Host1]...
...

[Host2]...
...

Where, domain1.com is my main site and domain2.com is my intended site for posting pictures to post.  BTW, this is using a single IP with DynDns setup.

Thanks

Offline

 

#247 2008-05-10 23:52:23

zipdc
Member
Registered: 2008-05-10
Posts: 6

Re: Updated fun_plug

Hi,

Just trying to configure the Lighttpd for use with phpAlbum and I am having problems with the imaging part.
PHP Album requires GD2 library but not sure how to do this since I am new to the linux game. Is it part of PHP Version 5.2.5?
I ran the folowing script and the pages comes back with 'Call to undefined function imagecreatefrompng()'

<?php

header("Content-type: image/png");
$string = $_GET['text'];
$im     = imagecreatefrompng("res/file.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px     = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);

?>

Thanks.

Offline

 

#248 2008-05-11 02:06:12

WildSioux
Member
Registered: 2007-03-05
Posts: 71

Re: Updated fun_plug

re: My question above^^ about two different domains and how to set it up in lighttpd.conf under virtual host.

I came up with a temporary solution with a second domain on dyndns.  Its not the solution I was looking for though since it just changes the domain instead of having two separate names.

This is what I added...

#simple-vhost.server.root = "/www/"
#simple-vhoste.default-host = "domain2.com"

As I said, I can type in either domain1 or domain2 and it comes up with the same stuff.  This is temporary for now since I don't want anyone to go to my main site. 

How to make it separate?
Thanks

Offline

 

#249 2008-05-11 13:49:43

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated fun_plug

WildSioux wrote:

re: My question above^^ about two different domains and how to set it up in lighttpd.conf under virtual host.
...
How to make it separate?

There're examples in the lighttpd documentation:
http://trac.lighttpd.net/trac/wiki/Docs … ration#id1
http://trac.lighttpd.net/trac/wiki/Tuto … figuration  (10 minutes example)

Offline

 

#250 2008-05-11 14:00:01

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Updated fun_plug

zipdc wrote:

PHP Album requires GD2 library but not sure how to do this since I am new to the linux game. Is it part of PHP Version 5.2.5?

No, too slow.
http://dns323.kood.org/forum/p3867-2007 … %3A49.html

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB