BitTorrent Sync btsync - basic setup
Important Note: There is a conflict between the new version of btsync released
1.4.75and the previously configured conf file used in this FAQ. You will need to do these three things:
1: Download the conf file again and follow the steps below this notice to configure it. You do not need to set a username or password this time. You will be prompted to create this when you visits the WebUi.
2: restart btsync using this command in SSH:
killall -u $(whoami) btsync && ~/btsync/./btsync --config ~/btsync/sync.conf
3: Clear your browser history and cache completely and then reload the WebUi
End of Notice
In SSH do the commands described in this FAQ. If you do not know how to SSH into your slot use this FAQ: SSH basics - Putty
Your FTP / SFTP / SSH login information can be found on the Slot Details page for the relevant slot. Use this link in your Account Manager to access the relevant slot:
Your login information for the relevant slot will be shown here:
btsync automated installation
After SSH'ing into your slot run the following command:
wget -qO ~/install.btsync http://git.io/zHDQGA && bash ~/install.btsync
btsync manual installation
Here are some basic set-up steps for btsync.
Info: Automatically sync files via secure, distributed technology. btsync homepage
You will need to execute these commands in SSH
mkdir -p ~/btsync wget -qO ~/btsync/btsync.tar.gz http://download.getsyncapp.com/endpoint/btsync/os/linux-x64/track/stable tar xf ~/btsync/btsync.tar.gz -C ~/btsync && cd && rm -f btsync/btsync.tar.gz
mkdir -p ~/btsync wget -qO ~/btsync/btsync.tar.gz https://download-cdn.getsync.com/stable/linux-x64/BitTorrent-Sync_x64.tar.gz tar xf ~/btsync/btsync.tar.gz -C ~/btsync && cd && rm -f btsync/btsync.tar.gz
We are going to use a custom conf file with some tweaks. Please use this file and not the dummy conf generated by the binary. The custom conf has some basic things already configured.
Use this command to get it. It will be downloaded to the right location.
wget -qO ~/btsync/sync.conf http://git.io/tnT60g
Configure the conf file:
Now run this command to set a few variables we need:
sed -i 's|MYHOME|'"$HOME"'|g' ~/btsync/sync.conf sed -i 's|####|'$(shuf -i 10001-49000 -n 1)'|g' ~/btsync/sync.conf
Now start btsync using this command:
~/btsync/./btsync --config ~/btsync/sync.conf
The result will look like this:
It is now running in the background ready for us to use.
Accessing the WebUi
To access the Web Gui you must use a browser and visit the URL, where
usernameis your Feral username and
serveris the name of your Feral server that hosts the slot btsync is installed on:
Important note: to use https you can use the URL format
username.server.feralhosting.comwithout editing the conf. You may have to press
F5a few times for the Gui to load after accepting the invalid cert.
Use this command to see the generated WebUi port via SSH:
sed -rn 's|.*"listen" : "0.0.0.0:(.*)".*|\1|p' ~/btsync/sync.conf
Then modify the example URL below with your server information and WebUi port listed by the previous command:
Either will work.
Using the WebUi
Once you are at the WebUI you will be prompted to create a user account. This is only for accessing and using the WebUI.
Once you have done this step you will be prompted to log in:
ONce logged in your are ready to use btsync.
Network & Speed Tweaks
BTSync seemed very slow for me at times, and was curious on the Advanced settings, and what could be safely changed without having a massive performance hit client side.
Mileage may vary, remember the default values to go back to. I'll also mention them here.
Setting disk_low_priority to False
Allows for more disk usage, specially if you're Syncing to a secondary hard drive, no reason to have it set to low priority.
send_buf_size and recv_buf_size
The default values are 10 per variable. I slowly increased them by 5 each time and see if I saw any improvement. I didn't see any improvement till I set both variables to 35. Like I said, you may change them further and see if you find any improvement, but don't go to crazy.
To Kill the processes use this command to find running instances:
ps x | grep btsync | grep -v grep
Kill all btsync processes this way:
killall -u $(whoami) btsync
This page was last edited on 2015-08-01 11:17:16. You may edit this page.