How to integrate rclone as a FUSE mounter

From Vifm Wiki
Jump to navigation Jump to search

It’s possible to use rclone to mount any of the remotes that it supports.

Steps[edit]

1. Install rclone (preferably use package manager of your distro).

2. Add a remote using rclone config.

3. Test connection by running: rclone mount <remote host>:<path> /path/to/mountpoint --daemon and make sure remote correctly mounted to specified mountpoint.

4. Add to your vifmrc:

filextype *.rclone FUSE_MOUNT2|rclone %PARAM %DESTINATION_DIR

5. Create a file with remote connection settings. Run :edit <user@remote>.rclone and write:

mount <remote host>:<path> --daemon

Example[edit]

This is a sample configuration of SFTP connection to localhost.

~/.config/rclone/rclone.conf as generated by rclone config:

[testuser_at_localhost]
type = sftp
host = localhost
user = testuser
pass = <password hash>
use_insecure_cipher = false
shell_type = unix
md5sum_command = md5sum
sha1sum_command = sha1sum

Mount file (testuser@localhost.rclone):

mount testuser_at_localhost:/ --daemon

Sources[edit]

Issue #871 on GitHub