November 14, 2011 by Martin
First I installed SparkleShare on my Ubuntu laptop from the Ubuntu Software Center. (At the time of writing the SparkleShare version in Software Center is a bit dated. I’m hoping it will be updated from 0.25. to 0.4 soon.)
Once SparkleShare was installed on my client machines I logged in as root on my OMV server and installed Git:
apt-get install git-core
On my OMV box I ran:
adduser ––disabled-password git cd /home/git git init ––bare MyProject mkdir .ssh vi .ssh/authorized_keys
Following the instructions, I pasted the key into the authorized_keys file on the server, which SparkleShare had created during installation in my home directory on my Ubuntu laptop.
Lastly, I ran:
chown -R git:users .
… for git to own everything in that directory.
I also tested a version of this adding a user from the OMV UI:
cd /home/username git init ––bare OMV01 mkdir .ssh vi .ssh/authorized_keys
And again, I pasted my key into the authorized_keys file.
The final step was to chown everything in the directory to the user:
chown -R username:users .
Now, I re-started SparkleShare on the Ubuntu laptop and re-ran the “Add folder” wizard, using username@[omv-server-ip-address] in the “On my own server” field and /home/username/OMV01 in the “Remote path” field.
It seems to work fine so far. Next I’ll try it on a Mac. (There is no Windows client yet.)
Now, if this could be set up through the OMV interface, that would be awesome. Unfortunately I don’t know how to write the plugin and get all this automated, but I’m hoping someone else will come along who does know how to do it, because having it built in to Open Media Vault would be
As a side-note, there’s another interesting open source project, which is similar to SparkleShare, called Syncany (http://www.syncany.org). Syncany doesn’t seem to be as far along as SparkleShare when it comes to working clients, but it does seem promising, has some nice features, and is arguably a better solution than using Git, since Git may not be the best solution for large files.