Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Tutoriale.

Moderator: danyelsan

danyelsan
Informat
Posts: 58
Joined: 18 Sep 2012, 19:03

Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by danyelsan »

Minidlna 1.0.24 pentru NSA 310 cu FFP 0.7 arm

Pasul 1 : Ne logam in SSH print Putty .

Pasul 2 : O sa incepe sa notam in linia de comanda linii de cod :
O sa trebuiasca sa ne updatam niste site uri de unde o sa downloada cele necesare instalarii MiniDLNA-ului .
Copiati fiecare linie de mai jos , mergeti in conexiunea SSh , paste (click dreapta) urmat de enter
A)

Code: Select all

wget http://wolf-u.li/u/441 -O /ffp/bin/uwsiteloader.sh
Asteptati pana apare root@nsa310:~# pe linia de comanda
B)

Code: Select all

chmod a+x /ffp/bin/uwsiteloader.sh
C)

Code: Select all

uwsiteloader.sh
Click pe Yes apoi Ok acum o sa apara o lista unde sunt mai multe site-uri , click in fata site urilor si o sa apara o steluta cand au fost selectate (avem nevoie de toate 5 site-uri :fonz,Mijzelf,Uli,Kylek,Memiks) . Dupa ce le am selectat pe toate , OK , Ok , Yes si o sa apara din nou linia goala root@nsa310:~#
Image
D)

Code: Select all

slacker -Ua
O sa apara o lista la care apasati Cancel

Pasul 3 : O sa avem nevoie de un program cu care o sa editam niste fisiere , este un fel de Total Commander din Windows . Numele lui este Midnight Commander . Ca sa il instalam trebuie sa introducem urmatoarele coduri ;

Code: Select all

slacker -a
In lista aparuta trebuie sa cautam fisierele lib2-2.30.2-arm-0.txz si mc-4.8.1-arm-0.txz . Le selectam si le instalam . Pentru a derula click pe v(+) Dupa ce le -am selectat click pe OK . Asteptam sa se instaleze si o sa apara din nou linia goala root@nsa310:~#
Image

