NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Squazz
May 22, 2013Aspirant
BitTorrent Sync - How To
This guide is outdated. I havn't got the time to make it up to par
Following this guide with above disclaimer is your own responsibility
If you havn't read about BT Sync already, do yourself a favor, and read about it here: http://labs.bittorrent.com/experiments/sync.html
If you are running a NAS with the R6 software, check out super-poussin's addon from https://www.dropbox.com/sh/ie9pwk1wut72ias/p6_X2QeOIC
So far, all I have tested is for the x86 on my Pro 4. Feel free to confirm if this works for other processors and models.
I have taken the privilege to take some inspiration for the guide (aka. copied a lot) from this thread: viewtopic.php?f=4&t=61152 as I myself previously have found i very helpful and intuitive.
Steps for x86 ReadyNas:
1. You need to do this via the CLI on the readynas so you need to install the Enable Root SSH addon - http://www.readynas.com/download/addons ... .0-x86.bin Complete installation by rebooting your readynas.
2. You will need to get a ssh client for your desktop/laptop, here is one for winblows (putty) - http://the.earth.li/~sgtatham/putty/lat ... /putty.exe, nothing to install, just download and place on your desktop or somewhere you can find it.
3. Open putty and SSH into your readynas, enter the IP address and when it prompts for username enter "root" and then your normal raidar/frontpage "password".
4. Now we can install BT Sync.
- Download the latest linux version
enter "wget http://btsync.s3-website-us-east-1.amaz ... 386.tar.gz"
(Link to official download site: http://labs.bittorrent.com/experiments/ ... nload.html)
5. Once the download has completed lets extract the files which are tarred and zipped.
enter "tar -xvf btsync_i386.tar.gz", this will extract all of the files and place them in the root folder.
Now enter "./btsync", this will start the BT Sync engine
6. You should now be good to go! Yay :)
Visit YourNASIP:8888/gui to see if it's working. If it is, you should see a page similar to this:

Now that you have your BT Sync "server" running, all you need is to install a client on your machine. Direct links are as follows (EU servers):
Windows: http://btsync.s3-website-us-east-1.amaz ... BTSync.exe
Mac: http://btsync.s3-website-us-east-1.amaz ... BTSync.dmg
To read more about how you connect your client to your server at you NAS, see this site: http://labs.bittorrent.com/experiments/ ... arted.html
OBS: It seems that BT Sync dosn't automatically start up with your NAS. At the moment you will have to manually start the service every time you reboot you NAS by opening putty and SSH into your readynas, and then entering ./btsync in the console
Following this guide with above disclaimer is your own responsibility
If you havn't read about BT Sync already, do yourself a favor, and read about it here: http://labs.bittorrent.com/experiments/sync.html
If you are running a NAS with the R6 software, check out super-poussin's addon from https://www.dropbox.com/sh/ie9pwk1wut72ias/p6_X2QeOIC
So far, all I have tested is for the x86 on my Pro 4. Feel free to confirm if this works for other processors and models.
I have taken the privilege to take some inspiration for the guide (aka. copied a lot) from this thread: viewtopic.php?f=4&t=61152 as I myself previously have found i very helpful and intuitive.
Steps for x86 ReadyNas:
1. You need to do this via the CLI on the readynas so you need to install the Enable Root SSH addon - http://www.readynas.com/download/addons ... .0-x86.bin Complete installation by rebooting your readynas.
2. You will need to get a ssh client for your desktop/laptop, here is one for winblows (putty) - http://the.earth.li/~sgtatham/putty/lat ... /putty.exe, nothing to install, just download and place on your desktop or somewhere you can find it.
3. Open putty and SSH into your readynas, enter the IP address and when it prompts for username enter "root" and then your normal raidar/frontpage "password".
4. Now we can install BT Sync.
- Download the latest linux version
enter "wget http://btsync.s3-website-us-east-1.amaz ... 386.tar.gz"
(Link to official download site: http://labs.bittorrent.com/experiments/ ... nload.html)
5. Once the download has completed lets extract the files which are tarred and zipped.
enter "tar -xvf btsync_i386.tar.gz", this will extract all of the files and place them in the root folder.
Now enter "./btsync", this will start the BT Sync engine
6. You should now be good to go! Yay :)
Visit YourNASIP:8888/gui to see if it's working. If it is, you should see a page similar to this:

Now that you have your BT Sync "server" running, all you need is to install a client on your machine. Direct links are as follows (EU servers):
Windows: http://btsync.s3-website-us-east-1.amaz ... BTSync.exe
Mac: http://btsync.s3-website-us-east-1.amaz ... BTSync.dmg
To read more about how you connect your client to your server at you NAS, see this site: http://labs.bittorrent.com/experiments/ ... arted.html
OBS: It seems that BT Sync dosn't automatically start up with your NAS. At the moment you will have to manually start the service every time you reboot you NAS by opening putty and SSH into your readynas, and then entering ./btsync in the console
19 Replies
Replies have been turned off for this discussion
- super_poussinVirtuosoPlease do not use BT Sync on readynas it has a major bug which will kill your unit , even with 1034
- SquazzAspirant
super-poussin wrote: Please do not use BT Sync on readynas it has a major bug which will kill your unit , even with 1034
That is properly what I have experienced :/
Post will be updated when bug is adressed - DrJonesAspiranttagged.....
- traxinvAspirantDoes this problem still exist?
- fastfwdVirtuoso
traxinv wrote: Does this problem still exist?
Not as far as I can tell. Versions 1.1.48 and 1.1.70 seem to be working fine on my Pioneer Pro and Ultra 2 Plus -- that is, they have bugs, but not the really dangerous one referenced by the big red warnings in this thread. - super_poussinVirtuosoPublished version on Readynas 6.1.1 beta under free apps and in the community dropbox is safe
- traxinvAspirant
super-poussin wrote: Published version on Readynas 6.1.1 beta under free apps and in the community dropbox is safe
Great! Thank you! [CLAPPING HANDS SIGN][PERSON WITH FOLDED HANDS] - fastfwdVirtuoso
Squazz wrote: It seems that BT Sync dosn't automatically start up with your NAS. At the moment you will have to manually start the service every time you reboot you NAS by opening putty and SSH into your readynas, and then entering ./btsync in the console
To make BTSync start (and cleanly shut down) with your NAS, save the script below as /etc/init.d/btsync
If necessary, modify the "DAEMON=" line first, so it points to your btsync executable. If you followed Squazz's directions exactly -- that is, if you did not "cd" between logging in to your NAS and extracting btsync -- the executable will be in your home directory, so the line should say "DAEMON=~/btsync" (without the quotes).
#! /bin/sh -e
# Make sure that the "DAEMON=" line below points to your btsync executable
# (e.g., if you unpacked btsync into your home directory: "DAEMON=~/btsync"),
# then save this script as /etc/init.d/btsync
#
# Then type these two commands (the first one makes the script executable,
# the second one makes the script run at startup/shutdown):
#
# sudo chmod 755 /etc/init.d/btsync
# sudo update-rc.d btsync defaults
#
# To start btsync without rebooting, type:
#
# /etc/init.d/btsync start
#
# To stop it, type:
#
# /etc/init.d/btsync stop
#
set -e
PATH=/usr/local/bin:/usr/local/sbin:/bin:/usr/bin:/sbin:/usr/sbin
DAEMON=/usr/local/bin/btsync/btsync
test -x $DAEMON || exit 0
. /lib/lsb/init-functions
case "$1" in
start)
log_daemon_msg "Starting BitTorrent Sync" "btsync"
start-stop-daemon --start --oknodo --quiet --exec $DAEMON
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping BitTorrent Sync" "btsync"
start-stop-daemon --stop --oknodo --quiet --exec $DAEMON --retry=TERM/30/KILL/5
log_end_msg $?
;;
force-reload|restart)
$0 stop
$0 start
;;
*)
echo "Usage: /etc/init.d/btsync {start|stop|restart|force-reload}"
exit 1
;;
esac
exit 0
Then type these two commands (the first one makes the script executable, the second one makes the script run at startup/shutdown):
sudo chmod 755 /etc/init.d/btsync
sudo update-rc.d btsync defaults
That's it.
Test the script by typing:
/etc/init.d/btsync start
You should see BitTorrent Sync forked to background. pid = nnnnn. If you don't see that, it's probably because you did not set "DAEMON=" to the location of your btsync executable. Edit the /etc/init.d/btsync script to make sure.
Once BTSync is running, you shouldn't ever have to stop it. But if you want to, you can stop it manually by typing:
/etc/init.d/btsync stop
Some final notes:- As written, the script will not start BTSync with a configuration file (because I don't use one, and I've already spent too much time on this tonight).
- The script runs BTSync as root, which is fine, but just on general principles I would prefer it to run as an unprivileged user. Again, though, it's late here and I'm too tired to experiment with btsync and see whether it functions correctly when invoked that way. Maybe tomorrow.
- super_poussinVirtuosoBTsync should start after a reboot , which version of the addons are you using ?
that's a bad ID to run it as root :( if addons is used btsync is installed under /apps
the addon is here : https://www.dropbox.com/s/djgzikjolykl1 ... 70_all.deb
#! /bin/sh
### BEGIN INIT INFO
# Provides: btsync
# Required-Start: $remote_fs $syslog
# Required-Stop: $remote_fs $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Starts btsync
# Description: Start btsyncon start. Change USER= before running
### END INIT INFO
# Author: Poussin
#
# Do NOT "set -e"
# PATH should only include /usr/* if it runs after the mountnfs.sh script
chmod 777 /apps/btsync/config/sync.conf
HARDTYPE=`uname -r | grep ARM`
if [ $HARDTYPE ]; then
DAEMON=/apps/btsync/bin/arm/btsync
else
DAEMON=/apps/btsync/bin/btsync
fi
PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC="btsync"
NAME=btsync
#DAEMON=/apps/btsync/bin/$NAME
DAEMON_ARGS="--config /apps/btsync/config/sync.conf"
PIDFILE=/var/run/$NAME.pid
SCRIPTNAME=/etc/init.d/btsync
USER=admin
# Exit if the package is not installed
[ -x "$DAEMON" ] || exit 0
test -x $DAEMON || exit 0
case "$1" in
start)
# start-stop-daemon --chuid $USER --start --pidfile $PIDFILE --make-pidfile --exec $DAEMON -- $DAEMON_ARGS
start-stop-daemon --chuid $USER --start --pidfile $PIDFILE --exec $DAEMON -- $DAEMON_ARGS
;;
stop)
start-stop-daemon --chuid $USER --quiet --stop --exec $DAEMON
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0 - fastfwdVirtuoso
super-poussin wrote: BTsync should start after a reboot , which version of the addons are you using ?
No addon. I am running OS4 on a Pro Pioneer.super-poussin wrote: that's a bad ID to run it as root :(
Yes, thank you for confirming that it can be run as an unprivileged user. I will modify my script tomorrow.super-poussin wrote: the addon is here : https://www.dropbox.com/s/djgzikjolykl1 ... 70_all.deb
But only for OS6, correct?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!