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 | |
# 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 |
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
if usbkey mounted then watch raspistill |
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/sh | |
sleep 1 | |
docker start oldnation | |
sleep 1 | |
docker start newnation |
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/sh | |
sleep 1 | |
docker start community | |
sleep 1 | |
docker start nation |
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/sh | |
# configure pirateship image | |
sudo pirateship rename onewire | |
sudo pirateship adapter pirate.sh/ip "" none | |
sudo ifdown wlan0 | |
sudo ifup wlan0 | |
# install opk drivers |
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/sh | |
# configure pirateship image | |
sudo pirateship rename temper | |
sudo pirateship adapter pirate.sh/ip "" none | |
sudo ifdown wlan0 | |
sudo ifup wlan0 | |
# install opk drivers |
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/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 |
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/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 |
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/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 |
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
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 |
NewerOlder