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

sudo git init ––bare /home/git/MyProject

sudo mkdir /home/git/.ssh

sudo touch /home/git/.ssh/authorized_keys

Please note that SparkleShare doesn’t accept any folder names with periods (“.”) in them.

Open /home/git/.ssh/authorized_keys in a text editor and paste the key that you previously copied at The client side step on a new line at the end of the file. This gives the client access to the git repository. If you want to give more people access to your project, just paste their keys on a new line at the end of this file.


sudo chmod 700 /home/git/.ssh

sudo chmod 600 /home/git/.ssh/authorized_keys

sudo chown -R git:git /home/git

On a Mac server, also add the directory containing the git binary to your PATH:

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

echo ‘export PATH=$PATH:/path/to/git/bin’ >> /home/git/.profile

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

via SparkleShare – Sharing work made easy » Set up a host.