How to install Syncthing on Ubuntu 17.04

To install Syncthing on Ubuntu 17.04

Syncthing is a free application that is used to synchronize files or directories between any network of computers and it transfers files and directories directly from one system to another system. The entire communication in this process is encrypted. It has the most reliable WebGUI,that supports the users for adding, deleting or managing directories over network.This tutorial explains the installation procedure of Syncthing on Ubuntu 17.04.

Installation procedure

To proceed with the installation procedure, add the key for syncthing and execute the required sudo command.

root@linuxhelp1:~# curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
OK

Add the stable version of Syncthing and run the following command.

root@linuxhelp1:~# echo " deb https://apt.syncthing.net/ syncthing stable"  | sudo tee /etc/apt/sources.list.d/syncthing.list
deb https://apt.syncthing.net/ syncthing stable

The stable version has been added and now update the repo by executing the apt-get update command.

root@linuxhelp1:~# apt-get update
Hit:1 http://security.ubuntu.com/ubuntu zesty-security InRelease
Hit:2 http://in.archive.ubuntu.com/ubuntu zesty InRelease     
Hit:3 http://in.archive.ubuntu.com/ubuntu zesty-updates InRelease
Hit:4 http://in.archive.ubuntu.com/ubuntu zesty-backports InRelease
Get:5 https://apt.syncthing.net syncthing InRelease [15.1 kB]
Get:6 https://apt.syncthing.net syncthing/stable i386 Packages [1,613 B]
Get:7 https://apt.syncthing.net syncthing/stable amd64 Packages [1,620 B]
Fetched 18.4 kB in 4s (4,208 B/s)
Reading package lists... Done

Now install the syncthing package by running the following command and press y to continue with the installation.

root@linuxhelp1:~# apt-get install syncthing -y
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following NEW packages will be installed:
  syncthing
0 upgraded, 1 newly installed, 0 to remove and 249 not upgraded.
Need to get 6,556 kB of archives.
After this operation, 16.0 MB of additional disk space will be used.
Get:1 https://apt.syncthing.net syncthing/stable amd64 syncthing amd64 0.14.37 [6,556 kB]
Fetched 6,556 kB in 10s (620 kB/s)                                                                                                  
Selecting previously unselected package syncthing.
(Reading database ... 170562 files and directories currently installed.)
Preparing to unpack .../syncthing_0.14.37_amd64.deb ...
Unpacking syncthing (0.14.37) ...
Processing triggers for ufw (0.35-4) ...
Setting up syncthing (0.14.37) ...
Processing triggers for man-db (2.7.6.1-2) ...
Processing triggers for ufw (0.35-4) ...

For using the Syncthing, run the following command to show a list of options to use in Syncthing.

root@linuxhelp1:~# syncthing --help
Usage:
  syncthing [options]

Options:
  -audit           Write events to audit file
  -auditfile=" "     Specify audit file (use " -"  for stdout, " --"  for stderr)
  -browser-only    Open GUI in browser
  -generate=" "      Generate key and config in specified dir, then exit
  -gui-address=" "   Override GUI address (e.g. " http://192.0.2.42:8443" )
  -gui-apikey=" "    Override GUI API key
  -home=" "          Set configuration directory
  -logfile=" -"      Log file name (use " -"  for stdout)
  -logflags=" 2"     Select information in log line prefix (see below)
  -no-browser      Do not start browser
  -no-restart      Disable monitor process, managed restarts and log file writing
  -paths           Show configuration paths
  -paused          Start with all devices and folders paused
  -reset-database  Reset the database, forcing a full rescan and resync
  -reset-deltas    Reset delta index IDs, forcing a full index exchange
  -unpaused        Start with all devices and folders unpaused
  -upgrade         Perform upgrade
  -upgrade-check   Check for available upgrade
  -upgrade-to=" "    Force upgrade directly from specified URL
  -verbose         Print verbose log output
  -version         Show version
.
.
.
pmp         - NAT-PMP discovery and port mapping
 protocol    - The BEP protocol
 scanner     - File change detection and hashing
 sha256      - SHA256 hashing package
 stats       - Persistent device and folder statistics
 sync        - Mutexes
 upgrade     - Binary upgrades
 upnp        - UPnP discovery and port mapping
 versioner   - File versioning

The installation procedure of Syncthing on Ubuntu 17.04 is done successfully.

FAQ
Q
What are the options available in Syncthing?
A
For using the Syncthing, run the following command to show a list of options to use in Syncthing.

# syncthing --help
Q
What is Syncthing?
A
Syncthing is a free application that is used to synchronize files or directories between any network of computers and it transfers files and directories directly from one system to another system. The entire communication in this process is encrypted. It has the most reliable WebGUI, that supports the users for adding, deleting or managing directories over the network.
Q
Syncthing be used on Andriod Application?
A
yes, you can get Syncthing from google play store, https://play.google.com/store/apps/details?id=com.nutomic.syncthingandroid
Q
Share the link for official documentation of Syncthing?
A
Refer the following link, for Syncthing https://docs.syncthing.net/
Q
Need a direct link to download the package for Solaris?
A
Download the Syncthing package in the below link "https://github.com/syncthing/syncthing/releases/download/v0.14.49/syncthing-solaris-amd64-v0.14.49.tar.gz".