Installing Resilio Sync (rslSync) on the Raspberry Pi

From KlavoWiki
Revision as of 11:08, 4 April 2021 by David (Sọ̀rọ̀ | contribs) (→‎Notes)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you would like to manually install Resilio Sync then have a look at the page Manually Installing Resilio Sync (rslSync) on the Raspberry Pi

I have based my install from Raspbian Lite

OS Updates

Ensure OS has all the latest updates.

apt-get update
apt-get -y upgrade
apt-get -y dist-upgrade
apt-get -y autoclean
apt-get -y autoremove

sudo apt-get -y install rpi-update

sudo rpi-update


apt source

echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | sudo tee /etc/apt/sources.list.d/resilio-sync.list
wget -qO - https://linux-packages.resilio.com/resilio-sync/key.asc | sudo apt-key add -

Install Resilio

sudo apt-get install resilio-sync

Stopping/starting Service

systemctl stop resilio-sync
systemctl start resilio-sync
systemctl restart resilio-sync
systemctl status resilio-sync

Notes

Config File

/etc/resilio-sync/config.json
{
    "device_name": "My : rPi",
    "listening_port" : 25327,
    "use_upnp" : false,


    "storage_path" : "/var/lib/resilio-sync/",
    "pid_file" : "/var/run/resilio-sync/sync.pid",

    "webui" :
    {
        "force_https": false,
        "listen" : "0.0.0.0:8888",
        "login" : "admin",
        "password_hash" : "mUs!eLsOwpL{MutdYdIh|eRb"
    }
}

Storage

/var/lib/resilio-sync/

User Account

rslsync

Using an existing database and folders I had to assign the user and group rslsync to the files and folders for resilio-sync to be able to access the storage.