DLNA

DLNA (Digital Living Network Alliance) are a big part of any modern home entertainment system. It is a standard for integrating file storage with display on visual and audio devices; from showing UHD video on your big screen TV to playing mp3s on your smartphone. My prime use is to store and play lossless FLAC music files; which has made my CD collection obsolite.
Many new audio visual devices are DLNA compliant making plug-and-play a doddle. Below is now I set up a DLNA server on my BananaPro


Log into your Banana Pro using Linux Terminal, Mac Terminal or Windows PuTTY

  • Update your version of Armbian (I'm using Ubuntu Bionic)..
       $ sudo apt-get update
       $ sudo apt-get upgrade
  • Remove any old miniDLNA version.... (only if necessary)
       $ sudo apt-get purge minidlna -y
       $ sudo apt-get remove minidlna
       $ sudo apt-get autoremove -y
  • Install miniDLNA
    $ sudo apt-get install minidlna
  • Edit the configuration
       $ sudo nano /etc/minidlna.conf

  • This version of minidlna will give you multiple folders under Video. Before movies and TV would have been under separate categories, now movies and TV will both be under the category video. It will also show the folder structure of them instead of showing just the video files. Avi files will also show up and be streamable.
    "inotify" uses resources because it auto-updates your library, if you don’t use inotify you will have to manually restart and reload the miniDLNA serviceevery time for add to your music/video collection.
    The friendly name is how your miniDLNA server will show up to its streaming clients

    ADD THESE FOLLOWING LINES and leave the old ones #ed out
    media_dir=A,/home/yourname/dlna/music
    media_dir=V,/home/yourname/dlna/movies
    media_dir=P,/home/yourname/dlna/pictures
    media_dir=PV,/home/yourname/dlna/digital_camera
    # Names the DLNA server
    friendly_name=YourServerName
    # Tells the DLNA to update the library when there are changes
    inotify=yes

    Save and exit

  • Start the minidlna service....
       $ sudo service minidlna restart

Transfer all your music files to the folder /home/yourname/dlna/music and movies to /home/yourname/dlna/movies etc...
You will now be able to access the media files through your DLNA compliant device