- Download and install btsync to `/usr/bin``
- If you are on a 32 bit machine
wget -O btsync.tar.gz http://download-new.utorrent.com/endpoint/btsync/os/linux-x86/track/stable
- If you are on a 64 bit machine
wget -O btsync.tar.gz http://download-new.utorrent.com/endpoint/btsync/os/linux-x64/track/stable
sudo tar -xvf btsync.tar.gz -C /usr/bin btsync
- If you are on a 32 bit machine
- Create a user for btsync
- I used this
sudo adduser --home /var/btsync --no-create-home --shell /usr/sbin/nologin --disabled-login --ingroup btsync
- I used this
- Create directories for btsync
sudo mkdir /etc/btsync
sudo mkdir -p /var/btsync/shared
sudo mkdir /var/run/btsync
- Chown directories so that btsync can write to them
sudo chown -R btsync /var/btsync
sudo chown btsync /var/run/btsync
- Create btsync config at
/etc/btsync/config.json
(See below for example or executebtsync --dump-sample-config
to get a sample) - Install the above init script to
/etc/init.d
and make it executable- To get the script directly from this gist:
sudo wget -O /etc/init.d/btsync https://gist.githubusercontent.com/ellisgeek/a82a7cc35c4d5bbb2d55/raw/93eee792f01fa729b3b979a34752cb6d1929daa6/btsync.sh
- Otherwise you should know what to do.
- To get the script directly from this gist:
- Make btsync start at boot
sudo update-rc.d btsync defaults
- Execute
sudo service btsync start
- Navigate to
http://<IP OR HOST>:8888
to access btsync (Login with the credentials set in the config)
Example configuration:
{
"device_name": "<DEVICE NAME>",
"listening_port": 0,
"storage_path": "/var/btsync",
"pid_file": "/var/run/btsync/btsync.pid",
"use_upnp": false,
"download_limit": 0,
"upload_limit": 0,
"webui": {
"listen": "0.0.0.0:8888",
"login": "<USERNAME>",
"password": "<PASSWORD>",
"allow_empty_password": false,
"directory_root": "/var/btsync/shared",
"dir_whitelist": [
"/var/btsync/shared",
"/home/<USER>/shared"
]
}
}