Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Don't forget to resize disk first. Use raspi-config from command line, expand filesystem and reboot before running this script
# INSTRUCTIONS:
# wget --no-check-certificate https://gist.github.com/mohankumargupta/b02b007b8c205673569a4ccae51a1f4f/raw/ffbcec3f49904629acff3173d8722b404c05bc2a/ethernetgadgetpizero.sh
# chmod 777 ethernetgadgetpizero.sh
# ./ethernetgadgetpizero.sh
set -x
cd ~
wget -O gadgetkernel.tgz http://adafruit-download.s3.amazonaws.com/gadgetmodulekernel_151226a.tgz
tar xvzf gadgetkernel.tgz
#installed zbar with difficulty, main steps taken from https://github.com/NaturalHistoryMuseum/gouda
#what worked for me (executed from anaconda command prompt)
#conda update --all
#conda update --all
#python -m pip install --upgrade pip
#python <Anaconda dir>\Scripts\pywin32_postinstall.py -install
#python -m pip install pathlib
#python -m pip install numpy
#python -m pip install Pillow
#conda install -c menpo opencv