|
|
@ -0,0 +1,26 @@ |
|
|
|
##### NOT IN EXECUTABLE STATE! ##### |
|
|
|
|
|
|
|
|
|
|
|
# To install php and apache |
|
|
|
echo "y" | sudo apt-get install php |
|
|
|
# To generate a 100 year old cert for the https site |
|
|
|
sudo openssl req -x509 -nodes -days 36500 -newkey rsa:2048 -keyout /etc/ssl/private/apache-selfsigned.key -out /etc/ssl/certs/apache-selfsigned.crt |
|
|
|
# modify the ssl configuration file to add the location of the keys |
|
|
|
|
|
|
|
#enabling ssl and restarting the services |
|
|
|
sudo apachectl configtest |
|
|
|
sudo a2enmod ssl |
|
|
|
sudo a2ensite default-ssl |
|
|
|
sudo service apache2 restart |
|
|
|
|
|
|
|
# FTP files over to /var/www/html |
|
|
|
|
|
|
|
# install mpc |
|
|
|
echo "y" | sudo apt-get install mpc |
|
|
|
# install mpd |
|
|
|
echo "y" | sudo apt-get install mpd |
|
|
|
# add the URLs to the playlist so the website knows what to play. |
|
|
|
# examples |
|
|
|
mpc add http://192.168.1.215:8000/game-music.ogg |
|
|
|
mpc add http://192.168.1.215:8000/top-100.ogg |
|
|
|
mpc add http://192.168.1.215:8000/seanland.ogg |