obsidian says this takes 3 minutes to read. look at the page updates here.

hey, so this is a sorta guide intended for myself on how to mount shares and shit. so uhh, look at the resources first, and then look at this guide. this is just for my own reference.

Resources: this and this

why do this?

So from what I seen, Dolphin connects to the SMB share in such a way that some programs (Ark, VLC, Veracrypt) refuse to work. Cryptomator can’t even see these shares, and so I decided to find an alternative way to mount these shares in a way that is transparent to any program.

on editing the fstab file:

So the way you do this is by adding this line at the end of the fstab file, which is in /etc/fstab. You can edit this file with any file editor (like nano), but I like msedit, so I will use that for the example commands.

msedit /etc/fstab

And then you just add this line towards the end, replacing the placeholders with your own information.

//shareaddress.tailscaleaddress.ts.net/primaryshare /home/yourusername/mount cifs credentials=/home/yourusername/.smbcredentials, uid=yourusername,iocharset=utf8,_netdev 0 0

where:

Keeping credentials in the fstab file is a bad idea, since like anyone could just cat the fstab file and they got your password now. Instead, create a ~/.smbcredentials file with the following command.

msedit ~/.smbcredentials

Inside that file, add the following:

username=shareusername
password=yourpassword

Then add proper permissions to the whole thing, so no one else can access them aside from yourself.

chmod 600 ~/.smbcredentials

Finally, run these commands. The first command lets the system know that the fstab has been changed, and the second command is to restart the daemon so it can mount the share.

sudo mount -a
systemctl daemon-reload

Mount should finally appear in the file browser. Now, these programs (example: VLC) should work without any issues on these files from the share.

Stuff to keep in mind: so this mounts on boot (however it waits until it has a suitable internet connection with the _netdev option), and it may have some issues. The first resource link has a guide on how to make it so it mounts on login, but I am not that well versed in like, mounting shares and shit. Also keep in mind that I don’t use a domain name for the share, but yours may be different, again, look at the resources above.

page updates: