Skip to content

Instantly share code, notes, and snippets.

@treehouse-su
treehouse-su / autorunonce.sh
Last active August 29, 2015 14:26
general nation qa raspberrypi script for BeLL
#!/bin/bash
# rename hostname from raspberrypi to qa
pirateship rename qa
# configure static global valid ip address
#pirateship ethernet 204.9.221.79 255.255.255.128 204.9.221.1 "204.9.221.30 204.9.223.18 204.9.223.19"
#sleep 10
# template for nation install
@treehouse-su
treehouse-su / autorun.sh
Created August 1, 2015 08:49
raspi-cam time lapse
if usbkey mounted then watch raspistill
@treehouse-su
treehouse-su / autorun.sh
Last active August 29, 2015 14:25
qa bell nation install scripts
#!/bin/sh
sleep 1
docker start oldnation
sleep 1
docker start newnation
@treehouse-su
treehouse-su / autorun.sh
Last active September 4, 2015 12:38
pirate.sh/ip raspberry pi image ole bell startup files
#!/bin/sh
sleep 1
docker start community
sleep 1
docker start nation
@treehouse-su
treehouse-su / autorun.sh
Last active August 29, 2015 14:21
1wire temp OPK script
#!/bin/sh
# configure pirateship image
sudo pirateship rename onewire
sudo pirateship adapter pirate.sh/ip "" none
sudo ifdown wlan0
sudo ifup wlan0
# install opk drivers
@treehouse-su
treehouse-su / autorun.sh
Created May 15, 2015 00:29
yoctopuce temp OPK script
#!/bin/sh
# configure pirateship image
sudo pirateship rename temper
sudo pirateship adapter pirate.sh/ip "" none
sudo ifdown wlan0
sudo ifup wlan0
# install opk drivers
@treehouse-su
treehouse-su / autorun.sh
Last active August 29, 2015 14:21 — forked from dwblair/autorun.sh
temper1 OPK script
#!/bin/sh
# configure pirateship image
pirateship rename temper
pirateship adapter pirate.sh/ip "" none
# install opk drivers
# NOTE: must manually copy phant 'keys_*.json' file to /boot directory
cd /root
@treehouse-su
treehouse-su / autorun.sh
Last active August 29, 2015 14:21
piratebell
#!/bin/sh
# configure pirateship image
sudo pirateship rename piratebell
# install couchdb image drivers
docker pull dogi/rpi-couchdb
docker run -d -p 5984:5984 --name pirateship -v /srv/data/pirateship:/usr/local/var/lib/couchdb -v /srv/log/pirateship:/usr/local/var/log/couchdb dogi/rpi-couchdb
docker run -d -p 5985:5984 --name pirateisle -v /srv/data/pirateisle:/usr/local/var/lib/couchdb -v /srv/log/pirateisle:/usr/local/var/log/couchdb dogi/rpi-couchdb
@treehouse-su
treehouse-su / autorun.sh
Created May 12, 2015 02:11
jack in the box for wifi and blink
#!/bin/sh
sudo pirateship rename pirate1
sudo pirateship adapter pirate.sh/ip "" none
sudo ifdown wlan0
sudo ifup wlan0
sudo apt-get install libusb-1.0-0-dev
cd /root
git clone https://github.com/todbot/blink1.git
@treehouse-su
treehouse-su / gist:15806587b5d3a1c07d8a
Last active August 29, 2015 14:19
create OPK raspberry pi image
sudo -s
# download new rpi image
wget http://downloads.raspberrypi.org/raspbian/images/raspbian-2015-02-17/2015-02-16-raspbian-wheezy.zip
# insert new SDcard in my case /dev/sdb1 gets mounted ... umount
umount /dev/sdb1
zcat 2015-02-16-raspbian-wheezy.zip > /dev/sdb
# insert SDcard into rpi2 with serial cable attached to the laptop
#https://learn.adafruit.com/adafruits-raspberry-pi-lesson-5-using-a-console-cable/test-and-configure
screen /dev/ttyUSB0 115200
# login using username pi password raspberry