Forums

Nick
Nick
Offline
Resolved
0 votes
I'm not so familiar with installing in this linux distro. Can someone tell me how to install the miniDLNA package? There is a link in the forum to a bunch of RPM's but have no idea how to proceed.

Thanks
Wednesday, April 14 2010, 08:59 AM
Share this post:
Responses (27)
  • Accepted Answer

    Wednesday, December 15 2010, 09:25 PM - #Permalink
    Resolved
    0 votes
    Hi Sebastiaan, thanks for the feedback - someone else also reported the same issue with sqlite. I still can't replicate this issue here, can you give any more information on what you were doing at the time (some 10 minutes after starting) to cause this error? were you playing or browsing media? video or photo's and to what type of device?
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 15 2010, 03:36 PM - #Permalink
    Resolved
    0 votes
    Hi Tim,

    Yes i have read that and installed the good version.

    I just restarted my cc box and did 'service minidnla status' and it replied that it was started.

    So that's solved.

    I did what you told me and I started minidnla with the rescan option. It removed the files in /tmp/minidnla.

    After the restart of the entire server it put the db and the logfile in that directory.

    This is the log file.

    --------------------------------------------------------------------------------------------------

    [2010/12/15 10:13:40] minidlna.c:720: warn: Starting MiniDLNA version 1.0.18 [SQLite 3.6.20].
    [2010/12/15 10:13:40] minidlna.c:743: warn: Creating new database...
    [2010/12/15 10:13:40] scanner.c:721: warn: Scanning /var/flexshare/shares/audio
    [2010/12/15 10:13:40] minidlna.c:808: warn: HTTP listening on port 8200
    [2010/12/15 10:15:40] scanner.c:789: warn: Scanning /var/flexshare/shares/audio finished (9322 files)!
    [2010/12/15 10:15:40] scanner.c:721: warn: Scanning /var/flexshare/shares/videos
    [2010/12/15 10:15:40] scanner.c:789: warn: Scanning /var/flexshare/shares/videos finished (9328 files)!
    [2010/12/15 10:15:40] scanner.c:721: warn: Scanning /extra/movies
    [2010/12/15 10:15:54] minidlna.c:115: warn: received signal 15, good-bye
    [2010/12/15 10:18:24] minidlna.c:720: warn: Starting MiniDLNA version 1.0.18 [SQLite 3.6.20].
    [2010/12/15 10:18:24] minidlna.c:747: warn: Database version mismatch; need to recreate...
    [2010/12/15 10:18:25] scanner.c:721: warn: Scanning /var/flexshare/shares/audio
    [2010/12/15 10:18:25] minidlna.c:808: warn: HTTP listening on port 8200
    [2010/12/15 10:22:10] scanner.c:789: warn: Scanning /var/flexshare/shares/audio finished (9322 files)!
    [2010/12/15 10:22:10] scanner.c:721: warn: Scanning /var/flexshare/shares/videos
    [2010/12/15 10:22:10] scanner.c:789: warn: Scanning /var/flexshare/shares/videos finished (9328 files)!
    [2010/12/15 10:22:10] scanner.c:721: warn: Scanning /extra/movies
    [2010/12/15 10:22:30] scanner.c:789: warn: Scanning /extra/movies finished (9535 files)!
    [2010/12/15 10:22:30] scanner.c:721: warn: Scanning /var/flexshare/shares/photos
    [2010/12/15 10:22:33] scanner.c:789: warn: Scanning /var/flexshare/shares/photos finished (9704 files)!
    [2010/12/15 10:33:24] sql.c:115: warn: sql_get_int_field: step failed: SQL logic error or missing database
    ------------------------------------------------------------------------------

    Thanks !
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 15 2010, 12:06 PM - #Permalink
    Resolved
    0 votes
    Hi Sebastiaan - did you see this thread? I have built an RPM version (with updated SQlite) which includes an init script.
    http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,36/func,view/id,3519/limit,10/limitstart,40/#18528

    AFAIK there is no presentation webpage for MiniDLNA so I leave that line commented out (not for use with a web browser anyway, it's for UPNP request made via http... see http://sourceforge.net/projects/minidlnawebmin/ for a web admin package)
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, December 15 2010, 11:17 AM - #Permalink
    Resolved
    0 votes
    Hi Tim,

    Been playing around with minidlna.

    Installing goes well.

    Now to get it working.

    If i use firefox and go to my server at port 80 i see strange characters instead of the minidlna server.

    Media player sees the server but no content.

    How do i know if it's auto starting at boot?

    Can you tell me what i'm doing wrong?

    Please see the config file.

    # 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=eth1

    # 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=A,/var/flexshare/shares/audio
    media_dir=V,/var/flexshare/shares/videos
    media_dir=V,/extra/movies
    media_dir=P,/var/flexshare/shares/photos

    # set this if you want to customize the name that shows up on your clients
    friendly_name=MediaServer

    # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
    #db_dir=/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=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

    # 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://www.mylan/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




    Many thanks,

    Sebastiaan.
    The reply is currently minimized Show
  • Accepted Answer

    Nick
    Nick
    Offline
    Sunday, May 09 2010, 09:47 AM - #Permalink
    Resolved
    0 votes
    As root move the minidlna tar.gz to teh '/' directory. From here you extract the 2 files and they will get installed in the etc and rsr/sbin location. You now change the ownership to root:
    chown root:root /etc/minidlna.conf /usr/sbin/minidlna (all from the / directory).

    Then you need to modify the minidlna.conf file as is explained in the conf file qnd on the minidlna website.

    Starting minidlna is very simple:
    /usr/sbin/minidlna -R (to make sure your media directories are registered)

    That's it!
    The reply is currently minimized Show
  • Accepted Answer

    Saturday, May 08 2010, 09:54 PM - #Permalink
    Resolved
    0 votes
    Hi
    I have been running into the same problems as freshboarder. After unpacking the file am left with two folders: etc (containing minidlna.conf) and usr (containing minidlna) niether of which i can make/install.
    How do i actually get the thing running.
    Whatever linux i have learnt has been in the course of trying to install this blessed program!!
    Would really really appreciate any help.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 21 2010, 02:24 PM - #Permalink
    Resolved
    0 votes
    I can't remember how I installed minidlna, but my download folder contains:
    minidlna_1.0.16.3_static.tar.gz (precompiled binary, config file, don't remember where I got it sorry)
    ffmpeg-0.4.9-0.9.20070530.el5.rf.i386.rpm
    and rpmforge installed

    according to http://wiki.flexion.org/DLNAServer.html#2.1 (ubuntu install)

    install:
    libavutil-extra-49 libavcodec-extra-52 libavformat-extra-52
    libavutil-dev libavcodec-dev libavformat-dev libflac-dev libvorbis-dev libid3tag0-dev libexif-dev libjpeg62-dev libsqlite3-dev

    I came back to minidlna after trying it out a few months ago. I am using Tversity on my desktop, but it has issues accessing the video files on the clearos share.

    on the weeked I wrote a startup script based on the ssh script :-)

    it is a basic starts and stop for minidlna and rebuilds the database on start.

    This is working great with my PS3's. I would like to find a web based dnla client to install onto my clearos server so the family can access content from media server without giving access to the file share.


    #!/bin/sh

    # chkconfig: 345 99 10
    # description: Startup/shutdown script for MiniDLNA daemon
    #
    # $Id: minidlna.init.d.script,v 1.2 2009/07/02 00:33:15 jmaggard Exp $
    # MiniUPnP project
    # author: Thomas Bernard
    # website: http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/

    # Source function library.
    . /etc/rc.d/init.d/functions

    # Source networking configuration.
    . /etc/sysconfig/network

    prog="MiniDLNA"
    MINIDLNA=/usr/sbin/minidlna
    ARGS='-f /etc/minidlna.conf'
    OPTIONS='-R'
    #Rebuild the database on start

    test -f $MINIDLNA || exit 0


    runlevel=$(set -- $(runlevel); eval "echo \$$#" )


    start()
    {
    echo -n $"Starting $prog: "
    $MINIDLNA $OPTIONS && success || failure
    RETVAL=$?
    [ "$RETVAL" = 0 ] && touch /var/lock/subsys/minidlna
    echo
    }

    stop()
    {
    echo -n $"Stopping $prog: "
    if [ -n "`pidfileofproc $MINIDLNA`" ] ; then
    killproc $MINIDLNA
    else
    failure $"Stopping $prog"
    fi
    RETVAL=$?
    # if we are in halt or reboot runlevel kill all running sessions
    # so the TCP connections are closed cleanly
    if [ "x$runlevel" = x0 -o "x$runlevel" = x6 ] ; then
    killall $prog 2>/dev/null
    fi
    [ "$RETVAL" = 0 ] && rm -f /var/lock/subsys/minidlna
    echo
    }

    reload()
    {
    echo -n $"Reloading $prog: "
    if [ -n "`pidfileofproc $MINIDLNA`" ] ; then
    killproc $MINIDLNA -HUP

    else
    failure $"Reloading $prog"
    fi
    RETVAL=$?
    echo

    }


    case "$1" in
    start)
    start
    ;;
    stop)
    stop
    ;;
    restart)
    stop
    start
    ;;
    reload)
    reload
    ;;
    condrestart)
    if [ -f /var/lock/subsys/minidlna ] ; then
    do_restart_sanity_check
    if [ "$RETVAL" = 0 ] ; then
    stop
    # avoid race
    sleep 3
    start
    fi
    fi
    ;;
    #status)
    #status -p $PID_FILE openssh-daemon
    #RETVAL=$?
    #;;
    *)
    echo $"Usage: $0 {start|stop|restart|reload|condrestart|status}"
    RETVAL=1
    esac
    exit $RETVAL

    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Tuesday, April 20 2010, 07:16 AM - #Permalink
    Resolved
    0 votes
    Do I need anything else installed to work with miniDLNA ??? vlc or codecs ???? its still not seeing any of the media at all.....

    put a .avi and a .mp4 file in the movies folder and nothing....have about 1oo pictures in the Pictures file and nothing... however I put some MP3s in the music file it reads them but has a 2101 DLNA error that pops up......
    The reply is currently minimized Show
  • Accepted Answer

    Nick
    Nick
    Offline
    Monday, April 19 2010, 07:14 AM - #Permalink
    Resolved
    0 votes
    I had the same problem on XMBC: could see the files, but nothing in it. I got it fixed by starting /usr/sbin/minidlna -R (stands for rescan)
    In the link below some extra info for those who want to get going with minidlna based on the bin file. I also found the script file for autostart (see 2nd link below).
    http://wiki.oppodigital.com/index.php?title=DLNA_Linux
    http://aur.archlinux.org/packages.php?ID=33532
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 11:18 PM - #Permalink
    Resolved
    0 votes
    sorry to keep posting without responses, so now I can add and listen to MP3's however cant see pictures listed in the files.... wondering are there only certian formats I can use..... getting a little brain dead here ... lol
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 11:12 PM - #Permalink
    Resolved
    0 votes
    OK back at it again ..... got the PS3 to recognize the server again .... went thru one at a time an reset everything ...

    what needs to be enabled on the flexshare ...file/ftp/web/e-mail

    i have file/ftp enabled at the moment
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 10:58 PM - #Permalink
    Resolved
    0 votes
    Sorry just frustrated ...been at this for a few days now and this is the last part of the project....had the server recognized on the PS3 at one point and 5 mins later it was gone.... and I didn't change a thing .... thats all 2 steps forward 3 steps back it seems

    Not sure where to go from here ..... went with minidlna because it really was the only posting that mentioned being able to support the PS3
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Sunday, April 18 2010, 10:21 PM - #Permalink
    Resolved
    0 votes
    Hi Casey,

    What where you planning when you are talking about "less secure" ... ?!?
    Answer it for yourself first, so you can focus on what you want to achieve.
    There are many roads to Rome.

    Greetings,

    John
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 10:11 PM - #Permalink
    Resolved
    0 votes
    yeah I did tne minidlna thing about 5-10 mins ago still nothing on the PS3

    I might just give up on this project..... It seems although windows might be less secure, it does make discovery of all features easier than installing and messing with all this.
    The reply is currently minimized Show
  • Accepted Answer

    John
    John
    Offline
    Sunday, April 18 2010, 10:09 PM - #Permalink
    Resolved
    0 votes
    Hi Casey,

    I don't use (mini)DLNA at all.
    I use an XBox and can play and access practically every codec with a simple share.
    My MP3's I stream with SHOUTcast (WinAMP plugin) to my XBox and to the Internet (when I chose too), or I can simply play them from the share.

    Just so you know that there are alternatives.
    The question you should ask yourself is why you decided to install (mini)DLNA and if it's the best solution for you.

    Greetings,

    John
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 18 2010, 10:00 PM - #Permalink
    Resolved
    0 votes
    Did the service start ok after reboot? if not then you'll need to do it manually by typing 'minidlna' from the console

    Note it can take a few minutes for devices to discover the service on the network (when they announce themselves periodically)

    The easy way was with Ron's RPM but it's been removed until futher notice...
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 09:46 PM - #Permalink
    Resolved
    0 votes
    well.... wtf ...now ... lol the PS3 doesnt see the server ..... did a restart ....haven't changed anything

    hmmmmm this is becoming a chore..... there is now easier way ?

    oh and yeah all my flexshare files are set up like that for simplicity sake
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 18 2010, 09:24 PM - #Permalink
    Resolved
    0 votes
    you can remove the line "media_dir=/opt"

    You probably also want to remove the spaces at the beginning of the media_dir lines

    Are you sure those directories actually exist on your system? they were provided merely as examples. I have created 3 flexshares with those names to put music / pictures and other files in, you will need to modify them to suit the location of your media files
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 09:12 PM - #Permalink
    Resolved
    0 votes
    Hey ... thanks for the prompt responses appreciate it .....

    checked all spelling and should be all set, also took snapshot of current server settings for the flexshare files


    # 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=/opt

    media_dir=P,/var/flexshare/shares/movies
    media_dir=A,/var/flexshare/shares/music
    media_dir=V,/var/flexshare/shares/pictures



    # set this if you want to customize the name that shows up on your clients
    friendly_name=ClearServer

    # set this if you would like to specify the directory where you want MiniDLNA to store its database and album art cache
    #db_dir=/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=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

    # 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://www.mylan/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
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 18 2010, 08:57 PM - #Permalink
    Resolved
    0 votes
    I guess your running the minidlna command as root?

    You might want to check for typos - linux is also case sensitive, is your flexxshare define with the 'allusers' group as owner? can you post the example your trying to configure?
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 08:37 PM - #Permalink
    Resolved
    0 votes
    says permission denied when i type minidlna in the cmd prmt???

    -- EDIT --

    ok so changed the chmod on the file minidlna in the /sbin folder to 777

    can now see the server on the PS3 however it says it doesn't have access to the folder in the flexshare folders
    The reply is currently minimized Show
  • Accepted Answer

    Sunday, April 18 2010, 08:28 PM - #Permalink
    Resolved
    0 votes
    Using Putty or WinSCP copy the file minidlna.conf to /etc/minidlna.conf, also copy the file minidlna to /usr/sbin/minidlna

    Configure the program by editing /etc/minidlna.conf,
    First set the interface to listen on..this is your LAN interface
    network_interface=eth0

    Configure some media directories, for example
    media_dir=P,/var/flexshare/shares/photos
    media_dir=A,/var/flexshare/shares/music
    media_dir=V,/var/flexshare/shares/video

    To run just type 'minidlna' at the command prompt. Ron's RPM version also included a service init script which meant that it would start on boot. This version doesn't, so you'll need to start it manually, or add it to /etc/rc.d/rc.local
    /usr/sbin/minidlna


    Hope that helps
    The reply is currently minimized Show
  • Accepted Answer

    Casey
    Casey
    Offline
    Sunday, April 18 2010, 08:12 PM - #Permalink
    Resolved
    0 votes
    I do not understand the process here .... <===newguy!!!

    I download the minidlna file it contains two folders with subfolders ultimately ending at a file for the directory.

    what do I do with these files... do i extract the contained files someplace..??

    I am having problems with puTTy using the ./configure or sh ./configure commands.... permission denied or something

    what commands should I be typing ?? I know spoon feeding is not fun but with something so technical its kinda hard to follow all this without some details as to whats being done vs the " i got it working" and then move on.....

    any help would be greatly appreciated
    The reply is currently minimized Show
  • Accepted Answer

    Nick
    Nick
    Offline
    Thursday, April 15 2010, 08:09 PM - #Permalink
    Resolved
    0 votes
    I have it working. I can see the server in xmbc, but cannot see the movie content! I can see the video folder, but there is nothing in it. When I add the windows share as a media folder to xmbc, i can see the content and play it. I've tried with the v, directory but no change.
    Any ideas?
    The reply is currently minimized Show
  • Accepted Answer

    Thursday, April 15 2010, 04:00 PM - #Permalink
    Resolved
    0 votes
    Is there a readme contained in the archive? it's supplied as a precompiled binary so I think it only needs copying to the right locations (possibly /usr/sbin then the config in /etc)
    The reply is currently minimized Show
  • Accepted Answer

    Nick
    Nick
    Offline
    Wednesday, April 14 2010, 02:11 PM - #Permalink
    Resolved
    0 votes
    Thanks Tim! Normally I would do:
    $ tar -xvf filename.tar
    $ ./configure
    $ make install

    When I look into the tar I see 2 folders etc and usr/sbin with the application.

    Am I doing the right thing? Or is it as simple as copying the files in the right folder on my gateway.
    The reply is currently minimized Show
  • Accepted Answer

    Wednesday, April 14 2010, 09:11 AM - #Permalink
    Resolved
    0 votes
    See the last reply by Ron, in the short term there is no longer an RPM install.
    http://www.clearfoundation.com/component/option,com_kunena/Itemid,232/catid,36/func,view/id,3519/limit,10/limitstart,30/#9318

    You can do it manually (although i've not tried):-
    http://sourceforge.net/projects/minidlna/
    The reply is currently minimized Show
Your Reply