Code Monkey home page Code Monkey logo

cloudfuse's Introduction

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

cloudfuse's People

Contributors

ruj89 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.