Last active
March 3, 2021 12:15
-
-
Save tansionline/a47b69ad6c0b8f00e5ba5d2ee17f9d68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo " " | |
echo "Soundbrand installer" | |
echo "" | |
sudo apt-get update -y | |
echo "" | |
echo "Install git" | |
echo "" | |
sudo apt-get install git -y | |
echo "" | |
echo "Install apache2" | |
echo "" | |
sudo apt-get install apache2 -y | |
echo "" | |
echo "Install mod-php" | |
echo "" | |
sudo apt-get install php libapache2-mod-php -y | |
echo "" | |
echo "Install php-sqlite3" | |
echo "" | |
sudo apt-get install php-sqlite3 | |
echo "" | |
echo "Install php-ssh2" | |
echo "" | |
sudo apt-get install php-ssh2 | |
echo "" | |
echo "Install wiringPI" | |
echo "" | |
cd | |
sudo git clone https://github.com/WiringPi/WiringPi.git | |
cd wiringPi | |
sudo git pull origin | |
./build | |
echo "" | |
echo "Install Soundbrand Dashboard Web" | |
echo "" | |
cd /var/www/html | |
sudo git clone https://github.com/bytelus/soundbrand-pi-pro.git | |
sudo chmod 775 -R /var/www/html | |
echo "" | |
echo "Restart apache service" | |
echo "" | |
sudo service apache2 restart | |
sudo rm -f /var/www/html/soundbrand-pi-dashboard/installer.sh | |
sudo chmod 777 /var/www/html/soundbrand-pi-dashboard/include/config.php | |
echo "" | |
echo "Done" | |
echo "" | |
echo "" | |
echo "Soundbrand should be installed at:" | |
echo "" | |
IP="$(hostname -I | cut -d' ' -f1)" | |
echo "http://${IP}/soundbrand-pi-dashboard/" | |
echo "" | |
echo "If you cant access it, then something went wrong, you can open an issue at github: https://github.com/gumslone/GumCP/issues" | |
echo "" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment