Skip to content

Commit 422f506

Browse files
committed
Merge branch 'master' of https://github.com/DT42/BerryNet
2 parents 05478d6 + f7e7eb7 commit 422f506

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

utils/setup-bn-devenv-rpi.sh

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
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

0 commit comments

Comments
 (0)