Issues with SMB Share

I'm unable to preview media content such as photos, videos and documents such as pdfs and word documents over an smb share.
No description
49 Replies
RealDishwash
RealDishwash7mo ago
I'm also unable to play videos over smb using haruna or vlc Works fine using a windows client, I'm able to view PDFs and play videos The only documents I can view properly on bazzite are small things like text and markdown files
HikariKnight
HikariKnight7mo ago
not all applications support this in the same way they do on windows because the smb path implementation is different depending on DEs the best way to do this (and have almost all programs support it) would be to mount the share into a folder using something like fstab
//192.168.10.22/storage/Music /home/hk/Music cifs uid=0,credentials=/path/to/credentialsfile,iocharset=utf8,vers=3.0,noperm,_netdev 0 0
//192.168.10.22/storage/Music /home/hk/Music cifs uid=0,credentials=/path/to/credentialsfile,iocharset=utf8,vers=3.0,noperm,_netdev 0 0
credentials file can contain the username and password in this format
user=myusername
password=mypassword
domain=mydomain
user=myusername
password=mypassword
domain=mydomain
NOTE: haruna managed to play my music files with the path smb://192.168.10.22/storage/Music/file.mp3 when i opened from dolphin, but pdfs did not work in okular. this is a per application issue
RealDishwash
RealDishwash7mo ago
can i sidestep this if i just use nfs? i'm fine wth just hosting smb for the windows clients and nfs for the linux devices ok wait i can get video playback working using haruna if i use a local connection instead of through tailscale but yeah pdfs through okular still don't work
HikariKnight
HikariKnight7mo ago
Not if it is the application not supporting how the de does protocols. Gnome kinda works around this using gvfs and does a temp local mount for you. Kde uses a completely different way (not sure exactly what they do, I just noticed when opening remote files in gnome, the file would have a local path through gvfs)
©TriMoon™
©TriMoon™7mo ago
"Say NO to fstab solutions... " - By @©TriMoon™ 😉
These fine How-To's might be interesting read for both of you: - https://forum.manjaro.org/t/root-tip-how-to-systemd-mount-unit-samples/1191/1#smb-network-share-14 (Section: SMB network shares) - https://forum.manjaro.org/t/root-tip-how-to-use-systemd-to-mount-any-device/1185 It's MUCH safer to use systemd-units instead of fidling with fstab... - Because if you make a mistake, only that mount will fail, but your system will stay bootable... - Plus you can have automount/dismount when not used, which is not possible with fstab configs. 🖖
Manjaro Linux Forum
[root tip] [How To] Use systemd to mount ANY device
Difficulty: ★☆☆☆☆ Disk device recognition Manjaro uses udev (see Arch Wiki) to load devices at boot time. The loading of devices is arbitrary and therefore you cannot predict which device will be available at a given path. But static device names do exist and you can assign specific locations to your device and thus ensure e.g. scripts will wo...
Manjaro Linux Forum
[root tip] [How To] systemd mount unit samples
Difficulty: ★★☆☆☆ Example mount units for systemd The examples here are a supplement to the guide on systemd mount units ⚠ Remember to remove the comments placed in the units - they are not writing for copy-paste but as examples. (comments is text beginning with a #) [root tip] [How To] Use systemd to mount ANY device Only use an automoun...
RealDishwash
RealDishwash7mo ago
I might just switch to gnome lol Everything functions well using it this works but it creates two mounts
RealDishwash
RealDishwash7mo ago
No description
RealDishwash
RealDishwash7mo ago
i'm guessing this is cause of how bazzite works?
HikariKnight
HikariKnight7mo ago
because of symlinks you can hide one of them right click --> hide
RealDishwash
RealDishwash7mo ago
hmm, the mount works but it's not automounting so i have to run sudo mount -a for the mount to actually work
RealDishwash
RealDishwash7mo ago
No description
RealDishwash
RealDishwash7mo ago
i get this error if it helps with anything
HikariKnight
HikariKnight7mo ago
guess you will have to make a systemd unit for the mount then
RealDishwash
RealDishwash7mo ago
welp lemme figure out how to do that
HikariKnight
HikariKnight7mo ago
will have to be a system unit not a user unit based on that error, at least thats my guess
Want results from more Discord servers?
Add your server