How do you add a media library that is located in a NAS?
from quediuspayu@lemmy.dbzer0.com to jellyfin@lemmy.ml on 25 Aug 23:23
https://lemmy.dbzer0.com/post/51906093

It is a synology NAS and all forum posts and tutorials say to install container managerand set up docker. Well tough luck because my model doesn’t seem to be compatible with container manager.

Ok, I install the the server in a pc running linux mint, now when I try to create a library I can’t point where the files are.

#jellyfin

threaded - newest

tvcvt@lemmy.ml on 26 Aug 00:18 next collapse

It sounds like in your situation, you’d create a shared folder where your media lives (smb or nfs) on the Synology and mount that share to the machine running jellyfin. Then adding the folder as a library will be the same as choosing a local folder.

beerclue@lemmy.world on 26 Aug 05:48 next collapse

This is what I do. Shared folder via NFS, mounted inside the VM (fstab), added to the volumes of the docker container in the compose file…

quediuspayu@lemmy.dbzer0.com on 26 Aug 07:53 collapse

That was the idea but it comes to give it the path to the folder I don’t know what path I have to give it, the one I have from the file manager (smb://nas/videos/) jellyfin says it is not a valid path.

My guess is that I need to give it the path to where it is mounted but I can’t find it or even know if it is somewhere at all.

whyNotSquirrel@sh.itjust.works on 26 Aug 08:09 next collapse

On jellyfin you have to give the local path on the server, where your SMB share is mounted

The smb path to mount from Synology is like:

smb://[NAS]/volume1/[name of your share]

if you have more than one volume you need to choose the good one

Edit: not sure if it was the question actually

quediuspayu@lemmy.dbzer0.com on 26 Aug 08:19 next collapse

Oh!

Yes, I have two volumes but they never showed in the file manager, I’ll try it right now.

quediuspayu@lemmy.dbzer0.com on 26 Aug 08:33 collapse

It didn’t work. Is it possible that jellyfin just don’t have access? if so, how do I grant it access?

tvcvt@lemmy.ml on 26 Aug 11:32 collapse

In the long run you’ll want to specify where it lives. Manually you could use the mount command, but really you want the share to mount every time you reboot the machine so it’s always available. If you’re after a GUI app to do that, check out smb4k. I think that has options to do automatic mounting to a directory of your choosing (the path would typically be something like /media/<your username>/<synology hostname>/<name of share>).

If you want to do this from the command line, look into autofs, which lets you define a configuration and automatically mount an SMB share whenever your system needs it.

quediuspayu@lemmy.dbzer0.com on 27 Aug 10:14 collapse

I agree, I will have to learn to do it. One headache now to avoid all future headaches.

I’ll check them out, thanks.

Zombie@feddit.uk on 26 Aug 08:49 next collapse

…jellyfin.org/t-mounting-local-storage-in-linux-l…

This guide may be of help.

quediuspayu@lemmy.dbzer0.com on 26 Aug 09:18 collapse

It help to understand some things, I’m with the last poster:

And what do I do if I installed Jellyfin via Ubuntu software, it runs, but /etc/passwd shows no jellyfin user exists?

pupbiru@aussie.zone on 26 Aug 09:41 collapse

you should be able to find the user jellyfin is running as with:

ps aux | grep jellyfin

the first column is the user name or ID

you’re looking for a line something like this

biru       13576  0.1  9.6 281378280 3170688 ?   Ssl  Jul09  85:05 /usr/bin/jellyfin --ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg
quediuspayu@lemmy.dbzer0.com on 26 Aug 10:09 collapse

Let’s see, it returned three lines:

oriol       2759  0.0  0.0   3580  1280 ?        S    10:21   0:00 bwrap --args 38 -- jellyfin.sh
oriol       2768  0.1  1.9 275074792 323812 ?    Sl   10:21   0:09 jellyfin
oriol      11618  0.0  0.0  11804  2304 pts/0    S+   12:01   0:00 grep --color=auto jellyfin
pupbiru@aussie.zone on 27 Aug 02:03 collapse

looks like jellyfin is running as the user “oriol”. does that sound right?

assuming you have your files mounted somewhere locally that jellyfin can access, their file permissions will need to allow access to that user

quediuspayu@lemmy.dbzer0.com on 27 Aug 09:59 collapse

The thing is that I mount the files using the GUI and I have no idea where they are mounted.

pupbiru@aussie.zone on 27 Aug 10:33 collapse

if you want it to be permanent you’ll probably want to mount via /etc/fstab (this is the list of things that are mounted every boot, so it’ll persist after a reboot)

that said, i’d guess it’ll be in /mnt

nw8man@fosstodon.org on 27 Aug 14:36 next collapse

@quediuspayu from ubuntu i use the following command, mounts it as readonly so nothing on nas can be altered

sudo mount -t cifs -r -ro username=username,password=password,uid=root,gid=root //nasip/videos /mnt/videos

quediuspayu@lemmy.dbzer0.com on 27 Aug 21:27 collapse

From your command and the help of mount I manage to understand a few things:

cifs is the type of filesystem I’ve seen mentioned

-r is the read only part you mentioned, what’s -ro for?

And I guess that I could change uid=root for my user name and gid=root for some of the groups I see under my user name.

Thanks

Ps: I just tried, I get a syntax error. I suspect it is because the password contains a parenthesis.

DarkDarkHouse@lemmy.sdf.org on 28 Aug 23:45 collapse

On my DS1522+ I have installed the Jellyfin app from the SynoCommunity repository. I used to have Jellyfin on a separate host, but using the app has been much less painful. Maybe that’s an option for you?