forked from okyeron/shieldXL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-midi.sh
executable file
·30 lines (23 loc) · 1.01 KB
/
install-midi.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
#!/usr/bin/env bash
# be sure you already have the shieldXL repo
# git clone https://github.com/okyeron/shieldXL.git
cd ~/shieldXL
git clone https://github.com/okyeron/ttymidi.git
cd ttymidi
make
sudo make install
cd ../
sudo chmod 644 /home/we/shieldXL/install/systemd/*
sudo cp /home/we/shieldXL/install/systemd/ttymidi* /etc/systemd/system
sudo systemctl enable ttymidi0.service
# sudo cp --remove-destination /home/we/shieldXL/install/boot/config.txt /boot/config.txt
sudo cp --remove-destination /home/we/shieldXL/install/99-com.rules /etc/udev/rules.d/99-com.rules
git clone https://github.com/mzero/amidiminder.git
cd amidiminder
make
sudo dpkg -i build/amidiminder.deb
sudo cp --remove-destination /home/we/shieldXL/install/amidiminder.rules /home/we/shieldXL/amidiminder.rules
sudo chown we:we /home/we/shieldXL/amidiminder.rules
sudo chmod 777 /home/we/shieldXL/amidiminder.rules
sudo cp --remove-destination /home/we/shieldXL/install/systemd/amidiminder.service /lib/systemd/system/amidiminder.service
sudo reboot