Pasul 4 : Avem nevoie de niste pachete aditipnale :
• autoconf
• automake
• bash (Instalate automat de FFP)
• binutils
• bison
• coreutils (Instalate automat de FFP)
• curl
• flex
• gcc
• gcc-solibs (Instalate automat de FFP)
• gettext ((Instalate automat de FFP)
• grep (Instalate automat de FFP)
• linux-headers
• make
• mpfr
• patch
• uClibc
• uClibc-solibs (Instalate automat de FFP)

Pentru a le instala pe cele care nu au fost instalate de FFP folosim codul :

Code: Select all

slacker -U -a -A s:automake s:autoconf s:binutils  s:bison s:curl s:flex  s:gcc s:linux-headers s:make  s:mpfr s:patch s:uClibc

Se selecteaza automat si doar selectam Ok.

Pasul 5 : Inca un pachet de 8 programe necesare MiniDLNA :
- libjpeg (fonz-s:)
- ffmpeg 0.10.2 (mz:)
- flac (uli:)
- libexif (uli:)
- libid3tag (uli:)
- libogg (uli:)
- libvorbis (uli:)
- sqlite (uli:)

Code: Select all

slacker -a -A s:libjpeg mz:ffmpeg uli:flac uli:libexif uli:libid3tag uli:libogg uli:libvorbis uli:sqlite

Se selecteaza automat si doar selectam Ok.

Pasul 6 : Trebuie sa obtinem un script de startup si shutdown pt miniDLNA , pentru asta trebuie sa instalam o versiune mai veche de miniDLNA :

Code: Select all

slacker -a

si selectam si instalam minidlna-1.0.22-arm-1.txz
Image

Pasul 7 : Acum dezinstalam versiunea instalat la pasul 6 .(ne ramane scriptul de startup si shutdown)

Code: Select all

slacker -r

selectam din lista minidlna-1.0.22-arm-1.txz apoi OK.

Pasul 8 : Stergem folderul minidlna.conf-example :

Code: Select all

rm /ffp/etc/minidlna.conf-example
Pasul 9 :Creeam un folder temporar :

Code: Select all

mkdir -p /i-data/md0/build/ffp/start /i-data/md0/build/ffp/etc /i-data/md0/build/ffp/bin
Pasul 10 : Mutam scriptul de startup si shutdown in folderul /i-data/md0/build/ffp/start:

Code: Select all

mv /ffp/start/minidlna.sh /i-data/md0/build/ffp/start
Pasul 11 : Editam fisierul minidlna.sh
Mergem in folderul /i-data/md0/build/ffp/start

Code: Select all

cd /i-data/md0/build/ffp/start
apoi

Code: Select all

ls

ne afiseaza fisierele care sunt in folder , ar trebui sa avem fisierul minidlna.sh
Daca avem fisierul minidlna.sh trebuie sa intra in Midnight Commander prin codul :

Code: Select all

mc

Se deschide Midnight Commander , selectam fisierul minidlna.sh , mergem in partea de jos si dam click pe edit , se deschide fisierul si modificam :
linia 9 devine
command="/ffp/bin/minidlna"
linia 14 devine
pid_file="/ffp/var/run/minidlna.pid"
Dupa ce am editat , mergem jos si dam click Save , apoi confirmam prin Save din nou , apoi quit (dreapta jos) , iesim din MC cu quit si ne am intor in linia de comanda root@nsa310:~#

Pasul 12 : Mergem in folderul /i-data/md0/build

Code: Select all

cd /i-data/md0/build
Pasul 13 : Download fisierul sursa :

Code: Select all

wget http://downloads.sourceforge.net/project/minidlna/minidlna/1.0.24/minidlna_1.0.24_src.tar.gz
Pasul 14 : Dezarhivam fisierul sursa :

Code: Select all

tar zxvf minidlna_1.0.24_src.tar.gz
Pasul 15 : Stergem fisierul sursa :

Code: Select all

rm minidlna_1.0.24_src.tar.gz
Pasul 16 : Mergem in folderul creeat la dezarhivarea fisierului sursa :

Code: Select all

cd /i-data/md0/build/minidlna-1.0.24
Pasul 17 : Modificam parametrii fisierului genconfig.sh :

Code: Select all

sed -i 's/usr/ffp/g' genconfig.sh
Pasul 18 : Editam fisierul genconfig.sh

Code: Select all

mc
Selectam fisierul genconfig.sh , Edit :
linia 27 devine :
DB_PATH="/ffp/tmp/minidlna" , unde /ffp/tmp/minidlna este calea catre FFP USB

Pasul 19 : Modificam parametrii fisierului Makefile :

Code: Select all

sed -i 's/usr/ffp/g' Makefile
Pasul 20 : Editam Makefile:

Code: Select all

mc
Selectam fisierul Makefile , Edit :
linia 26 devine
SBININSTALLDIR = $(INSTALLPREFIX)/bin

in linia 40 adaugam 2 variabile LIBS)
LIBS= -lintl -liconv

Pasul 21 : Compilam :

Code: Select all

make
Rezulta 2 fisiere : minidlna si testupnpdescgen.

Pasul 22 : Mutam minidlna, testupnpdescgen si minidlna.conf in folderul bin :

Code: Select all

cp minidlna /i-data/md0/build/ffp/bin

Code: Select all

cp testupnpdescgen /i-data/md0/build/ffp/bin

Code: Select all

cp minidlna.conf /i-data/md0/build/ffp/etc
Pasul 23 : Mergem in folderul Bin :

Code: Select all

cd /i-data/md0/build/ffp/etc
Pasul 24 : Editam minidlna.conf unde vom seta folderele audio, video, si photo si seta timpul de refresh pt fisiere noi :

Code: Select all

mc
Selectam fisierul minidlna.conf , Edit :

media_dir=A,/i-data/md0/music
media_dir=V,/i-data/md0/video
media_dir=P,/i-data/md0/photo

notify_interval=60

db_dir=/ffp/tmp/minidlna
log_dir=/ffp/tmp/minidlna

friendly_name=Zyxel

Pasul 25 : Mergem in folderul build :

Code: Select all

cd /i-data/md0/build
Pasul 26 : Stergem fisierul care nu il mai folosim :

Code: Select all

rm -rf minidlna-1.0.24/
Pasul 27 : Facem fisierul de instalare :

Code: Select all

makepkg minidlna 1.0.24 0

creeaza pachetul de instalare minidlna-1.0.24-arm-0.txz in /tmp .

Pasul 28 : Stergem ce nu mai avem nevoie :

