An Unofficial Btsync Ubuntu/Debian Packaging Project Fork
Bittorrent Sync is an awesome solution for many problems ranging from synchronizing large amounts of files to certain centralized governing bodies. About three years ago, @tuxpoldo and many other contributors created the unofficial packaging project for Ubuntu/Debian to ease deployments on these systems - the project has since evolved to fill in the missing gaps of the official Sync project and continues to provide packages for legacy Btsync clients.
Current features include, but are not limited to:
Easy installing and upgrading
Generated configuration files (via an easy command line interface)
Run as a different user/group
Support for multiple instances
Custom nice levels
Unfortunately, after several years of active work, it seems @tuxpoldo has moved on and the unofficial packages got a bit stale. Since all the work is open source I was able to build new packages (with a few tweaks here and there) and since many members of the community used the packages I decided to share my work publicly. An archive of the original post from @tuxpoldo: https://forum.getsync.com/topic/18974-debian-and-ubuntu-server-unofficial-packages-for-bittorrent-sync/
I will be providing continued maintenance for this awesome project and until I am accustomed to this project (or Python for the matter) I can provide support for the btsync and btsync-common packages with new binary versions and bugfixes. I personally use these packages on several headless servers to sync files and will particularly support that use case.
Debian and Ubuntu packages can be found under my private repository http://deb.silvenga.com. New versions should be automatically built and published to this location via my build server (found above) when new changelogs are released. These packages should also work for other Ubuntu/Debian derivatives (Mint, LUbuntu, Raspbian, etc.).
The source to these packages (e.g. build scripts, changelogs, etc.) can be found in my GitHub fork: https://github.com/Silvenga/btsync-deb. I encourage reporting issues with the packaging to this repository.
Add my package signing key:
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 992A3C9A3C3DE741
Add the btsync repository:
add-apt-repository "deb http://deb.silvenga.com/btsync any main"
apt-get install btsync
After following the prompts, open your browser to http://127.0.0.1:8888/gui/ (if using the default configuration).
Log to proper log folder. (log path is now customizable via #6)
Setup logrotate. (might not be needed)
Fix the formatting of this post.
Adding a new synced folder results in the following error:
Make sure the user Btsync is running as has read and write access to the path set when prompted for the "Start path for the web interface".
Alternatively, / can be used.
You would receive something like the following when running apt-get-repository:
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 167, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 105, in __init__
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 595, in reload_sourceslist
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 89, in get_sources
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/jessie
Raspbian's add-apt-repository seems to be broken under at last Jessie. The following commands will resolve the issues:
echo "deb http://deb.silvenga.com/btsync any main" > /etc/apt/sources.list.d/silvenga-btsync-deb.list
apt-get install btsync
Adding signing key fails with the following stacktrace:
gpg: requesting key 3C3DE741 from hkp server keyserver.ubuntu.com
gpg: no writable keyring found: eof
gpg: error reading `[stream]': general error
Make sure to run all the above commands as root either by using sudo or switching to the root user.