This repository has been archived by the owner on Dec 8, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathinstall.sh
54 lines (54 loc) · 1.78 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
46
47
48
49
50
51
52
53
54
#!/bin/bash
#Firefox browser specific
echo ">>> update system"
sudo apt-get update
echo ">>> install jq"
sudo apt-get -y install jq
echo ">>> install httping"
sudo apt-get -y install httping
echo ">>> installing firefox"
sudo apt-get -y install firefox-esr
#run firefox to create a profile
export DISPLAY=:0
firefox &
echo ">>> installing browser profile"
#Grab default profile directory name and add user.js file - that disables recovery on crash
browserdir=$(ls /home/pi/.mozilla/firefox | grep .default)
sudo mv user.js /home/pi/.mozilla/firefox/$browserdir/
echo ">>> installing xdotool"
#Xdotool allows key stroke generation to put firefox into full screen with F11
sudo apt-get -y install xdotool
#Generic things:
echo "----- installing unclutter"
sudo apt-get -y install unclutter
echo ">>> installing NGINX"
sudo apt-get -y install nginx
echo ">>> moving files"
sudo mv part1.html /home/pi/
sudo mv part2.html /home/pi/
sudo mv http_server.py /home/pi
sudo mv index.css /var/www/html/
echo ">>> setting up Avahi"
sudo apt-get -y install avahi-daemon avahi-dnsconfd avahi-discover avahi-utils
sudo apt-get -y install libnss-mdns
cd /home/pi/raspberry-tv-driver/avahi_services
sudo insserv avahi-daemon
sudo mv multiple.service /etc/avahi/services/
sudo mv rfb.service /etc/avahi/services/
sudo /etc/init.d/avahi-daemon restart
cd /home/pi/raspberry-tv-driver
echo ">>> setting up startup"
sudo mv startup /etc/init.d/
cd /etc/init.d/
sudo chmod +x startup
sudo update-rc.d startup defaults
echo ">>> setting up vnc"
cd /home/pi/raspberry-tv-driver
sudo bash installx11vnc.sh
cd /home/pi
echo "----- stop Raspberry from sleeping"
cd /home/pi/raspberry-tv-driver
sudo mv autostart /home/pi/.config/lxsession/LXDE-pi/
sudo chown pi:pi /home/pi/.config/lxsession/LXDE-pi/autostart
echo "...all done. rebooting"
sudo reboot