Install HeadPhones Ubuntu command line

headphones-logo

In this tutorial we are going to install HeadPhones on Ubuntu.

If you dont have Python we need to install this first. So excute this command to install Python.

sudo apt-get install git-core python

We need also git. Install git.

sudo apt-get install git-core

Go to home directory.

cd ~

Download Headphones to the hidden folder “.headphones”.headphones”. The dot makes the folder hidden.

git clone https://github.com/rembo10/headphones.git .headphones

Go to the map Headphones.

cd .headphones

If you want to start Headphones.

python Headphones.py

You can acces Headphones in your browser with  http://localhost:8181

 Autoboot HeadPhones Ubuntu

Go to the Headphones folder.

 cd ~/.headphones

We are going to make a Headphones deamon.

sudo cp init.ubuntu /etc/init.d/headphones
sudo chmod +x /etc/init.d/headphones
sudo update-rc.d headphones defaults

Edit Headphones deamon settings.

sudo nano /etc/default/headphones

Edit the setings.

HP_USER= Ubuntu Username
HP_HOME=home/Your Username/.headphones
HP_DATA=home/Your Username/.headphones

Press Ctrl + X. And now y to save the file.

We need to test the script. So excute this command.

sudo /etc/init.d/headphones start

You are now done.

Share This
0 Uncategorized

Leave a Reply