-
Notifications
You must be signed in to change notification settings - Fork 0
/
lightPiSetup.sh
25 lines (25 loc) · 1.09 KB
/
lightPiSetup.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
# Author: Andrew Afonso
# https://github.com/andrewbluepiano/SignPi
# On raspbian buster, networking enabled and basic settings (region, etc) configed.
# Just logging setup of RPI to be LED controller in iPod sign.
# Pins (working on my B+):
# Color: 4 (B), 14 (R), 24 (G)
# Power: 7
sudo apt update
sudo apt -y install apache2
sudo apt -y install mariadb-server
sudo apt -y install php libapache2-mod-php php-mysql
sudo apt -y install python-setuptools python3-setuptools
wget https://github.com/joan2937/pigpio/archive/master.zip
unzip master.zip
rm master.zip
cd pigpio-master
make
sudo make install
(crontab -l; echo '@reboot sudo pigpiod' ) | crontab -
sudo rm /var/www/html/index.html
sudo wget -O /var/www/html/index.php https://raw.githubusercontent.com/andrewbluepiano/SignPi/master/index.php
sudo mkdir /var/www/html/css/
sudo mkdir /var/www/html/scripts/
sudo wget -O /var/www/html/css/style.css https://raw.githubusercontent.com/andrewbluepiano/SignPi/master/style.css
sudo wget -O /var/www/html/scripts/lightcontrol.php https://raw.githubusercontent.com/andrewbluepiano/SignPi/master/lightcontrol.php