File tree Expand file tree Collapse file tree 1 file changed +49
-0
lines changed
Expand file tree Collapse file tree 1 file changed +49
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ # Setup BerryNet devenv on RPi3.
3+
4+ install_system_dependencies () {
5+ sudo apt-get update
6+ sudo apt-get install -y \
7+ curl \
8+ fswebcam \
9+ git \
10+ imagemagick \
11+ libkrb5-dev \
12+ libyaml-dev \
13+ libzmq3-dev \
14+ lsb-release \
15+ mongodb \
16+ mosquitto \
17+ mosquitto-clients \
18+ python3-dev \
19+ python3-pip \
20+ supervisor \
21+ wget
22+ sudo service mongodb start
23+ sudo -H pip3 install --timeout 60 cython
24+ sudo -H pip3 install --timeout 60 logzero
25+ sudo -H pip3 install --timeout 60 paho-mqtt
26+ sudo -H pip3 install --timeout 60 watchdog
27+ }
28+
29+ install_berrynet_repository () {
30+ sudo apt update
31+ sudo apt install -y dirmngr
32+ pushd /etc/apt/sources.list.d
33+ sudo wget https://raw.githubusercontent.com/DT42/BerryNet/master/config/berrynet.list
34+ popd
35+ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv C0C4CC4C
36+ sudo apt update
37+ }
38+
39+ install_opencv () {
40+ sudo apt install -y python3-opencv
41+ }
42+
43+ main () {
44+ install_system_dependencies
45+ install_berrynet_repository
46+ install_opencv
47+ }
48+
49+ main
You can’t perform that action at this time.
0 commit comments