Zyxel Deutschland Forum - Herzlich Willkommen!

Für Support Anfragen nutzen Sie http://support.zyxel.eu oder als Fachhändler http://partner.zyxel.eu
Aktuelle Zeit: Dienstag 26. September 2017, 11:05

Alle Zeiten sind UTC + 1 Stunde [ Sommerzeit ]



 


Ein neues Thema erstellen Auf das Thema antworten  [ 124 Beiträge ]  Gehe zu Seite 1, 2, 3, 4, 5 ... 9  Nächste
Autor Nachricht
 Betreff des Beitrags: New package: Entware-ng
BeitragVerfasst: Sonntag 17. Januar 2016, 00:12 
Offline
Open Source Hero

Registriert: Dienstag 24. Juni 2008, 10:33
Beiträge: 2185
What is it?
Entware-ng is a software repository for embedded devices like routers and network attached storages. The project is started to offer an alternative for the very outdated Optware packages.

Entware-ng is installed in /opt, and is self containing. The binaries are not dependent on any firmware library, all needed libraries are installed in /opt/lib. Entware-ng is available for ARMv5, ARMv7, Mipsel, x86 and AMD64.

Entware-ng uses the opkg package manager.

Entware-ng has at the moment more than 1800 packages.

Entware-ng vs FFP
Both Entware-ng and FFP are self-containing, and independent of firmware libraries. Entware-ng installs in /opt, FFP in /ffp.

FFP is aging. The base system is unmaintained, and it dates from 2012. 3th party developers are doing a lot of work to update parts of it, but for beginners it's hard to gather the newest packages together, partly due to a missing package management.
Entware-ng is alive and kicking, and it has a proper package management. If you install a package, all it's dependencies are automatically installed either. The same is true for upgrading a package.

FFP is designed for NAS boxes. As on a NAS storage room is seldom an issue, the packages are in most cases not trimmed down. Entware-ng is more or less based on OpenWRT, which is an OS for embedded routers. On those boxes storage and ram are sparse, and for that reason the packages are slimmed down.
For instance, Asterisk on Entware-ng is splitted in 180 subpackages. This way you don't need to use storage room for functionality you don't need. On FFP Asterisk is a single package. This puts the 1800 packages of Entware-ng in perspective.

FFP is available in 2 tastes, ARMv5 EABI and ARMv5 OABI. OABI is past tense, only EABI remains. The NAS500 series has an ARMv7 processor. ARMv5 software runs on that, but not as fast as ARMv7 software. Entware-ng has both ARMv5 and ARMv7. Does that matter? Maybe. If your software is CPU limited, it matters. Not much, but measurable.
For instance, encryption. A simple test, encrypt 256MiB of zero's:
dd if=/dev/zero bs=1M count=256 | openssl aes-256-cbc -k "test" >/dev/null

Result, openssl from the armv5 repo on my NAS520:
268435456 bytes (256.0MB) copied, 16.385330 seconds, 15.6MB/s

armv7:
268435456 bytes (256.0MB) copied, 15.300344 seconds, 16.7MB/s

Almost 10%. By the way, in this special case you'd better use the firmware openssl:
268435456 bytes (256.0MB) copied, 11.212898 seconds, 22.8MB/s

Entware-ng armv7 is soft-float, while the Mindspeed 2000 has hardware floating point support. The firmware uses that, Entware-ng doesn't. (Nor does FFP)

As FFP is installed in /ffp. and Entware-ng in /opt, they can coexist.

How to install
Install MetaRepository, and Entware-ng should show up in the package list.

Entware-ng-stick
If you want a self-containing stick, download the latest zipfile here, unzip it to a FAT formatted stick, read the readme file, plug the stick in the NAS and boot it.

It is als possible to let the zypkg start Entware-ng from an usb stick, or an SD card. By default it's installed in /i-data/sysvol/.PKG/Entware-ng/opt/ (/usr/local/zy-pkgs/opt on fw 4). You can copy (or move) this to an usb stick (need to have an ext file system), and put an (executable) script redirect.sh in the old opt/ directory. The output (stdout) of that script should be the opt directory on the stick/SD card.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 00:50 
Offline
engagiertes Mitglied

Registriert: Freitag 4. September 2015, 19:02
Beiträge: 259
Danke :respekt:

Mal ein paar Fragen:

Gibt es ein echtes rsync?
Gibt es ein GUI für die Packages oder ist das was für Befehlszeilen-Freaks?

_________________
Beste Grüße
Ralf

QNAP TS-453Pro/16GB (Live)
QNAP TS-431+ (Backup/Versionierung)
QNAP 451/8GB (Backup/Archiv/Media-Center)
Zyxel NAS540 (Experimental)


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 10:53 
Offline
Open Source Hero

Registriert: Dienstag 24. Juni 2008, 10:33
Beiträge: 2185
Yes, it has an rsync (just like RandomTools has)
No there is no GUI.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 10:59 
Offline
engagiertes Mitglied

Registriert: Dienstag 22. Januar 2013, 12:49
Beiträge: 396
Es ist eigentlich relativ einfach etwas zu installieren. Man schaut in die vorhandene Liste, und gibt am Ende nur /opt/bin/opkg install ... ein.
So kann man am Ende sehr schnell ein eigenes Pyload installieren.
Mich interessiert aber, wenn ich von FFP auf entware-ng umsteige, kann ich einfach meine alten scripte verwendne, die unter /ffp/start liegen? wenn ja, wo muss ich die rein kopieren.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 11:36 
Offline
Hilfesuchender
Benutzeravatar

Registriert: Dienstag 24. November 2015, 11:04
Beiträge: 3
Ich habe das mit FFP nie begriffen und verstehe das engl. Tut hier aus dem Forum einfach nicht. Deshalb konnte ich den Plexserver bis jetzt nicht nutzen. Auf meinen alten Asus RT-N16 Router habe ich paar Sachen mit Entware gemacht und pyload getestet. Für mich war es wesentlich leichter einzulesen und es gibt viele komplette Tuts im Netz. Meine grosse Frage...

Kann mit Entware auch ein Plexserver installiert werden bzw. kann hier ein ähnliches Tut von anderen NAS Herstellern oder von der Plex Supportseite mit den gleichen Befehlen genutzt werden.

z.B. die .qpkg oder .spk von Qnap/Synology ARMv7 von https://plex.tv/downloads in .opkg umbenennen und nutzen?

_________________
ZyXEL NAS540 Firmware V5.10(AATB.2)

Slot1: WED RED 2TB 3.5 Zoll
Slot2: Toshiba 2TB 3.5 Zoll
Slot3&4:WD Blue 500GB 2.5 Zoll Raid1
USB: 250GB WD Blue Backup


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 12:53 
Offline
Forum Ehrenmitglied
Benutzeravatar

Registriert: Montag 30. November 2009, 20:18
Beiträge: 3027
da fehlt noch irgend wo ein :wink:
Code:
export PATH=/opt/bin:$PATH


Zitat:
/ffp/bin/funpkg -r htop-1.0-arm-0

Removing htop-1.0-arm-0
rm ffp/bin/htop
rm ffp/share/applications/htop.desktop
rm ffp/share/man/man1/htop.1
rm ffp/share/pixmaps/htop.png
rmdir ffp/share/pixmaps/
rmdir ffp/share/applications/

Searching for *.new files: /ffp/etc /ffp/start
Done.
root@nas540:~# opkg install htop
-sh: opkg: command not found
root@nas540:~# opkg update
-sh: opkg: command not found
root@nas540:~# ls
root@nas540:~# cd /opt
root@nas540:/opt# ls
bin etc lib sbin share tmp usr var
root@nas540:/opt# cd bin
root@nas540:/opt/bin# ls
find locale.new localedef.new opkg xargs
root@nas540:/opt/bin# opkg update
-sh: opkg: command not found
root@nas540:/opt/bin# ./opkg update
Downloading http://pkg.entware.net/binaries/armv7/Packages.gz.
Updated list of available packages in /opt/var/opkg-lists/packages.
Downloading http://downloads.zyxel.nas-central.org/ ... ackages.gz.
Updated list of available packages in /opt/var/opkg-lists/Mijzelf.
root@nas540:/opt/bin# ./opkg install htop
Installing htop (1.0.3-1) to root...
Downloading http://pkg.entware.net/binaries/armv7/h ... v7soft.ipk.
Installing libncurses (6.0-1) to root...
Downloading http://pkg.entware.net/binaries/armv7/l ... v7soft.ipk.
Configuring libncurses.
Configuring htop.
root@nas540:/opt/bin# htop
-sh: htop: command not found

