Difference between revisions of "Headphones"

From Amahi Wiki
Jump to: navigation, search
Line 24: Line 24:
  
 
* Install git-core in case you don't have it.
 
* Install git-core in case you don't have it.
{{Code|
+
{{Code|sudo apt-get install git-core}}
sudo apt-get install git-core
 
}}
 
  
 
* Issue the following commands to correct the html directory permissions
 
* Issue the following commands to correct the html directory permissions
{{Code|
+
{{Code|sudo chown [username]:Users /var/hda/web-apps/headphones/html
sudo chown [username]:Users /var/hda/web-apps/headphones/html
+
chmod 775 /var/hda/web-apps/headphones/html}}
chmod 775 /var/hda/web-apps/headphones/html
 
}}
 
 
: Remember to replace [username] with your username
 
: Remember to replace [username] with your username
  
 
* Clone the git source from github to your web root directory (html) with
 
* Clone the git source from github to your web root directory (html) with
{{Code|
+
{{Code|git clone https://github.com/rembo10/headphones.git /var/hda/web-apps/headphones/html/}}
git clone https://github.com/rembo10/headphones.git /var/hda/web-apps/headphones/html/
 
}}
 
  
 
* Open and modify the included Ubuntu init.d script
 
* Open and modify the included Ubuntu init.d script
{{Code|
+
{{Code|nano /var/hda/web-apps/headphones/html/init.ubuntu}}
nano /var/hda/web-apps/headphones/html/init.ubuntu
 
}}
 
 
: Change APP_PATH line to read APP_PATH=/var/hda/web-apps/headphones/html
 
: Change APP_PATH line to read APP_PATH=/var/hda/web-apps/headphones/html
  
Line 49: Line 41:
  
 
* Copy the file to the appropriate location and tell ubuntu to use use the script
 
* Copy the file to the appropriate location and tell ubuntu to use use the script
{{Code|
+
{{Code|sudo cp /var/hda/web-apps/headphones/html/init.ubuntu /etc/init.d/headphones
sudo cp /var/hda/web-apps/headphones/html/init.ubuntu /etc/init.d/headphones
 
 
sudo chmod +x /etc/init.d/headphones
 
sudo chmod +x /etc/init.d/headphones
sudo update-rc.d headphones defaults
+
sudo update-rc.d headphones defaults}}
}}
 
  
 
Test it is working by issuing the following command and checking http://headphones:8181 in your browser
 
Test it is working by issuing the following command and checking http://headphones:8181 in your browser
{{Code|
+
{{Code|sudo /etc/init.d/headphones start}}
sudo /etc/init.d/headphones start
 
}}
 

Revision as of 22:32, 27 October 2012

Headphones is a SABnzbd add-on that automates your music downloading. You can import all your favorite artists from iTunes, and keep an eye out for any new albums they might be releasing.

It can be configured to work with a few search providers, including NZBMatrix, NZBs.org and Newznab servers.

Warning.png WARNING
Headphones is still under heavy development and in alpha status.


This guidance will instruct you how to get Headphones and add it to your HDA. Upon completion, you will have Headphones running, but not as a service since their is only a init.d script for Ubuntu users at this moment.

PreRequisites

SabNZBD

Install

These instructions are for an Ubuntu 12.04 setup, modification will be required for a Fedora install

  • Create a new web app named "headphones" from the dashboard
  • Install git-core in case you don't have it.
bash code
​sudo apt-get install git-core​


  • Issue the following commands to correct the html directory permissions
bash code
​sudo chown [username]:Users /var/hda/web-apps/headphones/html chmod 775 /var/hda/web-apps/headphones/html​
Remember to replace [username] with your username
  • Clone the git source from github to your web root directory (html) with
bash code
​git clone https://github.com/rembo10/headphones.git /var/hda/web-apps/headphones/html/​


  • Open and modify the included Ubuntu init.d script
bash code
​nano /var/hda/web-apps/headphones/html/init.ubuntu​
Change APP_PATH line to read APP_PATH=/var/hda/web-apps/headphones/html
Ctrl + X then Y then Return to save and exit
  • Copy the file to the appropriate location and tell ubuntu to use use the script
bash code
​sudo cp /var/hda/web-apps/headphones/html/init.ubuntu /etc/init.d/headphones sudo chmod +x /etc/init.d/headphones sudo update-rc.d headphones defaults​


Test it is working by issuing the following command and checking http://headphones:8181 in your browser

bash code
​sudo /etc/init.d/headphones start​