Ok easy peasy, here we go…
The first step for our Windows deployment is to download SyncTrayzor installer, run it and wait for it to update to the latest version.
Then go to File > Settings and check “Automatically Start On Login” and optionally “Start Minimized”.
Profit. That was easy, right?!
Ok repeat for any PC or laptop and let’s see how it works on Linux.
On my server I run Ubuntu 12.04 and it’s pretty straightforward, go to your terminal and type
sudo apt-get install curl curl -s https://syncthing.net/release-key.txt | sudo apt-key add - echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing-release.list sudo apt-get update sudo apt-get install syncthing
Now we can run Syncthing calling the syncthing command from your terminal. It will start the process and setup our configuration the first time around.
The next step is to install dtach to handle unattended start of the process (since there is no daemon yet). This is the easiest thing you’ll do all day…
sudo apt-get install dtach
Done.
Now we can setup dtach to run our executable at startup. Open your rc.local file with the text editor
nano /etc/rc.local
And add the following line
start-stop-daemon --start --chuid tony --name syncthing --exec /usr/bin/dtach -- -n /tmp/syncthing.dtach /usr/bin/syncthing
Replace tony with your user and save… Done. now every time you want to access the running script from terminal simply type
dtach -a /tmp/syncthing.dtach
This will reattach the terminal to the dtach session running Syncthing… There won’t be much to see but we’ll be able to stop the process and whatnot.
If we are planning to access the web GUI from remote (in case of a headless server) we can optionally edit the config.xml file
nano /home/tony/.config/syncthing/config.xml
and change the address parameter in the gui tag from 127.0.0.1:8384 to 0.0.0.0:8384 this will let us access the GUI from our browser entering our server ip and the standard port (ie. 192.168.1.234:8384) so you might want to setup a username and password in the settings.
That’s it now we only have to link the devices to one another and start sharing our folders. You can find all the documentation here.


Pingback: Yet Another BugSync your files in real time... - Yet Another Bug