Music players don't seem to like smb:// links

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?

Samba is Windows tech. Its support on Linux is awkward and not very reliable, much like NTFS.

If at all an option, I would recommend SFTP instead. It’s faster, Linux native, and secure by virtue of running on top of SSH.

I posted a quick guide (which assumes the server also runs CachyOS) here: Why is filesharing such a PITA? - #15 by zymotek

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.

Mounting my syno share using: mount -t cifs and adding a link: ln -s /mnt/synology_share/music ~/Music

Works fine in the Strawberry player at least. Don’t know if the link is needed, just seemed to make sense.

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

Ok so noob mistake, that mount cmd is temporary.

I’ve added an automount as described here x-systemd.automount

so: [nas hostname]/volume1/Music /mnt/NAS/Music nfs defaults,x-systemd.automount,x-systemd.mount-timeout=30,_netdev

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.

I’ll show you my settings:


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…

mount by IP instead of hostname

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.

do you happen to be using apparmor? the apparmor.d profiles break some of this stuff with kde/dolphin in my experience.

No, not using app armor.

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

Fixed KDE connect and my NAS.

fstab was wrong, used wrong host:dir format. Changed this and now all my NAS maps are mounted.

KDE connect, sshfs wasn’t installed…

Thanks for the help everyone!