今天《程序员》上看到一则消息介绍国外的开源Sparkleshare软件,最近也在研究云存储,于是产生兴趣,找到官主网站看了看,梦翔儿用了一个下午时间,实际在ubuntu上研究了一下:
看介绍得知:SparkleShare�**獾囊豢畈淮淼奈募娲⑼饺砑衷诘奈榷ò鍿PARKLESHARE(0.2),跨平台,可以安装在windows\mac\linux系统上,不久的将来还会发布android/iphone客户端。
SparkleShare是一个开源的类Dropbox同步工具,但是和Dropbox功能不同的地方是:
- 支持同步到自定义服务器
- SparkleShare仅作为一个工具,自身不提供服务器给你上传、同步文件
- SparkleShare提供了同步到Github、Gitorious等公告服务器的接口(但是由于这些都是开放的,所以你同步的东西其它人都能看得到)
- 更好的与Gnome环境(2.x,Unity亦无压力,GNOME3无测试)集成
实际测试表明,该软件基本上可有,官方网站资源相对来讲,比较丰富,文档还有一些问题与欠缺,梦翔儿经实践研究,其安装设置方法如下:
下载编译安装法:
wget https://github.com/downloads/hbons/SparkleShare/sparkleshare-0.2.4.tar.gz
tar xvf sparkleshare-0.2.4.tar.gz
cd sparkleshare-0.2.4/
sudo apt-get install intltool
apt-get install mono-utils mono-xsp monodoc-http #如果还缺依赖就相应装一下
./configure -prefix=/usr #官方网站把prefix前的破折号写错了
make
sudo make install
看起来用ubuntu源安装就顺利一些了:
ubuntu直接命令安装法
安装,在终端输入:
mkdir -p ~/.ssh
sudo add-apt-repository ppa:warp10/sparkleshare
sudo apt-get update
sudo apt-get install sparkleshare libwebkit1.1-cil git-core
sudo apt-get install python-nautilus
客户端安装:
1.Compile and install SparkleShare as described in the README
2.Install the SSH client:
$ sudo apt-get install openssh-client
3.Generate an RSA key pair used to authenticate with the server (instead of using a password):
$ ssh-keygen
(accept defaults and leave password blank here)
4.Send your RSA key to your server*:
$ ssh-copy-id cloud@192.168.88.42
5.Now you can
$ sparkleshare start 或在internet应用中可以找到软件
and a Dialog box should appear.
6.Enter your name and e-mail, click next. 这个随意
7.Tick "On my own server:" and enter cloud@192.168.88.150 in the box there.
8.In the "Folder Name" field, enter the full server side path to the git repo you created on your server (maybe something like /home/USERNAME/REPONAME.git) 我输入的是 cloud
9.click Sync
这时可以登录成功,创建文件夹之类的操作,但有时出现不稳定的情况,软件自动退出,一次登录成功后,就不能再改服务器信息了。
作为Dropbox的开源替代品 尽管官方文档说支持windows,但实际上官方首页中windows包括android都是空的。
它还有一些独特优点,如:更好的 Gnome 集成,能使用自设服务器Github、Gitorious、The Gnome project等源码管理平台(关于这几个平台安装梦翔儿就不太清楚了),其有更多的实时特性和更少的许可证问题。

安装成功后,在家目录中会出现SPARKLESHARE共享文档件,可以进行同步之类操作。

研究总结,尽管其号称Dropbox的开源替带产品,但实际测试中发现其功能单独,有很多不完善之处,文档也有很多空缺与错误,软件目前只有linux与mac上才能使用,其实版本更具亲和力,0.2版尽管稳定了,但离真正的用户使用还有很长的路要走,其源码具有很好的开发借鉴价值,这是商业软件所不能得到的,所以该开源值得关注,并希望其一路走好。
参考资料:
[1]下载与安装:http://sparkleshare.org/linux-downloads/
[2]各类服务器版安装方法:https://github.com/hbons/SparkleShare/wiki/How-to-set-up-your-own-server
[3]Gihub的安装:https://github.com/wimh/SparkleShare/wiki
[4]开源首页:https://github.com/hbons/SparkleShare