CouchPotato

Installation

CouchPotato

  1. Clone the CouchPotato git repository on to your slot:

     git clone https://github.com/RuudBurger/CouchPotatoServer.git
    
  2. Start CouchPotato (requires python 2.7)

     python ~/CouchPotatoServer/CouchPotato.py &
    
  3. Kill the CouchPotato process.

     pkill -f CouchPotato.py
    
  4. Edit the configuration file to set a port and download location. Port 51172 has been automatically generated for you, but you may use another 5 digit port between 10000 and 65535.

     nano ~/.couchpotato/settings.conf
    

    Change the line that reads port = 5050 to port = 51172.
    Change the line that reads launch_browser = True to launch_browser = False.

  5. Restart CouchPotato inside a screen session

     screen -dmS CouchPotato python ~/CouchPotatoServer/CouchPotato.py
    

Automatically Restart

Below are steps to take to have your CouchPotato instance automatically restart if it crashes, or if the server is rebooted.

  1. Make a file to be used for the script. touch ~/couchpotato_restart.cron

  2. Edit the file and enter the text below. nano -w ~/couchpotato_restart.cron

    #!/bin/bash
    if pgrep -fx "/usr/lib/python-exec/python2.7/python /home/user/CouchPotatoServer/CouchPotato.py" > /dev/null
    then
        echo "CouchPotato is running."
    else 
        echo "CouchPotato is not running, starting CouchPotato"
        screen -dmS CouchPotato python ~/CouchPotatoServer/CouchPotato.py
    fi
    exit
    
  3. Save the file with Ctrl+x, y and Enter to accept overwriting.

  4. Make the script executable. chmod +x ~/couchpotato_restart.cron

  5. Open your crontab. EDITOR=nano crontab -e

  6. Enter the following text at the end of the file.

    @reboot /home/user/couchpotato_restart.cron >/dev/null 2>&1
    */5 * * * * /home/user/couchpotato_restart.cron >/dev/null 2>&1
    
  7. Save the crontab with Ctrl+x, y and Enter to accept overwriting.

Usage

  • Open your browser and navigate to http://server.whatbox.ca:51172 to access the CouchPotato web interface and begin using the setup wizard.
  • Your CouchPotato password should not be the same as your Whatbox account or server password.

Settings

Downloaders

rTorrent settings

You will need to enable "Show advanced settings" to be able to change rTorrent's RPC path. You can do this from the Downloaders Settings page: http://server.whatbox.ca:51172/settings/downloaders/

Ssl: Checked
Rpc Url: xmlrpc
Username: user
Password: (your server password)
Host: server.whatbox.ca

Deluge settings

Host: localhost:{{DELUGEWEBPORT}}
Username: user *(WebUI port from your [Slot Info](/wiki/slot_info) page)*
Password: (your server password)

Transmission settings

Host: localhost:{{TRANSMISSIONPORT}}
Username: user *(WebUI port from your [Slot Info](/wiki/slot_info) page)*
Password: (your server password)