HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Marvell Kirkwood based
Post Reply
kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Sun Jul 09, 2017 8:41 pm

Hi,

I tried this method as well by following your guide.
But still got same message :x :

root@NSA320:~# slapt-get -i minidlna
Reading Package Lists...Done
The following NEW packages will be installed:
minidlna
0 upgraded, 0 reinstalled, 1 newly installed, 0 to remove, 0 not upgraded.
Need to get 1.0kB/120.0kB of archives.
After unpacking 340.0kB of additional disk space will be used.

Preparing to install minidlna-1.2.0_git20170526-arm-1
Scanning /ffp/var/slapt-get/./minidlna-1.2.0_git20170526-arm-1.txz ...
#
# MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully compliant with DLNA,
# UPnP-AV clients.
# License: GNU GPLv2
# Version: 1.2.0_git20170526
# Homepage: http://sourceforge.net/projects/minidlna/
#
Installing minidlna-1.2.0_git20170526-arm-1
Running doinst.sh ...
Done
root@NSA320:~# sh /ffp/start/minidlna.sh start
Starting minidlna.../e-data/3c6e67bc-61c2-4bff-af4a-38a79189fe2b/ffproot/ffp/bin/minidlna: can't load library 'libhogweed.so.4'
[ Fail!!! ] ERROR WARNING: minidlna can not start!!!

thank you

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Mon Jul 10, 2017 12:42 pm

Code: Select all

slapt-get --remove ffmpeg
slapt-get -i ffmpeg
Then run lddd tool and paste outputs of it.
If you would use slapt-get from the beginning, you shouldn't had this problem at all.

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Mon Jul 10, 2017 7:38 pm

Hi,

I can not start lddd.
I got msg "readelf is required for this script to function correctly!Install it first."

root@NSA320:~# wget http://downloads.zyxel.nas-central.org/ ... ripts/lddd -O /ffp/sbin/lddd
--19:24:16-- http://downloads.zyxel.nas-central.org/ ... ripts/lddd
=> `/ffp/sbin/lddd'
Resolving downloads.zyxel.nas-central.org... 140.211.169.172
Connecting to downloads.zyxel.nas-central.org[140.211.169.172]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,549 [application/octet-stream]

100%[====================================>] 2,549 --.--K/s

19:24:16 (24.31 MB/s) - `/ffp/sbin/lddd' saved [2549/2549]

root@NSA320:~# chmod 755 /ffp/sbin/lddd
root@NSA320:~# lddd
readelf is required for this script to function correctly!
Install it first.
root@NSA320:~#

How do you think may I start from the very beginning?!
I mean to prepare usb stick and install ffp then install minidlna from your guide?!

Thanks a lot for your patience and help.

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Mon Jul 10, 2017 7:54 pm

readelf is a part of binutils package:

Code: Select all

slapt-get -i binutils
Do you tried to run minidlna after reinstalling ffmpeg?

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Mon Jul 10, 2017 8:38 pm

yep.Tried to run right after but got following msg:

root@NSA320:~# sh /ffp/start/minidlna.sh start
/ffp/bin/minidlna: Required file not found or not readable!

now able to run lddd and the result is :
STATUS:checking directory... /ffp/lib
STATUS:checking directory... /ffp/sbin
STATUS:checking directory... /ffp/bin
Info about missing libraries and affected files saved to:
/tmp/lddd.XGEX/missing-libs.txt and /tmp/lddd.XGEX/affected-files.txt

