General NAS-Central Forums

Welcome to the NAS community
It is currently Wed Jun 28, 2017 3:44 am

All times are UTC




Post new topic Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Thu Jan 29, 2015 6:57 pm 
Offline

Joined: Thu Jan 29, 2015 6:44 pm
Posts: 5
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?


Top
 Profile  
 
PostPosted: Fri Jan 30, 2015 8:08 am 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
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:
#!/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.


Top
 Profile  
 
PostPosted: Fri Jan 30, 2015 12:13 pm 
Offline

Joined: Thu Jan 29, 2015 6:44 pm
Posts: 5
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?


Top
 Profile  
 
PostPosted: Fri Jan 30, 2015 6:12 pm 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
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:
chmod a+x '/path to/btsync'
.

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


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 12:37 pm 
Offline

Joined: Thu Jan 29, 2015 6:44 pm
Posts: 5
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:
-bash: ./btsync: can not execute binary file


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 2:42 pm 
Offline

Joined: Wed Mar 18, 2009 11:13 pm
Posts: 771
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:
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:
root@nwsp2-3:/ # echo 2 > /proc/cpu/alignment

now it will run
Code:
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:/ #


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 2:58 pm 
Offline

Joined: Wed Mar 18, 2009 11:13 pm
Posts: 771
ps if you 2big is a thunderbolt then it it will have an intel cpu


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 5:22 pm 
Offline

Joined: Thu Jan 29, 2015 6:44 pm
Posts: 5
this not works for me.
Some about the arquitecture of my nas:

Code:
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


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 5:33 pm 
Offline

Joined: Wed Mar 18, 2009 11:13 pm
Posts: 771
you must use the X64 oner instead of arm

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


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 5:53 pm 
Offline

Joined: Thu Jan 29, 2015 6:44 pm
Posts: 5
:x :x still not working... maybe I'll be doing something wrong..

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


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 7:20 pm 
Offline

Joined: Wed Mar 18, 2009 11:13 pm
Posts: 771
what do get as output when giving this command ?

Code:
cat /proc/cpuinfo


Top
 Profile  
 
PostPosted: Sat Jan 31, 2015 9:54 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6004
dezpixels wrote:
Code:
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.


Top
 Profile  
 
PostPosted: Mon Feb 02, 2015 8:32 am 
Offline

Joined: Thu Mar 08, 2012 7:47 pm
Posts: 90
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:


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 13 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group