Last active
August 4, 2022 19:43
-
-
Save garronej/337d4d5e14faceda5315b045905e6db4 to your computer and use it in GitHub Desktop.
Install resilio-sync on raspberry pi
This file contains hidden or 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
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
for ec2:
replace pi by admin,
download x64
for orange pi dowload ARMHF