Difference between revisions of "Cloud Servers - Syncthing"

From Da Nerd Mage Wiki
Jump to navigation Jump to search
(Created page with "= Installing Syncthing = Add the release PGP keys: * <code>sudo mkdir -p /etc/apt/keyrings</code> * <code>sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg <nowiki>https://syncthing.net/release-key.gpg</nowiki></code> Add the "stable" channel to your APT sources: * <code>echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] <nowiki>https://apt.syncthing.net/</nowiki> syncthing stable" {{!}} sudo tee /etc/apt/sources.list.d/syncthing.list</c...")
 
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<span style="color: rgb(186, 55, 42);" >WIP</span>
{{{!}} class="wikitable" style="float: right; width: 322px;" border="2"
{{!}}+ Proven on:
{{!}}- --="" debian=""
{{!}} style="text-align: center; width: 60px;" {{!}} [[File:Logo Debian.png{{!}}60px{{!}}link=https://www.debian.org/{{!}}center{{!}}middle{{!}}frameless]]
{{!}} style="text-align: center; width: 40px;" {{!}} 12 (bookworm)
{{!}} Developed as a LXC
{{!}}}
= Links: =
* [https://syncthing.net/ Web Site]
* [https://docs.syncthing.net/index.html Documentation]
* [https://github.com/syncthing GitHub]
= 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 9: Line 27:
* <code>sudo apt-get update</code>
* <code>sudo apt-get update</code>
* <code>sudo apt-get install syncthing</code>
* <code>sudo apt-get install syncthing</code>
If you need access to the UI from anywhere on your network other than localhost:
* <code>vi ~/.local/state/syncthing/config.xml</code>
* <code>vi ~/.local/state/syncthing/config.xml</code>
** Change <address> to '''0.0.0.0:8384''' (line 55)</address>
** Change <nowiki><address> inside <gui></nowiki> from '''0.0.0.0:8384''' to '''0.0.0.0:8384''' (line 55)
Set up as a system service
* '''<span style="color: rgb(186, 55, 42);" >(Note, this file won't actually exist until the first time you run Syncthing MANUALLY...)</span>'''
To manually start it
* <code>syncthing</code>
 
== 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 @:)
(Replace “'''myuser'''” with the actual Syncthing user after the @:)


* <code>systemctl enable syncthing@'''myuser'''.service</code>
* <code>sudo systemctl enable syncthing@'''myuser'''.service</code>
* <code>systemctl start syncthing@'''myuser'''.service</code>
* <code>sudo systemctl start syncthing@'''myuser'''.service</code>
 
== Set up as a USER service ==
 
This means Syncthing will start when the user logs into the machine.
 
* <code>systemctl --user enable syncthing.service</code>
* <code>systemctl --user start syncthing.service</code>
 
(oddly, while this shuts down Syncthing when you log out after connecting via SSH, it doesn't seem to shut it down if you log out of the GUI...)
 
== Android ==
 
Pretty simple, search for '''Syncthing''' in the [https://play.google.com/store/apps/details?id=com.nutomic.syncthingandroid Play Store] (or through [https://f-droid.org/packages/com.nutomic.syncthingandroid/ F-Droid]).
 
== Windows ==
 
[https://github.com/Bill-Stewart/SyncthingWindowsSetup/ Syncthing Windows Setup]: a lightweight yet full-featured Windows installer
 
== macOS ==
 
[https://github.com/syncthing/syncthing-macos/releases/latest syncthing-macos]: macOS application bundle
 
== Synology NAS ==
 
Open Package Center
 
Click Settings and click Package Sources
 
Add a source
 
Put SynoCommunity in the NAME box and https://packages.synocommunity.com/ in the SOURCE box
 
Click OK
 
There will now be a Community tab in the left pane
 
Click that and find the Syncthing package and install it
 
= To Be Done =
 
* figure out proper TLS
* figure out multi-user
* correct NAT/firewall settings

Latest revision as of 14:42, 30 January 2025

WIP

Proven on:
Logo Debian.png
12 (bookworm) Developed as a 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

If you need access to the UI from anywhere on your network other than localhost:

  • vi ~/.local/state/syncthing/config.xml
    • Change <address> inside <gui> from 0.0.0.0:8384 to 0.0.0.0:8384 (line 55)
  • (Note, this file won't actually exist until the first time you run Syncthing MANUALLY...)

To manually start it

  • syncthing

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 @:)

  • sudo systemctl enable syncthing@myuser.service
  • sudo 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

(oddly, while this shuts down Syncthing when you log out after connecting via SSH, it doesn't seem to shut it down if you log out of the GUI...)

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

Synology NAS

Open Package Center

Click Settings and click Package Sources

Add a source

Put SynoCommunity in the NAME box and https://packages.synocommunity.com/ in the SOURCE box

Click OK

There will now be a Community tab in the left pane

Click that and find the Syncthing package and install it

To Be Done

  • figure out proper TLS
  • figure out multi-user
  • correct NAT/firewall settings