So you’ve got a decent machine and you’re wanting to try out this crazy Linux thing to build a home media center. I previously posted a quick cheat sheet for installing the Ubuntu Desktop 64-bit Edition 12.04, and will be using that as my base OS for this post, however most is very comparable if not identical to the other linux variations.
Then we went over how to quickly and easily install your very own SABnzbd instance, how to install Sick Beard to handle your TV show downloads, and how to install CouchPotato to handle your movie downloads. Now we’ll cover how to install Headphones to handle your music downloads.
Headphones is a SABnzbd add-on that automates your music downloading. It’s written in Python so it works on pretty much all systems, and it’s easy to setup and configure. You can import all your favorite artists from iTunes, and keep an eye out for any new albums they might be releasing.
–quoted from https://github.com/rembo10/headphones/wiki
Let’s discuss installation. The Headphones installation is a piece of cake (or pie if you prefer) and we’ll take it one step at a time.
- Make sure that you have installed Ubuntu Desktop 64-bit Edition 12.04 for an exact duplication of my media center setup. That said, older versions of Ubuntu (both 32-bit and 64-bit) and its derivatives will most likely work as well.
- Download the most current version of Headphones by typing this (minus the quotes) into a terminal prompt:
wget https://github.com/rembo10/headphones/tarball/master -O headphones.tar.gz
(wait for it to finish and to recieve a new command prompt)
- Now we will extract this archive into a folder by typing this (minus the quotes) into a terminal prompt:
tar xvf headphones.tar.gz
- Once it is extracted into its own folder, we’ll move the contents of that folder to a hidden folder in your home directory by typing this (minus the quotes) into a terminal prompt:
mv rembo10-headphones-xxxxxxx .headphones
(make sure that the ‘xxxxxxx’ portion of the above command is replaced by the specific version as seen in the folder name)
- Next, we’ll move the configuration file so that Ubuntu knows where to find it by typing this (minus the quotes) into a terminal prompt:
sudo mv .headphones/init.ubuntu /etc/init.d/headphones
(if prompted for your password, enter it)
- Now let’s edit the config file with your details by typing this (minus the quotes) into a terminal prompt:
sudo gedit /etc/init.d/headphones
this will launch a text editor displaying a configuration file
just look for a portion that reads:
replace the existing path so that it reads:
APP_PATH=/home/username/.headphones (where “username” is your Ubuntu user name)
then find the portion that reads:
RUN_AS=username (replace “username” with your Ubuntu user name)
click “Save” and close the text editor
- Let’s make sure that this file is executable by typing this (minus the quotes) into a terminal prompt:
sudo chmod +x /etc/init.d/headphones
- You have it installed, but let’s make it automatic by typing this (minus the quotes) into a terminal prompt:
sudo update-rc.d headphones defaults
- At this point make sure that the ‘Folder/Path‘ and ‘Category‘ on the ‘Categories‘ settings page in SABnzbd reads ‘music‘ as below:
- Reboot the machine
- Once the system has rebooted, open a browser and go to http://127.0.0.1:8181
- This will display the main screen of Headphones. You may want to bookmark this screen when it comes up.
- At the top of the screen, you’ll probably be given an update message. Click on ‘Click here to update‘ and wait for it to update and restart.
- Once Headphones returns to its main screen, choose the configuration ‘Gear‘ from the menu bar.
- The rest of the setup is quite specific and tedious so rather than make you read 18 pages of commentary, I’ll just list images of the configuration pages.
…and if you don’t, please write me to tell me how horrible it is and what parts you merely dislike as well as the parts that you utterly despise.