Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/DT42/BerryNet
Browse files Browse the repository at this point in the history
  • Loading branch information
bafu committed May 12, 2019
2 parents 05478d6 + f7e7eb7 commit 422f506
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions utils/setup-bn-devenv-rpi.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash
# Setup BerryNet devenv on RPi3.

install_system_dependencies() {
sudo apt-get update
sudo apt-get install -y \
curl \
fswebcam \
git \
imagemagick \
libkrb5-dev \
libyaml-dev \
libzmq3-dev \
lsb-release \
mongodb \
mosquitto \
mosquitto-clients \
python3-dev \
python3-pip \
supervisor \
wget
sudo service mongodb start
sudo -H pip3 install --timeout 60 cython
sudo -H pip3 install --timeout 60 logzero
sudo -H pip3 install --timeout 60 paho-mqtt
sudo -H pip3 install --timeout 60 watchdog
}

install_berrynet_repository() {
sudo apt update
sudo apt install -y dirmngr
pushd /etc/apt/sources.list.d
sudo wget https://raw.githubusercontent.com/DT42/BerryNet/master/config/berrynet.list
popd
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0C4CC4C
sudo apt update
}

install_opencv() {
sudo apt install -y python3-opencv
}

main() {
install_system_dependencies
install_berrynet_repository
install_opencv
}

main

0 comments on commit 422f506

Please sign in to comment.