git-annex/doc/assistant/local_pairing_walkthrough.mdwn

61 lines
2.2 KiB
Text
Raw Normal View History

2012-09-11 20:54:51 +00:00
So you have two computers in the same building, and you want them to share
the same synchronised folder, communicating directly with each other.
This is incredibly easy to set up with the git annex assistant.
Let's say the two computers are your computer and your friend's computer.
We'll start on your computer, where you open up your git annex dashboard.
[[!img addrepository.png alt="Add another repository button"]]
`*click*`
2012-11-11 21:36:57 +00:00
[[!img pairing.png alt="Pair with another computer"]]
`*click*`
2012-09-11 20:54:51 +00:00
2012-09-11 21:04:46 +00:00
Now the hard bit. You have to think up a secret phrase, and type it in,
(and perhaps get the spelling correct).
2012-09-11 20:54:51 +00:00
[[!img secret.png alt="Enter secret phrase"]]
Now your computer is in pairing mode. When your friend looks at her git
annex dashboard, she sees something like this.
[[!img pairrequest.png alt="Pair request"]]
`*click*`
[[!img secretempty.png alt="Enter same secret phrase"]]
Now it's up to you to let her know what the secret is. As soon as she
enters it, both your computers will be paired, and will begin to sync their
git-annex folders. Just like that you can share files.
----
Something to keep in mind, especially if pairing doesn't seem to be
2012-09-11 21:02:54 +00:00
working, is that the two computers need to be on the same network for this
2012-09-11 20:54:51 +00:00
pairing process to work. Sometimes a building will have more than one
network inside it, and you'll need to connect them both to the same one.
Make sure the wireless network name is the same, or that they're both
plugged into the same router.
Also, the file sharing set up by this pairing only works when both
computers are on the same network. If you go on a trip, any files you
2012-11-11 21:36:57 +00:00
edit will not be visible to your friend until you get back.
To get around this, you'll often also want to set up
[[jabber_pairing|share_with_a_friend_walkthrough]], and a server
in the cloud, which they can use to exchange files while away.
2012-09-11 20:54:51 +00:00
And also, you can pair with as many other computers as you like, not just
one!
## What does pairing actually do behind the scenes?
It ensures that both repositories have correctly configured
[[remotes|walkthrough/adding_a_remote]] pointing to each other.
If you have already configured this manually, you do not need to
perform pairing.