Skip to content

SickBeetz Installation Instructions

Corey Grief edited this page Jun 11, 2015 · 6 revisions

#Welcome to the SickBeetz wiki! ##Installation Instructions ###Setup Script SickBeetz's setup script currently supports Ubuntu and Fedora/RHEL. If you are using another platform, please follow the Alternate Instructions.

  1. Clone this repository into the directory of your choice

  2. Run the setup script:

  • for Ubuntu: sudo bash setupUbuntu.sh
  • for Fedora/RHEL: sudo bash setupRH.sh
  1. Restart your terminal

  2. Navigate to the SickBeetz/web directory

  3. Start the server: pm2 start app.js

###Alternate Instructions If you are using an operating system other than Ubuntu and Fedora/RHEL, you should follow these instructions

  1. Clone this repository into the directory of your choice
  2. Update the system with your package manager of choice:
  • install gcc
  • install bzip2
  • install libSM
  1. Install NodeJS

  2. Install node dependencies from inside of the web folder:

  • cd web
  • npm install
  • npm install pm2 -g
  • npm install bower -g
  • bower install
  1. Install Miniconda

  2. Install python dependencies:

  • conda install numpy
  • conda install scipy
  • conda install matplotlib
  • conda install scikit-learn
  • pip install librosa
  1. Forward port 80 to port 5000:
  • sudo iptables –A INPUT –i eth0 –p tcp -–dport 80 –j ACCEPT
  • sudo iptables –A INPUT –i eth0 –p tcp -–dport 5000 –j ACCEPT
  • sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 5000
  1. Start the app from the web folder: pm2 start app.js

##Testing Installation

  1. Visit your VM Public IP address (ensure that port 80 is open). You should see the following screen:
  2. Input an audio file to the system
  3. Click submit and wait for the response (on first load, the app will take a while to update the classifier, subsequent requests will be much faster) ###Stopping the server To stop the server: pm2 stop 0 or pm2 kill. The first will stop the server but leave pm2 running for other servers you may have. The second will stop pm2 altogether.
Clone this wiki locally