树莓派安装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 <address>0.0.0.0:8384</address>
# 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 syncthing@.service /etc/systemd/system/syncthing@.service

# enable & start service
systemctl enable syncthing@pi.service
systemctl start syncthing@pi.service

 

posted @ 2019-03-10 18:08  GarfieldLoveCoffe  阅读(584)  评论(0编辑  收藏  举报