TechSomething

HUBICFUSE DEBIAN WHEEZY

source: https://github.com/TurboGit/hubicfuse

in /etc/apt/sources.list add:

deb http://http.debian.net/debian wheezy-backports main

then:

apt-get update

apt-get install gcc make curl libfuse-dev pkg-config libcurl4-openssl-dev libxml2-dev libssl-dev libjson-c-dev libmagic-dev

then:

cd hubicfuse
./configure
make
make install

you can safely ignore make errors like:

cloudfsapi.c:474:7: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]
cloudfsapi.c:485:9: warning: call to ‘_curl_easy_setopt_err_long’ declared with attribute warning: curl_easy_setopt expects a long argument for this option [enabled by default]

to configure the client you have to create a new app in Myaccount –> Developers –> Add application, add a name and a URL (doesn’t need to be real).
Then click on Details of the newly crated app and use the “Client ID” and “Secret Client” for the next step.
In the hubicfuse folder execute the script:

./hubic_token

you will need to enter some info and to set the permission, in the end you will get:

Here is what your app needs to connect to hubiC: #

client_id=********
client_secret=********
refresh_token=********

copy this info in your ~/.hubicfuse

then mount:

hubicfuse /hubic -o noauto_cache,sync_read,allow_other

to automate the mount just add the same line you use from the cli to a file executed on startup like rc.local

WHAT DOES WORK:

zbackup

WHAT DOESN’T WORK:

renaming doesn’t work, moving to another folder works
concurrent use of the same folder from 2 different machines. I won’t recommend that.