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

#176 2008-04-02 14:12:40

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

Re: Updated fun_plug

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

Offline

 

#177 2008-04-02 18:56:20

icarus
New member
Registered: 2008-04-02
Posts: 3

Re: Updated fun_plug

Tanks Fonz! Now it's all perfect! Congratulation for your work!

Offline

 

#178 2008-04-03 18:40:17

zehninguem
Member
Registered: 2008-04-03
Posts: 5

Re: Updated fun_plug

Can I upgrade fun_plug 0.3 to 0.5 or do I need to uninstall 0.3 and reinstall 0.5?
If I can upgrade, how can I do it? Did not find upgrade instructions at the README.TXT

Tks

Offline

 

#179 2008-04-03 19:22:31

Tester
Member
Registered: 2007-02-23
Posts: 23

Re: Updated fun_plug

Hi zehninguem,

if your read the readme for 0.3 and 0.4 you will see, that there is no really "update" possible.

Always rename old fun_plug.d directory and fun_plug file:

  mv fun_plug fun_plug.bak
  mv fun_plug.d fun_plug.d.bak

It means, it is always a full installation with new files.

regards

Tester

Offline

 

#180 2008-04-03 20:14:51

zehninguem
Member
Registered: 2008-04-03
Posts: 5

Re: Updated fun_plug

Thanks Tester

Now I really just read the 0.5 README (read 0.3 long time ago).

Offline

 

#181 2008-04-05 02:04:33

ChamPro
Member
Registered: 2008-04-05
Posts: 12

Re: Updated fun_plug

quick question... I installed funplug 0.5 on my DNS 323 with no problems, installed the OpenSSH package, but now I can't start the service or change the user information.

The directions for funplug 0.3 and 0.4 don't work. Whenever I try to use one of the commands (sshd, ssh-add) I just get "ssh: can't load library 'libcrypto.so.0.9.8'" It's not in /lib and I don't see that library in any of the other packages.

Thanks.

Offline

 

#182 2008-04-05 03:15:18

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

Re: Updated fun_plug

libcrypto.so is part of the openssl package.

Offline

 

#183 2008-04-05 08:32:10

ChamPro
Member
Registered: 2008-04-05
Posts: 12

Re: Updated fun_plug

KyleK wrote:

libcrypto.so is part of the openssl package.

Thanks for the tip. Now I have ssh working and running on startup. I can login via ssh, but I don't get a usable prompt. All I get is:

Code:

BusyBox v1.00-pre1 (2006.07.17-10:17+0000) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

Typing comands does nothing and I just have to Ctrl-C the connection.

Offline

 

#184 2008-04-05 12:48:27

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

Re: Updated fun_plug

I haven't (yet) hacked the openssh package as I did with dropbear. Openssh runs the shell from /etc/passwd, while dropbear always ran /ffp/bin/sh. You can either change your shell in /etc/passwd or relink /bin/sh to /ffp/bin/busybox or /ffp/bin/bash.

PS: Enter 5784468 to unlock that shell.

PPS: Attached is a small start-script to automatically fix /etc/passwd on boot. Copy it to your dns, move it to the /ffp/start directory and make it executable. No need to reboot, just run:

Code:

chmod a+x /ffp/start/passwd.sh
/ffp/start/passwd.sh start

Then check /etc/passwd for /ffp/bin/sh instead of /bin/sh in the last column.

Last edited by fonz (2008-04-05 13:02:29)


Attachments:
Attachment Icon passwd.sh, Size: 351 bytes, Downloads: 1,135

Offline

 

#185 2008-04-08 01:06:10

ChamPro
Member
Registered: 2008-04-05
Posts: 12

Re: Updated fun_plug

Thanks for the help. The PPS step worked just fine.

Small request, how about a simpler text editor package? Nano or pico maybe? VI is a pain in the butt.

SSH for transfer and browsing is way better for my purposes than samba.

Offline

 

#186 2008-04-08 08:46:16

mrmiketheman
Member
Registered: 2007-08-16
Posts: 10

Re: Updated fun_plug

Using fonz's outstanding funplug 0.5 with openssh and keep getting "WARNING: Your password has expired. You must change your password now and login again!"  I'm using SSH Secure Shell v3.2.9 on Windoze XP SP2 (but I don't think it's a client issue). DNS-323 is FW 1.04.

I didn't have this problem with dropbear...but it sounds like you hacked dropbear to use /ffp/bin/ssh.  So I installed and successfully ran the passwd.sh you provided in post #184.  Still the same problem. I've changed the password, but the next time I login, same error. I've played with the sshd_config, but no luck.  It looks like ssh V1 supported a construct of "ForcePasswdChange No" (spelling in this email may not be precise), but this version doesn't like that option.

