{"id":11770,"date":"2019-09-30T08:26:59","date_gmt":"2019-09-30T06:26:59","guid":{"rendered":"https:\/\/nzbusenet.com\/install-headphones-command-line-ubuntu\/"},"modified":"2023-07-23T12:50:28","modified_gmt":"2023-07-23T10:50:28","slug":"install-headphones-ubuntu-command-line","status":"publish","type":"post","link":"https:\/\/nzbusenet.com\/en\/install-headphones-ubuntu-command-line\/","title":{"rendered":"Install HeadPhones command line Ubuntu"},"content":{"rendered":"\n<figure class=\"wp-block-image is-style-default\"><img loading=\"lazy\" decoding=\"async\" width=\"64\" height=\"64\" src=\"https:\/\/nzbusenet.com\/wp-content\/uploads\/2013\/02\/headphones-logo.png\" alt=\"headphones logo\" class=\"wp-image-1336\" title=\"\"><\/figure>\n\n<p>In this HeadPhones tutorial. We are going to install HeadPhones on a computer with Ubuntu. Via the command line.<\/p>\n<div class='code-block code-block-8' style='margin: 8px 0; clear: both; width: 700px; height: 250px;'>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4833496329174552\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- nzbusenetinberichten2021 -->\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:700px;height:250px\"\n     data-ad-client=\"ca-pub-4833496329174552\"\n     data-ad-slot=\"6745544931\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n\n\n<p>I assume that python is already installed. Because, for example, SickBeard also needs this. If not, execute the command below to install Python.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo apt-get install git-core python<\/p>\n<\/blockquote>\n\n<p>We must first install <strong>git<\/strong>. If that hasn&#8217;t been done yet. We do this by executing the following command.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo apt-get install git-core<\/p>\n<\/blockquote>\n\n<p>We must be sure that we are in the home directory. So we type the following.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>cd ~<\/p>\n<\/blockquote>\n\n<p>Then type below to download HeadPhones. It will put Headphones in a hidden folder &#8220;.headphones&#8221; note the dot!<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>git clone https:\/\/github.com\/rembo10\/headphones.git .headphones<\/p>\n<\/blockquote>\n\n<p>Now go to the HeadPhones folder.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>cd .headphones<\/p>\n<\/blockquote>\n\n<p>To start HeadPhones, type below.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>python Headphones.py<\/p>\n<\/blockquote>\n\n<p>You can acces HeadPhones via http: \/\/ localhost: 8181&#8243; in your browser. Or via the IP address of your other computer &#8220;http:\/\/192.168.1.65:8181&#8221; To adjust your settings in HeadPhones.<\/p>\n\n<h2 class=\"wp-block-heading\"> Automatically start HeadPhones when Ubuntu starts<\/h2>\n<div class='code-block code-block-8' style='margin: 8px 0; clear: both; width: 700px; height: 250px;'>\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-4833496329174552\"\n     crossorigin=\"anonymous\"><\/script>\n<!-- nzbusenetinberichten2021 -->\n<ins class=\"adsbygoogle\"\n     style=\"display:inline-block;width:700px;height:250px\"\n     data-ad-client=\"ca-pub-4833496329174552\"\n     data-ad-slot=\"6745544931\"><\/ins>\n<script>\n     (adsbygoogle = window.adsbygoogle || []).push({});\n<\/script><\/div>\n\n\n<p>We must be sure. That we are in the HeadPhones folder.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p> cd ~\/.headphones<\/p>\n<\/blockquote>\n\n<p>Now we are going to create a deamon for HeadPhones. So HeadPhones starts automatically. When the computer starts.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo cp init.ubuntu \/etc\/init.d\/headphones<br \/>sudo chmod +x \/etc\/init.d\/headphones<br \/>sudo update-rc.d headphones defaults<\/p>\n<\/blockquote>\n\n<p>Now we still have to do the settings of the deamon.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo nano \/etc\/default\/headphones<\/p>\n<\/blockquote>\n\n<p>Delete the ## in the following options. And indicate the correct location where HeadPhones is installed. Don&#8217;t forget the dot!<\/p>\n\n<p>HP_USER= you Ubuntu username<br \/>HP_HOME=home\/your_username\/.headphones<br \/>HP_DATA=home\/your username\/.headphones<\/p>\n\n<p>Personally, I find it clear if HeadPhones. Running in the same port range as SickBeard and SABnzbd. So I adjust the port right here.<br \/>HP_PORT=8088<\/p>\n\n<p>And now check if it works.<\/p>\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>sudo \/etc\/init.d\/headphones start<\/p>\n<\/blockquote>\n\n<p>You have now finished installing the HeadPhones Ubuntu tutorial<\/p>\n\n<p><strong>Tutorial Ubuntu Headphones<\/strong><\/p>\n\n<ol class=\"wp-block-list\">\n<li><a href=\"https:\/\/nzbusenet.com\/en\/headphones-tutorial\/\">HeadPhones tutorial<\/a>.<\/li>\n\n\n\n<li><a href=\"https:\/\/nzbusenet.com\/en\/install-headphones-ubuntu-command-line\/\">Headpphones install Ubuntu<\/a>.<\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In this HeadPhones tutorial. We are going to install HeadPhones on a computer with Ubuntu. Via the command line. I assume that python is already installed. Because, for example, SickBeard also needs this. If not, <a class=\"mh-excerpt-more\" href=\"https:\/\/nzbusenet.com\/en\/install-headphones-ubuntu-command-line\/\" title=\"Install HeadPhones command line Ubuntu\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":12223,"featured_media":50849,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[708],"tags":[],"class_list":{"0":"post-11770","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-headphones-tutorial"},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/nzbusenet.com\/wp-content\/uploads\/2013\/04\/HeadPhones-installeren-Ubuntu.gif","_links":{"self":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts\/11770","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/users\/12223"}],"replies":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/comments?post=11770"}],"version-history":[{"count":0,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/posts\/11770\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/media\/50849"}],"wp:attachment":[{"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/media?parent=11770"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/categories?post=11770"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nzbusenet.com\/en\/wp-json\/wp\/v2\/tags?post=11770"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}