文章链接在
https://wlof.github.io/qnap/2023/06/11/01-installing-entware-on-a-qnap-nas.html
First, download thepackage for standard installation. Make sure to check the Entware wiki page, maybe a more recent version will have been published by the time you read this. (Although the current version, 1.03a, was released in 2018, so it looks like they're not releasing new versions very often!)
Then install the package manually, by logging into your NAS' web UI, opening the App Center, and clicking the "Install Manually" icon in the top-right menu bar. Select the.qpkgfile you downloaded and proceed with the install.
Here's the part that gave me trouble. Entware only configures the root user, but on newer QTS versions, the root user is disabled. So you'll need to modify thePATHenvironment variable for your user account to be able to use theopkgpackage manager.
After logging into your account, create or edit your.profilefile withvim ~/.profileand add this line:
PATH=/opt/bin:/opt/sbin:$PATH
Log out and back in (or simply runsource ~/.profile).opkgis now available, though you'll still need to usesudo(just like you would when usingapton a Debian-based Linux distribution).
Runsudo opkg updateto upate the list of packages, thensudo opkg listto see which packages are available. You can now install any of them withsudo opkg install. For example if you want to be able to useZsh, simply install it withsudo opkg install zsh.
That's it! If you have other user accounts, you'll need to repeat step 3 for each of them so they can also use the binaries installed viaopkg.