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
B)
Code: Select all
chmod a+x /ffp/bin/uwsiteloader.sh
Code: Select all
uwsiteloader.sh

D)
Code: Select all
slacker -Ua
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

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

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
Code: Select all
mkdir -p /i-data/md0/build/ffp/start /i-data/md0/build/ffp/etc /i-data/md0/build/ffp/bin
Code: Select all
mv /ffp/start/minidlna.sh /i-data/md0/build/ffp/start
Mergem in folderul /i-data/md0/build/ffp/start
Code: Select all
cd /i-data/md0/build/ffp/start
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
Code: Select all
wget http://downloads.sourceforge.net/project/minidlna/minidlna/1.0.24/minidlna_1.0.24_src.tar.gz
Code: Select all
tar zxvf minidlna_1.0.24_src.tar.gz
Code: Select all
rm minidlna_1.0.24_src.tar.gz
Code: Select all
cd /i-data/md0/build/minidlna-1.0.24
Code: Select all
sed -i 's/usr/ffp/g' genconfig.sh
Code: Select all
mc
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
Code: Select all
mc
linia 26 devine
SBININSTALLDIR = $(INSTALLPREFIX)/bin
in linia 40 adaugam 2 variabile LIBS)
LIBS= -lintl -liconv
Pasul 21 : Compilam :
Code: Select all
make
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
Code: Select all
cd /i-data/md0/build/ffp/etc
Code: Select all
mc
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
Code: Select all
rm -rf minidlna-1.0.24/
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
Code: Select all
mv /tmp/minidlna-1.0.24-arm-0.txz /ffp/funpkg/additional
Code: Select all
cd /ffp/funpkg/additional
Code: Select all
funpkg -i minidlna-1.0.24-arm-0.txz
Code: Select all
/ffp/start/minidlna.sh start
http://nsa310:8200 sau http://IP-ul.NAS.ului:8200

Felicitari !!!!!!
MiniDLNA pe TV

Alte setari pt miniDLNA :
Verificam status-ul Minidlna :
Code: Select all
/ffp/start/minidlna.sh status
Code: Select all
/ffp/start/minidlna.sh stop
sau
Code: Select all
killall minidlna
A) Oprim MiniDLNA :
Code: Select all
/ffp/start/minidlna.sh stop
Code: Select all
funpkg -r minidlna-1.0.24-arm-0.txz
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