I'm trying to setup a background job in a QNAP TVS-871T.
It doesn't come with nohup pre-installed.
I've found multiple references to install it on a QNAP device (e.g. https://stackoverflow.com/questions/28623838/qnap-nas-nohup-no-such-file-or-directory) but that doesn't seem to apply to this device; there is no such package available in the web interface.
Seems to be a variant of an Ubuntu distro but none of its package managers are available.
cat /proc/version
Linux version 3.12.6 (root@NasX86Builder) (gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)) #1 SMP Wed Jun 1 06:14:19 CST 2016
It's running QTS 4.2 if that makes any difference.
Any idea?
Does the package manager not provide
coreutils/nohup
?http://blog.kiel.com.au/2012/04/installing-custom-packages-like.html
In the absence of package management, you would have to install a binary.
nohup
binary by copying it into your path (/usr/bin/nohup on Ubuntu 16.04).coreutils
package.Chances are you'll get it working - it may have little or no dependencies. Try the above steps and if they don't work post the details in your question and we'll try again.
I think this means you will probably be OK to copy a binary over from another system with
libc6
of the same architecture (x86_64 for you I think)opkg
) From QNAP ForumsIn VIM:
i
to begin VIM 'insert'/opt/bin
to$PATH
variable before/usr/bin
:wq
and pressenter
Back in your console now, execute:
opkg
works:opkg
and installcoreutils
Restart your NAS
Run
nohup
Note: I know of no other way to access the packages installed by opkg, it doesn't find
nohup
without a restart. Let me know if you know the solution because it would be great to know