Headline »

May 30, 2014 – 12:04 pm | Comments Off343 views

I received this morning an email from Springpad informing me that their Services will shutdown indefinite on the 25.06.2014. and I should be migrating all my stored data into Evernote …

Read the full story »
Media Center

Haxing up your very own Media Center at Home

Howto

Tutorials and Guides how from A-Z

OS X Hints

All around Mac, OS-X nibbles and more

Linux

All around Linux Systems, Mostly Installation Guides

code

All coding, scripting, programming related stuff

Home » CouchPotato, Entertainment, Featured, Headline, Howto, Media Center, transmission, tutorials, ubuntu

Setup CouchPotato on Ubuntu 12.04 Server

Submitted by on October 15, 2013 – 6:32 amNo Comment | 96,621 views

Welcome back to Part 4.5 of the series “How-to setup a fully automated Media Portal“. We just Installed and configured Transmission and now we going to setup CouchPotato. Couchpotato is an automatic NZB and torrent downloader, just fill in what you want to see and CouchPotato will add it to your want to watch-list. Every day it will search through multiple NZBs & Torrents sites, looking for the best possible match. Once a matching release is found, it will send it to your favorite download app.

couchpotato_feature_image

 

 

 

 

 

 

 

 

 

 

Step 1: Install some dependencies

We are going to install CouchPotato latest version directly from the Author’s repository on GitHub. In order to do that we need to install the git-core package. Just execute the below command:

sudo apt-get install git-core

 

Step 2: Get CouchPotato

Easy done, after we installed the GIT package we will just use the git clone command to copy the entire CouchPotatoServer package to our local Server. Lets change directory to ~/tmp for that so we have only one place for all our downloaded software. Execute the below command:

cd ~/tmp
git clone https://github.com/RuudBurger/CouchPotatoServer.git

 

Step 3: Move the Potato

We are going to move the entire repository we just grabbed from GitHub into our home folder. I am going to rename it also to (.couchpotato). There is no particular reason I am renaming it to a filename with a “dot” prefix but as we are going to install several packages it is easier to see that you have your software binaries installed in that directory. Of course as always feel free to change it to your liking but make sure you remember and change it where required.

cp -R CouchPotatoServer ../.couchpotato/

 

Step 4: Configure CouchPotato

to make it bootable we need to put a file from the downloaded package in the init folder under /etc/init.d and make it executable. Execute the following commands in order:

sudo cp ~/.couchpotato/init/ubuntu /etc/init.d/couchpotato
sudo cp ~/.couchpotato/init/ubuntu.default /etc/default/couchpotato
sudo chmod +x /etc/init.d/couchpotato

Next up lets edit the file /etc/default/couchpotato. This file is called from the main config in /etc/init.d/ and it looks up the default CP_%% Variables. So we are just going to add them as shown below. If you follow this tutorial without personal changes you can just copy and paste it else change the Username to the one you choose.

sudo nano /etc/default/couchpotato
# COPY THIS FILE TO /etc/default/couchpotato
# OPTIONS: CP_HOME, CP_USER, CP_DATA, CP_PIDFILE, PYTHON_BIN, CP_OPTS, SSD_OPTS

CP_HOME=/home/frontrow/.couchpotato
CP_USER=frontrow
CP_DATA=/home/frontrow/.config/couchpotato
CP_PIDFILE=/home/frontrow/.pid/couchpotato.pid

Now we have to create the ~/.pid directory. The file couchpotato.pid would normally resign in /var/run/ but as this would require root access and have caused a few issues while testing the software in my lab I decided to move it to the home directory with limited access (700)

mkdir ~/.pid
chmod -R 700 ~/.pid

Only missing step now is to add couchpotato to defaults so it will start automatic when you boot. just execute the below command:

sudo update-rc.d couchpotato defaults

Step 5: Lets Reboot

time for a quick reboot and check all is working as expected.

Step 6: First Login in the Web-Gui

If all worked out as expected your couchpotato daemon is running and you can login to the Web-Gui via the Hostname/IP-Address:5050 (http://ubuntu1204:5050) You will be greeted by the Welcome page as shown below:

cp_welcome_01

 

General Page

The basic settings, add an login id/pwd to the couchpotato website. Always a good idea to have a login specially if you are not the only one who can access it. Feel free to  change the default port if you want. I left it at the default of 5050 for this tutorial.

cp_general_02

 

Downloaders Page

On the first part of the downloader page we tick the box Black hole and choose the directory where our .torrent / .nzb will get stored. This is the the watch-folder where transmission will pickup new downloads. Choose the ../tor folder and click Save.

cp_downloaders_03

Next tick the box of Transmission and add the Username/Password you set earlier. Leave the directory blank and if you have not changes it leave the Host details the same, else set it to your desired details. You can see other downloaders but we will get to them later, for now we only use transmission.

cp_downloaders_04

 

Provider Page

For now nothing to do here as we are not setting up Usenet before the next Part. But in general here you would add your News Provider. We just leave it as default for now.

cp_provider_05

 

The Usenet Providers are the search engines looking for your desired files in Usenet. Below screen shows a default list of NZB providers. If you do already have feel free to add them else we will cover that later when installing SABnzdb.

cp_provider_06

 

Renamer Page

One of main reasons for couchpotato is the Renaming function. Here we configure where CP is going to move the downloaded movies too. Choose the movies folder and press SAVE.

cp_renamer_08

 

Folder Naming I always change to the variable <thename> but you can choose it as you would like your Folders to be named. Same for the File Naming. Just click the Option button on the right and choose from the menu. One tiny thing I have seen with different browsers, you can remove the settings in the box when you hover with your mouse a little over the function name. With some browsers you cannot see the tiny red cross to delete it.

cp_renamer_09

 

Automation Page

Great feature of couchpotato you can add a plugin to your browser so when you are for example on the IDMB page or any other that displays Movie information the plugin will just grab your chosen movies and add it to your wanted list.

cp_automation_10

 

 

 

 

 

 

 

 

 

 

 

 

Finish it up

That’s it we have completed the Wizard. Click the big green button to finish up. There is a possibility that you will see a Page 500 Error and I am not quite sure why that happened yet. However if you reboot your PC one more time it will work.

cp_finish_11

 

 

 

 

References:

CouchPotato

https://couchpota.to/forum/viewforum.php?f=3

Author’s GitHub
https://github.com/RuudBurger/CouchPotatoServer 

DISCLAIMER:

This post is for informational purpose only. The Author in no way supports or encourages illegal download of copyrighted material.

Tags: , , , , , , ,