From f87c5d43fc24ad71a60bcb1c8cc2152bb5c3b154 Mon Sep 17 00:00:00 2001 From: Jakob Borg Date: Tue, 7 Jan 2014 03:01:15 -0800 Subject: [PATCH] Updated Getting Started (markdown) --- Getting-Started.md | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/Getting-Started.md b/Getting-Started.md index 273eaf5..5bad80b 100644 --- a/Getting-Started.md +++ b/Getting-Started.md @@ -1,15 +1,8 @@ -Here's how to get started with syncthing on Linux. +syncthing will synchronize a single directory between a cluster of nodes that you configure. Each node will have its own unique ID. Only nodes with an ID listed in the config file are allowed to connect. The ID corresponds to the TLS certificate fingerprint of that node. -syncthing will synchronise a single directory between a cluster of nodes that you configure. Each node will have its own unique ID. Only nodes with an ID listed in the config file are allowed to connect. +Download syncthing for your OS/architecture from https://github.com/calmh/syncthing/releases and unpack it: -First make sure go is installed, using something like: - - $ sudo apt-get install golang # Debian/Ubuntu - $ sudo yum install golang # Fedora/RHEL - -Download syncthing from https://github.com/calmh/syncthing/releases and unpack it - - $ tar zxvf syncthing-linux-*tar.gz + $ tar zxvf syncthing-linux-amd64-tar.gz Check out the options: @@ -29,24 +22,24 @@ Run syncthing on the first node to let it create it's config directory and certi Take note of the "My ID: ..." line. -Now do the same for the second node, again taking note of the "My ID: ..." line. +Now do the same for the second node, again taking note of the "My ID: ..." line. At this point you have two nodes, each with their own certificate and ID. You will now need to configure both nodes to talk to the other and synchronize a common directory. You can now create your config file under ~/.syncthing/syncthing.ini -and this file should be the same on all nodes. It will look something like this: +This file should be the same on all nodes. It will look something like this: [repository] - dir = /Users/jb/Synced + dir = ~/Synced [nodes] NCTBZAAHXR6ZZP3D7SL3DLYFFQERMW4Q = 172.16.32.1:22000 192.23.34.56:22000 CUGAE43Y5N64CRJU26YFH6MTWPSBLSUL = dynamic -This assumes that the first node is reachable on either of the two addresses listed (perhaps one internal and one port-forwarded external) and that the other node is not normally reachable from the outside. +This assumes that the first node is reachable on either of the two addresses listed (perhaps one internal and one port-forwarded external) and that the other node will be automatically discovered. -If the nodes are running on the same network, or reachable on port 22000 from the outside world, you can set all addresses to "dynamic" and they will find each other using automatic discovery. (This discovery, including port numbers, can be tweaked or disabled using command line options.) +If the nodes are running on the same network, or are reachable on port 22000 from the outside world, you can set all addresses to "dynamic" and they will find each other using automatic discovery. (This discovery, including port numbers, can be tweaked or disabled using command line options.) Start syncthing on both nodes. For the cautious, one side can be set to be read only.