Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions download-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
TARGET=${1:-raspbian.zip}
# Note: if updating the image we're using, you should also update the hash
# below. The hashes are available from Raspberry Pi as "$IMAGE.sha256".
IMAGE=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2017-12-01/2017-11-29-raspbian-stretch-lite.zip
IMAGE=https://downloads.raspberrypi.org/raspbian_lite/images/raspbian_lite-2019-06-24/2019-06-20-raspbian-buster-lite.zip

echo "e942b70072f2e83c446b9de6f202eb8f9692c06e7d92c343361340cc016e0c9f $TARGET" > sha256
echo "9009409a9f969b117602d85d992d90563f181a904bc3812bdd880fc493185234 $TARGET" > sha256

# If we already have the file, and it's got the right hash, then skip the download
sha256sum --check sha256 && echo "Image already downloaded." && exit 0
Expand Down
9 changes: 2 additions & 7 deletions pi-prebuild.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@ uname -a
export DEBIAN_FRONTEND=noninteractive
export APT_LISTCHANGES_FRONTEND=none

echo "Adding backports"
echo "deb [trusted=yes] http://ftp.debian.org/debian stretch-backports main" >> /etc/apt/sources.list

echo "Updating apt"
apt-get --quiet update -y

Expand All @@ -30,7 +27,8 @@ apt-get --quiet install -y \
libopencv-contrib-dev \
libopencv-video-dev \
libopencv-photo-dev \
python3-dev
python3-dev \
python3-cffi

echo "Install some useful tools for debugging"
apt-get --quiet install -y \
Expand All @@ -40,9 +38,6 @@ apt-get --quiet install -y \
screen \
vim

echo "Installing bits and pieces from backports"
apt-get --quiet -t stretch install -y python3-cffi

echo "Rebuilding locale"
echo "en_GB.UTF-8 UTF-8" > /etc/locale.gen
echo "en_US.UTF-8 UTF-8" >> /etc/locale.gen
Expand Down