Skip to content

Instantly share code, notes, and snippets.

View abythell's full-sized avatar

Andrew Bythell abythell

View GitHub Profile
@abythell
abythell / thingspeak-install.sh
Last active May 22, 2023 18:40
Bash script to install a Thingspeak server on Ubuntu Server 12.04. Raspbian (2014-01-07-wheezy-raspbian). and possibly Debian-based distros.
#!/bin/bash
# Automatic install of Thingspeak server on Ubuntu 12.04 / Raspbmc / Debian (?)
# Updated to use ruby 2.1.4
## Install required packages
sudo apt-get update
sudo apt-get -y install build-essential git mysql-server mysql-client libmysqlclient-dev libxml2-dev libxslt-dev libssl-dev libsqlite3-dev
## Install ruby
wget http://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.4.tar.gz
@abythell
abythell / rpi-rxtx-java.sh
Last active December 22, 2021 14:34
Sample script to run Java applications on Raspbian with RXTX
#!/bin/sh
#
# Configure Java for RXTX on embedded platforms like Raspberry Pi (Raspbian) and Beaglebone (Debian)
#
if [ -e "/dev/ttyAMA0" ] || [ -e "/dev/ttyO0" ]
then
for port in `find /dev -name 'tty*'`
do
@abythell
abythell / thingspeak-install2.sh
Last active February 17, 2016 19:10
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 <[email protected]>
# 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