Gangmax Blog

自由之思想,独立之精神

SparkleShare With Own Server

| Comments

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.

Comments