The commands below assume you're using a user that can use sudo
, you're not logged in as root are you!?
First create a btsync user:
sudo useradd -M --shell /bin/false --home /var/lib/btsync
Download the btsync binary and put it in /usr/local/sbin
.
Create /etc/btsync
:
sudo mkdir /etc/btsync
Create a sample config or use the example one provided with this gist (don't forget to remove the comments in the .json file, I'm not sure if btsync chokes otherwise):
sudo /usr/local/sbin/btsync --dump-sample-config > /etc/btsync/btsync.json
Create /var/lib/btsync
and change ownership:
sudo mkdir /var/lib/btsync
sudo chown btsync:root /var/lib/btsync
Create a systemd
configuration file for btsync in /usr/lib/systemd/system/
or use the example one provided with this gist.
Enable btsync to be started at boot time:
sudo systemctl enable btsync
… and start btsync:
sudo systemctl start btsync
You should now be able to open a browser and go to http://servername:8888 and login using admin
and password
if you used the example config provided with this gist.
Make sure that any Folder that you want to add is readable and writeable by the btsync user.
@matijs You forgot the last argument for useradd command
Otherwise thanks for this :-)