Introduction: Dropbox Replacement With BtSync on a Edison IoT

What you need:

Parts:

  • Intel Edison Arduino IoT
  • 12v power supply, optionally with battery backup. This may not be needed.
  • microSD card, recommended 8GB or larger.
  • USB drive (optional)
  • WiFi connection

Software:

  • Current Yocto or Ubilinux
  • BTsync (downloaded directly)
  • SSH client on desktop system (ssh native on most linux, Putty on windows)

This Instructable assumes you have a basic knowledge of ssh, assembled the Edison, updated Linux, and connected it to the WiFi.

Step 1: Setting Up BTSync

After ssh into your Edison, create the directory for BTSync and move into it

  • mkdir -p /share/MD0_DATA/.qpkg/btsync/
  • cd /share/MD0_DATA/.qpkg/btsync/

Download BTSync and move it into the new folder

Extract the file

  • tar -xzf bittorrent_sync_i386.tar.gz

You can test BTSync with command, or move on to the next step.

  • ./btsync --webui.listen 0.0.0.0:8888

You can now browse to the Edison at port 8888 via your web browser.

Step 2: BTSync Start on Boot

Create directory

  • mkdir /etc/init.d/

Create and edit the file

  • vi /etc/init.d/bt.sh

Add these lines into the file

  • #!/bin/sh
  • killall btsync*
  • /share/MD0_DATA/.qpkg/btsync/btsync --webui.listen 0.0.0.0:8888

Make the file executable and update the start up

  • chmod +x /etc/init.d/bt.sh
  • update-rc.d bt.sh defaults

You should get a message like this

"Adding system startup for bt.sh..."

Step 3: Optional USB Storage

The USB stick can be mounted and used for storage before BTSync starts so that it can be used for storage.

Open the fstab file for editing

  • vi /etc/fstab

Add the this line to the end

  • /dev/sda1 /media/share vfat auto,rw,umask=000 0 0

Step 4: Use the GUI

Use the GUI at http://(your Edison's address here):8888 to set up your shares, and Enjoy!

This setup process also works for Ubilinux

Comments

author
achraf.jebali.77 (author)2015-01-30

Hello, I'm working on Intel Galileo Gen 2 with windows embedded and i
need to connected to the net using the Intel wireless n-135, i mated to
install the wif driver and i get "Driver is running" but i can't
connect the cart to the net, i trite many solution with no result, does
any one have a proposition and thks.

author
MsSweetSatisfaction (author)2014-12-27

Now that's an awesome and useful gadget! Welcome to instructables, I hope we see more from you!

About This Instructable

2,726views

34favorites

License:

More by Joe_Eugene_Boylan:Doorbell with the Edison and emailIntel Edison Morse Code trainerDropbox replacement with BtSync on a Edison IoT
Add instructable to: