Gangmax Blog

SparkleShare with Own Server

From here.

Install client

Please choose the correct client package file for your OS here. After the installation finishes, you can start the client. You should see a system tray icon, open the right-click menu of the icon, go to “SparkleShare -> Computer ID -> Copy to clipboard” to get client ID. This client ID is required when you running the “dazzle link” command below when you setting server.

Set server

Run the following commands on your server:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Run all of the following commands as the root user.
su

# Fetch the Dazzle script.
curl https://raw.githubusercontent.com/hbons/Dazzle/master/dazzle.sh --output /usr/bin/dazzle && chmod +x /usr/bin/dazzle

# Run the initial setup.
dazzle setup

# Link SparkleShare clients using their Client ID gotten in the previous step. If you have more clients later on, rerun this command to link the new clients.
dazzle link

# Create a new project(Replace "{0}" with your project name). Add as many as you need.
dazzle create {0}

Connect the client to the server

  1. Open “SparkleShare -> Sync Remote Project…” from the system tray menu.

  2. In the pop-up window, setup the following fields:

1
2
3
4
5
6
type = 'Own server'
# Replace "{0}" with your server domain or IP address.
address = 'ssh://{0}'
# Replace "{0}" with your project name.
remote_path = '/home/storage/{0}'
# Finally click the "Add" botton.

Done

If everything works properly, you are ready to go. A new directory “~/sparkleshare/{0}/{1}”(“{0}” is the “server name or IP”, “{1}” is the “project name”) will be created in your local file system. You can add files into it, which will be synced to the server and the other clients(if there is any) automatically.

Remove SparkleShare repo from client

Added on 2020-04-15. From here.

If you need to remove a repo from a SparkleShare client(such as on my Ubuntu desktop), open the “~/.config/org.sparkleshare.SparkleShare/projects.xml” file and remove the section of the target SparkleShare server. Exit the SparkleShare client and open it again. Now the repo should be removed from the SparkleShare client. You can now remove the repo directory in “~/SparkleShare” safely.

Comments