studying my hobby


miniDLNA: Dockstar as DLNA-Server v1.1.4

(20 votes, average: 4.80 out of 5)

Today I noticed there is a new version of miniDLNA available. When the build process was running I decided to make a deb-file that you guys don't have to compile the sources yourself.

Some people don't want to install the build-environment or sources of dependencies, that's two of the reasons why I put the files together into an installable deb-file, there you go: (Look at the updates below for feature versions!)

Now edit the config in /etc/minidlna.conf and start the service:

If everything works fine, the server should show up on your dlna-clients.

If your kernel supports inotify (my 3.1.10 does) and you want miniDLNA to use it, check if the device is present:

If it's not created automatically by udev, you have to do it manually:

After you restarted miniDLNA you should instantly see directorychanges on your clients.

Update 12.09.2011: v1.0.22

I just compiled the new version and packed it to a new deb file. To update just install it:

In the version tag I added a version number lower than sid to avoid problems during system upgrade, thanks to fear_factory84!

Update 28.01.2012: v1.0.23

Today I found some time to build the new version into a deb-file. There you go:

Update 21.02.2012: v1.0.24

Just build the new version into a deb-file. There you go:

Update 24.07.2012: v1.0.25

Just build the new version into a deb-file. There you go:

Update 18.06.2013: v1.0.26

Just build the new version into a deb-file.
Because of a dependency change, you need to update libavformat. It isn't part of the debian repo, so we need deb-multimedia. Follow the intructions on how to include it in your sources.list!
Then install my .deb and update the deps:

Update 09.03.2014: v1.1.2

Just build the new version into a deb-file.
Maybe you need to remove older versions of minidlna, because the developer changed its path from /usr/sbin to /usr/local/sbin.
Backup your current config and install my .deb:

Update 06.09.2014: v1.1.4

