Introduction: Dropbox Replacement With BtSync on a Edison IoT
What you need:
- 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
- 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
- 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
- mkdir /etc/init.d/
Create and edit the file
- vi /etc/init.d/bt.sh
Add these lines into the file
- 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
We have a be nice policy.
Please be positive and constructive.