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

#1 2008-12-10 11:50:13

astridman
Member
Registered: 2008-12-10
Posts: 5

FFP Install Issues

Okay so I followed the nas-tweaks.net FFP install instructions and came to the step: Change Root Password

attempting to use the 'pwconv' command I get this:

# pwconv
/alt/sh: pwconv: not found

The tarball has expanded, all the files are there. So I opted to move on to loading additional packages. But when I try to rsync...again:

# rsync -av --delete inreto.de::dns323/fun-plug/0.5/packages .
/alt/sh: rsync: not found


And I dug around and found out that the rsync service is not enabled by default. Why not? Why don't the instructions explain this?

Help!

Offline

 

#2 2008-12-10 12:01:14

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

Re: FFP Install Issues

astridman wrote:

# pwconv
/alt/sh: pwconv: not found

What's /alt/ ? What's in your $PATH?

Offline

 

#3 2008-12-10 20:43:28

astridman
Member
Registered: 2008-12-10
Posts: 5

Re: FFP Install Issues

Excellent question! I dunno. Is this it?

# echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin

Offline

 

#4 2008-12-10 21:12:03

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

Re: FFP Install Issues

astridman wrote:

Excellent question! I dunno. Is this it?

# echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin

Try

Code:

/ffp/bin/sh -ls

Your $PATH should then look sth like this:

Code:

# echo $PATH
/ffp/sbin:/usr/sbin:/sbin:/ffp/bin:/usr/bin:/bin

Still, what's in /alt ? Can you post output of 'ls -R /alt', 'cat /proc/mounts' and 'uname -a'? Is it a DNS-323?

Offline

 

#5 2008-12-10 21:27:10

astridman
Member
Registered: 2008-12-10
Posts: 5

Re: FFP Install Issues

yep, it's a 323.

root@Vault:/# ls -R /alt
/alt:
busybox  sh


root@Vault:/# cat /proc/mounts
rootfs / rootfs rw 0 0
/dev/root / ext2 rw 0 0
proc /proc proc rw,nodiratime 0 0
/dev/loop0 /sys/crfs cramfs ro 0 0
/dev/sda2 /mnt/HD_a2 ext2 rw 0 0
/dev/sda4 /mnt/HD_a4 ext2 rw 0 0
devpts /dev/pts devpts rw 0 0
none /proc/bus/usb usbfs rw 0 0


root@Vault:/# uname -a
Linux Vault 2.6.12.6-arm1 #29 Wed Apr 30 10:03:59 CST 2008 armv5tejl unknown

Offline

 

#6 2008-12-11 17:05:42

statmonkey
Member
Registered: 2008-12-11
Posts: 7

Re: FFP Install Issues

This is interesting, I have both the exact same problem and the outputs of 'ls -R /alt', 'cat /proc/mounts' and 'uname -a are exactly the same.  Likewise I have a DNS-323.  Glad to see I am not crazy/the only one with this issue. Would be interested in knowing what I have done wrong.  As most people seem not to encounter this I have to assume I missed something somewhere.  I have read the ffp log and all seems normal with "tar:WARNING: Converting hard link to symlink and ending with
* OK
* Running /ffp/etc/fun_plug.init ...
* Running /ffp/etc/rc ...
* /ffp/start/syslogd.sh inactive
* /ffp/start/SERVERS.sh inactive
* /ffp/start/portmap.sh inactive
* /ffp/start/unfsd.sh inactive
* /ffp/start/nfsd.sh inactive
* /ffp/start/ntpd.sh inactive
* /ffp/start/LOGIN.sh inactive
* /ffp/start/telnetd.sh ...
Starting /ffp/sbin/telnetd -l /ffp/bin/sh
* /ffp/start/sshd.sh inactive
* /ffp/start/rsyncd.sh inactive
* /ffp/start/mediatomb.sh inactive
* /ffp/start/kickwebs.sh inactive
* /ffp/start/lighttpd.sh inactive
* /ffp/start/inetd.sh inactive
*  OK
I assume all these things start inactive until you set them up.

BTW: thanks for the advice.  Altering the PATH as suggested seems to have corrected the problem.  Still I would like to know what I did wrong.

Last edited by statmonkey (2008-12-11 17:08:57)

Offline

 

#7 2008-12-11 17:29:15

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

Re: FFP Install Issues

statmonkey wrote:

I assume all these things start inactive until you set them up.

Yes. But there's somthing strange with your firmwares. I haven't seen /alt anywhere. What firmware version is it? What busybox version is /alt/busybox? What shell is listed for root in /etc/passwd? Have you seen http://dns323.kood.org/howto:ffp#the_root_user ?

Offline

 

#8 2008-12-12 07:39:32

statmonkey
Member
Registered: 2008-12-11
Posts: 7

Re: FFP Install Issues

I have seen that thread but still having the same problem when I try to do rsynch, pwck, grpck, etc of receiving 'alt/sh: whaterver: not found


BusyBox v1.12.0.svn (2008-07-11 12:43:14 CEST) built-in shell (ash)
Firmware is 1.05

root:x:0:0:Linux User,,,:/home/root:/ffp/bin/sh
admin:x:500:500:Linux User,,,:/home/admin:/bin/sh
nobody:x:501:501:Linux User,,,:/home/nobody:/bin/sh
stat:x:502:502:Linux User,,,:/usr/share/ftp_server:/bin/sh
sshd:x:33:33:sshd:/:/bin/false

/alt/busybox
BusyBox v1.00-pre1 (2007.12.10-08:03+0000) multi-call binary

I researched this (meaning reading threads, walkthroughs, etc before attempting to install the funplug setup) and to me it seems simple enough.  Really appreciate the help as I can't think of what there could be to go wrong.  I mean, download a couple of files to the root on the first drive and reboot.  There is not much to it on the surface. 

Thanks for the help any ideas (including how to go about starting clean if I have to) would be appreciated.  FWIW I am running two 1 GB drives.  Have done nothing other than mount the primary drive in Ubuntu (using SMB), upgrade the firmware, turn on ftp, shoot the files over to the NAS and telnet in. 

Your question leads me to the firmware itself of course.  I am in Thailand (so using the asian 1.05) and wondering if I shouldn't downgrade to 1.04 in regards to capabilities would this make a difference if I want to serve music, movies, torrent and web serve (maybe set up some mysql for the music db)?

Warning: I know just enough to be dangerous

Last edited by statmonkey (2008-12-12 09:39:45)

Offline

 

#9 2008-12-12 10:53:51

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

Re: FFP Install Issues

statmonkey wrote:

Still I would like to know what I did wrong.

One more question. How are you logging in? Have you set a password for root, have you enabled login for telnet (i.e. make it ask for username+password)? Using ssh, maybe?

Offline

 

#10 2008-12-12 12:14:44

statmonkey
Member
Registered: 2008-12-11
Posts: 7

Re: FFP Install Issues

telnet

When I ssh in or attempt to I do not get a command line.  I get a blank line as if I were already in an program as opposed to a shell.  It tells me I am in busybox but typing a command (any command 'help etc) has no effect (added) except ctl+c which skips me out of the connection completely.  It seems to me that the issue is in effect before I added ssh.  If I am being clear.

I have not enabled login for telnet btw

Last edited by statmonkey (2008-12-12 12:26:09)

Offline

 

#11 2008-12-15 03:54:19

astridman
Member
Registered: 2008-12-10
Posts: 5

Re: FFP Install Issues

I remember now that I have the MODIFIED 1.05 firmware installed as mentioned here:

http://dns323.kood.org/howto:telnet

initially all I had wanted to do was insert a fun_plug script that enabled PASV FTP, and I just needed quick telnet access. Is that what has funged me up?

Offline

 

#12 2008-12-15 05:35:15

astridman
Member
Registered: 2008-12-10
Posts: 5

Re: FFP Install Issues

bonk. problem solved. (for me anyways). It was the modified 1.05 firmware.

Reverted back to the factory 1.05 and all returned to normal. Am rync'ing the 0.5 FFP packages now.

Thanks fonz!
http://tbn1.google.com/images?q=tbn:Vl99zOp5ISHhyM:http://www.stevesworld.ca/images/peter_fonz.bmp

Offline

 

#13 2008-12-17 15:34:15

statmonkey
Member
Registered: 2008-12-11
Posts: 7

Re: FFP Install Issues

I had used the same modified version.  Thanks for posting this.  I will follow your lead and see what happens.

Offline

 

#14 2008-12-20 06:44:03

statmonkey
Member
Registered: 2008-12-11
Posts: 7

Re: FFP Install Issues

The firmware versions that I attempt to install (FW1.05 - from the Singapore site or any other Asian site) all get to about 99% of the upload and then fail.  Attempted to reload original firmware from the web gui - box came with 1.04 on it.  Given these issues I am convinced my problem is firmware related and not fun plug.  The fun plug set up seems to be running fine but I am still getting the /alt/ not found issues that make going further down this path futile.  I will try to return the box to factory state again and if that fails will get in touch with DLink.  Since I don't think this is an FP problem just wanted to say thanks to those who attempted to help.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB