Installazione di SyncThing headless in Debian
Jump to navigation
Jump to search
Oiettivo
- Installare syncthing in modalità headless e lanciare un'istanza per un utente unix.
Debian 8
- Installare chiave e repository apt:
wget -O -https://syncthing.net/release-key.txt | sudo apt-key add - echo "deb http://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list sudo apt-get update
- Installare i pacchetti
sudo apt-get install syncthing syncthing-inotify
- Scelto l'utente che dovrà utlizzare syncthing, creare i services systemd per quell'utente specifico:
systemctl enable syncthing@myuser.service systemctl enable syncthing-inotify@myuser.service
- Avviare i servizi:
systemctl start syncthing@myuser.service systemctl start syncthing-inotify@myuser.service
- Verificarli:
systemctl status syncthing@myuser.service -l systemctl status syncthing-inotify@myuser.service -l
- La configurazione sarà in:
/home/myuser/.config/syncthing
- Abilitare l'accesso alla gui ed impostare una password (verrà creato l'hash al primo salvataggio):
vi /home/mnt.vvngrl/.config/syncthing/config.xml
<gui enabled="true" tls="true">
<address>0.0.0.0:8384</address>
<user>myuser</user>
<password>mypassword</password>
<apikey>dqAIiwNWQuqGBHWnTtLkKquSEonX5Kmh</apikey>
<theme>default</theme>
</gui>
- Riavviare:
systemctl restart syncthing@myuser.service
- Accedere alla gui WEB https://myserver.example.priv:8384/