-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall.sh
executable file
·45 lines (34 loc) · 1.13 KB
/
install.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
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
set -e
run() {
sudo apt-get update
sudo apt-get -y install omxplayer
sudo apt-get -y install python3-pip
#sudo apt install libsdl1.2-dev
#pip3 install pygame
sudo apt-get -y install python3-pygame
#see http://python-omxplayer-wrapper.readthedocs.io/en/latest/
sudo apt-get -y install -y libdbus-1{,-dev}
pip3 install omxplayer-wrapper
#clone and install this repository
cd ~
sudo apt-get -y install git
git clone https://github.com/victorcerutti/raspikid
#copy exemple and initiate movies.txt
mkdir raspikid/movies/
cp raspikid/exemple/BigBuckBunny.mp4 raspikid/movies/
cp raspikid/exemple/movies.txt raspikid/
#set hostname to resolve raspikid.local
echo 'raspikid' | sudo tee -a /etc/hostname > /dev/null
sudo /etc/init.d/hostname.sh
sudo apt-get install avahi-daemon
#set propre font size for TV screen
sudo sed -i '/FONTFACE=/c\FONTFACE="Terminus"' /etc/default/console-setup
sudo sed -i '/FONTSIZE=/c\FONTSIZE="16x32"' /etc/default/console-setup
#launch script after boot
sed -i "/.*raspikid-launch.*/d" ~/.bashrc
echo 'cd ~/raspikid && python3 app.py #raspikid-launch' >> ~/.bashrc
#it's all set: reboot raspberry
#sudo reboot
}
run