Netvfs - Network shares for Sailfish OS

Hi folks!

Sailfish OS has no network locations and no Storage API: apps that want your NAS each bring their own SFTP or SMB code and ask for your password. netvfs is a sketch of the platform service I’d love Sailfish OS to have instead. (To be very frank: This is a crutch, a case study of what would be possible if the platform offered it. This is also why I post this in Feature Requests, not in Applications. I am happy when this can go away!)

  • Accounts. SFTP, SMB, WebDAV (e.g. Nextcloud) and FTPS servers become accounts in Settings › Accounts, next to the stock account types. Passwords and keys stay in the system’s credential store.
  • Backups. The same accounts are targets for Sailfish OS’s built-in backup in Settings › Backup: manual, scheduled and restore.
  • Files for apps. Sandboxed apps reach the servers through a bridge, only as far as you allow each app (full access, read and add, read only, add only, or not at all), without ever seeing a password. They need no extra permission.

The first app that uses it is my file manager Lautta, which has its own thread. With netvfs installed, your servers show up in Lautta like folders on the phone.

It is built for the Jolla Phone 2026 on Sailfish OS 5.2. netvfs is a system service, not a Harbour app, so it installs by hand.

Release: Release netvfs 2.0.0 · muhnschein/netvfs · GitHub
Source (LGPL-2.1+): GitHub - muhnschein/netvfs: Network shares for Sailfish OS · GitHub

Installing

Download the three RPMs from the release page and, in developer mode, install them in one go:

devel-su pkcon install-local netvfs-2.0.0-1.aarch64.rpm netvfs-bridge-2.0.0-1.aarch64.rpm netvfs-backup-2.0.0-1.aarch64.rpm

Then add a server in Settings › Accounts.

How it was made

netvfs was developed with the help of AI. (More on that soon™, in a separate thread.) It has CI checks and tests, reproducible builds, and all code is public. If that’s a deal-breaker for you, that’s fair. I’d ask that this thread stays about netvfs and any AI discussion goes to one of the countless threads that we already have on that topic (or that turned into one). :heart:

Feedback

Impressions and ideas are welcome here. Bugs are best filed as GitHub issues.

:full_moon:

P.S.: Moderators, if you feel posting this in Feature Requests is entirely inappropriate, feel free to (tell me to) move it.

What would you recommend for a NAS that’s accessible over the internet: SFTP or WebDAV?

Suppose I want to show friends older photos that are no longer on my smartphone but are stored on the NAS, using the Lautta app. Is there any speed advantage—or another benefit, such as better parallel processing—in using WebDAV instead of SFTP?

I had to enable SFTP on my NAS to use it with the first version of Netvfs and the Lautta app, although WebDAV was enabled by default. Since enabling more protocols can increase security risks and attack vectors on a NAS, I’m wondering which one makes more sense.

By the way, the read-only configuration is a really handy feature. You can hand your Jolla phone to someone to show them photos without worrying about files being accidentally deleted.

I am using netvfs with Lauta for some time now and it was a real game changer to access my smb intranet shares directly from SFOS without the need for booting up my laptop. Many thanks for this nice piece of software that runs so smoothly and does reliably read / write my smb shares…
One of the best software pieces in SFOS for me…

Not sure whether I’m in the position to make a recommendation here :slight_smile: That said, if it was my NAS, my first question would be whether it’s a reguar Linux/BSD box or a vendor provided OS (Synology, QNAP, etc.).
In the latter case, I’d be cautious of their package choices and how up-to-date the packages are. Especially these days, you can’t update network exposed services fast enough. I’d probably expose only a WireGuard VPN to the internet and make everything else accessible only via that. (WireGuard is beautifully small and simple, especially compared to the other VPN options out there.)
If it’s a regular Linux/BSD box I’d personally go for SFTP with OpenSSH. OpenSSH is just an outstanding piece of software. Its developers hold themselves to high engineering standards and it ships with sane defaults. With SFTP, you will sacrifice some performance compared to SMB/WebDAVS, but for me, that’d be fine.
What I do with my own NAS is a combination of the two: my NAS is a hardened, up-to-date Linux box (securecore :pinched_fingers::sparkles:), and still I only expose WireGuard to the net. SMB (without encryption) is available behind that.

Edit: I also just realized that this is off-topic :blush: If you’re interested, happy to take this to a PM.

Thanks, i go for WebDAV. :+1:

@kan_ibal: I’m tracking the issue you found in netvfs here. I’m working on a fix :+1: :crossed_fingers: Will update this post with news.

Update: The issue should be fixed now and the fix will ship with the next release. If you are daring enough to run a main build and want to test whether this does indeed fix the issue for you, you could try installing this build: https://github.com/muhnschein/netvfs/actions/runs/46185168117/artifacts/15280768190 That would be really helpful, but if you’d rather not run it on your phone, I fully understand :slight_smile:

Hello,
Thank you for netvfs. It will finally allow me to access certain files remotely and upload them to my Nextcloud instance.

However, it appears that netvfs uploads files using a “.part” extension, only renaming them once the transfer is complete. Unfortunately, Nextcloud (at least in its latest version, 35.0.3—though, based on what I’ve found, this has been the case since version 31) blacklists “.part” files, as they are used by Nextcloud for internal operations. This is hardcoded in “/lib/private/Files/FilenameValidator.php” and cannot be easily or permanently bypassed; at best, any modification would need to be reapplied with every update.
It would be helpful to use a different extension (e.g., “.parts”) or to provide an option to specify a custom extension. As it stands, I can create empty folders on my server, but I am unable to upload any files at all.

I will continue looking for an alternative solution at my side.

Hi, thanks for testing and for taking the time to report this :slight_smile: I’m tracking this one here. Was able to reproduce it quickly and will likely move to .partial. Will update here when there’s news!

Update, @cedrix: The fix takes two forms, the one that’s actually more likely to matter for you, uploads, is one the Lautta side, and then there is one for netvfs for backups and CLI use. Netvfs work is still ongoing, but both fixes will make it into the next releases. If you want to test whether this does indeed fix the issue for you, you could try this until a new release is out: https://github.com/muhnschein/lautta/actions/runs/46191582882/artifacts/15281623585

Hi,
thank you for this quick response. I wanted to test a little more before completing a GitHub issue (especially I don’t have a GitHub account yet).
Thanks for everything. I actually noticed that “.part” and “.filepart” usually seem to be banned by Nextcloud. However only “.part” cannot be whitelisted. The extension change should solve all the problems at once without creating others.

I tried backup to my NextcloudPi server. Folder is created to Backup folder in Nextcloud but file transfer fails. Connection test succeeds though.

Thanks for reporting this! :folded_hands: This might be a known issue, with a fix already implemented but not released yet. Working on reproducing this, will update here when there’s news.

(I extended the interoperability testing in CI a lot over the last two days, issues like these should become less common with future releases.)

Update: It was actually a second bug hiding behind the one I mentioned above. Both fixes ship in the next netvfs release!