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.

#1 2009-05-19 21:01:39

drick1
Member
Registered: 2009-05-19
Posts: 36

unable to access via ssh after ffp upgrade

hi, i just upgrade all of my ffp packages per the instructions and all went as expected.

i then rebooted the unit, and no longer have ssh access. i had already turned off telnet as well, so now i don't have command line access anymore.

reading the instructions, i don't think that i had any custom scripts or configurations that would have been stepped on, but apparently i was wrong.

any suggestion on how to get back aside from a fresh installation?

i''m rebooting again right now to see if this fixes it.


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#2 2009-05-19 21:11:25

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

Re: unable to access via ssh after ffp upgrade

That's a known problem (search the page for "pitfalls"):
http://nas-tweaks.net/CH3SNAS:Tutorials/ffp-packages

However, it's simple to re-enable telnet. See the note at the end of "The root user":
http://dns323.kood.org/howto:ffp#the_root_user

Offline

 

#3 2009-05-19 21:27:45

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

just to make sure i don't screw this up again.

i download the new fun plug here http://dns323.kood.org/forum/attachment.php?item=319, reboot which then sets up telnet again.

i then go through and redo all the setup like a 1st time install, right?


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#4 2009-05-19 21:31:21

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

Re: unable to access via ssh after ffp upgrade

drick1 wrote:

i download the new fun plug here http://dns323.kood.org/forum/attachment.php?item=319, reboot which then sets up telnet again.

Yes.

drick1 wrote:

i then go through and redo all the setup like a 1st time install, right?

Not necessary. Just chmod a+x /ffp/start/sshd.sh to reenable ssh, and test it. If it works, you can disable telnet again. The fun_plug.tgz from the above post doesn't overwrite anything except the telnet start script.

Offline

 

#5 2009-05-19 21:47:46

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

ok, i'm back in with ssh now but the path is messed up and i can't run any commands.

examples

~ # pwconv
-sh: pwconv: not found

~ # clear
-sh: clear: not found


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#6 2009-05-19 21:50:56

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

Re: unable to access via ssh after ffp upgrade

drick1 wrote:

ok, i'm back in with ssh now but the path is messed up and i can't run any commands.

oh well, yes. I think this happens when you don't upgrade funpkg first. Look for /ffp/etc/profile.new, and rename it:

Code:

cd /ffp/etc
mv profile.new profile

Offline

 

#7 2009-05-19 22:02:37

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

as a point of reference i did actually upgrade funpkg 1st as the instructions stated. there is no profile file in that directory

/mnt/HD_a2/ffp/etc # ls -la | grep profile
drwxr-xr-x    2 root     root         4096 Oct 25  2008 profile.d


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#8 2009-05-19 22:04:34

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

Re: unable to access via ssh after ffp upgrade

There should be one. In that case, try reinstalling the ffp-scripts package using

Code:

funpkg -I ffp-scripts-0.5-18.tgz

Offline

 

#9 2009-05-19 22:28:11

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

where should i run this from? since the path is messed up i have to run it from the directory where the file is, and i'm not sure where that is.

it's not in /mnt/HD_A2 or /mnt/HD_A2/packages


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#10 2009-05-19 22:41:05

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

Re: unable to access via ssh after ffp upgrade

Just fix the PATH before running funpkg:

Code:

export PATH=/ffp/sbin:/ffp/bin:$PATH
cd /where/your/downloaded/packages/are
funpkg -I ffp-scripts-0.5-18.tgz

Offline

 

#11 2009-05-19 22:57:24

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

ok, done.

do i need to reboot the box or run any scripts for the changes to take effect?


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#12 2009-05-19 23:01:44

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

Re: unable to access via ssh after ffp upgrade

just close your session (type exit, close window), and reconnect.

Offline

 

#13 2009-05-19 23:07:43

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

SUCCESS!!

man, that was harder than doing a fresh install!


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#14 2009-05-19 23:17:11

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

Re: unable to access via ssh after ffp upgrade

Sorry for the trouble, I was lazy and didn't make a fresh fun_plug.tgz for quite some time. I did make a new one now, so these problems hopefully go away now.

Offline

 

#15 2009-05-19 23:22:28

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

no problem at all, if i knew my way around linux better it would be a lot easier.

thank you for authoring such a great tool, and for all of the help.


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

#16 2009-05-20 01:36:28

drick1
Member
Registered: 2009-05-19
Posts: 36

Re: unable to access via ssh after ffp upgrade

just went through the same process for my 323, it's a LOT easier the second time around


DNS-343 v1.03 + ffp 0.5 (3 units)
8x750GB + 4x2TB Seagate HDD's / RAID5 / EXT3
DNS-323 v1.8b + ffp 0.5 (1 unit)
2x750GB Seagate HDD's / RAID1 / EXT3

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB