How to save file from LibreOffice to an SMB share

I have a NAS that I use for schoolwork etc and I'm trying to save a document to it from LibreOffice, but the save dialog doesn't give me any way to access the share. The path seems to default to a temporary location in /run/user/1000. I can access the share from Dolphin directly but that doesn't help me. Earlier I was able to get KIO-Fuse to create a temporary mount that I could use with MATLAB but that doesn't seem to be working now.
Solution:
mount your network drive to a folder then it should be useable in all programs https://www.linode.com/docs/guides/linux-mount-smb-share/
Linode Guides & Tutorials
Mount an SMB Share in Linux
Learn how to mount a Windows directory in Linux using the SMB Protocol. This enables you to remotely access and modify you files.
Jump to solution
7 Replies
CommaHawk
CommaHawkOPβ€’2mo ago
This may be a stupid question, but why are there different folders in /run/user/1000 between Dolphin and LibreOffice's save dialog?
No description
Solution
π•Ύπ–™π–Šπ–‘π–‘π–†
mount your network drive to a folder then it should be useable in all programs https://www.linode.com/docs/guides/linux-mount-smb-share/
Linode Guides & Tutorials
Mount an SMB Share in Linux
Learn how to mount a Windows directory in Linux using the SMB Protocol. This enables you to remotely access and modify you files.
HikariKnight
HikariKnightβ€’2mo ago
also use flatseal to give libreoffice access to /media and /mnt
CommaHawk
CommaHawkOPβ€’2mo ago
This is my /etc/fstab but it's not mounting automatically. I did run systemctl daemon-reload as the file recommends.
No description
CommaHawk
CommaHawkOPβ€’2mo ago
I got it working. The spaces in the paths need to be represented by \040 https://superuser.com/questions/527495/how-to-mount-partition-with-spaces-in-path. The credentials file path needs to replace ~ with /home/[user]
Super User
How to mount partition with spaces in path
I created one partition and I wanted to mount that partition to this directory /home/max/VirtualBox VMs I wrote this line in fstab: /dev/sda4 /home/max/VirtualBox\ VMs ext4 defaults ...
CommaHawk
CommaHawkOPβ€’2mo ago
What the guide doesn't say: install cifs-utils through homebrew: sudo brew install cifs utils the mount commands should be sudo. run the systemctl daemon-reload after editing fstab. use "sudo mount -a" to verify fstab is correct Btw if you're following the first procedure with fstab or a credentials file, add "-o username=[usr]" if the smb user isn't root.
CommaHawk
CommaHawkOPβ€’2mo ago
I now have two mount locations which is a little weird but at least it works
No description

Did you find this page helpful?