Page 6 of 6 FirstFirst ... 456
Results 51 to 53 of 53

Thread: Guide to Installing and Running MiniDLNA on an Ubuntu Server

  1. #51
    Join Date
    Sep 2013
    Beans
    2

    Re: Guide to Installing and Running MiniDLNA on an Ubuntu Server

    Quote Originally Posted by sloopjonb View Post
    Don't get caught out with minidlna apparently not starting automatically.........

    When you use apt-get to install minidlna on Ubuntu Server it installs the start and stop scripts in the /etc/rcN.d folders with the minidlna server starting almost immediately in the boot process. This is too early! Things like RAID partitions might not be ready to be probed by minidlna at this point, so you need to delay it to later..... read on.....

    I'm running 11.10 (oneiric) and got minidlna to start automatically upon booting, with the following instructions:



    edit minidlna.conf to point towards the path for your video/audio etc.


    this removes the incorrectly numbered start up scripts.


    creates new start up scripts which will start near the end of the boot process

    All is now good in the world......

    All would be good if there wasn't a tiny, tiny typo in your code...

    The last code snippet should read
    Code:
    sudo update-rc.d minidlna defaults 99 01

    Great guide, by the way. Just need to fix my CRON jobs to re-run the scan at midnight and I'll be done.

    Savcom

  2. #52
    Join Date
    Sep 2013
    Beans
    2

    Re: Guide to Installing and Running MiniDLNA on an Ubuntu Server

    Quote Originally Posted by Martin_Davies View Post
    Just need to fix my CRON jobs to re-run the scan at midnight and I'll be done.
    Well it took a while, but if you want to automatically re-scan the media on your system then you should:

    • Choose or set up a user with a valid login account (don't use minidlna as it does not have a shell in which to run Cron tasks)
    • Under that user's Crontab enter the Cron task

    Code:
    #
    # Sudo command at 04:00 and 16:00 every day to re-scan the media directories for miniDLNA
    0 04,16 * * * minidlna -R -f /etc/minidlna.conf > /dev/null
    #
    • Make sure that /etc/default/minidlna is set up with that username and group too.

    Code:
    # User and group the daemon should run as
    USER="martin"
    GROUP="martin"

  3. #53
    Join Date
    Feb 2014
    Beans
    1

    Re: Guide to Installing and Running MiniDLNA on an Ubuntu Server

    Quote Originally Posted by donniezazen View Post

    Code:
    # 
    # set this if you want to customize the name that shows up on your clients
    friendly_name=Ubuntu Server
    I think you are supposed NOT to use " " within the Friendly name ?!
    Last edited by Urgrok; February 1st, 2014 at 10:32 PM.

Page 6 of 6 FirstFirst ... 456

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •