Mount Hubic cloud disk on your local Linux
Hubic is the french Dropbox clone, created by OVH, offering 25Gb storage for free. When it sorted out there weren't many clients for the different operating systems but there was an useful (undocumented) fonction: the webdav. Using webdav you could mount your Hubic drive on any system to copy your files. Some weeks ago, when the latest OS client (the linux one) come out, OVH decided to remove the webdav access... but unfortunately the client at the moment has some bugs and is not so easy-to-use like "copy e file into a folder".
Here we are supposing your apache root folder is /var/www/html. And naturally, the apache with php5 should already be installed on your system.
Now you can install the cloudfuse project. For Centos6 I created the RPM to simplify your work, but if you prefer you can download the sources from github and follow the instructions on the README to build it.
The RPMs are located on my repo: http://repo.mornati.net/extras/
You can configure it as yum repository for your centos server using:
git clone https://github.com/Toorop/HubicSwiftGateway.git
mv HubicSwiftGateway/src/www /var/www/html/hubic
chown apache:apache /var/www/html/cache
And install then cloudfuse using yum
echo > /etc/yum.repos.d/mornati-extras.repo << EOF
To allow a normal user to mount the hubic driver using could fuse, must be in the fuse group, and the mount point should be owned by the fuse group.
yum -y install cloudfuse
Before you can mount your hubic drive, you need to configure your account data in a file named .cloudfuse in the home directory of the user you want to use to mount.
usermod -aG fuse mmornati
chgrp fuse /mnt/hubic; chmod g+w /mnt/hubic
chgrp fuse /mnt/hubic; chmod g+w /mnt/cubic
Where, authurl is the url to your Swift HTTP proxy. SO, in my example, the proxy was installed on the same system where I want to mount the Hubic drive too.
Now you are ready to mount your hubic driver on your system:
If all worked well you should be able to list your Hubic files
/usr/local/bin/cloudfuse /mnt/hubic/ -o noauto_cache,sync_read
mmornati@desktop ~$ ls /mnt/hubic/default
Backup Documents Images Videos