There are a lot of missing libs:
/ffp/lib/perl5/5.14.2/arm-linux-thread-multi-64int/auto/DB_File/DB_File.so:
checking sub-depends for 'not found'
libdb-5.2.so => not found (0x00000000)
/ffp/lib/libgio-2.0.so.0.4706.0:
checking sub-depends for 'not found'
libffi.so.5 => not found (0x00000000)
/ffp/lib/libglib-2.0.so.0.4706.0:
checking sub-depends for 'not found'
libpcre.so.1 => not found (0x00000000)
/ffp/lib/libgobject-2.0.so.0.3000.2:
checking sub-depends for 'not found'
libffi.so.5 => not found (0x00000000)
/ffp/lib/libgio-2.0.so.0.3000.2:
checking sub-depends for 'not found'
libffi.so.5 => not found (0x00000000)
/ffp/lib/libfribidi.so.0.3.6:
checking sub-depends for 'not found'
libpcre.so.1 => not found (0x00000000)
/ffp/lib/libass.so.9.0.0:
checking sub-depends for 'not found'
libpcre.so.1 => not found (0x00000000)
/ffp/lib/librtmp.so.1:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libgnutls.so.30.13.0:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libgnutlsxx.so.28.1.0:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libgnutls-openssl.so.27.0.2:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libavfilter.so.6.82.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libpcre.so.1 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libavformat.so.57.71.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libavdevice.so.57.6.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libpcre.so.1 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/bin/gio-querymodules:
libffi.so.5 => not found
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/glib-compile-resources:
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/gobject-query:
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/gresource:
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/gapplication:
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/gsettings:
libffi.so.5 => not found
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/gdbus:
libffi.so.5 => not found
libffi.so.5 => not found
libffi.so.5 => not found
/ffp/bin/jpegtran:
libjpeg.so.62 => not found
/ffp/bin/wrjpgcom:
libjpeg.so.62 => not found
/ffp/bin/djpeg:
libjpeg.so.62 => not found
/ffp/bin/cjpeg:
libjpeg.so.62 => not found
/ffp/bin/rdjpgcom:
libjpeg.so.62 => not found
/ffp/bin/fribidi:
libpcre.so.1 => not found
libpcre.so.1 => not found
/ffp/bin/cwebp:
libtiff.so.5 => not found
/ffp/bin/gif2webp:
libgif.so.4 => not found
/ffp/bin/img2webp:
libtiff.so.5 => not found
/ffp/bin/rtmpgw:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpsuck:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpsrv:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpdump:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-serv:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/certtool:
libnettle.so.6 => not found
libhogweed.so.4 => not found
libtasn1.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/srptool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/psktool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-cli:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-cli-debug:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/ocsptool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/ffprobe:
libpcre.so.1 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libpcre.so.1 => not found
/ffp/bin/ffmpeg:
libpcre.so.1 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libpcre.so.1 => not found
/ffp/bin/x264:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Mon Jul 10, 2017 9:16 pm

/ffp/bin/minidlna: Required file not found or not readable!
This clearly indicates that you don't have minidlna package installed at that moment.

Code: Select all

slapt-get --install-set gpg
slapt-get -i glib db5 libffi pcre libjpeg libtiff giflib minidlna
Rerun lddd.

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Mon Jul 10, 2017 9:24 pm

now the content of missing libs:

/ffp/lib/perl5/5.14.2/arm-linux-thread-multi-64int/auto/DB_File/DB_File.so:
checking sub-depends for 'not found'
libdb-5.2.so => not found (0x00000000)
/ffp/lib/librtmp.so.1:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libgnutls.so.30.13.0:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libgnutlsxx.so.28.1.0:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libgnutls-openssl.so.27.0.2:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libtasn1.so.6 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libhogweed.so.4 => not found (0x00000000)
/ffp/lib/libavfilter.so.6.82.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libavformat.so.57.71.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/lib/libavdevice.so.57.6.100:
checking sub-depends for 'not found'
checking sub-depends for 'not found'
checking sub-depends for 'not found'
libhogweed.so.4 => not found (0x00000000)
libnettle.so.6 => not found (0x00000000)
libtasn1.so.6 => not found (0x00000000)
/ffp/bin/rtmpgw:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpsuck:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpsrv:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/rtmpdump:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-serv:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/certtool:
libnettle.so.6 => not found
libhogweed.so.4 => not found
libtasn1.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/srptool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/psktool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-cli:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/gnutls-cli-debug:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/ocsptool:
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/ffprobe:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/ffmpeg:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/x264:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found
/ffp/bin/minidlna:
libhogweed.so.4 => not found
libnettle.so.6 => not found
libtasn1.so.6 => not found
libnettle.so.6 => not found
libhogweed.so.4 => not found

If I try to run minidlna:

Starting minidlna.../e-data/3c6e67bc-61c2-4bff-af4a-38a79189fe2b/ffproot/ffp/bin/minidlna: can't load library 'libhogweed.so.4'
[ Fail!!! ] ERROR WARNING: minidlna can not start!!!

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Tue Jul 11, 2017 7:27 am

Paste me outputs of:

Code: Select all

slapt-get --install-set gpg
and

Code: Select all

funpkg -q perl

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Tue Jul 11, 2017 7:55 am

I get this:

