Skip to content

Instantly share code, notes, and snippets.

@silvio-didonna
Forked from abythell/thingspeak-install2.sh
Last active February 26, 2016 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save silvio-didonna/e26c3613858a99abf79c to your computer and use it in GitHub Desktop.
Save silvio-didonna/e26c3613858a99abf79c to your computer and use it in GitHub Desktop.
Bash script to install Thingspeak server on Raspberry Pi running Raspbian.
#!/bin/bash
# Install Thingspeak server on Raspberry Pi running Raspbian.
# Based on work of Andrew Bythell <abythell@ieee.org>
# Install required packages
sudo apt-get update
sudo apt-get -y upgrade
sudo apt-get -y install build-essential mysql-server mysql-client libmysqlclient-dev
sudo apt-get -y install libxml2-dev libxslt-dev git-core curl rubygems
sudo apt-get -y install ruby2.1 ruby2.1-dev
## Install thingspeak
git clone https://github.com/iobridge/thingspeak.git
cd thingspeak
gem install minitest -v '4.7.5'
gem install json -v '1.8.1'
gem install bundler
bundle install
cp config/database.yml.example config/database.yml
rake db:create
rake db:schema:load
rails server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment