![]() ![]() I am planning to set up the system service: It avoids unnecessarily running Syncthing instances. Thus, the user service is intended to be used on a (multiuser) desktop computer. Running Syncthing as a user service ensures that Syncthing only starts after the user has logged into the system (e.g., via the graphical login screen, or ssh). Since the system service keeps Syncthing running even without an active user session, it is intended to be used on a server. ![]() Running Syncthing as a system service ensures that Syncthing is run at startup even if the Syncthing user has no active session. There are two types of services that can be enabled: system service and user service. Now we need to modify the config.xml file vi /home/ubuntu/.config/syncthing/config.xml # change 'ubuntu' to your username The main config file is /home/username/.config/syncthing/config.xml. The syncthing systemd service creates configuration files under /home/username/.config/syncthing/ and a folder /home/username/Sync as the default sync folder. sudo apt - get update sudo apt - get install syncthing list # Because this repository uses https, we need to install the apt - transport - https package sudo apt - get install apt - transport - https # Update local package index and install syncthing on Ubuntu. echo "deb syncthing stable" | sudo tee / etc / apt / sources. # add the official deb repository with the following command. # download the GPG key then import the key : should see ' OK ' curl - s https : ///release-key.txt | sudo apt-key add.
0 Comments
Leave a Reply. |