To make things easy for this whole process, you can use the command “sudo su” then “cd” to run as the root user and not have to type sudo every time
1) Updating the system:
Code: Select all
sudo apt update && sudo apt full-upgrade -yCode: Select all
sudo reboot -h nowCode: Select all
sudo apt install ntfs-3g minidlna -yIdentify drives:
Code: Select all
sudo blkidCode: Select all
sudo nano /etc/fstabCode: Select all
PARTUUID=06ecb0e7-01 /Server/Drive01 vfat defaults 0 2
PARTUUID=b32565ef-01 /Server/Drive02 vfat defaults 0 2
PARTUUID=bd4189b5-34cd-49e9-b7d3-2b72055263c7 /Server/Drive03 ntfs defaults 0 2
PARTUUID=64318921-01 /Secure vfat defaults 0 2After you have finished editing your mounting options you can run “sudo mount -a” to ensure all your drives are properly mounted, then reboot.
4) Once your rebooted, we move on to editing our MiniDLNA server configuration.
In terminal enter the following:
Code: Select all
sudo nano /etc/minidlna.confCode: Select all
#user=minidlnaCode: Select all
# Path to the directory you want scanned for media files.Code: Select all
media_dir=V,/Server/Drive03/Movies
media_dir=A,/Server/Drive03/Music
media_dir=P,/Server/Drive03/PicturesCode: Select all
#friendly_name=Code: Select all
friendly_name=Pi MediaFinally, we are ready to get the DLNA server going. So we run a couple commands in terminal before we start:
Code: Select all
sudo service minidlna restart && sudo service minidlna force-reloadOnce you’ve finished everything here, hop on your favorite DLNA client and enjoy!
Oh yeah, one last thing. Reboot.