Here is a small tutorial how to set up Rclone on SailfishOS.
In this case i just mount a NAS-Resource over WebDAV to read/write content. No need to download the complete NAS-Content to your SailfishOS-Device or vice versa. Your SailfishOS-Device must be online when you want to access your Mountpoint.
Setup-Part (once)
-
Download and install Rclone .rpm in the Hardware-Architecture of your SailfishOS-Device (for example ARMv7 - 32bit, ARM 64Bit…etc) from here - rclone.org
-
Create a new configuration by open Terminal on your SailfishOS-Device and Type:
rclone config
-
Type “n” for new remote
-
Enter Name for new remote (for this Example i choose NAS2)
-
Enter Type of Storage, enter “46” for WebDAV
-
Enter a Hostname-Adress to connect to, in our example here:
sometimes the WebDAV-Resource require a different port like 5006, then enter:
-
Enter Option Vendor, Type “5” for other
-
Enter Username (WebDAV user)
-
Type “y” for enter Password and type it in (WebDAV user password)
-
Confirm Password (repeat WebDAV user password for verification)
-
Enter Option bearer_token. I leave it blank (this is an additional Security-Feature)
-
Edit Advanced Config, type “n”
-
Config Overview - Keep this “NAS2” remote? Type “y”
-
Current remotes Overview, press “q” for quit config
-
Create an empty Directory where the Mountpoint should appear, i choose:
mkdir /home/defaultuser/NAS2
Mount-Part
After you performed the Setup-Part above once you just can Mount the Resource always when needed with this Commandline:
rclone mount NAS2: /home/defaultuser/NAS2
The Resource is connected and mounted as long you have internet access and doesn´t close the Terminal where you have entered that Commandline.
If you have corrections or additions feel free to answer here.