Skip to content

Instantly share code, notes, and snippets.

Last active February 17, 2016 19:10
What would you like to do?
Bash script to install Thingspeak server on Ubuntu 12.04LTS using rvm.
# Install Thingspeak server on Ubuntu 12.04 LTS with rvm.
# Andrew Bythell <>
# 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:// --recv-keys D39DC0E3
\curl -sSL | bash -s stable
source ~/.rvm/scripts/rvm
rvm install ruby-2.1.0
## Install thingspeak
git clone
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