Changes

From Amahi Wiki
Jump to: navigation, search
12 bytes removed ,  22:32, 27 October 2012
* Install git-core in case you don't have it.
{{Code|sudo apt-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
* Clone the 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
* 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/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
{{Code|sudo /etc/init.d/headphones start}}
12,424

edits