Thanks for any options you all might suggest. I'd hate to go back to 0.3.

Offline

 

#187 2008-04-08 12:59:43

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

Re: Updated fun_plug

mrmiketheman wrote:

WARNING: Your password has expired. You must change your password now and login again!

If
1. you've installed the shadow package (i.e. /ffp/var/packages/shadow-4.0.18.2-1 exists)
2. output of 'cat /etc/shadow' does not contain the user in question, and
3. 'chage --list XXX' (XXX = user in question) also tells that the user must change password,
run "pwconv", redo above checks, retry ssh login. If that solved the problem, either get and run the store-passwd.sh script from 0.3/0.4, or add the call to pwconv to the passwd.sh start script.

Offline

 

#188 2008-04-08 17:41:19

mrmiketheman
Member
Registered: 2007-08-16
Posts: 10

Re: Updated fun_plug

YEAHHH  FONZ! 

So for others who encounter a problem logging in as root with SSH under fonz 0.5. Here are the detailed instructions for installing openssh on fonz 0.5.

1. Download openssh and shadow from fonz's 0.5 distribution http://www.inreto.de/dns323/fun-plug/0.5-experimental/

2. funpkg -i the openssh, openssl (for libcrypt), and shadow packages (I don't recall any other dependencies, perhaps others can comment).

3. Add root to the /etc/shadow password file using fonz's "Setting Passwords" instructions at http://www.inreto.de/dns323/fun-plug/0.3/ (attached below). First add root to /etc/shadow, THEN while logged in as root, run passwd to set the root passwd in the /etc/shadow file.

4. 'chage -l root' will show when the password expires (note first field)
       # chage -l root
       Last password change                                    : password must be changed
       Password expires                                        : never
       Password inactive                                       : never
       Account expires                                         : never
       Minimum number of days between password change          : 0
       Maximum number of days between password change          : 99999
       Number of days of warning before password expires       : 7
   

5. 'chage -d 2008-04-04 root' will change the last password change date to something more current

6. 'pwconv' will copy changes from /etc/passwd to /etc/shadow

6. Since store-passwd.sh is NOT included in 0.5 yet, I've attached it below from the 0.3 distribution. Make sure you run store-passwd.sh at the end to save your changes to NVRAM, otherwise you'll get to do all of this again at the next reboot smile

ADDENDUM:
--------------
http://www.inreto.de/dns323/fun-plug/0.3/  change root password excerpt.
      -- Setting passwords --

      passwd and smbpasswd can be used to change passwords on the command
      line. To make password changes permanent (i.e. survive reboots), the
      changed password files must be written to flash memory. A script is
      included for that purpose. After running passwd or smbpasswd, run:

       store-passwd.sh

      By default, root has no entry in /etc/shadow and passwd will store
      the password in /etc/passwd instead. If you want your root password
      in /etc/shadow, you can manually add an entry before running passwd:

       echo "root::0:0:99999:7:::" >>/etc/shadow

      IMPORTANT: Be sure you run the command exactly as shown. Screwing up
      the shadow file can cause serious problems.

Last edited by mrmiketheman (2008-04-10 05:47:56)

Offline

 

#189 2008-04-08 22:42:11

rori
Member
Registered: 2007-09-29
Posts: 49

Re: Updated fun_plug

Hello fonz,

is there a way to include the command "convmv" into your experimental 0.5 funplug?

This would put me into a position to rescue filenames that have been spoiled due to D-Links messy Samba implementation.

The issue is described here

http://dns323.kood.org/forum/t1691-Prob … -1.04.html

along with the solution - unfortunately my Linux-skills are not good enough...can you help?

Last edited by rori (2008-04-08 22:42:45)


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#190 2008-04-08 23:14:11

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

Re: Updated fun_plug

rori wrote:

convmv

Simple enough. Please try it and let me know if it works as expected. Note that you need perl, too.

Offline

 

#191 2008-04-09 20:52:06

rori
Member
Registered: 2007-09-29
Posts: 49

Re: Updated fun_plug

Hi fonz,

thank you for the fast response. I started from scratch and delete the ffp directory and also the directory with the packages and reinstalled a fresh funplug 0.5, and rsynced as described in the howto.

Then I installed succesfully:

Code:

/mnt/HD_a2/packages #     funpkg -i *.tgz
Installing package apr-1.2.12-1 ...
.
(lot of packages here)
.
[b]Installing package convmv-1.12-1 ... [/b]
.
(even more packages here)
.
Installing package zlib-1.2.3-2 ...

/mnt/HD_a2/packages # cd ..
/mnt/HD_a2 # cd mnt
/mnt/HD_a2 # cd MP3
/mnt/HD_a2/MP3 # cd Die\ Ärzte/
/mnt/HD_a2/MP3/Die Ärzte # convmv -f ISO-8859-1 -t utf-8 -r *.*
/ffp/bin/sh: convmv: not found
/mnt/HD_a2/MP3/Die Ärzte #

Within this directory all "Ä"-characters are spoiled - unfortunaltely convmv is not working. Rebooting does not help.

What do I do wrong?

Regards from Flensburg


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#192 2008-04-09 21:55:47

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

Re: Updated fun_plug

rori wrote:

/mnt/HD_a2/MP3/Die Ärzte # convmv -f ISO-8859-1 -t utf-8 -r *.*
/ffp/bin/sh: convmv: not found

I forgot to patch the script interpreter, it seems. This should fix it for now:

Code:

ln -s /ffp/bin/perl /usr/bin/perl

Offline

 

#193 2008-04-09 23:04:25

rori
Member
Registered: 2007-09-29
Posts: 49

Re: Updated fun_plug

Thanks, now convmv runs. Let's see if it will fix the Samba mess. Thanks for your help!


DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#194 2008-04-10 11:04:20

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

Re: Updated fun_plug

Thank you fonz for the 0.5-Funplug. At the momentan i am looking at the source-codes in your SVN. Nice work!

I'm wondering, if it would be possible to include mysql into php? You already linked to an example for MySQL-Server (@Wiki:
http://dns323.kood.org/forum/t1737-MySQL-DNS-323.html), but i'd like to use it from PHP smile

Offline

 

#195 2008-04-10 21:55:35

rori
Member
Registered: 2007-09-29
Posts: 49

Re: Updated fun_plug

Hi fonz,

thanks again for implementing convmv into your funplug0.5. I just wanted to give you feedback-it works 100%

However there is some strange message coming up regarding pearl. It did not cause any trouble with this program but maybe it means something to other programs installed ?

Code:

/mnt/HD_a2 # convmv -f cp850 -t utf-8 -r *
Your Perl version has fleas #37757
Starting a dry run without changes...

DNS-323 / firmware 1.08b9
fonz funplug ffp:v0.5
firefly: svn-1735 (via funplug) with ogg and flac support streaming to Pinnacle Soundbrigde Home Music firmware 3.0.52
HDD: 2x1,5 TB Seagate HD154UI Rev: 1AG0 in RAID1-mode

Offline

 

#196 2008-04-10 22:06:23

kikkeraap
Member
Registered: 2008-03-19
Posts: 17

Re: Updated fun_plug

Hi Fonz,

Your work is super! There are already many packages for ffp 0.5. Is it possible that you also make SABnzbd avaible so it is not required to run it via a chrooted debian? THNX!

Offline

 

#197 2008-04-13 17:29:44

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

Re: Updated fun_plug

0.5 has not caused any disasters so far, so it's time to remove the 'experimental' warning. (It's still beta, though)

