Bit Torrent Sync Raspberry Pi Install Script:

I'm an avid user of BitTorrent Sync. I use it to securely share files between my friends and I. 

I know a couple of people with Pi's and couldn't find a one-click installer for BTSync. I decided to create my own.

This will only work on Raspberry Pi's but it can easily be configured to work on any Linux distro.

Click here to download (2K). Simply transfer the file to your pi and run:

sudo ./BTSyncRC1.sh

Alternatively you can copy the below. If you choose to copy I recommend carrying out the following steps:

Copy and paste the text into a plain text editor and save as BTSyncRC1.sh

once on your pi, run:
sudo chmod +x BTSyncRC1.sh             #This will make the file an executable#

sudo ./BTSyncRC1.sh


--------------------------------------------------------------------------------
#! /bin/bash
echo "Hello! This little script will install BitTorrent Sync 1.2.91 on your Pi"
echo "It will also set the BitTorrent service to start at boot."
echo "This script was created by Adam Massey."
echo "I'm not responsible for any damage caused by the use of this script"
echo "Do you want to continue? [Type y for yes and n for No]"
read -p "(y/n)?"
if [ $REPLY != "y" ]; then
        echo "Goodbye!..."
        exit 1
fi

#Create the BitTorrent Sync directory
mkdir /home/pi/.btsync && cd /home/pi/.btsync
#Dowload the btsync app
wget http://btsync.s3-website-us-east-1.amazonaws.com/btsync_arm.tar.gz
#Untar the file
tar -xvf btsync_arm.tar.gz
#Create the boot script
printf '#! /bin/sh
# /etc/init.d/btsync
#

# Carry out specific functions when asked to by the system
case "$1" in
start)
    /home/pi/.btsync/btsync
    ;;
stop)
    killall btsync
    ;;
*)
    echo "Usage: /etc/init.d/btsync {start|stop}"
    exit 1
    ;;
esac

exit 0' > /etc/init.d/btsync
#Give the script correct permissions
sudo chmod 755 /etc/init.d/btsync
#Test the App starts
sudo /etc/init.d/btsync start
#Test the App stopps
sudo /etc/init.d/btsync stop
#Install the boot script
sudo update-rc.d btsync defaults
clear
echo "Install complete. Please navigate to HOSTNAME:8888"
echo "from within your network to set up and use Bit Torrent Sync"
--------------------------------------------------------------------------------

1 comment:

  1. Great post. I would include that 'Great composition is a delight to the eye' too; that is the reason we have every one of the styles and design inclinations to make it is an agreeable affair for readers.Job resume writing service will make your resume emerge, for your prosperity is our objective,check for detailed info.

    ReplyDelete