Skip to main content

Syncthing ENG

Step 1 – Add Syncthing repo to apt sources

Firstly, let’s add the repository to our apt database to ensure that we can download the packages from the repo:

echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list

image.png

Step 2 – Add Syncthing’s PGP keys

Next, we will add the Syncthing repository’s PGP key to our apt keys using the following command:

curl -s https://syncthing.net/release-key.txt | sudo apt-key add

image.png

Step 3 – Update apt’s database

Then we use the apt command to update the repositories so we can get the latest packages and dependencies:

sudo apt update

image.png

Step 4 – Install Syncthing

Once we are done with all the steps above, we can finally go ahead and install Syncthing. For that run the command :

sudo apt install syncthing

image.png

Step 5 – Enable the Syncthing service

To enable syncthing type the following command replacing username with your actual username:

sudo systemctl enable syncthing@root.service

image.png

Now start the syncthing service using the systemctl command:

sudo systemctl start syncthing@root.service

image.png

Step 6 Change IP address listening

syncthing -paths

cd .config/synthing

nano config.xml

image.png