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 | |
# Inspired by http://dave.cheney.net/2015/09/04/building-go-1-5-on-the-raspberry-pi | |
function cleanGo { | |
rm -rf $HOME/go-linux-arm-bootstrap | |
} | |
#cleanGo | |
# Download go 1.4 binary |
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
# interfaces(5) file used by ifup(8) and ifdown(8) | |
# Please note that this file is written to be used with dhcpcd | |
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' | |
# Include files from /etc/network/interfaces.d: | |
source-directory /etc/network/interfaces.d | |
auto lo | |
iface lo inet loopback |
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
network={ | |
ssid="network_name" | |
psk="network_password" | |
} |
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
### Start getopts code ### | |
#Parse command line flags | |
#If an option should be followed by an argument, it should be followed by a ":". | |
#Notice there is no ":" after "h". The leading ":" suppresses error messages from | |
#getopts. | |
while getopts :s:p:r FLAG; do | |
case $FLAG in | |
s) #set option "s" |
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 | |
# Part of raspi-config http://github.com/asb/raspi-config | |
# | |
# See LICENSE file for copyright and license details | |
while getopts :r FLAG; do | |
case $FLAG in | |
r) #set option "r" | |
should_reboot=true | |
;; |
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
function cleanSetup { | |
echo "cleaning up" | |
if [ "$1" = true ] ; then | |
sudo rm -f $HOME/setup.sh | |
fi | |
sudo rm -f $HOME/install_golang.sh | |
sudo rm -f $HOME/install_python.sh | |
sudo rm -f $HOME/install_opencv.sh | |
sudo rm -f $HOME/setup_network.sh |
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 apt-get install libjpeg-dev libtiff5-dev libjasper-dev libpng12-dev -y | |
sudo apt-get install libavcodec-dev libavformat-dev libswscale-dev libv4l-dev -y | |
sudo apt-get install libgtk2.0-dev -y | |
sudo apt-get install libatlas-base-dev gfortran -y | |
cd ~/workspace | |
mkdir opencv | |
cd opencv | |
git clone https://github.com/Itseez/opencv.git | |
git clone https://github.com/Itseez/opencv_contrib.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 apt-get install python3-dev -y | |
pip3 install numpy |
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 apt-get update -y | |
sudo apt-get upgrade -y | |
sudo rpi-update -y | |
sudo apt-get install build-essential git cmake pkg-config -y |