Browse Source

added basic setup file steps (in the script file), updated readme a bit

master
Sean Clarke 1 year ago
parent
commit
9bb926f783
2 changed files with 33 additions and 0 deletions
  1. +7
    -0
      README.md
  2. +26
    -0
      setup/config.sh

+ 7
- 0
README.md View File

@@ -12,3 +12,10 @@ This is a basic html/php web application used to control the icecast stations on
- jQuery (for AJAX request)
- Internet Radio Playlists
- A playing device

## How to setup a player

1. Install PHP and a web server
2. Configure the site for https
3. Install MPC and MPD
4. Add the radio stations to Playlists

+ 26
- 0
setup/config.sh View File

@@ -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

Loading…
Cancel
Save