Code: Select all

rm -rf /i-data/md0/build/


Pasul 29 : Mergem in folderul md0

Code: Select all

cd /i-data/md0/


Pasul 30 : Creeam folderul additional :

Code: Select all

mkdir -p /ffp/funpkg/additional
Pasul 31 : Mutam minidlna-1.0.24-arm-0.txz in /ffp/funpkg/additional :

Code: Select all

mv /tmp/minidlna-1.0.24-arm-0.txz /ffp/funpkg/additional
Pasul 32 : Mergem in folderul additional :

Code: Select all

cd /ffp/funpkg/additional
Pasul 33 : Instalam minidlna-1.0.24 :

Code: Select all

funpkg -i minidlna-1.0.24-arm-0.txz
Pasul 34 : Pornim MiniDLNA :

Code: Select all

/ffp/start/minidlna.sh start
Pasul 35 : Verificam daca a pornit serverul :
http://nsa310:8200 sau http://IP-ul.NAS.ului:8200
Image

Felicitari !!!!!!

MiniDLNA pe TV
Image


Alte setari pt miniDLNA :

Verificam status-ul Minidlna :

Code: Select all

/ffp/start/minidlna.sh status
Oprim Minidlna :

Code: Select all

/ffp/start/minidlna.sh stop

sau

Code: Select all

killall minidlna
Dezinstalare Minidlna :
A) Oprim MiniDLNA :

Code: Select all

/ffp/start/minidlna.sh stop
B) Dezinstalam MiniDLNA :

Code: Select all

funpkg -r minidlna-1.0.24-arm-0.txz
C) Sergem folderele de la MiniDLNA :

Code: Select all

rm /ffp/etc/minidlna.conf

Code: Select all

rm /ffp/start/minidlna.sh

Code: Select all

rm -rf /ffp/tmp/minidlna/

Toate creditele acestui tutorial le revin : http://forum.nas-central.org/viewtopic.php?f=249&t=5841

Pentru cine nu se descurca sa ma caute pe PM si daca este nevoie ne auzim la un telefon sau intru eu pe PC-ul vostru prin TeamViewer
androidul
Informat
Posts: 84
Joined: 17 Dec 2012, 09:36

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by androidul »

apreciem efortul.

la restart de nsa mini dlna-ul porneste automat sau trebuie pornit manual?
danyelsan
Informat
Posts: 58
Joined: 18 Sep 2012, 19:03

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by danyelsan »

automat

la pasul 6 am "facut rost" de scriptul de shut down si restart !
androidul
Informat
Posts: 84
Joined: 17 Dec 2012, 09:36

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by androidul »

a incercat cineva daca minidlna face streamining audio -on the fly la dts( pt cei care au tv care nu stiu dts)?
lauryca
Interesat
Posts: 25
Joined: 18 Dec 2012, 13:22
Location: Galati

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by lauryca »

Multumesc pentru tutorial. Am instalat.

La inceputul pasilor cand "avem nevoie de toate 5 site-uri :fonz,Mijzelf,Uli,Kylek,Memiks" am constatat ca situl kylek.is-a-geek.org:31337 de unde se instala versiunea veche de miniDNLA pentru a obtine scriptul de start/stop nu mergea. Solutia mea a fost sa instalez eu manual minidlna-1.0.22-arm-1.txz astfel:

am tras de pe net minidlna-1.0.22-arm-1.txz si l-am copiat in /ffp/funpkg/additional/ si apoi am rulat:

Code: Select all

funpkg -i /ffp/funpkg/additional/minidlna-1.0.22-arm-1.txz
Aceasta operatiune am desfasurat-o in alta fereastra de putty.

Daca nu gasiti pe net fisierul minidlna-1.0.22-arm-1.txz, vi-l trimit eu pentru ca nu l-am putut atasa aici.
Samsung UE 48J5500, ZyXEL NSA310, router Linksys EA2700.
androidul
Informat
Posts: 84
Joined: 17 Dec 2012, 09:36

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by androidul »

care este metoda de instalare a pachetelor txz?
nks14
Nou pe forum
Posts: 2
Joined: 27 Feb 2013, 10:12

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by nks14 »

voua va mai intra hdd-ul in idle dupa ce ati instalat minidlna ?
nks14
Nou pe forum
Posts: 2
Joined: 27 Feb 2013, 10:12

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by nks14 »

