Difference between revisions of "Cloud Servers - Syncthing"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
Line 7: Line 7:


= Installing Syncthing =
= Installing Syncthing =
Really, Syncthing is more of a peer-to-peer thing.  So the server & client are the same thing.  Which it is depends on how you're using it.
== Linux (LMDE6) ==


Add the release PGP keys:
Add the release PGP keys:
Line 19: Line 23:
** Change <nowiki><address></nowiki> to '''0.0.0.0:8384''' (line 55)
** Change <nowiki><address></nowiki> to '''0.0.0.0:8384''' (line 55)


== Set up as a system service ==
== Set up as a SYSTEM service ==
 
This means Syncthing will always run when the machine is running.


Based on configuring it for a regular user.
Based on configuring it for a regular user.
Line 28: Line 34:
* <code>systemctl start syncthing@'''myuser'''.service</code>
* <code>systemctl start syncthing@'''myuser'''.service</code>


= Client setup =
=== Set up as a USER service ===
Really, Syncthing is more of a peer-to-peer thing.  So the server & client are the same thing.  Which it is depends on how you're using it.


== Linux (LMDE6) ==
This means Syncthing will start when the user logs into the machine.


See the installation section above.
* <code>systemctl --user enable syncthing.service</code>
 
* <code>systemctl --user start syncthing.service</code>
=== Set up as a USER service ===


== Android ==
== Android ==

Revision as of 15:55, 30 January 2024

This WIP is based on setting up on a Debian based LXC.

Links:

Installing Syncthing

Really, Syncthing is more of a peer-to-peer thing. So the server & client are the same thing. Which it is depends on how you're using it.

Linux (LMDE6)

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

Add the "stable" channel to your APT sources:

  • 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

Update and install syncthing:

  • sudo apt-get update
  • sudo apt-get install syncthing
  • vi ~/.local/state/syncthing/config.xml
    • Change <address> to 0.0.0.0:8384 (line 55)

Set up as a SYSTEM service

This means Syncthing will always run when the machine is running.

Based on configuring it for a regular user.

(Replace “myuser” with the actual Syncthing user after the @:)

  • systemctl enable syncthing@myuser.service
  • systemctl start syncthing@myuser.service

Set up as a USER service

This means Syncthing will start when the user logs into the machine.

  • systemctl --user enable syncthing.service
  • systemctl --user start syncthing.service

Android

Pretty simple, search for Syncthing in the Play Store (or through F-Droid).

Windows

Syncthing Windows Setup: a lightweight yet full-featured Windows installer

macOS

syncthing-macos: macOS application bundle