General NAS-Central Forums

Welcome to the NAS community
It is currently Mon Oct 23, 2017 7:59 am

All times are UTC




Post new topic Reply to topic  [ 121 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next
Author Message
PostPosted: Mon Mar 24, 2014 7:29 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
Wiki entry


MetaRepository
After reading about problems with FFP on an NSA325v2 fw 4.70, and questions about how to host/test your own packages, I thought there should be a better way.

And now I proudly present: MetaRepository

What it is
Basically it's an CGI script which runs locally on the NAS. Using the web_prefix file the package manager is pointed to it. The script downloads the ZYPKG_INFO.tgz or ZYPKGS file from several repositories, and combines that to a single file, on base of (alphabetically) sorting the packages. Further it keeps a database of origin of all those packages, and when requested it downloads and offers them.

How to install
Enter the url http://downloads.zyxel.nas-central.org/Users/Mijzelf/zypkg-repo/ in web_prefix, or download it here. This file (web_prefix) should be put in \\NAS\admin\zy-pkgs\. Then in the package menu press on the 'Retreive List From Internet' button. Only the MetaRepository package should show up. Install it, and re-request the list. You should see the official Taiwanese repository, merged with mine (ffp, btsync, anyterm, MetaRepository, MidnightCommander, Dropbear). If you still see only MetaRepository, disable it, enable it again, and retry.

How to configure
In the package menu you can see the configuration page of MetaRepositoy. Here you can enter the source repositories. Further you can blacklist packages, and 'pushlist' them.
A word on 'pushlisting': As said, the packages are sorted alphabetically, and then the 'highest value' is chosen. Now the official repository contains a nzbget 9.x, while the beta repository contains a nzbget 11.x. Unfortunately 11 has a lower alphabetically value than 9. You can push nzbget 11, which actually means it's exchange by nzbget z11, restoring the wanted sequence.

How to create your own (local) repository
Just put the package(s) in a share, in combination with a describing ZYPKGS file (case sensitive). Add the full path to the 'Repositories' list. Done.
You can also supply a ZYPKG_INFO.tgz if you like. The script first tries to download/copy the ZYPKG_INFO.tgz file, and if that fails it tries ZYPKGS.

After you installed MetaRepository, you get access to this additional packages:

Dropbear
Dropbear is a lightweight SSH/SCP server.

MidnightCommander
Midnight commander is a powerful text-based visual file manager, running in a shell. So you can use it in a telnet, ssh or anyterm session.

Anyterm
Anyterm is a shell in a browser. Using this package you can simply open a shell by clicking a link in the packages menu.

FFP
Of course.

Tweaks
Firmware tweaks.
Currently:
  • Telnet; Enable telnet daemon, specifiy port, possibly loginless.
  • Cron; add own jobs, including @reboot and @shutdown
  • Ftp; specify server address, enable force ftps.
  • Misc; Change homedir of root and/or admin

btsync
Some torrent base directory sync program.


Top
 Profile  
 
PostPosted: Tue Mar 25, 2014 11:01 am 
Offline

Joined: Sun Jan 26, 2014 7:27 pm
Posts: 4
is this only for NSA-325?
i added http://downloads.zyxel.nas-central.org/ ... ypkg-repo/ to my web_prefix but no additional repo.
I use NSA320 firmware 4.62


Top
 Profile  
 
PostPosted: Tue Mar 25, 2014 11:40 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
No. It's supposed to work for all devices running fw 4.40 and newer. ('210, '221, '310(S), '320(S) '325(v2)). I tested it only on a 325v1 (the only box I have), but here I have feedback that it actually works on a 320.

You cannot create the web_prefix file with something like notepad. It should contain one line, ended with a linefeed LF. Notepad will add a CR LF. Try to use the provided web_prefix on the download page.


Top
 Profile  
 
PostPosted: Tue Mar 25, 2014 5:37 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
Nice job, BTW, M.
Maybe it is worth to add additionally something like FFP-zypkgs metarepository to the title of this topic?
And make it sticky?


Top
 Profile  
 
PostPosted: Tue Mar 25, 2014 7:50 pm 
Offline

Joined: Tue Jan 07, 2014 5:34 pm
Posts: 11
Thanks for posting this. Worked great for me. Can't wait to see what gets added to the repo.


Top
 Profile  
 
PostPosted: Tue Mar 25, 2014 8:26 pm 
Offline

Joined: Sun Mar 23, 2014 11:44 am
Posts: 2
Nice work.
I can now finally install FFP on NSA320S 4.70


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 6:27 am 
Offline

Joined: Tue Apr 17, 2012 7:45 am
Posts: 63
One question: what would happen with the existing ffp package?

_________________
ZyXEL NSA-310 FW 4.70(AFK.1) MetaRepository + Fonz Fun Plug 0.7zypkg004


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 10:09 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
You mean, when installing zypkg004? Basically nothing. The script will detect that an existing ffp installation exists, and leave that alone. BTW, installing zypkg004 won't give you much added value. (Release notes)


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 11:25 am 
Offline

Joined: Tue Apr 17, 2012 7:45 am
Posts: 63
Mijzelf wrote:
You mean, when installing zypkg004? Basically nothing. The script will detect that an existing ffp installation exists, and leave that alone. BTW, installing zypkg004 won't give you much added value. (Release notes)

I have already installed ffp zypkg004 (I've forgotten to update my signature). My question was what would happen if I install this new package with already installed ffp zypkg004? Do I have to disable/uninstall it first?

_________________
ZyXEL NSA-310 FW 4.70(AFK.1) MetaRepository + Fonz Fun Plug 0.7zypkg004


Top
 Profile  
 
PostPosted: Fri Mar 28, 2014 11:53 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
I think there is some misunderstanding in what MetaRepository actually is. It is just a package which dynamically merges several repositories, so nothing will happen to your current packages. You will only have a longer package list in the packages menu.


Top
 Profile  
 
PostPosted: Sun Mar 30, 2014 12:16 am 
Offline

Joined: Sat Jan 18, 2014 3:03 am
Posts: 10
I gave it a shot on my nsa320 just for kicks. Swapped out my web prefix for yours and it doesnt give me any error messages, just says I need to hit the download from internet button. Upon putting the initial web prefix back, all is good again. Did I miss something obvire.ous he


Top
 Profile  
 
PostPosted: Sun Mar 30, 2014 10:54 am 
Offline

Joined: Sun Mar 30, 2014 10:42 am
Posts: 1
^^^^ Same as! Sounds like a great addition though Mijzelf! Any ideas on what may be going wrong with this? Trying to load it to an NSA310 here myself but just get the following message when I click the 'Retrieve List from Internet' button -

Currently, there are no packages. Please use "Retrieve List From Internet" to update package list.

Package list remains blank unless I restore my original web_prefix file.

I tried adding it both under windows and linux in case that was the problem but still not working.


Top
 Profile  
 
PostPosted: Sun Mar 30, 2014 1:25 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6049
Two fails on the same morning? Have you checked if downloads.zyxel.nas-central.org was available on that very moment? And also, did you download the web_prefix file, or did you create your own?


Top
 Profile  
 
PostPosted: Sun Mar 30, 2014 2:58 pm 
Offline

Joined: Sat Jan 18, 2014 3:03 am
Posts: 10
I tried both last night, but I never tried to see the link was working though.


Top
 Profile  
 
PostPosted: Mon Mar 31, 2014 11:54 am 
Offline

Joined: Tue Apr 02, 2013 11:50 am
Posts: 24
Does the script change the permissions for the folder /usr/local/zy-pkgs by any chance? I have SSH set up to only accept key authentication, and after installing MetaRepository, I couldn't ssh anymore. Finally got some debugging messages going, and the error being given was: "bad ownership or modes for directory /usr/local/zy-pkgs". Checked the permissions for that directory, and it was 777, owned by nobody. All the other directories in /usr/local/ were owned by root and had 755 permissions. Changed zy-pkgs to that, and SSH started working again.

If I click "Retrieve List from Internet" in the admin UI, the permissions are reset, so I'm locked out again until I can get access to the Telnet backdoor.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 121 posts ]  Go to page 1, 2, 3, 4, 5 ... 9  Next

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 78 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group