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

#201 2008-04-14 09:22:28

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

Re: Updated fun_plug

try sh sshd.sh start

or chmod +x sshd.sh and then ./sshd.sh


First user to fun_plug the dns-323.

Offline

 

#202 2008-04-14 10:01:15

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

DOH!!!!

Thanks - that sorted it!!

RAP

Offline

 

#203 2008-04-14 16:12:08

haldan
Member
Registered: 2008-04-08
Posts: 12

Re: Updated fun_plug

What is the procedure for upgrading from 0.5-experimental to 0.5? (basically from the version before these last changes to the current)

Thanks

Offline

 

#204 2008-04-14 17:07:09

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

Re: Updated fun_plug

haldan wrote:

What is the procedure for upgrading from 0.5-experimental to 0.5? (basically from the version before these last changes to the current)

Only the name changed. You can upgrade packages as usual. If you want to stay up-to-date, I suggest to mirror all the packages using rsync:

Code:

rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages .

If you don't delete the packages directory, next time, it'll download only packages that changed.

You can then change to the packages directory and run

Code:

funpkg -u *.tgz

to upgrade the packages that changed. Use "funpkg -i" to install new packages.

Note, however, that any config files, start scripts, etc in the packages will overwrite the files on disk. So if you've made changes, be sure to keep a backup copy so you can restore your version.

PS: Forgot --delete option.

Last edited by fonz (2008-04-15 23:39:37)

Offline

 

#205 2008-04-14 18:16:12

rejong
Member
Registered: 2008-04-14
Posts: 8

Re: Updated fun_plug

fonz wrote:

barcode wrote:

/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'

Can you post output of

Code:

ldd /ffp/bin/ssh-keygen

Hi, i have the same problem here is the LDD the result:

./sshd.sh start
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'
Starting /ffp/sbin/sshd
/ffp/sbin/sshd: can't resolve symbol 'program_invocation_short_name'

/mnt/HD_a2/ffp/start # ldd /ffp/bin/ssh-keygen
ldd: can't open cache '/ffp/etc/ld.so.cache'
        libcrypto.so.0.9.8 => /ffp/lib/libcrypto.so.0.9.8 (0x4000e000)
        libutil.so.0 => /ffp/lib/libutil.so.0 (0x40146000)
        libz.so.1 => /ffp/lib/libz.so.1 (0x40150000)
        libcrypt.so.0 => /ffp/lib/libcrypt.so.0 (0x4016d000)
        libresolv.so.0 => /ffp/lib/libresolv.so.0 (0x40179000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x40183000)
        libdl.so.0 => /ffp/lib/libdl.so.0 (0x401d8000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x40000000)

TIA

Offline

 

#206 2008-04-14 18:35:34

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

Re: Updated fun_plug

rejong wrote:

/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'

Are you running debian chroot or anything else 'unusual'?

I can reproduce the error by forcing ssh-keygen to to use the libraries from /lib instead of /ffp/lib like this:

Code:

# LD_LIBRARY_PATH=/lib /ffp/bin/ssh-keygen -t rsa1 -f key -N ''
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'

Running this with strace shows:

Code:

# LD_LIBRARY_PATH=/lib strace /ffp/bin/ssh-keygen -t rsa1 -f key -N '' 2>&1 | grep libc.so     
open("/lib/libc.so.0", O_RDONLY)        = 3
...

instead of

Code:

# strace /ffp/bin/ssh-keygen -t rsa1 -f key -N '' 2>&1 | grep libc.so                     
open("/ffp/lib/libc.so.0", O_RDONLY)    = 3

Offline

 

#207 2008-04-14 18:53:36

rejong
Member
Registered: 2008-04-14
Posts: 8

Re: Updated fun_plug

fonz wrote:

Are you running debian chroot or anything else 'unusual'?

I'am installing on a new CH3SNAS with the latest conceptronix 1.03 firmware. (maybe this is unusual :-) ).

Looking at your code I tried the following:

Code:

 # LD_LIBRARY_PATH=/lib /ffp/bin/ssh-keygen -t rsa1 -f key -N ''
/ffp/bin/ssh-keygen: can't resolve symbol 'program_invocation_short_name'
 
 # LD_LIBRARY_PATH=/ffp/lib /ffp/bin/ssh-keygen -t rsa1 -f key -N ''
Generating public/private rsa1 key pair.
Your identification has been saved in key.

This works, i checked my environment by

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?

TIA

Offline

 

#208 2008-04-14 19:07:41

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?

That's goofy. /lib und /usr/lib are the standard library paths. Can you find out where it is set?  What firmware version is it?

