-
-
Save silvio-didonna/e26c3613858a99abf79c to your computer and use it in GitHub Desktop.
Bash script to install Thingspeak server on Raspberry Pi running Raspbian.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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