I’m used to having my music library (not huge, 75.5 GiB, 4174 files) on a NAS and playing the music from there (in foobar2k).
Now I’ve tried half a dozen music player apps on CachyOS and none accept a folder via smb:// for playback, let alone as a library location.
I’d rather not duplicate that data on a local drive. What are my options?
Same link format (square brackets indicate optional parts):
sftp://[user@]hostname[:port]/
port defaults to 22 (ssh). user is a Linux user on the server machine, not the client; but does default to the same username as the current client one.
Server machine must be running sshd, which must be configured to allow sftp access (default on CachyOS, but not all distros).
You can use SSH Keys to enable password-less access. Including the optional user@ part can help avoid unnecessary password prompts with some apps.
SFTP links should work out of the box with just about any Linux application. If it doesn’t, you can use SSHFS to mount a remote directory to a local directory, at which point the remote contents will appear to be local to anything that looks there.
It may be possible to get SMB to work better, but I don’t use it so can’t help with that.
Thanks Zymo,
I was expecting an answer like that. Will check out your guide and see how I’ll turn on SFTP on my Synology NAS, or maybe try out WebDAV instead of SMB.
Thanks!
Meanwhile I did exactly that, just with NFS instead of CIFS.
Now I can use whatever player, but since I’m so used to foobar2k, I’m trying fooyin.
sudo mount -t nfs [nas host]:/volume1/Music /mnt/NAS/Music
I just did a fresh install of CashyOS, my first experience with this.
But i can’t find how i find out how to begin. I can acces my files through Dolphin, but get the same errors as you did. It must be me being a noob, but i can’t find out how to search for network drives via Konsole. Let alone create credentials to login through.
Is there a tutorial somewhere? I can only find (to my noob understanding) mounting local drives.
/edit/
getting somewhere, not there yet, but things are starting to click
/edit/
Now i’m gettin “acces denied by server while mounting [hostname]”
As far as i can tell, NFS is enabled on my Synology. Gave permissions to the IP adres and hostname of the device i want to mount the NAS to.
Thanks for the reply, unfortunately it doesn’t seem to work for me. Tried different settings in DSM, everything has a static IP. No clue how to check UID (which Synology refers to on their support page).
But i’m willing to reset DSM, but i’m afraid that i’ll lose all my files…
Tried hostname and ip both, in fstab (to NAS) and within DSM nfs permissions (from NAS).
And tried combinations of permissions in DSM
Don’t know if it has something to do with it, but also noticing (still experimenting with CachyOS/Linux), that KDE Connect “fails to start sshsf”. Going to look for this issue somewhere else, instead of bloating this solved topic
Edit
I can send files and do everything from my phone, but not from my laptop to my phone.
Firewall ports are also opened, for both NAS nfs and KDE connect. Feels like the laptop can’t authorize something to establish a connection or isn’t “allowed in” my phone or NAS