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
- media_dir=A,/var/lib/minidlna/music
- media_dir=V,/var/lib/minidlna/video
- media_dir=P,/var/lib/minidlna/pictures
Three lines need to be uncommented (remove the #)
- db_dir=/var/cache/minidlna
- log_dir=/var/log
- 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