Try to clear LD_LIBRARY_PATH in /ffp/etc/rc and /ffp/etc/profile:

Code:

unset LD_LIBRARY_PATH

Offline

 

#209 2008-04-14 19:45:19

rejong
Member
Registered: 2008-04-14
Posts: 8

Re: Updated fun_plug

fonz wrote:

That's goofy. /lib und /usr/lib are the standard library paths. Can you find out where it is set?  What firmware version is it?

The unset works, I'm using the latest conceptronix firmware (v1.03)

The LD_LIBRARY_PATH is set in /etc/rc.sh, which is called from the inittab.

It all works now, thanks!

Offline

 

#210 2008-04-14 22:50:08

MeAngry
Member
Registered: 2008-04-07
Posts: 6

Re: Updated fun_plug

Oddly enough I was also having problems with the latest firmware from Conceptronic. LD_LIBRARY_PATH was also set to /lib and /usr/lib.

binutils, grep and make (amongst others) all gave these errors:

Code:

can't resolve symbol '__cxa_atexit'

And I didn't have these errors with a previous firmware. So I guess the newest one changed something. Here's the changelog:

Fixed: formatting is stopping at 94%
Fixed: DHCP server issue offering IP to client
Fixed: Scan disk failure
Change: Changing cramfs into SquashFS
Added function:  fun_plug does not work on sdb2 : Fixed.
Fixed: data corruption (files getting bigger) when storing data with alternative tools (Total Commander etc).
Added: PureFTPD supports SIZE and MDTM
Fixed: HDD1 unable to sleep in Raid1 mode
Added Request : FTP Server support option -O : ftp logging
Change: UPnP server: Refresh newly added files automatically,  so we removed the “Refresh” button and Auto Refresh Timer from the GUI. (enable / disable will re-index the total database) The database will not be updated when using FTP. This change will make the UPnP server run more stable.
Added Request : PureFTPD supports SSL
Added function: Scan Disk functionality

Offline

 

#211 2008-04-15 00:35:58

barcode
New member
Registered: 2008-04-13
Posts: 2

Re: Updated fun_plug

Try to clear LD_LIBRARY_PATH in /ffp/etc/rc and /ffp/etc/profile:
Code:

unset LD_LIBRARY_PATH

confirmed! it works. thx !

Offline

 

#212 2008-04-15 08:41:59

wonko
Member
Registered: 2008-03-21
Posts: 11

Re: Updated fun_plug

AJ wrote:

However, I may have found a solution. I used the GUI to add another user after the root entry then rebooted. I'm sure it didn't work at first but somehow, the root password seems to be maintained.

Thanks for this. I recently got a second CH3SNAS and couldn't figure out why I didn't
have any problems on the first one while configuring root access. Now I know smile


Regards,

Matthias.

Offline

 

#213 2008-04-15 10:45:10

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

Hey Fonz, what libraries was the ffp0.5 Mediatomb built with?

I ask because it seems very slow to import MP3s - I started it up to import my collection and 24 hours later it was still crawling allong adding items to the library.

RAP

Offline

 

#214 2008-04-15 10:57:02

MeAngry
Member
Registered: 2008-04-07
Posts: 6

Re: Updated fun_plug

Hmm, I'm not experiencing such problems with a 5 GB database (about 1000 songs). It's crawling for about 5 mins, and then it's done. I'm gonna test later this week with about 9000 songs, so I'll report back then.

Offline

 

#215 2008-04-15 11:02:10

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

Re: Updated fun_plug

rap wrote:

Hey Fonz, what libraries was the ffp0.5 Mediatomb built with?

I ask because it seems very slow to import MP3s - I started it up to import my collection and 24 hours later it was still crawling allong adding items to the library.

That's easy to find out:

Code:

root@bob:/lib# ldd /ffp/bin/mediatomb 
        libiconv.so.2 => /ffp/lib/libiconv.so.2 (0x4000e000)
        libmagic.so.1 => /ffp/lib/libmagic.so.1 (0x400f5000)
        libsqlite3.so.0 => /ffp/lib/libsqlite3.so.0 (0x4010f000)
        libz.so.1 => /ffp/lib/libz.so.1 (0x40173000)
        libexpat.so.1 => /ffp/lib/libexpat.so.1 (0x40190000)
        libstdc++.so.6 => /ffp/lib/libstdc++.so.6 (0x401b5000)
        libm.so.0 => /ffp/lib/libm.so.0 (0x402aa000)
        libgcc_s.so.1 => /ffp/lib/libgcc_s.so.1 (0x402c4000)
        libpthread.so.0 => /ffp/lib/libpthread.so.0 (0x402d6000)
        libc.so.0 => /ffp/lib/libc.so.0 (0x402f0000)
        ld-uClibc.so.0 => /ffp/lib/ld-uClibc.so.0 (0x40000000)