root@NSA320:~# slapt-get --install-set gpg
Reading Package Lists...Done
gnutls is up to date.
The following NEW packages will be installed:
libgpg-error libassuan libgcrypt libksba npth gnupg gpgme libtasn1 nettle
0 upgraded, 0 reinstalled, 9 newly installed, 0 to remove, 0 not upgraded.
Need to get 9.0kB/3.7MB of archives.
After unpacking 27.6MB of additional disk space will be used.
9/9 Get http://downloads.zyxel.nas-central.org/ ... /packages/ nettle 3.3-arm-1 [1.0kB]...Failed to download: HTTP response code said error
root@NSA320:~# funpkg -q perl
perl-5.14.2-arm-1

thx

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Tue Jul 11, 2017 11:31 am

Perl version indicates, that it wasn't updated. So, either something went wrong, either you didn't followed provided instructions.
9/9 Get http://downloads.zyxel.nas-central.org/ ... /packages/ nettle 3.3-arm-1 [1.0kB]...Failed to download: HTTP response code said error
Is everything OK with your net?
Try this time:

Code: Select all

su
slapt-get --clean
slapt-get -u
slapt-get --upgrade
sh /ffp/start/sshd.sh restart
slapt-get --install-set gpg
Paste output if you are getting any error on any command.

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Tue Jul 11, 2017 12:17 pm

I've checked it from 2 different places because my first thought was that issue is with fw rule in my mikrotik rb.
But tested it another place and result was the same.
I followed your guide step by step.

Checksum signature not found:

root@NSA320:~# slapt-get -u
Retrieving package data [http://downloads.zyxel.nas-central.org/ ... /packages/]...Cached
Retrieving patch list [http://downloads.zyxel.nas-central.org/ ... /packages/]...Done
Retrieving checksum list [http://downloads.zyxel.nas-central.org/ ... /packages/]...Cached
Retrieving checksum signature [http://downloads.zyxel.nas-central.org/ ... /packages/]...Not Found
Retrieving ChangeLog.txt [http://downloads.zyxel.nas-central.org/ ... /packages/]...Done
Reading Package Lists...Done

After that everything was done without any error.

And now when I execute sh /ffp/start/minidlna.sh start I got message:
Starting minidlna...done! [ OK ]

So it's working now! :)

Thanks a lot again!

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by barmalej2 » Tue Jul 11, 2017 1:48 pm

Checksum signature not found
You can ignore that. I am not signing packages checksums file yet, but will do that in the future definitely. Rerun lddd tool to make sure that every library has required dependencies.

kerekesja01
Posts: 15
Joined: Sun Jan 01, 2017 7:12 pm

Re: HOWTO: Install/Upgrade MiniDLNA on FFP 0.7-arm

Post by kerekesja01 » Tue Jul 11, 2017 2:41 pm

After execute lddd:

Congratulations! No missing libraries was found in /ffp.

:)

Artur
Posts: 3
Joined: Sun Aug 05, 2018 12:23 pm

Re: NAS 326 ffp "disaster"

Post by Artur » Sun Aug 05, 2018 12:40 pm

Help please install minidlna on nas326. If you can describe the process in more detail. Firmware V5.21 (AAZF.2), MetaRepository installed.
Tell me please what am I doing wrong? I launch PuTTY, I come to the address NAS, log ^ root.
Then I enter the uwsiteloader.sh command. There is a window I shake everywhere YES and at the end there is an error
Error
Downloading definitions
FAILED, please check your internet
connection!
With the Internet while everything is ok.

barmalej2
Posts: 2398
Joined: Sun Apr 29, 2012 5:24 pm

Re: NAS 326 ffp "disaster"

Post by barmalej2 » Mon Aug 06, 2018 5:20 am

Instructions on first post of this topic are outdated. Assuming you have ffp installed, update it first. Then install minidlna package:

Code: Select all

slapt-get -i minidlna
Now you can edit and specify paths to your media content in /ffp/etc/minidlna.conf
According to need, you can correct paths to your media content or add additional in MiniDLNA configuration file. Default paths are linked to Zyxel firmware predefined shares:
media_dir=A,/mnt/HD_a2/music/
media_dir=P,/mnt/HD_a2/photo/
media_dir=V,/mnt/HD_a2/video/
Lastly start minidlna daemon service:

Code: Select all

sh /ffp/start/minidlna.sh start
IMPORTANT: In case of fresh install, give a time for MiniDLNA service to scan your media dirs and complete to build up the database. Otherwise, it will start all over again on next daemon run (NAS boot-up for example).

Minidlna has status page, displaying number of files in database and connected clients: http://nsa310:8200 or http://YourNASIp:8200.

To enable autostart:

Code: Select all

chmod 755 /ffp/start/minidlna.sh
To disable autostart:

Code: Select all

chmod 644 /ffp/start/minidlna.sh

Post Reply