This project uses Raspberry Pi working as a local server to host an instance of Opentape.fm. To get setup the quickest way possible with our custom multiple playlist setup, setup your LAMP server using the instructions below and then use the html folder in this repo. You can add multiple playlists by adding new folders in the main html directory.
To access the local server that will be hosted on your Pi, your other devices needed to be connected to the same network. If you are on a private/home network, this won't be too much of a problem.
If you are on a public/enterprise/school network, you may need to setup an auxillary wireless router for the Pi to be connected to. This will allow you to access the Pi's server as long as you are connected to the auxillary router network. CHECK OUT THE BOTTOM OF THIS TUTORIAL FOR MORE INFORMATION ON HOW TO SET THIS UP.
```sudo apt-get update```sudo apt-get upgrade
sudo apt-get install apache2 -y
sudo apt-get install php5 libapache2-mod-php5 -y
sudo apt-get install mysql-server php5-mysql -y
sudo service apache2 restart
To move files between your pi and computer you can use a FTP program like or FileZilla or Cyberduck.
If you would rather use SSH to move the files from the command line you can do that too using the commands below. Commands used to move opentape.fm (downloaded on my computer) to the raspberry pi via sftp:
sftp [email protected]
mv opentape-0.12.zip /var/www/html/
unzip opentape-0.12.zip
/var/www/html/
is where the index.html for the Apache server is located.
I used this tutorial to troubleshoot.
chmod g+w /path/to/mydir
the path to each directory was:
/var/www/html/songs/
/var/www/html/settings/
There was also initially a 2mb max upload size by default through Apache.
Use this tutorial to troubleshoot or use the commands below.
sudo nano /etc/php5/apache2/php.ini
CTRL + W to search for
upload_max_filesize 2M 2M
...changed to 20M...
sudo /etc/init.d/apache2 restart
Go to your pi's ip address from your favorite browser on any device connected to the same network and you should have a local jukebox!!!
In this case, we were working with a Mac Airport Base station.
It has one input port (where ethernet is plugged in) and three output ports (where I plugged in ethernet to my laptop and Raspberry Pi.)
To setup the station you have to use AirPort Utility, which is in the Utilities folder in your Finder.
In Networks in System Preferences you can check your computer's IP address.
In AirPort Utility, go to File > Configure Other.
You will be prompted with an IP address and password.
At this point, you should be able to get an internet connection to your Pi and other device.
Use ifconfig
to find the IP address of the Pi. (You can use the console cable for this first time around.)
SSH into your Pi using the ssh pi@
the address from ifconfig