Before we will install Syncthing from the repository, we need to update the package list. echo "deb syncthing stable" | sudo tee /etc/apt//syncthing.listĥ. With the key added, we can now add the repository itself.įor this Raspberry Pi project, we will be utilizing the stable branch of the Syncthing software.Īdd the repository to our sources list by using the command below. curl -s | gpg -dearmor | sudo tee /usr/share/keyrings/syncthing-archive-keyring.gpg >/dev/nullĤ. These keys are designed to ensure that the packages we are installing have been correctly signed and aren’t coming from an unexpected source.ĭownload and save the keys by using the following command on your Raspberry Pi. Finally, we can store the Syncthing GPG keys in our keyrings directory. We can install the required package by running the command below. Typically this is provided with most operating systems these days, however, trimmed back ones such as Raspberry Pi OS Lite might have it removed. This package allows the package manager to handle sources that operate over the HTTPS protocol. Next, we need to make sure that we have the apt-transport-https package installed. We can update our Raspberry Pi by running the following two commands. Before installing the file synchronization software to our Pi, we should first update the system. To install the software, we will need to add the project’s PGP keys and add its package repository as a potential source.ġ. In this section, you will learn how to easily install the Syncthing software to your Raspberry Pi using straightforward steps. Installing Syncthing to Your Raspberry Pi We tested this tutorial using a Raspberry Pi 400, running the latest version of Raspberry Pi OS Bullseye. Use the list below to see what parts we utilized when we set up Syncthing on our Raspberry Pi. Using Syncthing, you can synchronize files from your Windows, Mac OS, or Linux based devices to your Raspberry Pi.Ĭlients for Syncthing are available for each of these operating systems that make it easy to use. If the node fails to provide an allowed certificate, it will not be able to connect, ensuring no dodgy users will easily gain access. This encryption will provide security and privacy, making it difficult for someone to steal the data while it’s in transit.Įach node needs to identify itself by using a strong cryptographic certificate. Syncthing is a software designed to synchronize files between multiple devices such as the Raspberry Pi in real-time.ĭata is synchronized between nodes using TLS.