Skip to content

An Open Source Java and FUSE based virtual file system that mounts a cloud storage account to a local Linux folder.

Notifications You must be signed in to change notification settings

Ruj89/cloudfuse

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CLOUDFUSE

An Open Source Java 8 and FUSE based virtual file system that mounts a cloud storage account to a local Linux folder.

Supported cloud storages

  • Google Drive [1]

Building

Import as a new gradle project and execute bootRepackage task:

gradle bootRepackage

The main jar will be generated in build\libs folder.

Installation

Prerequisites

To execute the application in a local environment you need

  • A Linux distribution (ex.: CentOS 7.1 [2] )
  • libFUSE [3]
  • A Java Virtual Machine supporting Java 8 (ex.: OpenJDK 1.8 [4])
  • A web client supporting SSL (ex.: Firefox 50.1 [5])

Cloud platforms configurations

This tutorial will be updated at CloudFuse release time and depends on user localization.

Google Drive

Google provide a single page guide to follow at: https://developers.google.com/drive/v3/web/enable-sdk. No additional steps are needed.

To link a local folder to a Google Drive account enter in your Google Developer Console [6], create a new project specifying a new Project name.

After that in your Dashboard enable Google Drive API.

CloudFuse app needs full authorization to user account, so you also need to add custom App credentials. Go to Credentials of your project and create a new OAuth Client ID, specifying Other in Application type dropdown and a custom name.

After this step Google sends you your client id and a client secret.

Configuration file

Rename the oauth2secrets.gradle.example file in oauth2secrets.gradle and set:

  • ext.googleClientID (required): the client ID of your Google Developer Console application (Google Drive API)
  • ext.googleClientSecret (required): the client secret of your Google Developer Console application (Google Drive API)

Running

Using CLI create the mounting point folder and execute the result jar:

mkdir /tmp/mnt
java -jar cloudfuse.jar

Using a local web client visit http://localhost:8080/mount and authorize the Google App.

Links

  1. https://www.google.com/drive
  2. https://www.centos.org/
  3. https://github.com/libfuse/libfuse
  4. http://openjdk.java.net/
  5. https://www.mozilla.org/firefox
  6. https://console.developers.google.com

About

An Open Source Java and FUSE based virtual file system that mounts a cloud storage account to a local Linux folder.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published