How to Install BitTorrent Sync on a Linux Server

http://videohive.net/?ref=gimmegfx



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.

wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_x64.tar.gz

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.

btsync-extracted-files

Execute the btsync file.

./btsync

This will run BitTorrent Sync in private.

btsync-running-background

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 http://127.0.0.1:8888/gui/ ProxyPassReverse http://127.0.0.1:8888/gui/ Redirect permanent /btsync /gui/ </Location>

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

btsync-web-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" : "0.0.0.0:8888", "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.


Usage


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.

Enjoy!

Title Post: How to Install BitTorrent Sync on a Linux Server
Rating: 100% based on 99998 ratings. 5 user reviews.
Author: SharedTutor

Thank you for visiting sharedtutor.com, If there is criticism and suggestions please leave a comment


thumbnail
About The Author

Someone who always wanted to know about the beauty of the world :)

0 comments