Add the release PGP keys:
sudo mkdir -p /etc/apt/keyrings
sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
printf "Package: *\nPin: origin apt.syncthing.net\nPin-Priority: 990\n" | sudo tee /etc/apt/preferences.d/syncthing
sudo apt update && sudo apt install -y syncthing
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
add syncthing to your firewall rules
sudo ufw allow syncthing
sudo ufw allow syncthing-gui
You can run syncthing
from bash to continue setup just by typing syncthing
systemctl --user edit syncthing.service
systemctl --user enable syncthing.service
systemctl --user start syncthing.service
systemctl --user status syncthing.service
systemctl --user restart syncthing.service
systemctl --user stop syncthing.service
systemctl --user disable syncthing.service