× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

BitTorrent Sync - How To

Squazz
Aspirant

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
Message 1 of 20
super_poussin
Virtuoso

Re: BitTorrent Sync - How To

Please do not use BT Sync on readynas it has a major bug which will kill your unit , even with 1034
Message 2 of 20
Squazz
Aspirant

Re: BitTorrent Sync - How To

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
Message 3 of 20
DrJones
Aspirant

Re: BitTorrent Sync - How To

tagged.....
Message 4 of 20
traxinv
Aspirant

Re: BitTorrent Sync - How To

Does this problem still exist?
Message 5 of 20
fastfwd
Virtuoso

Re: BitTorrent Sync - How To

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.
Message 6 of 20
super_poussin
Virtuoso

Re: BitTorrent Sync - How To

Published version on Readynas 6.1.1 beta under free apps and in the community dropbox is safe
Message 7 of 20
traxinv
Aspirant

Re: BitTorrent Sync - How To

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]
Message 8 of 20
fastfwd
Virtuoso

Re: BitTorrent Sync - How To

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.
Message 9 of 20
super_poussin
Virtuoso

Re: BitTorrent Sync - How To

BTsync 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


Message 10 of 20
fastfwd
Virtuoso

Re: BitTorrent Sync - How To

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?
Message 11 of 20
super_poussin
Virtuoso

Re: BitTorrent Sync - How To

Yep


For OS4 You can use SDK
Message 12 of 20
paalfe
Guide

Re: BitTorrent Sync - How To

Anyone know if someone has made/will make an easy to use package of btsync for R4 (x86) and R5 (ARM) as an addon that can be easily controlled from the Readynas admin GUI.

Like the one that poussin has made for R6 (all)?
http://rnxtras.com/addons/bittorrent-sync-readynas-6-all
Message 13 of 20
JarnoG
Guide

Re: BitTorrent Sync - How To

I would love to see a BTSync add-on for the Ultra. Is there any news on whether there is one coming and if so, if there's an ETA?
Message 14 of 20
chsu83
Luminary

Re: BitTorrent Sync - How To

hey fastfwd,

did you experienced any problems with bittorrent sync? did something change with newer versions?
I'm interested to run it on my readynas also..

regards
Message 15 of 20
StephenB
Guru

Re: BitTorrent Sync - How To

chsu83 wrote:
hey fastfwd,

did you experienced any problems with bittorrent sync? did something change with newer versions?
I'm interested to run it on my readynas also..

regards
What readynas do you currently own?
Message 16 of 20
chsu83
Luminary

Re: BitTorrent Sync - How To

unfortunately not an OS6

Readynas Pro Business


perhaps I'm trying with also with syncthing.. it seems a little bit easier to manage.. but I'm searching a sync variant, which is doesn't rely on cloudstorage.
Message 17 of 20
latitudehopper
Aspirant

Re: BitTorrent Sync - How To

Has anyone packaged up syncthing for readynas?
Message 18 of 20
latitudehopper
Aspirant

Re: BitTorrent Sync - How To

An update for anyone who stumbles here. I had HOURS/DAYS of pain with BTSync with all types of bugs. I even tested a soon to be released version but still had issues. I have moved all my boxes over to Pulse/Syncthing - It all works again! Simple, reliable and fast. Just like BTSync almost was way back when.
Message 19 of 20
jazzmoher
Aspirant

Re: BitTorrent Sync - How To

Hello, I have a Readynas NVX and thinking about installing BTSync after going through this thread.. but have some questions please:
1. Can I run BTSync if I followed the opening guide + fastfwd's guide? I mean, is the NVX even capable of running BTSync?
2. If yes, which tarball should I download please, 386 or i386 (glibc 2.3)? http://www.getsync.com/platforms/desktop#linux
3. Some users mention bugs/problems running BTSync.. Is there any alternative (hopefully as an pre-OS6 add-on)?
Thank you!!
Message 20 of 20
Top Contributors
Discussion stats
  • 19 replies
  • 8427 views
  • 0 kudos
  • 11 in conversation
Announcements