树莓派安装syncthing

# install necessary package first   
sudo apt-get install apt-transport-https ca-certificates
# add release pgp keys
curl -s https://syncthing.net/release-key.txt | sudo apt-key add -
# add stable channel to sources
echo "deb https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list
# update & install
sudo apt-get update
sudo apt-get install syncthing
# run first time to generate configuration file
syncthing
# change listening address in config.xml
0.0.0.0:8384

# restart syncthing and change password in web ui

# download systemd service file
git clone https://github.com/syncthing/syncthing
cd syncthing/etc/linux-systemd/system
mv [email protected] /etc/systemd/system/[email protected]

# enable & start service
systemctl enable [email protected]
systemctl start [email protected]

 

转载于:https://www.cnblogs.com/tiger9637/p/10506235.html

你可能感兴趣的:(树莓派安装syncthing)