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 2007-07-22 17:10:07

KRH
Member
From: Denmark
Registered: 2006-10-27
Posts: 219
Website

Re: Updated fun_plug

im in (the irc room..)

Last edited by KRH (2007-07-22 17:10:25)


First user to fun_plug the dns-323.

Offline

 

#77 2007-07-22 20:29:37

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Updated fun_plug

fonz wrote:

Well, I've uploaded funplug-0.3.

Fonz,

outstanding work!
Upgrade went through just fine :-)

Thanks a lot!

Cheers,

Emacs

Offline

 

#78 2007-07-22 22:05:20

MiK
Member
From: Sweden
Registered: 2006-12-17
Posts: 102

Re: Updated fun_plug

Thanks for the new fun_plug fonz! smile

Btw, why not make this topic a "sticky"?

/MiK

Offline

 

#79 2007-07-22 23:54:25

Panda
Member
Registered: 2007-05-15
Posts: 14

Re: Updated fun_plug

First I'd like to say a big thank you for this. This linux/unix world is totally alien to me and I need all the help I can get big_smile

I have one script which is usually run with "&" at the end of the command line, which I think means it runs as another process, allowing my usual fun_plug to continue to the end. Foolishly I put this in the start directory and it stops the remaining scripts running - mainly telnet sad

I have now managed to fix this, but is there anyway this can be made to work with this fun_plug ?

Thanks again - Paul

Offline

 

#80 2007-07-23 00:34:11

Emacs
Member
Registered: 2007-06-24
Posts: 110

Re: Updated fun_plug

Panda,

it can ;-)

If you start your program with something like

myprog &

then put this line into a script (text file ending on .sh)
Place it in the start folder
Name it myscript.sh

Now set it to be executable: chmod 755 myscript.sh

Fun plug will now recognize the new script "myscript.sh" as something you want to execute during startup.
The script itself will call myprog and will put it into the background - meaning the rest of the funplug system will continue to run.

Sorry for the poor english - too drunk ;-)

Cheers,

Emacs

Offline

 

#81 2007-07-23 23:24:10

cyboc
Member
From: Vancouver, BC, Canada
Registered: 2007-07-14
Posts: 27
Website

Re: Updated fun_plug

Thanks Fonz!


"If you feel yourself irreplaceable, put a finger in a glass of water. If you leave a hole when you take it out, you truly are irreplaceable."

Offline

 

#82 2007-07-23 23:51:33

noodle
Member
Registered: 2007-07-13
Posts: 62

Re: Updated fun_plug

Thanks Fonz.

So, is that release has rc1.d, rc2.d, rc3.d ...? I think it's a good idea to add loading priority to each service like S01mount-disk, S50telnetd

Noodle

Offline

 

#83 2007-07-24 00:46:19

Panda
Member
Registered: 2007-05-15
Posts: 14

Re: Updated fun_plug

Emacs wrote:

Sorry for the poor english - too drunk ;-)

Cheers,

Emacs

Your drunk English is better than my sober big_smile

Thanks for the help - got it sorted now.

Thanks.

Offline

 

#84 2007-07-24 03:05:24

noodle
Member
Registered: 2007-07-13
Posts: 62

Re: Updated fun_plug

Help, Fonz.

I tried dropbear ssh by install fun_plug.d to the location (/mnt/sys/fun_plug.d in my case) other than default, and modified both fun_plug and fun_plug.d/etc/profile to pointer FUNPLUGDIR to my new location (I changed profile under /mnt/sys/fun_plug.d/etc/, leave the one under /mnt/HD_a2/fun_plug.d/etc/ as is since I want to keep a copy of your fun_plug on HD as backup in case USB drive failed). But every time I log in by ssh, all my setting still point to: /mnt/HD_a2/fun_plug.d. telnet is fine, only ssh. So I did a search on string "/mnt/HD_a2" in dropbear, but only find "/mnt/HD_a2/fun_plug.d/bin/sftp-server", "/mnt/HD_a2/fun_plug.d/etc/dropbear/dropbera_dss_host_key" and "/mnt/HD_a2/fun_plug.d/etc/dropbear/dropbear_rsa_host_key". My dropbear start as environment set to /mnt/sys/fun_plug.d, I'm expecting all the setting also use it in ssh session. Did I missed something? or ssh session is hard coded to use /mnt/HD_a2/fun_plug.d, not configurable or inherited from  parent process? What I did wrong?

[edit]
After another try, modify /mnt/HD_a2/fun_plug.d/etc/profile, it works. So it looks like profile had been hard coded as "/mnt/HD_a2/fun_plug.d/etc/profile" in busybox, not from ${ETCDIR}/profile

Thanks

Noodle

Last edited by noodle (2007-07-24 03:14:32)

Offline

 

#85 2007-07-24 10:41:48

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

Re: Updated fun_plug

noodle wrote:

So it looks like profile had been hard coded as "/mnt/HD_a2/fun_plug.d/etc/profile" in busybox, not from ${ETCDIR}/profile

Yes, it's hardcoded, and so are quite a number of other paths. I don't think running the current funplug from a different location will work reliably. If you really want to, I suggest you recompile the funplug with e.g. /opt as prefix (instead of /mnt/HD_a2/fun_plug.d) and then bind-mount your installation path on /opt.

Offline

 

#86 2007-07-24 11:08:15

MiK
Member
From: Sweden
Registered: 2006-12-17
Posts: 102

Re: Updated fun_plug

fonz, would it be possible to add jhead as a fun_plug addon (for use in Gallery1)?

http://www.sentex.net/~mwandel/jhead/

/MiK

Offline

 

#87 2007-07-24 15:24:06

craft
Member
From: Budapest, Hungary
Registered: 2007-06-14
Posts: 122
Website

Re: Updated fun_plug

Thank you Fonz.

Great work.


-------------------------------------------------------------------------------------------------------------------------------------------
2 x DNS-320
1 x DNS-325

Offline

 

#88 2007-07-24 19:54:12

kruzes
Member
Registered: 2007-05-31
Posts: 22

Re: Updated fun_plug

Fonz, I'm using your busybox binary right now. I've previously compiled my own, but lately been having problems with the config. Would you be so kind as to post your busybox config somewhere? Thanks!

Offline

 

#89 2007-07-24 20:19:47

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

Re: Updated fun_plug

MiK wrote:

fonz, would it be possible to add jhead as a fun_plug addon (for use in Gallery1)?

Yes, looks like a useful program: http://www.inreto.de/dns323/fun-plug/0.3/jhead-2.7.tgz

Offline

 

#90 2007-07-24 20:22:48

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

Re: Updated fun_plug

kruzes wrote:

Fonz, I'm using your busybox binary right now. I've previously compiled my own, but lately been having problems with the config. Would you be so kind as to post your busybox config somewhere? Thanks!

Just run:

Code:

busybox bbconfig

Offline

 

#91 2007-07-24 21:02:02

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

Re: Updated fun_plug

noodle wrote:

So, is that release has rc1.d, rc2.d, rc3.d ...?

Ahem, no. These are usually run-level directories - quite unrelated to ordering of scripts.

noodle wrote:

I think it's a good idea to add loading priority to each service like S01mount-disk, S50telnetd

It's ugly. Though it might prevent people from shooting themselves in the foot by putting blocking scripts into start/.

Offline

 

#92 2007-07-24 21:44:08

noodle
Member
Registered: 2007-07-13
Posts: 62

Re: Updated fun_plug

Yeah, I know rc1.d for run-level, and we don't need it for DNS-323, but order of scripts is useful, sometime those scripts has dependency relationship. Just a guess.

BTW, Fonz, I cannot build funplug_0.3. I found funplug_0.2 source tar file (pretty big), and fun_plug_0.3 source tar file (pretty small). I tried to create /opt/dns323/funplug_0.3, create symbol link "ln -snf funplug_0.3 funplug" and tar jxvf /dist/funplug-src-0.3-2007-07-22.tar.bz2 into it, and run "sh world.sh" under /opt/dns323/funplug, the only thing I got is: "busybox-1.6.1                  FAILED". and /opt/dns323/funplug/tmp/busybox.log only contains:
+ set -e
+ source ./functions.sh
+++ pwd
++ CWD=/opt/dns323/funplug
++ . ./config.sh

What could be wrong?

BTW, d-link cross compile built without error.

Offline

 

#93 2007-07-24 22:11:18

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

Re: Updated fun_plug

noodle wrote:

"busybox-1.6.1                  FAILED". and /opt/dns323/funplug/tmp/busybox.log only contains:
+ set -e
+ source ./functions.sh
+++ pwd
++ CWD=/opt/dns323/funplug
++ . ./config.sh

What could be wrong?

maybe it's fakeroot. Do you have fakeroot installed? If not, install it, or set

Code:

FAKEROOT=

in config.sh.

To check details, try setting "set -x" at the top of config.sh. Should show where it fails, then.

PS: Also check that the CROSSTOOLS path is correct.

Last edited by fonz (2007-07-24 22:11:48)

Offline

 

#94 2007-07-24 22:21:28

noodle
Member
Registered: 2007-07-13
Posts: 62

Re: Updated fun_plug

You are right, fonz. I installed fakeroot, and it's building right now.

Thanks

Offline

 

#95 2007-07-24 23:10:32

MiK
Member
From: Sweden
Registered: 2006-12-17
Posts: 102

Re: Updated fun_plug

fonz wrote:

Yes, looks like a useful program: http://www.inreto.de/dns323/fun-plug/0.3/jhead-2.7.tgz

Thanks fonz! smile

/MiK

Offline

 

#96 2007-07-27 05:37:12

cyboc
Member
From: Vancouver, BC, Canada
Registered: 2007-07-14
Posts: 27
Website

