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
2. gettext_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 install cd 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=1Reboot (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)}
- Let's 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..
(Haven't 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
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/
I have tried to compile minidlna, but I'ts not possible because latest versions need gettext-0.18 or newer.
ReplyDelete¿Is there a solution?
Gettext 0.18 uploaded :)
Delete*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download Now
Delete>>>>> Download Full
*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download LINK
>>>>> Download Now
*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download Full
>>>>> Download LINK Cu
Yeah, either download the deb from here http://www.box.com/s/z7vmikig5el2hoir5koy
ReplyDeleteand then install it, or even better download the gettext-0.18 (http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz) and compile it from source yourself.
Take care.
it works in seagate nas 400?
ReplyDeleteSupposedly yes. It depends on which Linux distro you are running... This one is for Debian Lenny.
DeleteHi,
ReplyDeleteCan you compile us latest version for minidlna? I see its at 1.0.25
Thank you,
Cip
Unfortunately, no.
DeleteI am not @ home. And even when I get there (once every six months), I don't have time to update anything. Sorry for that. But the instruction are there. You can compile it yourself and then provide a link to it here (please do, even if you put it in your own blog, space, or whatever) so that other users can have access to it as well.
This comment has been removed by the author.
DeleteDone with stable release 1.0.25... Back to my hometown and I updated everything (transmission as well) ;-) Have fun guys!
DeleteNeedless to say, that if you could support me by clicking the ads, that would be great. Just one click (no more as it may count as fake) in one ad.
ReplyDeleteCould you please explain a bit, how to install gettext?
ReplyDeleteFor every deb file, you install it like that:
Deletesudo dpkg -i package_file.deb
In case you want to unistall it, just:
sudo dpkg -r package_name
So, in your case it will be something like:
sudo dpkg -i gettext_0.18.2-1_armel.deb
Don;t forget to click on an ad ;-)
okei, but where do i have to put this deb file? do i have to upload it to hdd or how does it work?
ReplyDeleteYou put it wherever you want. I usually put them in the hdd...
Delete*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download Now
ReplyDelete>>>>> Download Full
*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download LINK
>>>>> Download Now
*Nix'S Blog: Nas 110/220/440 Part 2: Install Minidlna In Blackarmor 110 (Linux Debian) >>>>> Download Full
>>>>> Download LINK