NAS 110 220 440 part 2 Install minidlna in Blackarmor 110 linux debian

NAS 110 220 440 part 2 Install minidlna in Blackarmor 110 linux debian



Well, following previous post that we installed in our little NAS a linux distribution, why not use our little NAS as a DLNA Server? I personally prefer MiniDLNA as it uses less resources and less dependencies. But it is up to you.

I also have a minidlna deb file ready for your needs (so as not to compile everything from scratch). However you will need to configure the minidlna.init.script (put it in init.d folder) and the minidlna.conf files.
(minidlna_1.0.22-9-1-2011-1_armel.deb)

In case you want some newer packages/requirements and you don;t want to compile them for yourself, here they are:



1. minidlna.1.0.25-1_armel
2gettext_0.18.2-1_armel
3. m4_1.4.16-1_armel
4. automake_1.13.1-1_armel
5. autoconf_2.69-1_armel
6. checkinstall_1.6.2-1_armel

Update: Please click on one ad (no more as it may be considered as fake) in order to support my time compiling and finding the errors in compiling these packages. Thanks. :)


    Minidlna

    • Build depenedencies:aptitude install build-essential cvs gettext libavutil-dev libavcodec-dev libsqlite3-dev libjpeg62-dev libexif-dev libid3tag0-dev libogg-dev libvorbis-dev libflac-dev libavformat-dev autoconf
    • Switch to the Public folder:cd /media/Data/Public
    • Download source code:cvs -d:pserver:anonymous@minidlna.cvs.sourceforge.net:/cvsroot/minidlna login (and press enter) cvs -z3 -d:pserver:anonymous@minidlna.cvs.sourceforge.net:/cvsroot/minidlna co -P minidlna
    • Configure and installcd minidlna sh autogen.sh ./configure make make install (or simply to create a deb file for future reference checkinstall -D make install)
    • Install Startup Script: nano ./linux/minidlna.init.d.script (change MINIDLNA=/usr/sbin/minidlna to MINIDLNA=/usr/local/bin/minidlna or run whereis before that to see where minidlna is in fact installed...) cp ./linux/minidlna.init.d.script /etc/init.d/minidlna chmod +x /etc/init.d/minidlna Alternatively, you can nano /etc/rc.local and just before exit 0 add /etc/init.d/minidlna start #/usr/sbin/minidlna
    • nano /etc/minidlna.conf
    network_interface=egiga0 # port for HTTP (descriptions, SOAP, media transfer) traffic port=8200 # network interface to bind to (this is the only interface that will serve files) #network_interface=eth0 # set this to the directory you want scanned. # * if have multiple directories, you can have multiple media_dir= lines # * if you want to restrict a media_dir to a specific content type, you # can prepend the type, followed by a comma, to the directory: # + "A" for audio (eg. media_dir=A,/home/jmaggard/Music) # + "V" for video (eg. media_dir=V,/home/jmaggard/Videos) # + "P" for images (eg. media_dir=P,/home/jmaggard/Pictures) media_dir=V,/media/Data/Public media_dir=A,/media/Data/Public/Songs media_dir=P,/media/Data/Public/Pictures media_dir=/media/Data/Public/torrentflux # set this if you want to customize the name that shows up on your clients friendly_name=Server # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache db_dir=/media/Data/Public/var/cache/minidlna # this should be a list of file names to check for when searching for album art # note: names should be delimited with a forward slash ("/") album_art_names=folder.jpg/folder.png/Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folde$ # set this to no to disable inotify monitoring to automatically discover new files # note: the default is yes inotify=yes # set this to yes to enable support for streaming .jpg and .mp3 files to a TiVo supporting HMO enable_tivo=no # set this to strictly adhere to DLNA standards. # * This will allow server-side downscaling of very large JPEG images, # which may hurt JPEG serving performance on (at least) Sony DLNA products. strict_dlna=no # default presentation url is http address on port 80 #presentation_url=http://server/index.php # notify interval in seconds. default is 895 seconds. notify_interval=900 # serial and model number the daemon will report to clients # in its XML description serial=12345678 model_number=1
    Reboot (or in case you changed the conf file just  /etc/init.d/minidlna reload). Now to start the service upon boot time, just aptitude sysv-rc-conf and then run it (sysv-rc-conf) and tick 2,3,4 and 5.


    Mediatomb
    • Just install from aptitude mediatomb mediatomb-daemon mediatomb-common ffmpeg vlc ffmpegthumbnailer
    • To check if it is running write ls /etc/init.d
    • Update this is not necessary:{Mediatomb is kinda weird. In PuTTY just type "update-rc.d mediatomb defaults" (to remove from booting each time just type "update-rc.d -f mediatomb remove" or you can just skip the f parameter)}
    • Lets start fiddling with it. "nano /etc/mediatomb/config.xml" and beneath the element name (which you can change by the way) insert an element <port>15000</port> or which ever port you wish to have as a static for mediatomb.
    • "/etc/init.d/mediatomb restart" to restart the service.
    • "nano /etc/mediatomb/config.xml" and add   <custom-http-headers> <add header="transferMode.dlna.org: Streaming"/><add header="contentFeatures.dlna.org: DLNA.ORG_OP=01;DLNA.ORG_CI=0;DLNA.ORG_FLAGS=017000 00000000000000000000000000"/> </custom-http-headers>
    • Watch mine here

    Uninstall: gettext, sysv-rc-conf
    Still messing with those stuff..



    (Havent tried http://numsys.eu/divers/minidlna-cvs-fred-arm-dns-323-compil/)
    • Skip this. It is deprecated. aptitude install cvs libavcodec52 libavcodec-dev libavformat52 libavformat-dev libavutil49 libavutil-dev libflac8 libflac-dev libvorbis libogg0 libogg-dev libid3tag0 libid3tag0-dev libexif12 libexif-dev libjpeg62 libjpeg62-dev
    Tips: You can always check your free space with "df -h" and remove the cached deb files isuing the apt-get clean and autoclean and autoremove commands. Sources: here, here and here for Samsung TVs here Info from here:http://www.noerenberg.de/hajo/pub/seagate-blackarmor-nas.txt
    http://sourceforge.net/projects/minidlna/forums/forum/879956/topic/4815462
    http://www.readynas.com/forum/viewtopic.php?f=76&t=51478
    an arm deb: http://dev.shyd.de/2011/08/minidlna-dockstar-dlna-server/
    http://mentors.debian.net/package/minidlna
    For starting up the minidlna upon boot:
    http://stabbyjones.wordpress.com/2011/01/05/minidlna-the-best-streaming-software-hands-down/
    For the conf file of miniDLNA
    http://anotherdev.wordpress.com/2010/11/05/ubuntu-10-04-alternative-to-mediatomb-for-samsung-dlna-tvs-minidlna/


    go to link download

    Popular posts from this blog

    DroidJack RAT Androrat Android Sample

    Modern Combat 2 Black Pegasus apk data Free Download

    Notepad 6 6 8