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 | |
# Automatic install of Thingspeak server on Ubuntu 12.04 / Raspbmc / Debian (?) | |
sudo apt-get update | |
sudo apt-get -y install build-essential ruby1.9.3 git mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev | |
sudo gem install rails | |
git clone https://github.com/iobridge/thingspeak.git | |
cp thingspeak/config/database.yml.example thingspeak/config/database.yml | |
cd thingspeak | |
echo "gem: --no-rdoc --no-ri" >> ${HOME}/.gemrc |