-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup_dev.sh
29 lines (23 loc) · 961 Bytes
/
setup_dev.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
sudo apt update
# required for some utilites in the rpi rgb led matrix library
sudo apt-get install libgraphicsmagick++-dev libwebp-dev -y
# SDL for window-in-desktop visualization and control when
# real protogen hardware is not avaliable.
sudo apt-get install libsdl2-dev -y
# nginx as a reverse proxy web server
sudo apt-get install nginx -y
# compile tools
sudo apt-get install cmake -y
# disable the sound module if not disabled already
blacklist_file=/etc/modprobe.d/alsa-blacklist.conf
sudo touch $blacklist_file
if sudo grep -q "audio_has_been_blacklisted_evidence" $blacklist_file; then
echo "Audio already disabled."
else
echo "" | sudo tee -a $blacklist_file
echo "# auto-generated audio blacklist from protogen software project setup script" | sudo tee -a $blacklist_file
echo "# audio_has_been_blacklisted_evidence" | sudo tee -a $blacklist_file
echo "blacklist snd_bcm2835" | sudo tee -a $blacklist_file
fi
cd ~/rpi-rgb-led-matrix
make