New location is: http://www.inreto.de/dns323/fun-plug/0.5/

A wiki page with detailed instructions is growing here: http://dns323.kood.org/howto:ffp

I've added quite a few programs to the install tarball to make 0.5 as convenient to install and use
as possible:

    * Lighttpd Web Server
    * OpenSSH Secure Shell
    * Mediatomb UPnP Media Server
    * NTP Network Time Daemon
    * UNFS3 User-Space NFS Server
    * NFS-Utils NFS Server (required kernel support)
    * RSync File Transfer Utility

Please report trouble and suggestions here, as usual.

Offline

 

#198 2008-04-13 21:07:23

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

Re: Updated fun_plug

thanks fonz for the good work,

anyway, I have trouble getting the sshd server (0.5) to run on my CH3SNAS (latest firmware 1.3).

when I telnet in and do a:
> sh /mnt/HD_a2/ffp/start/sshd.sh start

it says:

Code:

/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'

Am i missing something? It worked correctly with dropbear under 0.3.
Any advice ?


Greetings,
barcode

Last edited by barcode (2008-04-13 21:08:24)

Offline

 

#199 2008-04-14 00:06:58

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

Re: Updated fun_plug

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

Offline

 

#200 2008-04-14 09:20:49

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

Re: Updated fun_plug

Hi fonz,

I've just tried to get 0.5 up and running and have copied across the files and re-booted which correctly created the ffp files.

I have telnet'd to the 323 OK but when I try and run any of the start scripts I get a message that permission is denied:


/mnt/HD_a2/ffp/start # ./sshd.sh
/ffp/bin/sh: ./sshd.sh: Permission denied

/mnt/HD_a2/ffp/start # ./mediatomb.sh
/ffp/bin/sh: ./mediatomb.sh: Permission denied

I was already using 0.4 to ssh to the box so have my root password set OK so was (optimistically) hoping the all I needed to do to get ssh connection under 0.5 was to start the sshd

Any ides what I may have done wrong?

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB