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

    Dropbox replacement with BtSync on a Edison IoT

    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

  • wget http://download.getsyncapp.com/endpoint/btsync/os...
  • mv stable bittorrent_sync_i386.tar.gz

    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

    Dropbox replacement with BtSync on a Edison IoT
    Dropbox replacement with BtSync on a Edison IoT

    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

    Dropbox replacement with BtSync on a Edison IoT

    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

  •  
     

    Tag cloud

    make build easy simple arduino making homemade solar laser printed portable cheap mini building custom cardboard wooden create super lego turn paracord chocolate your paper light intel