I know this is quite an old post but I was searching for the best way to install headphones on Amahi and thought it could do with a little update. I could use a little help with securing the page as it may need a htaccess file creating but I'm a little rusty and wondered if this would be the best way.
Anyway, here is what I did to add headphones as a web app on ubuntu, fedora should be fairly straightforward now there are start up scripts.
Create headphones web app via dashboard named "headphones" leaving path option as default
SSH to HDA and issue the following commands to correct the html directory permissions as root
Code: Select all
chown [username]:Users /var/hda/web-apps/headphones/html
chmod 775 /var/hda/web-apps/headphones/html
Clone the git source from github to your web root directory (html) with
Code: Select all
git clone https://github.com/rembo10/headphones.git /var/hda/web-apps/headphones/html/
Open the Ubuntu init.d file and edit for Amahi installation
Code: Select all
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
As root copy the file to it's appropriate place and tell ubuntu to use use the script
Code: Select all
cp /var/hda/web-apps/headphones/html/init.ubuntu /etc/init.d/headphones
chmod +x /etc/init.d/headphones
update-rc.d headphones defaults
Test it is working by issuing this command and checking
http://headphones:8181 in your browser