problema nu e de la minidlna ..
daca FFP e instalat pe HDD, atunci orice app/daemon care scrie log-uri nu lasa hdd-ul sa intre in sleeping mode.

pentru minidlna, log-urile se scriu la interval de (notify_interval), pentru ca se face ssdp - minissdp.c:347: debug: Sending SSDP notifies
cred ca solutia este sa punem ssdp=off la logging in minidlna.conf
go4saint
Nou pe forum
Posts: 8
Joined: 16 Oct 2012, 20:53

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by go4saint »

nks14 wrote:problema nu e de la minidlna ..
daca FFP e instalat pe HDD, atunci orice app/daemon care scrie log-uri nu lasa hdd-ul sa intre in sleeping mode.

pentru minidlna, log-urile se scriu la interval de (notify_interval), pentru ca se face ssdp - minissdp.c:347: debug: Sending SSDP notifies
cred ca solutia este sa punem ssdp=off la logging in minidlna.conf
trebuie modificat scriptul de Start in minidlna.sh pentru a nu creea log-uri, si atunci hdd-ul o sa intre in sleeping mode.

opriti minidlna

Code: Select all

/ffp/start/minidlna.sh stop
intram in File manager

Code: Select all

cd /ffp/start/

Code: Select all

mc
mergeti pe minidlna.sh, edit si stergeti atributul -v (verbose logging)

Code: Select all

minidlna_flags="-f /ffp/etc/minidlna.conf -P $pid_file"
salvati fisierul si porniti minidlna

Code: Select all

/ffp/start/minidlna.sh start
iulianwizard
Nou pe forum
Posts: 1
Joined: 24 Jun 2013, 17:36

Re: Instalare Minidlna 1.0.24 pe FFP 0.7 arm

Post by iulianwizard »

salut,

sunt nou pe forumul samsungtv, primesc urmatoarea eroare la pasul 21, stie cineva cum se rezolva? multumesc.

root@nsa310:/i-data/d389f1cf/build/minidlna-1.0.24# make
./genconfig.sh
Compiling minidlna.c
In file included from /ffp/include/sys/stat.h:107:0,
from /ffp/include/fcntl.h:38,
from minidlna.c:58:
/ffp/include/bits/stat.h:72:21: error: field 'st_atim' has incomplete type
/ffp/include/bits/stat.h:73:21: error: field 'st_mtim' has incomplete type
/ffp/include/bits/stat.h:74:21: error: field 'st_ctim' has incomplete type
/ffp/include/bits/stat.h:118:21: error: field 'st_atim' has incomplete type
/ffp/include/bits/stat.h:119:21: error: field 'st_mtim' has incomplete type
/ffp/include/bits/stat.h:120:21: error: field 'st_ctim' has incomplete type
In file included from /ffp/include/fcntl.h:38:0,
from minidlna.c:58:
/ffp/include/sys/stat.h:365:33: error: array type has incomplete element type
/ffp/include/sys/stat.h:372:56: error: array type has incomplete element type
In file included from upnpglobalvars.h:54:0,
from minidlna.c:74:
minidlnatypes.h:106:2: error: expected specifier-qualifier-list before 'time_t'
In file included from minidlna.c:74:0:
upnpglobalvars.h:182:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'startup_time'
minidlna.c: In function 'set_startup_time':
minidlna.c:163:2: error: 'startup_time' undeclared (first use in this function)
minidlna.c:163:2: note: each undeclared identifier is reported only once for each function it appears in
minidlna.c:163:2: warning: implicit declaration of function 'time'
minidlna.c: In function 'main':
minidlna.c:858:2: error: 'time_t' undeclared (first use in this function)
minidlna.c:858:9: error: expected ';' before 'lastupdatetime'
minidlna.c:1162:34: error: 'lastupdatetime' undeclared (first use in this function)
The following command failed:
gcc -Wall -g -O3 -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -I/ffp/include/ffmpeg -I/ffp/include/libavutil -I/ffp/include/libavcodec -I/ffp/include/libavformat -I/ffp/include/ffmpeg/libavutil -I/ffp/include/ffmpeg/libavcodec -I/ffp/include/ffmpeg/libavformat -o minidlna.o -c minidlna.c
make: *** [minidlna.o] Error 1
Post Reply