Setting up a Raspberry Pi Bittorrent Sync Server

How to set up a Raspberry Pi as a Bittorrent Sync server.

Format the USB key or drive on a windows PC using the NTFA file format. Originally I used a Kingston Technolodgy 64gb USB2 device but it only gave me about 58gb usable space which wasn't big enough for my data. I have since purchased an Integral Courier 128gb USB drive

How to set the Raspberry Pi up

Insert the USB memory stick in to either of the Pi's USB ports

mkdir bittorrentsync
cd bittorrentsync
tar -zxvf btsync_arm.tar.gz

To Run Bittorrent Sync


if you get an error "no such file or directory run this

sudo ln -s /lib/arm-linux-gnueabihf/ /lib/

To enable password protection on the web interface

./btsync --dump-sample-config > btsync.conf
sudo nano btsync.conf

edit these lines

"webui" :
"listen" : "",
"login" : "admin",
"password" : "password"

To Start on boot

sudo nano /etc/init.d/btsync

Paste in

#! /bin/sh
# /etc/init.d/btsync
# Carry out specific functions when asked to by the system
case "$1" in
/home/pi/bittorrentsync/btsync --config /home/pi/bittorrentsync/btsync.conf
killall btsync
echo "Usage: /etc/init.d/btsync {start|stop}"
exit 1
exit 0

To get Bittorrent Sync to automatically

sudo chmod 755 /etc/init.d/btsync
sudo /etc/init.d/btsync start
sudo /etc/init.d/btsync stop
sudo update-rc.d btsync defaults

Reboot the Pi

2 thoughts on “Setting up a Raspberry Pi Bittorrent Sync Server

  1. This must be an old post. When I do the first step of downloading the file using following command:
    wget “”
    I get following error:
    “Connecting to (||:80… connected.
    HTTP request sent, awaiting response… 400 Bad Request
    2014-10-30 07:58:37 ERROR 400: Bad Request.”

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>