Page 1 of 8

[APKG Entware-ng] Replace Astware & Optware include 64 bits version

Posted: Wed Dec 02, 2015 1:07 am
by father.mande
Hi,

==== Entware-ng is merged with Entware-3x (for kernel 3.2 and more) ... please update using this procedure
viewtopic.php?f=156&t=9579
==== For new install please wait for new APKG or use actual APKG and follow the procedure here before


==== INFO on Bugs READ BUGS section just before the download ====

I am please to announce the availability of Entware-ng a COMPLETE substitute for Optware (abandoned not maintained) and Astware (specific to the platform)

Next NO NEEDED with 0.97
====== DUE TO recent update[/size] ... please just after installation do : open a console, then opkg update ; opkg upgrade ========

Entware-ng is 100% on line with Openwrt version available on multiple plateform ... mipsel, armel, armhf, x86, x86_64
Entware-ng is maintained ... and updated frequently and on bug report ...
Entware-ng use UP TO DATE libraries ex. libc is 2.23 compare to version provide by Asustor

Migration :
... from Optware NOT really ... get the list of installed software, save your config file (to be adapted) and uninstall it MANDATORY
... from astware it's possible
... ... get the list of installed software and depends :
... ... /opt/bin/opkg list_installed | grep -v ^opkg | cut -d ' ' -f 1 > /share/Public/my_applist
... ... save configuration file
... ... then reinstall using the list (ex. using a while read line ; do /opt/bin/opkg install $line ; done < /share/Public/my_applist
... then uninstall astware ...

FOR SECURITY REASON PLEASE UN-INSTALL Optware and / or Astware before installing Entware-ng

Entware-ng use /opt ...
... to manage folder or file install in opt during installation or after at boot ... a move mechanism is use to keep the correct path ...
... ex. /opt/google/chrome/chrome-sandbox
... if exist at install it is move to the new /opt, if (even normally not) it exist when Entware-ng start at boot (or be disable at boot and started later) ... it is moved also ...
entware-ng.png
entware-ng.png (2.14 KiB) Viewed 29282 times
[Name]
Entware-ng

[Version]
0.97.3
... add support for x86 system 32 bits using ADM 3.0 due to change in machine name from i386 to i686
... auto add "option force_space" for x86 and armhf due to "stat of /opt at zero (bad initial mount without size)

0.97.2
... correct a problem of not changing opt_(arch) to opt ... so link broken
0.97.1
... include Patch for coexisting with Virtualbox
... Upgrade possible ... you keep previous install ALL YOUR program and configuration
0.96
01.01.2016
0.96 corrected for previous firmware (AS_NAS_ARCH not filled for x86 32 bits models before 2.5.1 Beta) ... use uname to select the good one (Thanks to Ekilor that report the bug)

[Upgrade from 0.96 to 0.97]
... NO need if you have already apply the patch
... If you upgrade ... YOUR opkg programs, start_up and configuration are keep AS IS ... only an opkg update and opkg upgrade is done

[Model supported]
ALL with an automatic selection of version (uname -m)
x86 with 32 bits firmware (32 bits x86 version installed)
x86 with 64 bits firmware (64 bits version is installed)
Armhf

[Prerequisite]
Optware and Astware must be uninstalled BEFORE ... (even an option exist to keep astware on x86 model ... even risky)

[Packages]
1600+ ... list : http://entware.wl500g.info/binaries/ent ... kages.html Packages are updated one per month
changelog (version updated) : https://github.com/Entware/entware/wiki/Changelog
Specific packages from Zyxmon exist like Deluge 1.3.12 + addons, iotop, etc. exist also
Wiki : https://github.com/Entware/entware/wiki (adapt to Asustor implementation)
Issues and bugs report : https://github.com/Entware/entware/issues (only issue for Entware packages)

[Usage]
One command compatible with old ipkg one : opkg
An auto start services mechanism exist to start background process (all is provide to run your own)

BASIC FIRST usage :
ALL PREVIOUS requirement are NOT yet needed
open a console and do :
if you start using it from an existing open console add before using :
source /opt/etc/profile
... this source add /opt/bin and /opt/sbin in the PATH (way to search executable program)
opkg update
opkg upgrade

... NOW 0.97
... opkg update and opkg upgrade will be done after install (first start of Entware-ng)
... only "source /opt/etc/profile" is need if you DON'T close and re-open the console

list packages available :
opkg list
or better try to select part of the name
opkg list | grep xxx (xxx is apart of the name ex. netstat ... )
If the output is too large cut the first words (here output field 1 to 10 of the response separator is space " "
opkg list | cut -f 1-10 -d " "
You can combine all of them ...
Detail of opkg options :

Code: Select all

# opkg
opkg must have one sub-command argument
usage: opkg [options...] sub-command [arguments...]
where sub-command is one of:

Package Manipulation:
        update                  Update list of available packages
        upgrade                 Upgrade installed packages
        install <pkgs>          Install package(s)
        configure <pkgs>        Configure unpacked package(s)
        remove <pkgs|regexp>    Remove package(s)
        flag <flag> <pkgs>      Flag package(s)
         <flag>=hold|noprune|user|ok|installed|unpacked (one per invocation)

Informational Commands:
        list                    List available packages
        list-installed          List installed packages
        list-upgradable         List installed and upgradable packages
        list-changed-conffiles  List user modified configuration files
        files <pkg>             List files belonging to <pkg>
        search <file|regexp>    List package providing <file>
        find <regexp>           List packages whose name or description matches <regexp>
        info [pkg|regexp]       Display all info for <pkg>
        status [pkg|regexp]     Display all status for <pkg>
        download <pkg>          Download <pkg> to current directory
        compare-versions <v1> <op> <v2>
                            compare versions using <= < > >= = << >>
        print-architecture      List installable package architectures
        depends [-A] [pkgname|pat]+
        whatdepends [-A] [pkgname|pat]+
        whatdependsrec [-A] [pkgname|pat]+
        whatrecommends[-A] [pkgname|pat]+
        whatsuggests[-A] [pkgname|pat]+
        whatprovides [-A] [pkgname|pat]+
        whatconflicts [-A] [pkgname|pat]+
        whatreplaces [-A] [pkgname|pat]+

Options:
        -A                      Query all packages not just those installed
        -V[<level>]             Set verbosity level to <level>.
        --verbosity[=<level>]   Verbosity levels:
                                        0 errors only
                                        1 normal messages (default)
                                        2 informative messages
                                        3 debug
                                        4 debug level 2
        -f <conf_file>          Use <conf_file> as the opkg configuration file
        --conf <conf_file>
        --cache <directory>     Use a package cache
        -d <dest_name>          Use <dest_name> as the the root directory for
        --dest <dest_name>      package installation, removal, upgrading.
                                <dest_name> should be a defined dest name from
                                the configuration file, (but can also be a
                                directory name in a pinch).
        -o <dir>                Use <dir> as the root directory for
        --offline-root <dir>    offline installation of packages.
        --add-arch <arch>:<prio>        Register architecture with given priority
        --add-dest <name>:<path>        Register destination with given path

Force Options:
        --force-depends         Install/remove despite failed dependencies
        --force-maintainer      Overwrite preexisting config files
        --force-reinstall       Reinstall package(s)
        --force-overwrite       Overwrite files from other package(s)
        --force-downgrade       Allow opkg to downgrade packages
        --force-space           Disable free space checks
        --force-postinstall     Run postinstall scripts even in offline mode
        --force-remove  Remove package even if prerm script fails
        --force-checksum        Don't fail on checksum mismatches
        --noaction              No action -- test only
        --download-only No action -- download only
        --nodeps                Do not follow dependencies
        --nocase                Perform case insensitive pattern matching
        --force-removal-of-dependent-packages
                                Remove package and all dependencies
        --autoremove            Remove packages that were installed
                                automatically to satisfy dependencies
        -t                      Specify tmp-dir.
        --tmp-dir               Specify tmp-dir.

 regexp could be something like 'pkgname*' '*file*' or similar
 e.g. opkg info 'libstd*' or opkg search '*libop*' or opkg remove 'libncur*'
Opkg documentation : https://wiki.openwrt.org/doc/techref/opkg
others :
http://wiki.openmoko.org/wiki/Opkg/Documentation

[Know BUGS]
Version APKG : 0.97 (current)
In x86 (32 bits models) and perhaps on Arm (T.B.C.)
... some package refuse to install due to space not avaialble in /opt
... ... ex. for gcc : "verify_pkg_installable: Only have 0kb available on filesystem /opt, pkg gcc needs 28646"
... This is due to Asustor choice ... to have /opt in romfs
... this error is only for "big" packages (BUT big is relative to space available in a router (opkg come from OpenWRT) , on this "big" package a stat of file-system is done and return free space = 0 on /opt (normal for a romfs) ...
... SOLUTION : use --force-space in command line : ex. "opkg --force-space install <package>"
ADD THIS permanently (no more in command line)
... add line :
option force_space
in /opt/etc/opkg.conf ... so this will be added transparently to all opkg command ...


[Download]
PATCH MUST BE APPLY on v0.96 BUT ONLY on 0.96 NOT with 0.97 to solve conflict with VirtualBox
POST : http://forum.asustor.com/viewtopic.php?f=42&t=7695
APPLY to ALL NAS model is possible (for the future) ... to be compatible with version 0.97 and more ...
APKG 0.97.3 : https://www.father-mande.ovh/A/apkg/ent ... .3_any.apk

APKG 0.97.2 : https://mega.nz/#!lx0mRb5K!CCOmg26FMa_b ... K7PCcPlU-0

Have fun
Philippe.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Fri Jan 01, 2016 11:48 pm
by father.mande
Hi,
Thanks to Ekilor ... that detect the bug and help by testing the new version

Change the download link :
BUG ... Firmware previous 2.5.1 Beta don't fill AS_NAS_ARCH (except x86-64) for arm and x86 32 bits models
SOLVED : Add a test based on "uname -m" if AS_NAS_ARCH is not provide ...

New download link in first post ...
No need if your succeed to redo the installation ... only for people with the fault ... when install "ARCH error"

Philippe.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Mon Feb 29, 2016 5:17 pm
by callifo
Just updated my ipkg for this, can finally get some up to date software installed rather than stuff from 2007.

Thanks!

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Tue Mar 15, 2016 4:47 am
by liefde
Just for those who got here and thought: WTF ? Because really, the first post in this thread looks like, well, a bomb went off somewhere.
What you need to do if you want Entware-ng (or any of its available packages) on your NAS;

- Install entware-ng by downloading https://mega.nz/#!I9skFI7Q!2yUn7yTYjhcs ... 6JEwd1SNN4 and then manually install it through the asustor webbased interface.
- Log in to your nas through ssh, make sure you're root.
- You may want to do:

Code: Select all

# opkg upgrade
# opkg update
# opkg install bash whereis bind-tools mc
# ln -s /volume1/.@plugins/AppCentral/entware-ng/opt/bin/bash /bin/bash
Because not having a working shebang for #!/bin/bash is super annoying.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Tue Mar 15, 2016 4:22 pm
by father.mande
Hi,
liefde wrote:Just for those who got here and thought: WTF ?
If it's really what you think about ... stop using it :lol: :lol: ...
Sure you can made a better approach and have time for it ... suppose you are able to maintain it (it's not difficult for any confirmed Linux user ... ) and provide new version "clean, clear and easy"

Please ... go back to Optware (more official) ... with lot of better explain and usage ...
I'm not angry to no longer having to maintain it ... it's more free time for doing other things ...

An apologize if you fall in difficulty ... by using this useless software and explain ... you are true ... it's stupid (me) to think I can do some understandable explain :roll: :D

Thanks for helping .
Philippe.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Tue Mar 15, 2016 4:29 pm
by itdaboyz
Hi,

What he was saying is the 1st topic is really hard to read and understand (and I kinda agree).
It's not against you or the app, it's just the presentation. The app itself is great ;)

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Tue Mar 15, 2016 4:48 pm
by MikeG.6.5
Philippe, thanks for all of the work on this and the other apps you are building for our NASes.

It can be a bit hard to read your posts, but that's partly language barrier, I think. As well as you trying to emphasize stuff so it sticks in the mind.

PLEASE don't stop! We need a lot more people like you doing the dev work you are doing. We don't need you getting upset with a couple of people on the forums and stopping that work! Don't let these guys bring you down, man... :)

PS really looking forward to trying out more!

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Tue Mar 15, 2016 9:45 pm
by father.mande
Hi,

No offense ... when somebody is clearly better than me ... I have absolutely NO problem to get the hand ...

Why first post is not explaining usage :
1 because "tittle" is : replacement for Optware ... so any people interested can have a look to Optware forum ... and receive responses
2 with only ONE change (user visibility) ... pass from ipkg to opkg
... so for me it's NOT a new approach ... just an update of an existing software ...

If any person integrating a software have to enter in the configuration and usage of this software ... you can write this remark in lot of APKG topics ... and why not directly for A.D.M. usage, architecture and internal scripts and specification ...

BUT the problem is closed ... ALL people have now a good expert in front ... so no more troubles ...

for old users (before they cancel it to return to documented / supported Optware) some news on last update of the feed :
There is a major change in Entware-ng
1. glibc is upgraded from 2.22 to 2.23
2. gcc is upgraded from 4.8.5 to 5.3.0
3. go packages are added to buildroot toolchain (gccgo allows to build go binaries even for unsupported mipsel 32bits)

[EDIT NOT TRUE] apkg is upgraded to 0.97 to reflect these changes.
when :
opkg update
opkg upgrade

is run, locales-archive (entware) will be upgraded to reflect glibc upgrade.
If you have built your own locales you must rebuild them once more.
Philippe.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Wed Mar 16, 2016 4:17 am
by dhstsw
Hi Philippe,

mega link reports missing file.

Has it been moved somewhere else?

thanks.

Re: [APKG Entware-ng] Total replace Astware & Optware include 64 bits version

Posted: Thu Mar 17, 2016 4:51 pm
by father.mande
Hi,
dhstsw wrote:Hi,
mega link reports missing file.
Solved.

Philippe.