Changes

From Amahi Wiki
Jump to: navigation, search
820 bytes added ,  14:16, 27 October 2012
== Install ==
 These instructions are for an Ubuntu 12.04 setup, modification will be required for a Fedora install * First install Create a new web app named "headphones" from the dashboard * Install git-core in case you don't have it.:{{Code|su sudo apt-yum get install git-core}} * Issue the following commands to correct the html directory permissions{{Code|sudo chown [username]:Users /var/hda/web-apps/headphones/htmlchmod 775 /var/hda/web-apps/headphones/html
}}
: Remember to replace [username] with your username * Now get headphones using Clone the following command.: git source from github to your web root directory (html) with{{Code|git clone https://github.com/rembo10/headphones.git/var/hda/web-apps/headphones/html/}} * Open and modify the included Ubuntu init.d script{{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{{Code|sudo cp /var/hda/web-apps/headphones/html/init.ubuntu /etc/init.d/headphonessudo chmod +x /etc/init.d/headphonessudo update-rc.d headphones defaults
}}
* Now you can start up headphones Test it is working by executing issuing the following command. (Change and checking http://headphones/directory to :8181 in your download directory eg. /home/user/headphones/Headphones.py)browser{{Code|python sudo /headphonesetc/directoryinit.d/Headphones.pyheadphones start
}}
Now you can use Headphones by going to http://hda:8181/