Skip to content

Instantly share code, notes, and snippets.

@troykelly
Last active May 24, 2018 03:28
Show Gist options
  • Save troykelly/a273bfbe7348044ebc8df9ecd913c3fc to your computer and use it in GitHub Desktop.
Save troykelly/a273bfbe7348044ebc8df9ecd913c3fc to your computer and use it in GitHub Desktop.
Pi Angelcam Builder
#!/usr/bin/env bash
#
# With guidance from
# https://github.com/angelcam/arrow-client/wiki/Turning-your-ARM-device-into-AngelBox
#
# Run with:
# source <(curl -s https://gist.githubusercontent.com/troykelly/a273bfbe7348044ebc8df9ecd913c3fc/raw/pi_anglecam.sh)
#
sudo raspi-config --expand-rootfs && \
sudo partprobe && \
sudo apt-get -y update && \
sudo apt-get -y upgrade && \
sudo apt-get -y install dirmngr && \
sudo apt-key adv --keyserver hkp://keys.gnupg.net --recv-keys 3CB6723D && \
sudo sh -c 'echo "deb http://apt.angelcam.com/ stable main" > /etc/apt/sources.list.d/arrow.list' && \
sudo apt-get -y update && \
sudo apt-get -y install arrow-box arrow-box-utils && \
sudo systemctl enable arrow-box.service && \
sudo systemctl enable arrow-box-led.service && \
sudo systemctl start arrow-box.service && \
sudo systemctl start arrow-box-led.service && \
sudo ln -s /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.2 /usr/lib/arm-linux-gnueabihf/libssl.so.1.0.0 && \
sudo ln -s /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.2 /usr/lib/arm-linux-gnueabihf/libcrypto.so.1.0.0 && \
cat /sys/class/net/eth0/address && \
echo "Done"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment