# 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:

```bash
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:

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

3\. Update your package database:

```bash
sudo apt update
```

4\. Install Syncthing:

```bash
sudo apt install syncthing
```

5\. Start Syncthing:

```bash
syncthing
```

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

```bash
sudo systemctl enable syncthing@$USER.service
```

```bash
sudo systemctl start syncthing@$USER.service
```

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