2021-12-22 13:51:22 +00:00
|
|
|
#!/bin/bash
|
2022-01-08 06:20:48 +00:00
|
|
|
echo
|
|
|
|
echo "==============================================="
|
|
|
|
echo "Installing syncthing..."
|
|
|
|
echo "==============================================="
|
|
|
|
echo
|
2021-12-22 13:51:22 +00:00
|
|
|
|
|
|
|
# https://apt.syncthing.net/
|
|
|
|
|
|
|
|
# Add the release PGP keys:
|
|
|
|
sudo curl -s -o /usr/share/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg
|
|
|
|
|
|
|
|
# Add the "stable" channel to your APT sources:
|
|
|
|
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
|
|
|
|
|
|
|
|
# Add the "candidate" channel to your APT sources:
|
|
|
|
echo "deb [signed-by=/usr/share/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing candidate" | sudo tee /etc/apt/sources.list.d/syncthing.list
|
|
|
|
|
|
|
|
# Update and install syncthing:
|
2022-01-08 06:20:48 +00:00
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y --autoremove syncthing
|
2021-12-22 13:51:22 +00:00
|
|
|
|
2022-01-09 09:14:15 +00:00
|
|
|
wget "https://raw.githubusercontent.com/syncthing/syncthing/main/etc/linux-desktop/syncthing-start.desktop" -O $HOME/.local/share/applications/syncthing-start.desktop
|
|
|
|
wget "https://raw.githubusercontent.com/syncthing/syncthing/main/etc/linux-desktop/syncthing-ui.desktop" -O $HOME/.local/share/applications/syncthing-ui.desktop
|
|
|
|
ln -s $HOME/.local/share/applications/syncthing-start.desktop $HOME/.config/autostart/syncthing-start.desktop
|
2021-12-22 13:51:22 +00:00
|
|
|
# или демоном: https://habr.com/ru/post/350892/
|