How can I run Headphones in any other way?

burton666
Posts: 6
Joined: Sat Apr 07, 2012 5:48 am

How can I run Headphones in any other way?

Postby burton666 » Sun Apr 15, 2012 11:35 pm

Hi I just found the Headphones "app". Ok not a real amahi app but I don't know what it is called when you have to run from commandline.
To run the headphones app I need to run a command from putty and as soon as I close down the putty the program stops. Is there some way to have the Headphones app run in the background even after I close down putty?

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How can I run Headphones in any other way?

Postby bigfoot65 » Mon Apr 16, 2012 4:53 am

Typically if you add an ampersand (&) to the end of a command line it will run in the back ground. Then when you close the Putty session it should not stop.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Turniphead
Posts: 2
Joined: Sat Oct 27, 2012 2:02 am

Re: How can I run Headphones in any other way?

Postby Turniphead » Sat Oct 27, 2012 2:13 am

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

Code: Select all

/etc/init.d/headphones start

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How can I run Headphones in any other way?

Postby bigfoot65 » Sat Oct 27, 2012 6:32 am

Can you please update the wiki with this guidance? We like to keep tutorials for apps there as it's easier to maintain and search.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Turniphead
Posts: 2
Joined: Sat Oct 27, 2012 2:02 am

Re: How can I run Headphones in any other way?

Postby Turniphead » Sat Oct 27, 2012 6:45 am

I have requested an account to perform the modifications

User avatar
bigfoot65
Project Manager
Posts: 11924
Joined: Mon May 25, 2009 4:31 pm

Re: How can I run Headphones in any other way?

Postby bigfoot65 » Sat Oct 27, 2012 6:49 am

Thanks. Your account has been approved.
ßîgƒσστ65
Applications Manager

My HDA: Intel(R) Core(TM) i5-3570K CPU @ 3.40GHz on MSI board, 16GB RAM, 1TBx1+2TBx2+4TBx2

Who is online

Users browsing this forum: No registered users and 57 guests