Last active
May 14, 2024 21:38
-
-
Save SaidTorres3/67044f0675e71ce717e91b0418d6ccd8 to your computer and use it in GitHub Desktop.
syncthing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add Syncthing repository | |
curl -s https://syncthing.net/release-key.txt | sudo apt-key add - | |
echo "deb https://apt.syncthing.net/ syncthing release" | sudo tee /etc/apt/sources.list.d/syncthing.list | |
# Install Syncthing | |
sudo apt-get update | |
sudo apt-get install syncthing | |
sudo su | |
mkdir -p ~/.config/syncthing | |
nano ~/.config/syncthing/config.xml | |
<configuration version="32"> | |
<gui enabled="true" tls="false"> | |
<address>REPLACE_THIS_WITH_TAIL_IP:8384</address> | |
</gui> | |
<!-- Other configuration settings can go here --> | |
</configuration> | |
tmux | |
syncthing | |
# Go to http://REPLACE_THIS_WITH_TAIL_IP:8384/ | |
# Run it automatically: | |
tmux a # Enter and manually kill the tmux session | |
sudo su | |
sudo nano /etc/systemd/system/syncthing.service | |
``` | |
[Unit] | |
Description=Syncthing - Open Source Continuous File Synchronization | |
Documentation=https://docs.syncthing.net/ | |
After=network.target | |
[Service] | |
User=root | |
ExecStart=/usr/bin/syncthing -no-browser -home="/root/.config/syncthing" | |
Restart=on-failure | |
RestartSec=5 | |
StartLimitInterval=60s | |
StartLimitBurst=3 | |
[Install] | |
WantedBy=multi-user.target | |
``` | |
sudo systemctl daemon-reload | |
sudo systemctl enable syncthing | |
sudo systemctl start syncthing | |
sudo systemctl status syncthing |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment