httpfs is a FUSE-based filesystem that uses HTTP messages to mount a remote directory on a local machine in read-only mode, relying on an http server that is able to provide directory listing.
-
Add the current user to the
fuse
group as described in the Prepare the environment paragraph. -
Install the dependencies. For Debian based distros just run:
sudo apt-get install fuse libfuse-dev libcurl4-openssl-dev cmake
-
Install:
make sudo make install
-
If needed, uninstall:
sudo make uninstall
-
Run the http server in the desired folder:
-
Mount the remote filesystem:
mkdir /tmp/httpfs/ httpfs mount http://target.com/ /home/john/
-
Now the remote
/home/john/
is mounted in the remote server root dir. -
Unmount the filesystem:
fusermount -u /tmp/httpfs/
Make sure the current user is in the fuse
group, this preliminary step is
mandatory to use any FUSE filesystem. You can list the groups you belong to with
groups
, if that includes fuse
you're done, otherwise:
sudo adduser john fuse
Then log out and back in or start a new shell with:
newgrp fuse
to inform the system about the changes.
FUSE - http://fuse.sourceforge.net
Andrea Cardaci - http://cyrus-and.github.com
Emilio Pinna - http://disse.cting.org
David Guillen Fandos - https://davidgf.net