Skip to content

Instantly share code, notes, and snippets.

@spicydog
Created July 10, 2016 10:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save spicydog/29c4d4346e95bb70b8d4be1c43cc9565 to your computer and use it in GitHub Desktop.
Save spicydog/29c4d4346e95bb70b8d4be1c43cc9565 to your computer and use it in GitHub Desktop.
Install btsync on Debian and Ubuntu
#!/bin/bash
apt-key adv --keyserver keys.gnupg.net --recv-keys 6BF18B15
CODENAME=$(lsb_release -cs | sed -n '/lucid\|precise\|quantal\|raring\|saucy\|trusty\|squeeze\|wheezy\|jessie\|sid/p')
echo "" >> /etc/apt/sources.list
echo "#### BitTorrent Sync - see: http://forum.bittorrent.com/topic/18974-debian-and-ubuntu-server-packages-for-bittorrent-sync-121-1/" >> /etc/apt/sources.list
echo "## Run this command: apt-key adv --keyserver keys.gnupg.net --recv-keys 6BF18B15" >> /etc/apt/sources.list
echo "deb http://debian.yeasoft.net/btsync ${CODENAME:-sid} main" >> /etc/apt/sources.list
echo "deb-src http://debian.yeasoft.net/btsync ${CODENAME:-sid} main" >> /etc/apt/sources.list
unset CODENAME
apt-get update
apt-get -y install btsync
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment