Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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