-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
47 lines (39 loc) · 1.71 KB
/
install.sh
File metadata and controls
47 lines (39 loc) · 1.71 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
## install.sh
# Install :
# cd /home/pi
# git clone https://github.com/rinalim/RemoteMarquee.git
# cd RemoteMarquee
# chmod 755 install.sh
# sudo ./install.sh
#
# Reference :
# https://github.com/ipromiseyou/RetroPie-AutoSet.git
# https://github.com/zzeromin/RetroPie-OLED.git
sudo sed -i '/rom_name/d' /opt/retropie/configs/all/runcommand-onstart.sh
echo 'rom_name=$3' >> /opt/retropie/configs/all/runcommand-onstart.sh
echo 'rom_name="${rom_name##*/}"' >> /opt/retropie/configs/all/runcommand-onstart.sh
echo 'rom_name="${rom_name%.*}"' >> /opt/retropie/configs/all/runcommand-onstart.sh
echo 'echo "$1 $rom_name" > /tmp/remotemarquee.log' >> /opt/retropie/configs/all/runcommand-onstart.sh
sudo sed -i '/remotemarquee/d' /opt/retropie/configs/all/runcommand-onend.sh
echo 'echo "maintitle" > /tmp/remotemarquee.log' >> /opt/retropie/configs/all/runcommand-onend.sh
sudo sed -i '/RemoteMarquee/d' /opt/retropie/configs/all/autostart.sh
sudo sed -i '1i\\/bin/sh /home/pi/RemoteMarquee/stream.sh' /opt/retropie/configs/all/autostart.sh
sudo sed -i '1i\\/usr/bin/python /home/pi/RemoteMarquee/RemoteMarquee.py &' /opt/retropie/configs/all/autostart.sh
sudo sed -i '1i\\/usr/bin/python /home/pi/RemoteMarquee/touch-screen.py &' /opt/retropie/configs/all/autostart.sh
sudo apt-get update
sudo apt-get install -y imagemagick sysstat libjpeg8-dev
cd /home/pi/RemoteMarquee/
mkdir watching
git clone https://github.com/jacksonliam/mjpg-streamer.git
cd mjpg-streamer/mjpg-streamer-experimental
make
make install
chgrp -R -v pi /home/pi/RemoteMarquee
chown -R -v pi /home/pi/RemoteMarquee
cd /home/pi/RemoteMarquee/client
sudo chmod 755 *sh
cd driver-waveshare
sudo chmod 755 *sh
echo "Setup Completed. Reboot after 3 Seconds."
sleep 3
reboot