Skip to content

Instantly share code, notes, and snippets.

@abythell
Last active February 17, 2016 19:10
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 abythell/0dfcb28f67f9db45e8cb to your computer and use it in GitHub Desktop.
Save abythell/0dfcb28f67f9db45e8cb to your computer and use it in GitHub Desktop.
Bash script to install Thingspeak server on Ubuntu 12.04LTS using rvm.
#!/bin/bash
# Install Thingspeak server on Ubuntu 12.04 LTS with rvm.
# Andrew Bythell <abythell@ieee.org>
# Install required packages
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
## Install rvm
gpg --keyserver hkp://keys.gnupg.net --recv-keys D39DC0E3
\curl -sSL https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby-2.1.0
## 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'
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