<p>
Clacke mentioned SparkleShare in <a href="https://hackerpublicradio.org/eps.php?id=2542" target="_blank">episode 2542</a>, and it occurred to me that not everyone knows what Sparkleshare is. So here&#39;s a show about it.
</p>

<p>
To setup SparkleShare, refer to <a href="https://sparkleshare.org" target="_blank">SparkleShare.org</a>. It's available for Linux, Windows, and Mac; great for cross-platform collaboration.
</p>

<p>
The Linux installer uses <a href="https://flatpak.org" target="_blank">FlatPak</a>, so you do need to install that.
</p>

<p>
Once installed, launch SparkleShare in the usual way. If you have no usual way, you can use this command&#58;</p>

<pre>
$ flatpak run org.sparkleshare.SparkleShare
</pre>

<p>
The first screen asks for your name and email. This doesn&#39;t have to be your real name and email, but it is what SparkleShare will use when making commits on your behalf. This name and email will be visible to anyone who can see your online Git repository.
</p>

<p>
The next screen displays the <strong>Sync Remote Project</strong> screen. You use this screen any time you want to add another share to your sparkle.
</p>

<img src="https://slackermedia.info/host/setup1.png" alt="image showing the Sync Remote Project window of SparkleShare" />

<p>
In this episode, I set up two projects&#58; one brand new one using my home server as host, and one that mirrors an existing project on Gitlab.com.
</p>

<p><strong>Adding a project from Gitlab</strong></p>

<p>
The first thing you must do is give SparkleShare permission to access Gitlab. To do this, click on the SparkleShare icon in your system tray &#62; SparkleShare &#62; Client ID and copy your ID to your clipboard.
</p>

<img src="https://slackermedia.info/host/clientid.png" alt="image describing the menu selection as listed in the above text" />

<p>
Now go to your online Git host and add this &#34;Client ID&#34; to your approved SSH Keys. Where this is located depends on your Git host, but in Gitlab, it&#39;s located in the left column of the <strong>Settings</strong> screen. When your SSH Key has been added, Gitlab displays a key fingerprint &#40;actually just a string of numbers&#41; as confirmation.
</p>

<p>
The path to your remote Git repository is the part of an URL after the host. It usually starts with your username. For example, if I have a project on Gitlab located at <code>gitlab.com/notklaatu/foo.git</code> then the path that SparkleShare needs is <code>notklaatu/foo.git</code>
</p>

<p>
Click the <strong>Add</strong> button to add the project to your local SparkleShare folder.
</p>


<p><strong>Adding a project hosted on your own server</strong></p>

<p>
There are a lot more variables if you&#39;re hosting a Git repository on your own server. These are the things that you may need to account for&#58;
</p>

<ul>
<li><p>Is your local .ssh/config file setting some &#34;invisible&#34; defaults for when you SSH to your server? If so, you may need to modify or add an entry for SparkleShare.</p></li>
<li><p>Your SparkleShare auto-generated &#34;Client ID&#34; is located in <code>$HOME/.config/org.sparkleshare.SparkleShare/ssh</code></p></li>
<li><p>Is your SparkleShare SSH key &#40;the &#34;Client ID&#34; in SparkleShare lingo&#41; in your authorized_hosts file?
</p></li>
<li><p>Does a Git repository exist on your remote server in the location you think it exists?</p></li>
</ul>

<p><strong>Using SparkleShare</strong></p>

<p>
Use SparkleShare exactly as you would DropBox or the <a href="https://nextcloud.com/" target="_blank">NextCloud Desktop Client</a>&#58; drag-and-drop a file to add it, drag it to the Trash to delete it. All SparkleShare folders sync'd with any given project syncs automatically through the magickalfulness of Git hooks.
</p>



