-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmanual-setup.sh
executable file
·33 lines (26 loc) · 1.35 KB
/
manual-setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#! /bin/bash -xe
#Updating repository list
curl -k https://apt.matrix.one/doc/apt-key.gpg | sudo apt-key add -
echo "deb https://apt.matrix.one/raspbian $(lsb_release -sc) main" | sudo tee /etc/apt/sources.list.d/matrixlabs.list
sudo apt-get update
#Checking if all the packages needed are installed
sudo apt-get install --yes python3-pip matrixio-kernel-modules matrixio-malos ufw
#Setting config file for Matrix & Snips
sudo sed -i 's/# mike = "Built-in Microphone"/mike = "MATRIXIO SOUND: - (hw:2,0)"/g' /etc/snips.toml
#Install the audio service
sudo pip3 install -r /var/lib/snips/skills/burger-salad-snips-skill/requirements
sudo cp /var/lib/snips/skills/burger-salad-snips-skill/audio-snips.service /lib/systemd/system/
sudo cp /var/lib/snips/skills/burger-salad-snips-skill/led-snips.service /lib/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable audio-snips.service
sudo systemctl enable led-snips.service
#Giving snips access to USB ports and video feed.
sudo usermod -a -G video _snips-skills
sudo usermod -a -G users _snips-skills
# Updating udev rules
sudo cp "/var/lib/snips/skills/burger-salad-snips-skill/inference_engine_vpu_arm/deployment_tools/inference_engine/external/97-myriad-usbboot.rules" /etc/udev/rules.d/
sudo udevadm control --reload-rules
sudo udevadm trigger
sudo ldconfig
sudo ufw default deny incoming
sudo ufw allow ssh