It maintains a cache in /ffp/var/mediatomb (sqlite database). The first scan takes probably longer...

Offline

 

#216 2008-04-15 11:24:08

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

Thanks fonz.

One of the opther threads debates compiling with id3lib support instead of taglib as id3lib may be fatser which was why I asked but neither of these seem present in your listing ?

RAP

Offline

 

#217 2008-04-15 11:29:52

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

Re: Updated fun_plug

rap wrote:

One of the opther threads debates compiling with id3lib support instead of taglib as id3lib may be fatser which was why I asked but neither of these seem present in your listing ?

Good point. It's because id3lib is compiled into the binary, so doesn't appear in ldd output (shows only dynamically linked libs). It's compiled with id3lib, not taglib.

Offline

 

#218 2008-04-15 12:15:21

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

Thanks again

RAP

Offline

 

#219 2008-04-17 10:06:57

poeschi
New member
Registered: 2008-04-17
Posts: 1

Re: Updated fun_plug

Hi fonz,
first of all: great work - I really appreciate it!

I have a CH3SNAS with the Conceptronic firmware 1.03 final and have installed the fun_plug-0.5 yesterday - and I ran into the same problem with the "can't resolve symbol '__cxa_atexit'" message.

I have been looking at Google about this issue and found out that other distris using busybox have the same problem (sometimes), e.g. the DD-WRT firmware for routers and even in the forum of busybox itself I found discussions about this issue.

Proposed solution from the DD-WRT forum: recreate toolchain and build GCC with option "--enable-__cxa_atexit"
Proposed solution from the busybox forum: in the uClibc .config there seems to be an option for the dynamic atexit functions. Disable, rebuild.

Currently I have to do the unset-step everytime I logon to the CH3SNAS with telnet, without I even cannot do an 'ls'.
I am not enough a Linux expert to rebuild the toolchain by myself, but I would be really happy if you consider to rebuild the toolchain to simplify my life :-) 

poeschi

Offline

 

#220 2008-04-17 16:59:03

rejong
Member
Registered: 2008-04-14
Posts: 8

Re: Updated fun_plug

hi poeschi, I also have the ch3snas.

It has to do with the LD_LIBRARY_PATH wchich is odly set in the /etc/rc.sh (in 1.03 firmware)
Solution

fonz wrote:

Try to clear LD_LIBRARY_PATH in /ffp/etc/rc and /ffp/etc/profile:

Code:

unset LD_LIBRARY_PATH

Offline

 

#221 2008-04-18 10:59:13

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

Hi fonz - any plans to build transmission and add it to the available packages?

RAP

Offline

 

#222 2008-04-18 11:06:59

pwvandeursen
Member
Registered: 2007-07-04
Posts: 112

Re: Updated fun_plug

Fonz,

do you suggest to upgrade to FW 1.04 when updating to 0.5? It is easy for me to do now, as I am reformatting every thing. I don't what to do it afterwards anymore.

So the question is have you also tested 0.5 with fw1.04 of the 323?

Thanks

Offline

 

#223 2008-04-18 13:49:31

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

Re: Updated fun_plug

pwvandeursen wrote:

do you suggest to upgrade to FW 1.04 when updating to 0.5? It is easy for me to do now, as I am reformatting every thing. I don't what to do it afterwards anymore.

So the question is have you also tested 0.5 with fw1.04 of the 323?

Don't know, firmware version should not really matter. Use whatever seems most 'stable' at the moment. (I'm still running some strange 1.04 beta version).

Offline

 

#224 2008-04-18 13:52:08

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

Re: Updated fun_plug

rap wrote:

Hi fonz - any plans to build transmission and add it to the available packages?

What about these:
http://linux.yes.nu/ffp-0.5/packages/
http://dns323.kood.org/forum/t1805-Tran … S-323.html
http://dns323.kood.org/forum/p12807-200 … tml#p12807

(found here: http://dns323.kood.org/howto:ffp )

Offline

 

#225 2008-04-18 14:27:30

rap
Member
From: Reading - UK
Registered: 2008-02-28
Posts: 119

Re: Updated fun_plug

Sorry fonz - I'm still a little confused about how things get built for the different versions of funplug . I knew there was a build for 0.4 and an early version (1.06) for 0.5.

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.

I'll remember to check the howto in future; me bad sad

RAP

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB