A new way to install 3th party zypkgs, like FFP, Dropbear, .

Marvell Kirkwood based
Post Reply
Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Sat Jun 21, 2014 12:47 am

I think you should use uwsiteloader to add picard's repo to slacker.

Or install Tweaks.

nicolasC
Posts: 2
Joined: Sun Jul 13, 2014 9:28 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by nicolasC » Sun Jul 13, 2014 9:35 am

Thank you very much for this tool

Would it be posible to add the NUT package for UPS management ?
it is indicated in the ffp directory http://downloads.zyxel.nas-central.org/ ... KAGES.html

or else please explain how to configure the UPS function of the NSA-325 v2
I plugged my eaton ellipse UPS with the serial to USB cable to the leftmost usbp port, and the maintenance screen continues to display
º This feature will not work now because there is no UPS control cable connected.

thanks

Edit/

I have access the ffp package at /pkg/ffp/
using root access, I have done:
slacker -U
slacker -i
to install nut, libtools and libusb but i have an error with libusb

======
Installed: libusb-1.0.9-arm-1
fetch: found /ffp/funpkg/cache/mz/libusb-1.0.9-arm-1.txz
/ffp/funpkg/cache/mz/libusb-1.0.9-arm-1.txz: OK

/ffp/bin/funpkg -I /ffp/funpkg/cache/mz/libusb-1.0.9-arm-1.txz

Scanning /ffp/funpkg/cache/mz/libusb-1.0.9-arm-1.txz ...
# libusb is a C library that gives applications easy access to USB devices
# on many different operating systems.
#
Reinstalling libusb-1.0.9-arm-1
Removing libusb-1.0.9-arm-1,reinstalled,20140713_104833

Searching for *.new files: /ffp/etc /ffp/start
Done.
root@N:~# nut-scanner
Cannot load USB library (libusb) : file not found. USB search disabled.
No start IP, skipping SNMP
No start IP, skipping NUT bus (old connect method)
Segmentation fault (core dumped)

gavornik
Posts: 3
Joined: Thu Aug 14, 2014 9:36 pm

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by gavornik » Fri Aug 15, 2014 7:26 am

Hello all,
I have new NSA320S with latest FW(4.70). I tried to install metarepository , but unsucessfull. I have created web_prefix file with URL but still without success. I still can not see the metarepository package in package list.
Can anyone help me sort this issue as I want to install serviio to be able to watch on my Phillips TV films with subtitles via DLNA.
Maybe is problem that ftp structure has zypkg/ instead of zypkgs/ folder?
Thanks for your help!

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Sat Aug 16, 2014 7:58 am

gavornik wrote:Maybe is problem that ftp structure has zypkg/ instead of zypkgs/ folder?
Don't think so. If you look at the 'official' repository ftp://ftp2.zyxel.com, you see the same directory structure.

Does the firmware package store work? Can you open a shell, and ping to nas-central.org?

Biker
Posts: 7
Joined: Sat Aug 16, 2014 10:35 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Biker » Sat Aug 16, 2014 10:53 am

Hello

How can I create my own zpkg?
I succesfuly make packages for slacker, but now I want to try with this.
I know that these packages are gzip files, and inside are two other (control.tar.gz data.tar.gz), etc.
Which tool I should use? Or maybe I must do that all manually? Any tips?

I will be grateful for any help ;)


add:
Oww.... Think I found...
http://zyxel.nas-central.org/wiki/Package_management
My bad... :roll:

gavornik
Posts: 3
Joined: Thu Aug 14, 2014 9:36 pm

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by gavornik » Sun Aug 17, 2014 7:39 am

Mijzelf wrote:
Don't think so. If you look at the 'official' repository ftp://ftp2.zyxel.com, you see the same directory structure.

Does the firmware package store work? Can you open a shell, and ping to nas-central.org?[/quote]

Hello, I tried to ping nas-central.org from my pc - same lan segment and I am able to ping it. Web_PREFIX file created with link http://downloads.zyxel.nas-central.org/ ... ypkg-repo/. I am able to install any package directly from zyxel store(default repository) but still not able to install or even see other packages :(

gavornik
Posts: 3
Joined: Thu Aug 14, 2014 9:36 pm

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by gavornik » Sun Aug 17, 2014 8:55 am

gavornik wrote:
Hello, I tried to ping nas-central.org from my pc - same lan segment and I am able to ping it. Web_PREFIX file created with link http://downloads.zyxel.nas-central.org/ ... ypkg-repo/. I am able to install any package directly from zyxel store(default repository) but still not able to install or even see other packages :(
Hello - problem solved :) In case that this willhappen to someone else, just delete everything from \admin\zypkgs\, then create web_prefix file and it will work. seems, that NSA have some setting cached and neets to retrieve new configuration.

Nest step - install ffp & serviio :)
Thanks to all

Biker
Posts: 7
Joined: Sat Aug 16, 2014 10:35 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Biker » Sun Aug 17, 2014 11:39 am

Is there any way to manual remove MetaRepository?
Today I saw that my package list is empty, so I tried 'Retreive List From Internet', and nothing happen. Progress bar is 0% all the time.
When I restarted zyxel, than web interface is not starting until I login through ssh and execute

Code: Select all

/etc/init.d/httpd.sh restart
How can I fix it? Or remove MetaRepository?

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Sun Aug 17, 2014 1:45 pm

Did you already create your own package? Actually I don't think MetaRepository is causing this.

But yes, of course you can remove it manually. Run

Code: Select all

