SharedTutor | Tutorials For Everyone

Find your interesting tutorials in Get your tutorial about Computer, Blogging, Makemoneyonline, Games, Design, and more!

How to Install BitTorrent Sync on a Linux Server

btsync-logoPreviously, we've introduced that you BitTorrent Sync that allows you to sync your files from computer to computer using Bittorrent technology. If you have your personal web server, you should use btsync being a backup tool to back up files out of your computer for the web server. Here is how you'll be able to setup BitTorrent Sync in your server.

Note: This tutorial assumes that there is a Linux server plus you've got administrative rights for the server. If you are using a Windows server, this tutorial is just not applicable.

1. Login for your remote server via SSH. At the Home directory (or any folder that is not accessible through the public), produce a “btsync” folder.

mkdir btsync cd btsync

Next, fetch the BitTorrent Sync installer from the web.


I am while using the 64-bit version of the installer. You can find the version most appropriate for your server.

Extract the tar file:

tar -xvzf btsync_x64.tar.gz

If you run a “ls” command, you ought to see the “btsync” along with the “LICENSE.TXT” file.


Execute the btsync file.


This will run BitTorrent Sync in private.


Now, go for your browser and type within the address: “http://your-ip-address:8888

On an Apache server with multiple domains, you need to add the next entry to the domain-specific vhost file:

<Location /gui/> ProxyPass ProxyPassReverse Redirect permanent /btsync /gui/ </Location>

Restart the Apache server and will also be able to access through URL: “http://your-domain-name/gui/


Protecting the BTSync GUI

By default, the BTSync GUI is freely available and you can now access it. What you want to accomplish is to incorporate a password protection so only it is possible to access it.

In remote server, produce a “btsync.config” file. Make sure you place it in a location that is just not accessible from the public.

nano btsync.config

Paste the subsequent lines towards the blank file:

 "webui":  "listen" : "", "login" : "YOUR_LOGIN_USERNAME", "password" : "YOUR_LOGIN_PASSWORD"  

Replace “YOUR_LOGIN_USERNAME” and “YOUR_LOGIN_PASSWORD” using your username and password.

Save (ctrl + o) and exit the file (ctrl +x).

Next, add the config file to btsync:

./btsync --config /path/to/btsync.config

Note: you have to stop/kill the currently running process before it is possible to add the config file. Once added, btsync will autostart alone.

Now, refresh your browser and will also prompt you for your login credential.


With the world wide web GUI, you will be able to incorporate folder and also the secret to start syncing the files from your computer towards the server. Remember that you will need to install the BitTorrent Sync client on the computer too before you'll be able to sync the files.


No comments

Post a Comment