forked from AndrewFromMelbourne/raspi2png
-
Notifications
You must be signed in to change notification settings - Fork 1
/
installer.sh
27 lines (23 loc) · 1.08 KB
/
installer.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
# 1. Install dependencies
sudo apt update
sudo apt install -y libpng-dev git-core triggerhappy
# 2. Clone git to home folder
cd ~
git clone https://github.com/Vegz78/retro2png.git
cd retro2png
# 3. Compile and install retro2png
make
sudo make install
# 4. Setup Triggerhappy
sed -i "s/pi/$USER/g" ./triggerhappy.service
sudo cp -f ./triggerhappy.service /lib/systemd/system/triggerhappy.service
sudo cp -f ./retro2png.conf /etc/triggerhappy/triggers.d/retro2png.conf #Raspbian installs triggerhappy as default, but optional, so when changing user here, the Shift key on boot to disable the on-demand scaling governor might not work after this
sudo systemctl disable triggerhappy.socket #This socket prevents triggerhappy from starting correctly, ref: https://github.com/wertarbyte/triggerhappy/issues/22
sudo systemctl daemon-reload
sudo systemctl enable triggerhappy.service
sudo systemctl restart triggerhappy.service
sudo systemctl status triggerhappy.service #From this you can check if the triggerhappy service now is running as your user
# 5. Clean up
cd ..
rm -fr retro2png
retro2png -H