/usr/local/zy-pkgs/etc/init.d/MetaRepository shutdown
/usr/local/zy-pkgs/etc/init.d/MetaRepository disable
Then have a look at /usr/local/zy-pkgs/zypkg_conf/info/MetaRepository.list. It contains a list of all files which should be deleted. Then delete /usr/local/zy-pkgs/zypkg_conf/info/MetaRepository*. And finally edit /usr/local/zy-pkgs/zypkg_conf/status to remove the MP entry.

Biker
Posts: 7
Joined: Sat Aug 16, 2014 10:35 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Biker » Sun Aug 17, 2014 2:05 pm

@Mijzelf, not yet.

I did it, reboot, but webif still don't work :(
Is there any log file from system init? Or I need use debug port?
Even after

Code: Select all

/etc/init.d/httpd.sh restart
package list is empty, and don't want to update
Crap...

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Sun Aug 17, 2014 6:29 pm

Do you have a web_prefix active? If not, have a look in /usr/local/zy-pkgs/tmp/. There should be a logfile (ridiculous big). Throw it away, and try to update the package list. Maybe the log contains a clear error.

Biker
Posts: 7
Joined: Sat Aug 16, 2014 10:35 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Biker » Sun Aug 17, 2014 7:42 pm

No, without web_prefix
Nothing happen. Still the same :roll:

This is how looks /usr/local/zy-pkgs/tmp/zypkg.log
2014-08-17 19:36:59 [7]: [zypkg_query_pkgs][521] strCmd: /usr/bin/ipkg-cl -f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp list
2014-08-17 20:35:33 [7]: [zypkg_query_pkgs][521] strCmd: /usr/bin/ipkg-cl -f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp list_builtin
2014-08-17 20:35:33 [7]: [zypkg_query_pkgs][521] strCmd: /usr/bin/ipkg-cl -f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp list_builtin
2014-08-17 20:35:35 [7]: [zypkg_query_pkgs][521] strCmd: /usr/bin/ipkg-cl -f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp newver
2014-08-17 20:35:36 [7]: [zypkg_query_pkgs][521] strCmd: /usr/bin/ipkg-cl -f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp list
2014-08-17 20:35:37 [7]: [zysh_zypkgs_updatelist_start][1261] strCmd: echo "0" > /tmp/zypkglist_download.progress
2014-08-17 20:35:37 [7]: [zysh_zypkgs_updatelist_start][1266] strCmd: touch /tmp/zypkglist_download.ongoing
2014-08-17 20:35:37 [7]: !!! [zypkg_get_server_path_from_model][318] NSA310a -> NSA310
2014-08-17 20:35:37 [7]: [zypkg_set_web_site][433] web site: "ftp://ftp2.zyxel.com/NSA310/4.70/zypkg"
2014-08-17 20:35:37 [7]: [zypkg_download_files][631] fork a download process.
2014-08-17 20:35:37 [7]: [zypkg_download_files][651] execute program "/usr/bin/ipkg-cl".
2014-08-17 20:35:37 [7]: - with args "-f /etc/zyxel/zy-pkg.conf -t /usr/local/zy-pkgs/tmp download ftp://ftp2.zyxel.com/NSA310/4.70/zypkg ZYPKG_INFO.tgz "
2014-08-17 20:35:39 [7]: [zysh_zypkgs_updatelist_showProgress][1301] "/tmp/zypkglist_download.ongoing" exists now.
2014-08-17 20:35:40 [7]: [zysh_zypkgs_updatelist_showProgress][1301] "/tmp/zypkglist_download.ongoing" exists now.
2014-08-17 20:35:41 [7]: [zysh_zypkgs_updatelist_showProgress][1301] "/tmp/zypkglist_download.ongoing" exists now.

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Sun Aug 17, 2014 7:44 pm

Can you manually download ftp://ftp2.zyxel.com/NSA310/4.70/zypkg/ZYPKG_INFO.tgz on your NAS?

Biker
Posts: 7
Joined: Sat Aug 16, 2014 10:35 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Biker » Sun Aug 17, 2014 9:00 pm

Hmmmm.. I can't.
wget ftp://ftp2.zyxel.com/NSA310/4.70/zypkg/ZYPKG_INFO.tgz
--22:59:02-- ftp://ftp2.zyxel.com/NSA310/4.70/zypkg/ZYPKG_INFO.tgz
=> `ZYPKG_INFO.tgz'
Resolving ftp2.zyxel.com... 66.171.116.27
Connecting to ftp2.zyxel.com[66.171.116.27]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /NSA310/4.70/zypkg ... done.
==> PORT ...
Invalid PORT.
Retrying.

--22:59:04-- ftp://ftp2.zyxel.com/NSA310/4.70/zypkg/ZYPKG_INFO.tgz
(try: 2) => `ZYPKG_INFO.tgz'
Connecting to ftp2.zyxel.com[66.171.116.27]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done. ==> PWD ... done.
==> TYPE I ... done. ==> CWD /NSA310/4.70/zypkg ... done.
==> PORT ...
Invalid PORT.
Retrying.
No idea why...

Mijzelf
Posts: 6207
Joined: Mon Jun 16, 2008 10:45 am

Re: A new way to install 3th party zypkgs, like FFP, Dropbea

Post by Mijzelf » Mon Aug 18, 2014 9:15 am

Well, at least it connects, and you get answer, so DNS and gateway are allright. About the actual transfer, I guess it will work if you add the --no-passive-ftp flag.

Can you check your /etc/zyxel/zy-pkg.conf, /usr/local/zy-pkgs/tmp, /i-data/md0/admin and /i-data/md0/admin/zypkgs directories for restrictive access flags?

Post Reply