Re: Updated fun_plug

noodle wrote:

BTW, Fonz, I cannot build funplug_0.3. I found funplug_0.2 source tar file (pretty big), and fun_plug_0.3 source tar file (pretty small). I tried to create /opt/dns323/funplug_0.3, create symbol link "ln -snf funplug_0.3 funplug" and tar jxvf /dist/funplug-src-0.3-2007-07-22.tar.bz2 into it, and run "sh world.sh" under /opt/dns323/funplug, the only thing I got is: "busybox-1.6.1                  FAILED". and /opt/dns323/funplug/tmp/busybox.log only contains:
+ set -e
+ source ./functions.sh
+++ pwd
++ CWD=/opt/dns323/funplug
++ . ./config.sh

I got the same error:
"busybox-1.6.1                  FAILED"

Looking at the log (/opt/dns323/funplug-0.3/tmp/busybox.log) helped me fix my problem. Near the bottom, it said something like "unknown command 'curl'". I installed curl (on Debian: apt-get install curl), re-ran world.sh and the error went away. However, I have a new error:

"dns323-utils-0.7.176           FAILED"

Looking at the log (/opt/dns323/funplug-0.3/tmp/dns323-utils.log) I see this:

"+ install -m 0755 -t /opt/dns323/funplug-0.3/tmp/pkg-dns323-utils-0.7.176/mnt/HD_a2/fun_plug.d/bin dns323-poweroff
install: invalid option -- t
Try `install --help' for more information."

Any ideas for how to fix this one?


"If you feel yourself irreplaceable, put a finger in a glass of water. If you leave a hole when you take it out, you truly are irreplaceable."

Offline

 

#97 2007-07-27 06:39:39

cyboc
Member
From: Vancouver, BC, Canada
Registered: 2007-07-14
Posts: 27
Website

Re: Updated fun_plug

cyboc wrote:

"+ install -m 0755 -t /opt/dns323/funplug-0.3/tmp/pkg-dns323-utils-0.7.176/mnt/HD_a2/fun_plug.d/bin dns323-poweroff
install: invalid option -- t
Try `install --help' for more information."

Any ideas for how to fix this one?

I fixed it. Apparently, I had an old version of coreutils, the package that contains the install command. I upgraded coreutils. In the new version of coretutils, install has a "t" option.


"If you feel yourself irreplaceable, put a finger in a glass of water. If you leave a hole when you take it out, you truly are irreplaceable."

Offline

 

#98 2007-08-02 09:59:37

Focher
Member
Registered: 2007-05-23
Posts: 35

Re: Updated fun_plug

This is very unlikely caused by fonz's fun_plug.d release, but as that is what I am using I will ask about it here.

I have enabled NFS support and it seems to run fine. I am doing an NFS mount from OS X using "nfs://192.168.1.15/mnt/HD_a2". I have also checked to make sure my uid and gid are that same between my DNS and OS X boxes (502 for each, if it matters). After the NFS mount, it appears to be accessible fine from OS X. I can browse it, create new directories, and read files. The problem is that when I attempt to do a file write it just hangs for a bit and then disconnects the NFS mount.

I haven't had the chance to try it from Linux or Vista (Ultimate) yet. Any ideas why it is disconnecting? I can then remount it but have the same recurring problem.

thanks

Offline

 

#99 2007-09-02 19:57:14

echotrain
Member
Registered: 2007-09-02
Posts: 5

Re: Updated fun_plug

A big thks to Fonz for the nice fun_plug package! I am a linux newbie and I've managed to get telnet and lighttpd started.

I am now trying to get telnet to request for login... looking a tthe telnetd.sh file...

so I change

# use "login" to make telnet ask for a password
LOPT="-l ${BINDIR}/sh"
#LOPT="-l ${BINDIR}/login"

to this ...

# use "login" to make telnet ask for a password
#LOPT="-l ${BINDIR}/sh"
LOPT="-l ${BINDIR}/login"

Then I have to reboot the DNS323 and telnet will ask for a login? But what login do I use? The admin page password?

Thanks!

Offline

 

#100 2007-09-02 22:45:59

1-0-Ed
New member
Registered: 2007-09-02
Posts: 3

Re: Updated fun_plug

Hi Fonz,

I've been using your fun_plug for about 5 weeks now with great success. I greatly appreciate your efforts here, so from me also: many thanks!

I'm using a Conceptronics CH3SNAS device. Today I updated to the new 1.02 beta firmware but I'm afraid I may have made a stupid mistake. I set a root password and stored it to flash memory just like your manuals state to do so and changed the login option in de the telnetd.sh file to require the root password. Sadly I can now no longer log in as Root because the password seems to be lost. I can't change the root password either. So the root is still running stuff like the lighttpd webserver, etc but I can't change anything!

(editing the telnetd.sh file as an other user (which I can log in with) isn't possible; it's write protected)

Help! sad

Hope you can help me, many thanks,

Regards,
Ed

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB