Set up a host

The client side

Start SparkleShare and enter your name and email address. Click Continue. SparkleShare has now created a special key file for you in ~/SparkleShare. Copy its contents.

The server side

Make sure you have git and openssh-server installed.
Login to your server and perform the following commands or equivalent depending on your system:

adduser ––disabled-password git
cd /home/git
git init ––bare MyProject
mkdir .ssh
vi .ssh/authorized_keys

Press i to go to edit mode. Paste the text that you previously copied at The client side step. Press ESC, type :x! and hit the Enter key to save the file. If you want to give more people access to your project, just paste their keys on a new line in this file.

Finally:

chmod 700 .ssh
chmod 600 .ssh/authorized_keys
chown -R git.git .

On Mac, also add the directory to your PATH:

echo ‘PATH=$PATH:/path/to/git/bin’ >> ~/.bashrc

We’ve chosen to use the username git here because the client assumes this name. If you need to use a different username you can do so, just tell the client (in the next step) by prefixing user@ to the server address.

Back to the client

Click the SparkleShare status icon and select “Add Hosted Project”. Select “On my own server”, enter your server address in the Address field and “/home/git/MyProject” in the Remote Path field. Click Add.

SparkleShare is now linked to your server!

Last change: Sunday, October 30th, 2011