Code:
root@nas540:/opt/bin# export PATH=/opt/bin:$PATH
root@nas540:/opt/bin# htop

 1  [||||****                              17.7%]     Tasks: 66, 39 thr; 1 running
  2  [|*****                                12.4%]     Load average: 1.06 1.04 1.09
  Mem[|||||||||##********************** 187/987MB]     Uptime: 04:42:06
  Swp[                                   0/1951MB]


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 14:36 
Offline
Open Source Hero

Registriert: Freitag 3. Januar 2014, 12:20
Beiträge: 243
Zitat:
FFP is aging. The base system is unmaintained, and it dates from 2012. 3th party developers are doing a lot of work to update parts of it, but for beginners it's hard to gather the newest packages together, partly due to a missing package management.
Entware-ng is alive and kicking, and it has a proper package management. If you install a package, all it's dependencies are automatically installed either. The same is true for upgrading a package.


Does this mean your are planning to phase out FFP for ZyXEL NASes, at least slowly but surely? This would make sense. To stimulate (without pushing?) users with "NASxxx" devices to make the switch towards Entware-ng?


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 15:54 
Offline
Open Source Hero

Registriert: Dienstag 24. Juni 2008, 10:33
Beiträge: 2185
@Mister XY: FFP start scripts won't directly work. You'll at least have to exchange the shebang, from '#!/ffp/bin/sh' to '#!/bin/sh' (or '#!/opt/bin/sh', if you installed a shell in Entware-ng and want to use that). Further the original startscript from Fonz use an helper script /ffp/etc/ffp.subr, which is not available, of course. My startscripts don't use that helper library, and I guess many 3th party scripts don't.
They might work.

On Entware-ng all executable scripts /opt/etc/init.d/S* are started, in alphabetical order.
Code:
for i in $(/opt/bin/find /opt/etc/init.d/ -perm '-u+x' -name 'S*' | sort $ORDER ) ;
So you'll have to rename your script. And you'd better not use a .sh extension. Scripts having a .sh extension are sourced, while others are forked. So your script can have undesireable side effect on other scripts if it has a .sh extension.

@pleno: I had a look at the 'foreign' formats, and I am afraid they won't work. The .ipk format is actually a Debian package, containing two archives, data.tar.gz and control.tar.gz. Data contains the actual package, while control contains scripts to be used for installing and deinstalling, and a describing text file.
Results of my investigations:
  • Synology, .spk. A tar file, containing INFO (a describing text file), package.tgz (the actual package), scripts, a directory with helper scripts.
  • Qnap, .qpkg. A shell script, with a some archive glued behind it.
  • Netgear, .deb. A debian package. Unfortunately it wants to install the package data in /apps (which doesn't exist) and /usr, (which is read only).
  • Asustor, .apk. A zipfile, containing a file apkg-version, control.tar.gz and data.tar.gz. Opkg doesn't extract zipfiles, the control archive has the wrong files, and the data archive will put the files in /plexmediaserver, which doesn't exist. (I guess the Asustor package manager will install it in some subdirectory)

@sos: Did you read the 'Entware-ng and FFP coexisting' chapter in the webinterface of the package?

@Ariek2: I'm not planning anything, and you are overestimating me if you think I'm trying to lead the 'ZyXEL herd' in a specific direction. I just stumbled upon this repository, and wrapped it in a zypkg, just because it's useful, and because I can. But as many forum readers hardly understand what FFP is and does, it would be cruel to just dump another 'FFP like' package here, without trying to explain the differences.
(And I was a bit disappointed when the package was ready, and I tested it on my 325, that it didn't run due a 'kernel too old' failure. While reading the documentation I never saw a restriction on kernel version. And the 325 kernel is not the latest, but it's also not /that/ old.)


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 15:59 
Offline
interessiertes Mitglied

Registriert: Freitag 8. August 2014, 08:34
Beiträge: 121
Hm, can you install ffp and entware parallel?

Or is a simple disable ffp enable entware enough just to test it out and switch back if I dont like it?


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 16:50 
Offline
Forum Ehrenmitglied
Benutzeravatar

Registriert: Montag 30. November 2009, 20:18
Beiträge: 3027
Mijzelf hat geschrieben:
Did you read the 'Entware-ng and FFP coexisting' chapter in the webinterface of the package?

Jetzt hast Du mich erwischt, ich habe nach 'Using repo' aufgehört zu lesen. :D
Ich habe ja früher schon FFP und Optware gemeinsam auf meiner 310 benutzt
und da wurde das durch das Installscript erledig, denke ich mal.
So ist das, wenn man eine Anleitung nicht komplett liest.

Edit
Teil aus dem optware-installscript
Code:
# Created automatically by /ffp/start/optware.sh for ffp 0.5
if [ -d "/opt" ]; then
    PATH=/opt/bin:$PATH
    if [ $(/ffp/bin/id -u) -eq 0 ]; then
   PATH=/opt/sbin:$PATH
    fi
    export PATH
fi



Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Sonntag 17. Januar 2016, 17:00 
Offline
Open Source Hero

Registriert: Freitag 3. Januar 2014, 12:20
Beiträge: 243
Mijzelf hat geschrieben:
I'm not planning anything, and you are overestimating me if you think I'm trying to lead the 'ZyXEL herd' in a specific direction. I just stumbled upon this repository, and wrapped it in a zypkg, just because it's useful, and because I can. But as many forum readers hardly understand what FFP is and does, it would be cruel to just dump another 'FFP like' package here, without trying to explain the differences.


I didn't misunderstood you then, but I just had to ask. I'm not overestimating you but I'm definitely not underestimating you. You are the driving force behind third-party solutions and some native creative and useful tweaks. Which I highly appreciate.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Montag 18. Januar 2016, 08:11 
Offline
engagiertes Mitglied

Registriert: Dienstag 22. Januar 2013, 12:49
Beiträge: 396
Hello Mijzelf i have tested the entware-ng. Is just easyer to handle and the packets are easyier to install and configurate. But entware-ng don't let sleep my HDD where entware-ng is installed. The option with copy to stick have i also tested with symlink or your script. But is not help.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS327) on
BeitragVerfasst: Montag 18. Januar 2016, 13:01 
Offline
Open Source Hero

Registriert: Dienstag 24. Juni 2008, 10:33
Beiträge: 2185
@Qefx: Yes, they can run in parallel. That is a consequence of the design of both. They are supposed not to interfere with the firmware, and as 'the firmware' is pretty undefined, that boils down to not interfere with anything except itself.

Yet there is a catch. I have written about that on the webinterface page of the Entware-ng package.

@Mister XY: The package as-is is no more than a collections of files on the disk. (Or on an USB stick, if you configured that). Nothing is 'active'. A reason to install on stick can be to be able to execute Entware-ng executables without need to spin up the disk. But if I use an Entware-ng executable to access the disk, it will spin up, no matter where the executable is located.

So if you are facing an active disk, and sleeps when you disable Entware-ng, I guess you have installed a daemon which accesses the disk. A rather straight forward example is transmission. If you installed that, and configured it to download to or seed from the disk, the disk won't sleep. I guess there are more subtile examples too.

If you want to which Entware-ng daemons are active, execute
Code:
lsof | grep ' /opt/bin\| /opt/sbin'
or have a look with htop.

The Tweaks applet 'Disk monitor' *might* be able to tell you what is keeping the disk active.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS326) on
BeitragVerfasst: Montag 18. Januar 2016, 18:56 
Offline
engagiertes Mitglied

Registriert: Dienstag 22. Januar 2013, 12:49
Beiträge: 396
I will watch via inotifywait.
I have watch and Samba must be the troublemaker. After some minutes, i see, that the browse.dat ist modify. and the browse.dat must be any samba thing.
i need the self containing USB Stick.


Nach oben
 Profil  
 
 
 Betreff des Beitrags: Re: New package: Entware-ng (NAS500 (and probably NAS326) on
BeitragVerfasst: Montag 18. Januar 2016, 21:03 
Offline
Open Source Hero

Registriert: Dienstag 24. Juni 2008, 10:33
Beiträge: 2185
Inotifywait will tell you which file was accessed, but not which process is responsible. Disk monitor will tell which process is responsible, but in most cases not which file was accessed.


Nach oben
 Profil  
 
 
Beiträge der letzten Zeit anzeigen:  Sortiere nach  
Ein neues Thema erstellen Auf das Thema antworten  [ 124 Beiträge ]  Gehe zu Seite 1, 2, 3, 4, 5 ... 9  Nächste

Alle Zeiten sind UTC + 1 Stunde [ Sommerzeit ]


Wer ist online?

Mitglieder: Google [Bot], Google Adsense [Bot], Martha


Du darfst keine neuen Themen in diesem Forum erstellen.
Du darfst keine Antworten zu Themen in diesem Forum erstellen.
Du darfst deine Beiträge in diesem Forum nicht ändern.
Du darfst deine Beiträge in diesem Forum nicht löschen.
Du darfst keine Dateianhänge in diesem Forum erstellen.

Gehe zu:  
Powered by phpBB® Forum Software © phpBB Group
Deutsche Übersetzung durch phpBB.de


Impressum


Hubwagen  - Hubtisch  - Hochhubwagen  - günstige Hubwagen  - Hubwagen  - Hubtisch  - Scherenhubtische  - günstige Kehrmaschinen