Skip to content

Instantly share code, notes, and snippets.

@jn7163
Forked from garronej/resilio.txt
Created April 17, 2020 17:10
Show Gist options
  • Save jn7163/d3e34ed53f637cd018c432054e41e886 to your computer and use it in GitHub Desktop.
Save jn7163/d3e34ed53f637cd018c432054e41e886 to your computer and use it in GitHub Desktop.
Install resilio-sync on raspberry pi
mkdir /var/lib/resilio-sync/ && chown pi:pi -R /var/lib/resilio-sync
mkdir /etc/resilio-sync
nano /etc/resilio-sync/config.json
{
"storage_path" : "/var/lib/resilio-sync/",
"pid_file" : "/var/run/resilio-sync/sync.pid",
"webui" :
{
"listen" : "0.0.0.0:8888"
}
}
nano /lib/systemd/system/resilio-sync.service
[Unit]
Description=Resilio Sync service
Documentation=http://help.getsync.com/
After=network.target network-online.target
[Service]
Type=forking
User=pi
Group=pi
UMask=0002
Restart=on-failure
PermissionsStartOnly=true
PIDFile=/var/run/resilio-sync/sync.pid
ExecStartPre=/bin/mkdir -p /var/run/resilio-sync
ExecStartPre=/bin/chown -R pi:pi /var/run/resilio-sync
ExecStart=/usr/bin/rslsync --config /etc/resilio-sync/config.json
[Install]
WantedBy=multi-user.target
Go on [https://www.resilio.com/individuals/] then copy link of [ARM] of Download for desktop.
cd /usr/bin/ && wget https://download-cdn.resilio.com/stable/linux-armhf/resilio-sync_armhf.tar.gz
tar -zxvf resilio-sync_armhf.tar.gz && rm resilio-sync_armhf.tar.gz && rm LICENSE.TXT && chmod +x rslsync
Increace the max number of file that can be watched:
add: 'fs.inotify.max_user_watches=524288' to /etc/sysctl.conf
then run: sysctl -p
systemctl enable resilio-sync.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment