piframe/docs/syncthing.md

34 lines
1.3 KiB
Markdown
Raw Normal View History

2020-08-01 00:30:15 +00:00
# SyncThing
The below will setup ```syncthing``` and give some basics for setup. This is wholly optional if you prefer a different approach to synchronizing your photos to the PiFrame.
*Please note: by default Syncthing does NOT impose transfer limits. You may want to consider limiting upload rates if you plan on moving large numbers of pictures over your internet line*
2020-08-01 00:30:15 +00:00
``` sh
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
apt update && apt install syncthing
2020-08-01 00:30:15 +00:00
touch /tank/pictures/.stfolder
chown fim: /tank/pictures/.stfolder
systemctl enable --now syncthing@fim.service # use feh user so perms are right for pics
2020-08-01 00:30:15 +00:00
ssh -L 8385:127.0.0.1:8384 user@piframe
http://localhost:8385
Change settings
General
Minimum free disk space : 10%
Anonymous usage reporting : Disabled
GUI
Listen address : 0.0.0.0:8384
GUI Auth user : admin
GUI Auth password : apassword
Delete default folder
Add /tank/pictures folder
Connect to upstream device w/ files you want to sync
Setup picture sync as inbound only
firewall-cmd --zone=public --permanent --add-port=8384/tcp
firewall-cmd --zone=public --permanent --add-port=22000/tcp
firewall-cmd --reload
```