I am in the process of getting rid of the Mac OS on all my computers, and installing Manjaro. Including on our Media Server.
The Main question on this post is regarding the installation and running of MiniDLNA on our Thecus 5 bay NAS (which was once upon a time, a Windows 10 based NAS).
I installed miniDLNA using the terminal command: sudo snap install minidlna-jdstrand which was successful.
Can you advise on how to set it to boot upon start up and how to enter the configuration section to point the application to the Hard Drives, etc please.
I am happy with that, Many thanks. and it will create benefits by helping other people set up a media server with ease.
The Thecus NAS has an SSD which is the boot disk that has the Manjaro OS and MiniDLNA, as well as 2 Hard Drives that has Music files & Videos respectively.
How do I configure MiniDLNA to work with the Hard Drives?
First I would recommend to add the HDD to /etc/fstab for mounting on boot.
Then please read the man page:
man minidlna.conf
There you see:
media_dir
Path to the directory containing the media files minidlna should share.
Use this option multile times if you have more than one directory to share.
Example:
media_dir=/opt/multimedia/videos
media_dir=/opt/multimedia/movies
You can also restrict an entry to a specific media type, you do this by using the following syntax:
the letter 'A', 'V' or 'P', followed by a comma (',') followed by the path.
The meaning of the first letter is as follows:
'A' for audio files
'V' for video files
'P' for image files
For example, if you want to include only video files located
in /opt/multimedia/videos directory, and only music
in /opt/multimedia/music, then you would use
media_dir=V,/opt/multimedia/videos
media_dir=A,/opt/multimedia/music
Another example would be
media_dir=V,/opt/multimedia/videos
media_dir=V,/opt/multimedia/movies
media_dir=A,/opt/multimedia/music
Or, if you did not care what type it finds, then you could use
media_dir=/opt/multimedia/videos
media_dir=/opt/multimedia/movies
media_dir=/opt/multimedia/music
You can mix it up, find anything in music, but only Videos, in videos and movies
media_dir=V,/opt/multimedia/videos
media_dir=V,/opt/multimedia/movies
media_dir=/opt/multimedia/music
That should explain it and edit the file /etc/minidlna.conf
After restarting the service, it should be applied:
I hope not on /run/media. Please open a terminal and enter:
lsblk --fs
and post the output here.
How would you add it based on what I wrote already about it? Sorry, but I will not repeat myself. If it is a problem of understanding, then please be more precise.
sudo umount -v /mnt
sudo umount -v /run/media/homeserver/Video\ Disk
sudo umount -v /run/media/homeserver/Music\ Disk
Make it permanent. Edit the /etc/fstab file
sudo nano /etc/fstab
Add there
# Video on /dev/sdb1
UUID=a3d664d4-ad44-43f9-b877-707922d133a6 /HomeServer/Video ext4 defaults 0 2
# Music on /dev/sdc1
UUID=4DEC917D761960ED /HomeServer/Music ntfs-3g defaults,noatime,windows_names,hide_hid_files,hide_dot_files,big_writes,uid=1000,gid=1000 0 0
and save it with CTRL + S and close it with CTRL + X
Now mount the folders:
sudo mount -v /HomeServer/Video
sudo mount -v /HomeServer/Music