Syncthing
Syncthing是一套资料同步软件。
安装
Ubuntu下可以透过apt repository安装[1]:
sudo curl -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg; echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list; sudo apt update; sudo apt install -y syncthing
设定
Syncthing预设会用到22000/tcp
与21027/udp
,可以分开设定,或是直接使用Syncthing包装好的设定[2]:
sudo ufw allow syncthing
sudo systemctl enable syncthing@myuser.service; sudo systemctl start syncthing@myuser.service
接下来可以连到本机端的管理界面上操作:
如果需要可以从非本机连上的话,可以改这段:
<gui enabled="true" tls="false" debugging="false">
<address>0.0.0.0:8384</address>
</gui>
参考资料
- ↑ Downloads. [2020-08-14] (English).
- ↑ Firewall Setup. [2020-08-14] (English).
- ↑ Starting Syncthing Automatically. [2020-08-14] (English).
外部链接
- 官方网站 (英文)