Installing Entware on a QNAP NAS
I recently upgraded my older Synology DS415play NAS to a shiny new QNAP TS-664 model. (I switched from Synology to QNAP because all the newer Synology models use AMD CPUs, and I preferred an Intel CPU for better Plex compatibility.)
Since I use the command line a lot, I wanted to be able to use many CLI utilities that are not available by default on QTS (QNAP's custom Linux OS). Some Google searches quickly revealed that Entware was what I was needed. Their wiki even includes a page specifically for QNAP NAS installs, which also includes a link to a thread on QNAP's own forums.
I did run into some minor trouble with the install. The answer was in the forum thread, but finding the information you need in an old thread with years of posts can be frustrating, so I'm collecting it here. Hopefully it will be useful to somebody!
So here's how you install Entware on a modern QNAP NAS running a recent version of QTS (in my case, QTS 5.0.1.2376).
-
First, download the package 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
.qpkg
file 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 the
PATH
environment variable for your user account to be able to use theopkg
package manager.After logging into your account, create or edit your
.profile
file withvim ~/.profile
and add this line:
PATH=/opt/bin:/opt/sbin:$PATH
-
Log out and back in (or simply run
source ~/.profile
).opkg
is now available, though you'll still need to usesudo
(just like you would when usingapt
on a Debian-based Linux distribution).Run
sudo opkg update
to upate the list of packages, thensudo opkg list
to see which packages are available. You can now install any of them withsudo opkg install
. For example if you want to be able to use Zsh, 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 via opkg
.