ユーザ用ツール

サイト用ツール


serverapps:syncthing

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン前のリビジョン
次のリビジョン
前のリビジョン
serverapps:syncthing [2024/07/21 14:57] – [同期] hayashiserverapps:syncthing [2025/04/09 06:47] (現在) – [Windows] hayashi
行 1: 行 1:
 ====== syncthing ====== ====== syncthing ======
- 
 ===== install(FreeBSD) ===== ===== install(FreeBSD) =====
 +2025-04-09現在:pkgからsyncthingが消えています((14.1-p6と14.2-p2で確認))
 +一時的なものか恒久的なものかはわかりませんがpkgを使用しないinstallを書いておきます((portsから入れる手もあるのですが、今回は別の方法で))
 +
 +==== ユーザ、グループの作成 ====
 +uid.gidは旧pkgに合わせましたが、任意で大丈夫です
 +=== グループ追加 ===
 +
 +  # pw add group -g 983 -n syncthing
 +
 +=== ユーザ追加 ===
 +
 +defaultではここで指定した**/Syncthing**配下にdefault folder "Sync" が作成されます
 +
 +  # pw add user -n syncthing -u 983 -g syncthing -d /Syncthing -s /usr/sbin/nologin -c 'Syncthing Daemon'
 +  # mkdir /Syncthing
 +  # chown syncthing:syncthing /Syncthing
 +
 +==== ダウンロード ====
 +
 +ダウンロードは[[https://syncthing.net/downloads/|本家]]から行いました
 +
 +  # cd /path/to/tmp/
 +  # curl -LO https://github.com/syncthing/syncthing/releases/download/v1.29.4/syncthing-freebsd-amd64-v1.29.4.tar.gz
 +  # tar -xzf syncthing-freebsd-amd64-v1.29.4.tar.gz
 +
 +==== インストール ====
 +
 +  # cd /path/to/tmp/syncthing-freebsd-amd64-v1.29.4
 +  # cp syncthing /usr/local/bin/
 +  # chown syncthing:syncthing /usr/local/bin/syncthing
 +
 +
 +==== 設定 ====
 +
 +config dir作成
 +
 +  # mkdir /usr/local/etc/syncthing/
 +  # chown syncthing:syncthing /usr/local/etc/syncthing/
 +  # chmod 600 /usr/local/etc/syncthing/
 +
 +/usr/local/etc/rc.d/作成
 +
 +  # mkdir /usr/local/etc/rc.d/
 +
 +/usr/local/etc/rc.d/syncthing ((起動用スクリプト))の作成
 +
 +  # cp etc/freebsd-rc/syncthing /usr/local/etc/rc.d/
 +  # chmod 755 /usr/local/etc/rc.d/syncthing
 +
 +
 +permission変更
 +
 +  # chmod 555 /usr/local/etc/rc.d/syncthing
 +
 +
 +
 +
 +/usr/local/etc/rc.conf.d/syncthing ((起動設定))の作成
 +
 +  syncthing_enable=YES
 +  # Optional configuration options are:
 +  # syncthing_home=</path/to/syncthing/config/dir>
 +  # syncthing_log_file=</path/to/syncthing/log/file>
 +  # syncthing_user=<syncthing_user>
 +  # syncthing_group=<syncthing_group>
 +
 +  
 +後はpkgで作成した場合と同じです
 +  
 +===== install(FreeBSD) from pkg =====
  
   # pkg install syncthing   # pkg install syncthing
行 11: 行 80:
  
 ===== allow access from the network ===== ===== allow access from the network =====
 +
 +/usr/local/etc/syncthing/config.xml
  
 <file /usr/local/etc/syncthing/config.xml> <file /usr/local/etc/syncthing/config.xml>
行 27: 行 98:
  
  
-Chocolateyでインストール+Chocolateyでインストール((wingetでもOK))
  
   > choco install synctrayzor   > choco install synctrayzor
行 48: 行 119:
   * 同期するフォルダ->編集->共有で同期する**接続先デバイス**を選択する   * 同期するフォルダ->編集->共有で同期する**接続先デバイス**を選択する
   * 同期を開始すると**target**側で同期して良いか聞いてくるのでこちらもOK   * 同期を開始すると**target**側で同期して良いか聞いてくるのでこちらもOK
 +    * PCで共有開始するとサーバで聞いてくるよ
  
 これで行けるはず((FreeBSDだとsyncthingユーザで起動するためDefaultの/Syncディレクトリの作成に失敗するので注意))((当然Permissionも直す)) これで行けるはず((FreeBSDだとsyncthingユーザで起動するためDefaultの/Syncディレクトリの作成に失敗するので注意))((当然Permissionも直す))
serverapps/syncthing.1721573839.txt.gz · 最終更新: by hayashi