GithubHelp home page GithubHelp logo

pi-jams's Introduction

Pi-Jams

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.

1. Update/Upgrade

```sudo apt-get update```

sudo apt-get upgrade

3. Installing Dependencies for LAMP (Linux, Apache, mySQL, PHP) Server.

Here are the steps I followed based off this tutorial. ####Install Apache
sudo apt-get install apache2 -y
####Install PHP
sudo apt-get install php5 libapache2-mod-php5 -y
####Install mySQL
sudo apt-get install mysql-server php5-mysql -y
####Restarting Apache
sudo service apache2 restart
I followed that tutorial up to the Wordpress section...

 4. Testing Apache

To test if the apache server is working type your Pi's IP address into your laptop's browser. You can see this on your laptop because both machines are connected to a local network via router.

screen-shot-2016-09-20-at-8-17-22-pm

5. Interfacing with Opentape.fm

At this point you need move the Opentape.zip from your computer to your Pi. You could also download it on your pi if you have a GUI setup.

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.

6. Troubleshooting Opentape.fm

When I opened http://10.0.1.4/opentape/index.php I received a message that /settings/ and /songs/ needed read/write permissions.

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

screen-shot-2016-09-20-at-8-25-25-pm

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

Connecting to a network router. THIS IS INCASE YOU ARE ON AN ENTERPRISE/PRIVATE NETWORK!

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.

utilities2

In Networks in System Preferences you can check your computer's IP address.

ip

In AirPort Utility, go to File > Configure Other.

airport

You will be prompted with an IP address and password.

screen-shot-2016-09-20-at-7-47-27-pm

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.)

ifconfig

SSH into your Pi using the ssh pi@ the address from ifconfig

ssh

pi-jams's People

Stargazers

Steve Lambert avatar

Watchers

Steve Lambert avatar James Cloos avatar kevin egbert avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.