Set Syncthing to start on boot sudo update-rc.d syncthing defaults Make the Syncthing init.d script executable sudo chmod +x /etc/init.d/syncthing # Debian provides some extra functions thoughĭAEMON_DESC=$(get_lsb_header_val $0 "Short-Description") # Required-Stop: $local_fs $remote_fs $network # Required-Start: $local_fs $remote_fs $network Paste the Syncthing init.d startup script, change your DAEMON_USER in case you do not have a pi user #!/bin/sh Kill the syncthing process with Ctrl+C in the TerminalĮdit the Syncthing configuration file nano /home/pi/.config/syncthing/config.xmlĬhange this line from the local loopback 127.0.0.1 to the any address code 0.0.0.0Ĭhange tls to true if you want an SSL connection for the Syncthing web interface Ĭreate the Syncthing init.d script sudo nano /etc/init.d/syncthing 17:47:33 INFO: Completed initial scan (rw) of folder default 17:47:33 INFO: Generating RSA key and certificate for raspberrypi. 17:47:33 INFO: Creating new HTTPS certificate 17:47:33 INFO: Loading HTTPS certificate: open /home/pi/.config/syncthing/https-cert.pem: no such file or directory 17:47:33 OK: Ready to synchronize default (read-write) 17:47:33 INFO: Database block cache capacity 8192 KiB 17:47:33 INFO: Edit /home/pi/.config/syncthing/config.xml to taste or use the GUI 17:47:33 INFO: No config file starting with empty defaults 17:45:33 INFO: Generating RSA key and certificate for syncthing. Syncthing doesn't start with remote access support so kill the process after you see this so we can edit the configuration file 17:45:33 INFO: Starting syncthing Now start Syncthing to do some initial set up syncthing Update your repositories and install Syncthing on the Raspberry Pi sudo apt-get update My annual Dropbox renewal date was coming up, and I thought to myself “I’m working with servers all the time.Download the Syncthing repository gpg key wget -O - | sudo apt-key add -Īdd the Syncthing repository echo "deb syncthing release" | sudo tee -a /etc/apt//syncthing-release.list I shouldn’t need to pay someone else for this.” I was also knee deep in a math course, so I felt like procrastinating. I’m really happy with the result, so I thought I would explain it for anyone else who wants to do the same.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |