sparkleshare with github

Share your wisdom. Not for support questions!

Moderator: How-to Curator

sparkleshare with github

Postby nadir » July 13th, 2011, 3:01 am

discsussion thread is here:

1) What and why. Disclaimer.

sparkleshare is similar to dropbox. It is in experimental, so you can use it if you don't rely on the stablity of your boxes.

What you need is an easy way to keep some txt-files in sync (bookmarks, rc-files, whatelse). You don't want to use dropbox, as its non-free. Here is the way out.
You will need to
    - install git
    - a github-account and configure it
    - install sparkleshare from the experimental repository
    - and an ssh-key (in case you also want to access github without sparkleshare, and if you got the account anyway: why not?).
One could also use gitorious or the own server, but i use github for this little how-to (cause its easy). As far i can see you can also mix the options (github, gitorious and own server). ... arkleshare

The dependencies for sparkleshare are the following:
Code: Select all
Depends: git (>= 1.1.7), gvfs (>= 1.3), mono-runtime (>=, libc6 (>= 2.13) | libc6.1 (>= 2.13) | libc0.1 (>= 2.13), libglib2.0-cil (>= 2.12.10), libgtk2.0-cil (>= 2.12.10), libmono-corlib2.0-cil (>= 2.6.3), libmono-posix2.0-cil (>= 2.4), libmono-system2.0-cil (>= 2.6.3), libnotify0.4-cil (>= 0.4.0~r2998), libwebkit1.1-cil (>= 0.3)

You might not like everything which comes with it. Have a short look and break and decide if its really worth it
(i for one would pick a test box, like VirtualBox).

Have a look at the discuss thread. Read what more experienced users say.

Don't simply do it if you rely on stability.

2) First you need git and a github-account

a) install git
Code: Select all
apt-get install git

b) create an ssh-key (if you ain't got one, duh)
Code: Select all
ssh-keygen -t rsa

c) create a github-account:
go here:
click on "create a free account"
d) add the key
go to:
-> Account Settings
-> SSH Public Keys
-> Add another key
Open ~/.ssh/ in an editor, copy it and paste it into the github-box
e) edit your local settings:
Code: Select all
$ git config --global "Firstname Lastname"   
$ git config --global""

f) Create a repo at Github:
-> "create repo" at your main page at github, enter the info (name, description, optional home-page). I called mine "sparkleshare".

3) Then you install sparkleshare

a) install sparkleshare,
Code: Select all
echo "deb experimental main" >> /etc/apt/sources.list
apt-get update
apt-get install sparkleshare

It will create a key in ~/SparkleShare/ , called "your_name's key.txt" (yes, with space).
c) Again go to github to add the key
-> Account Settings
-> SSH Public Keys
-> Add another key
Open ~/Sparkleshare/your_name's key.txt in an editor and copy it, past it into the ssh-key-box at github
c) start sparkleshare:
Code: Select all
sparkleshare start

Enter you name and email.
e) point sparkleshare to the github-repository you just created
right-click on the tray-icon of sparkleshare, click on add remote, point it to the github-repo. In my example its:
- github
- my_name/sparkleshare
Then click on sync. If it fails try again.
f) copy the files you want to store to ~/Sparkleshare/sparkleshare

Thats it.
Not easy to explain, but rather easy.
Are there advantages over other methods to keep text-data in sync? I wouldn't know.
One can try it, for the fun of it. To me it does not look rock-solid yet, but it does the job.
(i guess its interesting for people who use dropbox, but dislike the non-free aspect).
Posts: 1708
Joined: February 9th, 2011, 8:07 am

Return to HowTo

Who is online

Users browsing this forum: No registered users and 1 guest