Skip to main content

Installing Syncthing as a service in Ubuntu

Installing Syncthing and then adding it as a service in Ubuntu:

1. Add the Syncthing APT repository key:

curl -s https://syncthing.net/release-key.txt | gpg --dearmor | sudo tee /etc/apt/trusted.gpg.d/syncthing.gpg > /dev/null

2. Add the Syncthing APT repository:

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

3. Update your package database:

sudo apt update

4. Install Syncthing:

sudo apt install syncthing

5. Start Syncthing:

syncthing

Alternatively, you can set up Syncthing to run as a service:

sudo systemctl enable syncthing@$USER.service
sudo systemctl start syncthing@$USER.service

These steps should help you install and start Syncthing on your Ubuntu system.