bittorrent sync (or similar) into a 2big Nas?

Post Reply
dezpixels
Posts: 5
Joined: Thu Jan 29, 2015 6:44 pm

bittorrent sync (or similar) into a 2big Nas?

Post by dezpixels » Thu Jan 29, 2015 6:57 pm

I currently sync my Nas at home with my computer at work, to have updated folders work in both places. After many trials the best option for speed and stability has been bittorrent sync. (but currently I use my laptop for sync them)
Is there any way I can install bsync in Nas so that when I change something in the job folder, the folder is updated in the home Nas?

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: bittorrent sync (or similar) into a 2big Nas?

Post by Jocko » Fri Jan 30, 2015 8:08 am

Hi dezpixels,

I share your opinion about btsync.

You can install yourself the binary for NAS (no source files available) here : http://www.bittorrent.com/intl/en/sync.

We succeeded to use it with our alternative firmware with several Lacie NAS types.

As you need to fix an alignment bug, you must create a shell script to start it. (I assume that you saved btsync binary in /usr/sbin)

Code: Select all

#!/bin/sh
echo 2 > /proc/cpu/alignment
/usr/sbin/btsync --config '/path to conf file/btsync.conf'
If you don't use a conf file, btsync will create its system folders in the same folder than the btsync.

Note: It seems that after a long time btsync uses more and more resource (memory leak?) So you need to stop and start it regularly.

dezpixels
Posts: 5
Joined: Thu Jan 29, 2015 6:44 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by dezpixels » Fri Jan 30, 2015 12:13 pm

Hi Jocko, sorry for my ignorance, recently I have the Nas and I'm a little lost with what you say.
I downloaded the installer of the Bsync for Nas but, I don´t know what to do with this.
How can I access the root of Nas?
and.. more important .. can cause it to lose information?

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: bittorrent sync (or similar) into a 2big Nas?

Post by Jocko » Fri Jan 30, 2015 6:12 pm

You just need to download the binary for ARM : http://download.getsyncapp.com/endpoint ... ack/stable.

Save the binary in your wanted folder.

Set run permissions

Code: Select all

chmod a+x '/path to/btsync'
.

Read the file 'readme' there is some useful advices and link for help.

dezpixels
Posts: 5
Joined: Thu Jan 29, 2015 6:44 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by dezpixels » Sat Jan 31, 2015 12:37 pm

Hi! thnks for your help,
I downloaded the installation for ARM, I have given execute permission with the code you've told me, but when I went to run btsync tells me:

Code: Select all

-bash: ./btsync: can not execute binary file

fvdw
Posts: 777
Joined: Wed Mar 18, 2009 11:13 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by fvdw » Sat Jan 31, 2015 2:42 pm

I tested the file for you, it is running on lacie arm nas, so or you are doing something wrong or your 2big is not an arm based NAS

I have copied it to main directory (/)

Code: Select all

root@nwsp2-3:/ # chmod 755 /btsync
root@nwsp2-3:/ # /btsync
Alignment error
This normal behavior to get it running and not etting the alignment error do this

Code: Select all

root@nwsp2-3:/ # echo 2 > /proc/cpu/alignment
now it will run

Code: Select all

root@nwsp2-3:/ # /btsync
By using this application, you agree to our Privacy Policy, Terms of Use and End User License Agreement.
http://www.bittorrent.com/legal/privacy
http://www.bittorrent.com/legal/terms-of-use
http://www.bittorrent.com/legal/eula

BitTorrent Sync forked to background. pid = 5449. default port = 8888
root@nwsp2-3:/ #

fvdw
Posts: 777
Joined: Wed Mar 18, 2009 11:13 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by fvdw » Sat Jan 31, 2015 2:58 pm

ps if you 2big is a thunderbolt then it it will have an intel cpu

dezpixels
Posts: 5
Joined: Thu Jan 29, 2015 6:44 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by dezpixels » Sat Jan 31, 2015 5:22 pm

this not works for me.
Some about the arquitecture of my nas:

Code: Select all

al:sync Dezpixels$ uname -a
Darwin al.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64

fvdw
Posts: 777
Joined: Wed Mar 18, 2009 11:13 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by fvdw » Sat Jan 31, 2015 5:33 pm

you must use the X64 oner instead of arm

http://download.getsyncapp.com/endpoint ... ack/stable

dezpixels
Posts: 5
Joined: Thu Jan 29, 2015 6:44 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by dezpixels » Sat Jan 31, 2015 5:53 pm

:x :x still not working... maybe I'll be doing something wrong..

Code: Select all

al:sync Dezpixels$ chmod a+x btsync
al:sync Dezpixels$ ./btsync
-bash: ./btsync: cannot execute binary file

fvdw
Posts: 777
Joined: Wed Mar 18, 2009 11:13 pm

Re: bittorrent sync (or similar) into a 2big Nas?

Post by fvdw » Sat Jan 31, 2015 7:20 pm

what do get as output when giving this command ?

Code: Select all

cat /proc/cpuinfo

Mijzelf
Posts: 6224
Joined: Mon Jun 16, 2008 10:45 am

Re: bittorrent sync (or similar) into a 2big Nas?

Post by Mijzelf » Sat Jan 31, 2015 9:54 pm

dezpixels wrote:

Code: Select all

al:sync Dezpixels$ uname -a
Darwin al.local 13.4.0 Darwin Kernel Version 13.4.0: Sun Aug 17 19:50:11 PDT 2014; root:xnu-2422.115.4~1/RELEASE_X86_64 x86_64
You are using a Mac, aren't you? This is the kernel of your PC.

First you'll have to get telnetd or sshd running on your NAS in order to be able to open a shell on the nas.

Jocko
Posts: 99
Joined: Thu Mar 08, 2012 7:47 pm
Contact:

Re: bittorrent sync (or similar) into a 2big Nas?

Post by Jocko » Mon Feb 02, 2015 8:32 am

Hi dezpixels,

I was busy the last weekend but you found some more help. :mrgreen:

Sorry but it was obvious for me that you must operate on the nas side and so to have a root remote access. :shock:

Post Reply