Just build the new version into a deb-file.
Backup your current config and install my .deb:

  • Thanks!

  • Minidlna is also included in Debian Wheezy and Sid. So you could directly install it via apt, if youre on Squeeze then you could use apt-pinning to only install minidlna and keep the rest of the system as it is.

    • shyd

      Thanks for the hint!

      • fear_factory84

        A recompiled backport it’s better than using the sid/wheezy version, you only missed a version number in order to avoid problems when you will upgrade your system.
        You need to add a package version number less than the sid one. For example:
        that’s less than sid one:

        Is minidlna better than mediatomb? I found that mediatomb uses a lot of memory (plus mysql memory, but I use it also for other purposes)..

        • shyd

          Thanks for the hint! I will regard at next package.

          Difficult to say which is better or not. I wanted a simple solution without a webinterface, so I’ve chosen minidlna. You should try both and decide which fits best for your needs.

          • grimsrud

            1.0.22 is out btw :D

            • shyd

              Thanks! Just wait a few minutes :)

            • shyd

              New deb file, there you go! :)

              • grimsrud

                Thank you for building the package! Nice service :)


              • grimsrud


                1.0.25 is out… if you still care about making debs :) I would be glad if you would do :)

                Greets. Grimsrud

                • shyd

                  Sure I do! :)
                  Already downloaded the src a couple of days ago, now the deb is ready.

                  • grimsrud

                    Yeay :D
                    Thank you very much!

  • ubuntunewbie

    Hi I’m fairly new to Ubuntu and think I got everything working except for starting the service.
    Hoping someone can help me?

    Thanks in advanced.

    vu@wonghptv:/usr/sbin$ service minidlna start
    * Starting minidlna minidlna start-stop-daemon: unable to start /usr/sbin/minidlna (Exec format error)

    • shyd

      Hi, did you install it on a desktop pc or on a dockstar running ubuntu? My deb file will run on an arm-system only.

  • Craig Chambers


    I’m a long time user of miniDLNA on my home server (i386). I came across your blog post while searching for a more recent compiled binary for ARM architecture to update the rather old version on a Netgear Stora that I purchased for my parents-in-law. Does the binary in the .deb have any library dependencies, or are they all statically compiled into the executable file?

    Thanks for your efforts,
    Craig Chambers

    • shyd

      Hi, I didn’t compile any deps explicitly. You should be able to install them automatically with apt afterwards.

  • Lee


    I have an OpenRD ARM platform with Debian debian squeeze & tried install package minidlna-1.0.22-arm.deb. But, I have the following error:-

    Selecting previously deselected package minidlna.
    (Reading database … 21569 files and directories currently installed.)
    Unpacking minidlna (from minidlna-1.0.22-arm.deb) …
    dpkg: dependency problems prevent configuration of minidlna:
    minidlna depends on libid3tag0; however:
    Package libid3tag0 is not installed.
    minidlna depends on libflac8; however:
    Package libflac8 is not installed.
    minidlna depends on libvorbisfile3; however:
    Package libvorbisfile3 is not installed.
    minidlna depends on sqlite3; however:
    Package sqlite3 is not installed.
    minidlna depends on libavformat52; however:
    Package libavformat52 is not installed.
    dpkg: error processing minidlna (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:

    Any idea what is the problem ?

    • shyd

      Did you try to install the deps manually before running dpkg -i?

      • Lee

        Nope, first time installation. Could it be because libid3tag0, libflac8, libvorbisfile3, sqlite3, libavformat52 have not yet pre-installed in my system which your deb depend on them ?

        • shyd

          Yup, this is what I mean. Install them first with apt-get install libid3tag0 libflac8 libvorbisfile3 sqlite3 libavformat52. After that you should be able to install the deb file.

          • Konstantin

            On debian squeeze (Pogoplug v3), I needed all of these dependencies before minidlna would start.

            apt-get install libid3tag0 libflac8 libvorbisfile3 sqlite3 libavformat52 libavcodec52 libavutil50 libjack-jackd2-0 librtmp0 libx264-118 libogg0 libvorbis0a libavutil49

            Thanks a lot for providing this package in deb format!!

  • Lee

    I tried install the dependency packages but with some error :-

    sudo aptitude install libid3tag0 libflac8 libvorbisfile3 sqlite3 libavformat52
    The following NEW packages will be installed:
    libavcodec52{a} libavformat52 libavutil49{a} libdirac-encoder0{a} libfaad2{a} libflac8 libgsm1{a} libid3tag0
    libogg0{a} libopenjpeg2{a} liborc-0.4-0{a} libschroedinger-1.0-0{a} libspeex1{a} libtheora0{a} libvorbis0a{a}
    libvorbisenc2{a} libvorbisfile3 sqlite3
    0 packages upgraded, 18 newly installed, 0 to remove and 0 not upgraded.
    Need to get 11.1 MB of archives. After unpacking 25.6 MB will be used.
    Err squeeze/main libavutil49 armel 4:0.5.2-6 404 Not Found [IP: 80]
    Err squeeze/main libavcodec52 armel 4:0.5.2-6 404 Not Found [IP: 80]
    Err squeeze/main libavformat52 armel 4:0.5.2-6 404 Not Found [IP: 80]
    E: Failed to fetch 404 Not Found [IP: 80]

  • Lee

    I have a mp4 file downloaded from & able to playback with video & sound locally on my pc.

    I copy this same file to minidlna box & playback as usual from another dlna clients – Skifta app on Andriod Neuxs One phone & XBMC in ATV2, there is only video & no sound at all. Others mp4 files is OK, except this one.

    Any idea?

    • shyd

      This maybe has to do something with your clients or minidlna isn’t able to stream the sound of this video. Please ask the developers for additional info. I am not in the code, I am just providing an installable package.

  • Christian


    Installation worked perfect..But the server is not scanning the full directory and even if you change the notify interval will not influence anything….?! any recomendation..?!


    • shyd

      This has to do with inotify. As far as I know it is not enabled in the kernel, so you need to refresh the database manually by restarting minidlna. If this doesn’t work, tryminidlna -R

  • Lee

    I noticed that minidlna leaked memory. Did you encounter this problem?

  • Pingback: Computerul meu - Page 7 - My Garage()

  • Craig Chambers

    Thanks Shyd. I’ll give this a try on my Netgear Stora tomorrow. The last one worked a treat and fixed a bug in the stock 1.0.22 :-)


  • Nice one mate, I’ve just installed v24 on my sheevaplug and it’s up and running. Thanks

  • Tien

    Thanks. Just updated to v24 on my Debian Squeeze 6 and it works like charm. Awesome works as always

  • Pingback: Raspberry Pi: Media Server Pt. 1 | senab()

  • chessplayer

    Hi, thanks for all your Dockstar-work. With this DEB in particular, I was able to connect my VDR on Dockstar with my new Blu-Ray Player in just about 10 minutes (including the googling). Now the recordings are scaled up when I play them and it is just so much easier than watching them using the PC.

    Great stuff!

  • Peter Ries

    Hi & thanks for compiling minidlna for arm devices. I was just wondering if you could add the patch mentioned here: so I would be able to stream vdr (mpeg) recordings to my tv. I’ve no experience in cross-compiling so it would be a great help.

    • shyd

      Hi, that is absolutely no problem, you can simply apply the patch and build the sources directly on your device (with build-essential installed on it).
      I did it for you:
      Install minidlna from my .deb, then overwrite /usr/sbin/minidlna with the new binary packed in

      Hopefully it works as desired.

  • Peter Ries

    Great, thanks. I’ll give it a try. And I will install build essentials. If it is that simple ;-)

  • Hi Shyd

    I have a Seagate GoFlex Home 2TB – The DLNA hasnt been updated which i have the latest but dont know how to install it. I am a Windows Guy so I dont know much about Unix. I do have Putty and connected with SSH. I can stop, start, reload and status. The rebuild of the database nearly took 4 days and still doesnt refresh the content. I have 3 Directories :
    1.Brandon -> 1.Movies, 2.Series & 3.Music.

    It doesnt refresh often as I would love it too.
    This is very frustating and irritating as I know there is way more on the drive than I am looking at.
    What can I do or could you please help me fix this problem.

    Thank you so much

    • shyd

      first of all check its version with putty, type minidlna -V
      My suggestion for an automatic update would be to check the presence of inotify, type ls -l /dev/inotify
      Post the two outputs here, then we will go on.


  • Tien Nhan

    Dear Shyd,

    I just come across a transcoding version of minidlna and just wonder if you can compile it to a .deb package or if could you show me how to compile it from source on a debian squeeze linkstation ls-vl.

    • shyd


      nothing easier than compiling minidlna! All you need is build-essential, then download minidlna-src, cd into the untared directory. Make your changes, apply patches etc.
      Then simply run
      make all
      make install
      make install-conf
      and edit the config.

      Now you should be able to start your freshly compiled minidlna. Note: the init script has to be copied manually.


  • martin

    Hi All,

    I have problems with miniDLNA 1.0.25 on my Netgear Stora. it seems to not index all movies by some reason. it starts indexing all photos and then goes to the movies, only finds 3 movies though I have a lot more. I’ve upgraded miniDLNA to 1.0.25 from 1.0.22. I have it running from the /home/0common dir and the conf file is in the same.
    Any ideas?


    • shyd

      how many photos are indexed (http://ipofstora:8200)?
      A friend of mine had similar problems when indexing a huge music library and some movies.


      • martin

        this is what I get
        MiniDLNA status
        Audio files: 0
        Video files: 3
        Image files: 15099

    • martin

      …also I get the following when starting up the minidlna

      Sarting ../minidlna … /…./lib/ no version information available (required by /…/minidlna)
      /…/minidlna:/usr/lib/ no version information available (required by /…/minidlna)

      • shyd

        Try to install the packages libavutil and libjpeg-progs.
        Further try excluding the images and check if all movies are indexed.
        I don’t know where the file count limit in minidlna is, so try some scenarios.

        • martin

          yes will try that.
          strange though that it could index all files using version 1.0.22.

          • shyd

            For minidlna specific questions please consider asking in the forums as I am not in the code.
            Good luck with the packages to install though!

            • martin

              is there an way I can check if these packages are installed already?
              I seem to have very little space left in the rootfs –

              “df -t rootfs -h” gives
              rootfs 212M 211M 152k 100%

              how can I free up space here if this might have something to do with it?

  • Joao Rocha

    hi , i today i tryed to use 1 wget
    2 dpkg -i minidlna-1.0.24-1-arm.deb
    3 apt-get -f install
    4 dpkg-reconfigure minidlna

    but when i do this in putty it give me a error :dpkg : command not found . i have no idea about what can i do :S

    • shyd

      you need to be root, are you?

      • Joao Rocha

        yes , i guess i am , to be root what i do is . username_hipserv2_seagateplug_XXXX-XXXX-XXXX-XXXX and then do sudo -E -s but i always get this error audit_log_user_command(): Connection refused .
        Can u tell me the best way to root ?

        • shyd

          Well, the easiest way is typing: su
          Or just log in as user root.
          If your user is in sudoers, “sudo dpkg -i …” should work as well.

          • Joao Rocha

            when i type su it asks for a password and when i write my password it says password incorrect what can i do ?

            • shyd

              Type the rootpassword. You should know it. If you used Jeff’s or my script to install debian and you didn’t change it, it is simply root.

              But if you have forgotten it, you need to mount your rootfs in another system and alter the passwd in the /etc/shadow

              • Joao Rocha

                Can u link the debian script ? , i dont have it installed im doing this on windows

                • shyd

                  Eh? minidlna on windows using my .deb?! This won’t work at all!
                  Sorry, but it seems you don’t know what you are doing?
                  Using the script on a laptop/desktop computer doesn’t work either.

                  Or are you talking about putty? Or even cygwin?

                  • Joao Rocha

                    i explain . i acess my goflex drive by putty and tryed to do the update to Minildna in putty.

                    • shyd

                      Ahh I see. Why so complicated :) It makes no difference what ssh client you use.
                      So, did you change the OS on the goflex or what is currently running on it?

                    • Joao Rocha

                      my goflex is unchanged , is factory default . I’m trying to update the minidlna by a fresh base u see :) ?. i didnt changed anything. the os in my computer is windows 7 , from my goflex is the factory default . i dont know the name

  • Joao Rocha

    i was talking about putty … i tryed that on putty

  • Joao Rocha

    my goflex is unchanged , is factory default . I’m trying to update the minidlna by a fresh base u see :) ?. i didnt changed anything. the os in my computer is windows 7 , from my goflex is the factory default . i dont know the name

    • shyd

      Thanks for the information, finally ;)
      I don’t know if it’s even possible to update minidlna on stock firmware. Never used it on my dockstars/goflex net.
      Well, I don’t know your experience and knowledge level with unix and things. But if you know what’s going on with it, you might try to install a fresh debian on it. But this will void warranty!

      A good start would be this post:
      But I can’t guide you through the whole thing if you are not aware of any deeper knowledge. In this case you should just leave it as it is.
      You will have to setup everything from scratch. Initially there won’t be no such share to access from windows and so on.

      • Joao Rocha

        so i have to install debian in my goflex ? thats not hard . i will try if anything goes wrong i just reset it =) thank you by the information

        • shyd

          Exactly this won’t work, you cannot reset after installing debian that easy!
          Anyway it will try to boot from disk. If no rootfs is present, it boots from nand.
          Good luck with that!

  • Just a quick “thank you” as I’m an utter novice – having the Debian builds in a simple file has made life far easier for me and restored our broken NAS to life!

    I’ll bookmark this page and check back once in a while for future updates though the current build *seems* to do everything we need :)

  • Pingback: dns323 linux and debian version / install minidlna | Jakob'll Fix It!()

  • Marco

    Thank you very much for this tutorial. MiniDLNA is working liek a charm with my Samsung SmartTV.
    I would like to ask if it can be possibile to run on dockstar also Plex Media server, in order to have a better experience on Smart TV (big coverart with description, TVseries handling…)

  • JS

    Thanks – i got it working and like it so far.
    Newbie q – how often does it rescan folders? is there a way to control it by automatically scanning only ones that have changed?

  • new

    Great job. Thanks!

  • John

    v1.0.26 has been released

    • I know, but I had no time to test this version yet.
      Anyway, thanks for asking so kindly for an updated .deb!

  • Al

    Shyd, could you provide a libavformat54 deb her?

    The installation on a dockstar (debian squeeze according to Jeff Doozan) did not work for, because libavformat54 ist missing. (libavformat52 exists). ist in my sources.list however. The output looks like:

    root@eisnetz:~# dpkg -i minidlna-1.0.26-1-arm.deb
    Selecting previously deselected package minidlna.
    (Reading database … 14236 files and directories currently installed.)
    Unpacking minidlna (from minidlna-1.0.26-1-arm.deb) …
    dpkg: dependency problems prevent configuration of minidlna:
    minidlna depends on libavformat54; however:
    Package libavformat54 is not installed.
    dpkg: error processing minidlna (–install):
    dependency problems – leaving unconfigured
    Errors were encountered while processing:

    And “apt-get -f install” removes the minidlna package:

    root@eisnetz:~# apt-get -f install
    Reading package lists… Done
    Building dependency tree
    Reading state information… Done
    Correcting dependencies… Done
    The following packages were automatically installed and are no longer required:
    libvorbisfile3 libflac8 libid3tag0 sqlite3
    Use ‘apt-get autoremove’ to remove them.
    The following packages will be REMOVED:
    0 upgraded, 0 newly installed, 1 to remove and 53 not upgraded.
    1 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Do you want to continue [Y/n]? y
    (Reading database … 14239 files and directories currently installed.)
    Removing minidlna …

    My sources.list looks like:
    root@eisnetz:~# cat /etc/apt/sources.list
    deb squeeze main contrib non-free
    deb squeeze/updates main contrib non-free
    deb squeeze main non-free


  • Nitin Garg


    Following is the output on my GoFlex home disk. I don’t see the dpkg installed on this. Do we hae rpm for mindlna 1.0.26 ?

    bash-3.2# uname -a

    Linux #14 Wed Oct 27 15:41:03 EDT 2010 armv5tejl armv5tejl armv5tejl GNU/Linux

    Nitin Garg

    • Hi,
      I don’t provide rpm’s, as all my unix systems are running debian.

      What does your golfex run? It looks like the stock system?!

  • JS

    I’ve one of older version running and its great but question..can this add thumbnails to video files or is there a way to enable it?

    Also just for clarification, sorting on any of dlna folders, is it client or server dependant?

    • Sorry for taking so long.
      I can’t answer those questions by now. Please consider asking in the official forums at sourceforge as I am not part of the project.

  • RP

    Getting lot of these errors in log, any idea?

    • RP

      sorry typo in earlier post, here’s actual error

      [2013/09/01 02:56:59] upnphttp.c:1112: warn: HTTP Connection closed unexpectedly

  • Willi

    There is a new Version 1.1.0. May be there is interest. I would test it. If possible please be so kind and build the new Version. Thank you!

    • Thanks for the hint! Both versions have the same release date. v1.1.0 fails during the build process. This is why I stick to v1.0.x

      • Kirill Shitikov

        Any progress with 1.1.0?
        I realy need this feature:

        – Add forced sorting support for Panasonic devices.

        Thank you in advance!

        • Not yet. But maybe I’ll try to build it again sometime.

        • v1.1.2 – here it is!

          • Kirill Shitikov

            Wow, thanks!

  • JS

    Can’t fine this package “libavformat54”
    I did try adding different sources and feedback that was given to someone below in the list..

    Does anyone know where to find it?

    • What dist are you using? Wheezy doesn’t have it in its repo. Try this one:

      • J

        squeeze, i did have as source list but didnt find that. I had also tried manually download and install but then it said few more dependancies to even install that..

        • Well, it’s not part of the squeeze repo:

          • J

            Sorry so does that mean i can’t get it or do i add different link in source list?

            • I don’t recommend installing packages for higher releases. Why don’t you upgrade to wheezy?

              • J

                i had squeeze on another USB stick and was running older version of minidlna fine.
                Then i got new squeeze & one of yours newer Kerner. then i tried installing your latest minidlan and that’s when i started getting this problem.

                I tried do Wheezy just now but getting lot of boostrap and other errors

  • Jeff

    Hello Shyd,
    I tried installing v1.1.2, but it has a problem generating pid files. When you first install the program, and try stopping it, it fails because the pid number is wrong in the pid file. This happens too when you reboot. Do you know how this can be fixed? Thank you for this great site!

    • Hi Jeff,

      some paths have changed. Are there files from previous versions remaining in your filesystem? Does /var/run/minidlna/ exist? What about its contents when minidlna is running?

      • baltzatu


        I own a DNS-320 (with Debian Squeeze on it) and I can confirm that there’s something off with the service. Instead of creating /var/run/, it creates /var/run/minidlna/

        I’ve solved it by editing /etc/init.d/minidlna:

        1. Added a new variable:

        2. Altered “stop” section accordingly:
        start-stop-daemon –stop –quiet –pidfile $PIDSTOP (instead of start-stop-daemon –stop –quiet –pidfile $PIDFILE)

  • xXAzazelXx

    I am getting on latest Wheezy :(

    Unpacking minidlna (from minidlna-1.1.2-1-arm.deb) …

    dpkg: dependency problems prevent configuration of minidlna:

    minidlna depends on libjpeg62; however:

    Package libjpeg62 is not installed.

    minidlna depends on sqlite3; however:

    Package sqlite3 is not installed.

    minidlna depends on libavformat54; however:

    Package libavformat54 is not installed.

  • Pingback: Sourcetrunk (Episode 087) | Sourcetrunk()

  • Philippe Galid

    Hi to Today is a new Update from miniDLNA – miniDLNA 1.1.5 how can I update miniDLNA 1.1.4 to miniDLNA 1.1.5 my system works fine,do you have any idea ?