Home
  • Intro
  •  
  • Energy
    • Energy diversion
    • My Energy Diverter
    • Oven control
    • Resources
  •  
  • Banana Pi M5
    • Install Armbian
    • Setting up
    • SSH connection
    • Static IP address
    • Install SAMBA
    • Install Apache
    • Install MySQL
    • Install PHP
    • Install phpMyAdmin
    • Install FTP server
    • Add web site
    • erase eMMC
  •  
  • Arduino
    • Programming
    • Connecting to PHP/MySQL
  •  
  • Energy app
    • Example
  •  
  • Music server (NAS)
    • miniDLNA
    • Installing on BPi-M5
    • Uploading files

Installing miniDLNA

Log in as root privileged su:
Just in case, update your system ...

BPiM5:yourname:# apt-get update -y && apt-get upgrade -y

Install miniDLNA ...

BPiM5:yourname:# apt-get install minidlna -y

Should you, by any chance, have any old versions of miniDLNA installed, remove them first:

  • apt-get purge minidlna -y
  • apt-get remove minidlna
  • apt-get autoremove -y

 

Next: Edit the configuration file:

BPiM5:yourname:# nano /etc/minidlna.conf

I added the following lines just underneath the default lines that start with the # comment

  1. media_dir=A,/var/lib/minidlna/music
  2. media_dir=V,/var/lib/minidlna/video
  3. media_dir=P,/var/lib/minidlna/pictures

Three lines need to be uncommented (remove the #)

  1. db_dir=/var/cache/minidlna
  2. log_dir=/var/log
  3. friendly_name= (then add your name of choice. I call mine Pi Music)

Exit and Save: by pressing ... Ctrl+X .... Y ... Enter

Re-start miniDLNA

BPiM5:yourname:# service minidlna restart

To rebuild the database use:

BPiM5:yourname:# service minidlna force-reload
Next step: Uploading your files to miniDLNA Next