X-Git-Url: https://zdv2.bktei.com/gitweb/BK-2020-03.git/blobdiff_plain/7168745037943e150d454c6d9e8871c6b97349dc..a36416739b399ae388da41ecd86a95e848a7397b:/config-shared/syncthing/INSTRUCTIONS.md?ds=sidebyside diff --git a/config-shared/syncthing/INSTRUCTIONS.md b/config-shared/syncthing/INSTRUCTIONS.md deleted file mode 100644 index c63cd7d..0000000 --- a/config-shared/syncthing/INSTRUCTIONS.md +++ /dev/null @@ -1,104 +0,0 @@ - - - -# Install and configure `syncthing` - -Created by [Steven Baltakatei Sandoval][bktei_2020_homepage] on 2020-04-27T14:37Z under a [CC BY-SA 4.0][cc_20131125_bysa] license and last updated on 2020-04-27T16:28Z. - -## 1. Summary - -Syncthing is a decentralized file-synchronization program that permits -sharing of files over the Internet with computers that have been -configured to trust one another. - -## 2. Instructions - -The following are instructions for installing Syncthing onto a GNU/Linux Debian 10 machine. - -### 2.1. Install `syncthing` via `apt-get` - -Update the local repository package lists with `$ sudo apt-get update`. - -Install the `syncthing` package with `$ sudo apt-get install syncthing`. - -Note: As of 2020-04-27, Debian 10 Buster uses Syncthing version `1.0.0`. - -### 2.2. Enable automatic startup via `systemd` service. - -Syncthing can be started automatically via `systemd` as a system -service upon boot or a user service upon login. If `syncthing` was -installed from the Debian 10 repository (ex: via `apt-get`), then the -necessary service files (ex: `syncthing@.service` ) should already be -installed. If not, see the detailed autostart instructions for where -to download a copy of the service -files.[[1]](#syncthing_20200331_autostart) - -#### 2.2.a. Enable automatic startup via `systemd` upon boot (system service). - -For a system service, identify the user under which to run -`syncthing`. Even though `syncthing` will be run upon startup (without -needing a user to login first), files cannot be created or modified by -`syncthing` with permissions of a specified user. In this example, -`baltakatei` will be the user. This means an appropriate directory for -a `syncthing` shared folder would be `/home/baltakatei/Sync/`. - -Alternatively, if `syncthing` were running as a headless server where -no user is expected to directly modify files in the server's file -system, then a dedicated dummy user named `syncthing-user` might be -appropriate. - -The commands to create a `systemd` system service under user -`baltakatei` are: - - $ sudo systemctl enable syncthing@baltakatei.service - $ sudo systemctl start syncthing@baltakatei.service - -The following notifications may appear while running these commands: - - $ systemctl enable syncthing@baltakatei.service - Created symlink /etc/systemd/system/multi-user.target.wants/syncthing@baltakatei.service â /lib/systemd/system/syncthing@.service. - -The status of the new system service can be verified via: - - $ systemctl status syncthing@baltakatei.service - -The resulting status data will resemble: - - $ systemctl status syncthing@baltakatei.service - â syncthing@baltakatei.service - Syncthing - Open Source Continuous File Synchronization for baltakatei - Loaded: loaded (/lib/systemd/system/syncthing@.service; enabled; vendor preset: enabled) - Active: active (running) since Mon 2020-04-27 09:01:00 PDT; 3min 34s ago - Docs: man:syncthing(1) - Main PID: 2799 (syncthing) - Tasks: 23 (limit: 1132) - Memory: 45.3M - CGroup: /system.slice/system-syncthing.slice/syncthing@baltakatei.service - ââ2799 /usr/bin/syncthing -no-browser -no-restart -logflags=0 - -#### 2.2.b. Enable automatic startup via `systemd` upon login (user service). - -For a user service, identify which user under which to run -`syncthing`. In this example, `baltakatei` will be the user. This -means an appropriate directory for a `syncthing` shared folder would -be `/home/baltakatei/Sync/`. - -The commands to create a `systemd` user service under user -`baltakatei` are: - - $ systemctl --user enable syncthing.service - $ systemctl --user start syncthing.service - -The status of the new user service can be verified via: - - $ systemctl --user status syncthing.service - -## 3. References -- 1. ["Starting Syncthing Automatically"][1]. Date: 2020-03-31. [syncthing.net](https://syncthing.net). Date Accessed: 2020-04-27. [Archive link](https://web.archive.org/web/20200414114635/https://docs.syncthing.net/users/autostart.html). Archive date: 2017-04-14. - -[1]: https://docs.syncthing.net/users/autostart.html -[bktei_2020_homepage]: http://baltakatei.com -[cc_20131125_bysa]: http://creativecommons.org/licenses/by-sa/4.0/ - - -
This work by Steven Baltakatei Sandoval is licensed under CC BY-SA 4.0