I am a recent enthusiast of Dropbox-like services and I was longing for an open-source alternative.

Enters Sparkleshare... http://sparkleshare.org

Since I struggled to install it on my machines, I thought I would log here what I had to do to get to work. This tutorial is probably for the technical minded... If it proves popular I will detail each step.

I installed servers on Fedora (no real problem there) and on Mac OSX (which did take me a while). I only used the clients on Mac OSX so far...

I hope this helps.

Step 1: Sparkleshare on Mac OSX

on MAC OSX: (server)

- System Preferences : enable remote login (ssh) [ "...type user@address" ]

- install GIT (using git...dmg)

- install Sparkleshare (drag drop in Applications)

- generate keys
ssh-keygen (no passphrase)
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

- 'fix' ssh for Max OSX
chmod go-w ~/
chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys

- create empty repository:
git init --bare ~/my_repository.git

- on OSX 10.6.7, git is installed in /usr/bin, nothing to do...
- on OSX 10.6.8, git is installed in /usr/local/git/bin, .bashrc needs to be modified:
echo 'PATH=$PATH:/usr/local/git/bin' >> ~/.bashrc

on MAX OSX: (client) (note: this can be the same machine as the server machine)

- generate keys
ssh-keygen (no passphrase)

- copy public key to server: (you will be prompted for your server password)
rsync ~/.ssh/id_rsa.pub user@adress:tmp.pub      # '~' is 'alt+n' followed by a space

- add key to authorized_keys: (you will be prompted for your server password)
ssh user@adress
cat tmp.pub >> ~/.ssh/authorized_keys     # '~' is 'alt+n' followed by a space

- you can now connect to the server passwordless
ssh user@adress

- start SparkleShare:
check 'my own server'
Address: user@address
Folder Name: /Users/user/my_repository.git

Hah! Found it! Noob problem.<br><br>For those interested, SparkleShare instructions say to use the user 'git' as it is the default. Not exactly with the client on Mac OS X.<br><br>The site says &quot;Click the SparkleShare status icon and select &ldquo;Add Hosted Project&rdquo;. Select &ldquo;On my own server&rdquo;, enter your server address in the Address field and &ldquo;/home/git/MyProject&rdquo; in the Remote Path field. Click Add.&quot;<br><br>Where is says to enter your server address, you must use:<br>ssh://git@server<br><br>Change git to the name of the user you set up with git on the server.. :)<br><br>
I hope this thread is still being monitored. I desperately wish to get this working and need help.<br><br>I am running a mac mini OS X Lion server and a Macbook Pro also running Lion server. I wish to set up SparkleShare on the server and access from the client. I have followed all the directions but I always get &quot;Something went wrong...&quot;.<br><br>1. I am working with SparkleShare 0.8.2<br>2. The ssh server is installed and I can connect without a password.<br>3. The only deviation I have found is that git is already properly installed in /usr/bin. I read somewhere that it was installed with the current Xcode. I don't see a reason to create a .bashrc just to repeat /usr/bin in the PATH environment variable.<br>4. I also found some command examples where someone was troubleshooting via the shell. Here is what I get when running them from the client.<br><br>client:SparkleShare sprocket12$ git clone --progress &quot;ssh://git@server/Users/git/MyProject&quot; &quot;/Users/sprocket12/SparkleShare/.tmp/MyProject&quot;<br>Cloning into /Users/sprocket12/SparkleShare/.tmp/MyProject...<br>warning: You appear to have cloned an empty repository.<br><br>It *looks* like it it is working..but???? <br>5. I also installed the client on the server and ran it there. Same errors using 'localhost' and the true IP address of the server.<br><br>Any ideas? Thanks.
I had some questions in PM... For those who don't know ~ is a shortcut for $HOME.<br><br>It can be obtained using the key combination 'Alt+n' (followed by a space).<br><br>Alternatively you can use $HOME or /Users/user (if your user name is 'user').<br><br>So (hopefully I am not confusing the issue even more), you can either type:<br><br>rsync ~/.ssh/id_rsa.pub user@adress:tmp.pub<br> or<br>rsync $HOME/.ssh/id_rsa.pub user@adress:tmp.pub<br> or<br>rsync /Users/user/.ssh/id_rsa.pub user@adress:tmp.pub
It's a whole lot easier than that; to the left of your &quot;1&quot; key is the &quot;tilde/backtick&quot; key. Shift plus that key is the tilde &quot;~&quot; character. ALT+N and a space gives the &quot;diacritic tilde&quot;, needed for the spanish &quot;&ntilde;&quot; character (floating higher on the line; space makes it print without a character underneath it: &tilde;). Likely your terminal application won't know the difference, but if you do the two key commands in a rich text editor, you may see the difference.
Yes... and no. <br><br>On an American keyboard, the tilde key is indeed to the left of the '1' key. On a British keyboard it is located to the left of the 'z' key.<br><br>On a French keyboard (the question I got in PM), however, the tilde key is nowhere to be found. Hence my 'region-free' solution...
Thanks Nicoo,<br><br>Great Job!<br><br>I was not able to find the ~ on my stupid keyboard!<br><br>But who is the most stupid: the keyboard... or me?
thanks for sharing, i'll use it !<br><br>'ll feedback if worked fine ;)<br><br>thanks again<br><br>Sebastien

About This Instructable


1 favorites


More by nicoo: Hacked roomba + arduino snowballs into a Eurobot 2013 entry... Flashing bootloader into Arduino UNO R3 Arduino Sprinkler System + Web control
Add instructable to: