# \[GUIDE\] install CouchPotato V2

**URL:** <https://community.wd.com/t/guide-install-couchpotato-v2/91651>\
**Category:** My Cloud OS 3\
**Created:** [January 27, 2014, 10:09pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651 "2014-01-27T22:09:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [January 27, 2014, 10:09pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/1 "2014-01-27T22:09:49Z")

</div>

I didn’t see any tutorial here about installing CouchPotato, so for convenience sake I decided to add this here.

THIS IS NOT MY WORK, I copied everything from nfodiz’ tutorial for the My Book Live found in this&nbsp; [thread](https://community.wd.com/t/guide-couchpotato-v2-on-mbl/58670). Please give him kudos for his good work! I’m just a linux noob who tried his instructions (slightly altered) and found that they worked!!

Don’t know anything about warranty, but it’s best to assume that YOUR WARRANTY IS NOW VOID.

First of all, open an SSH connection

Change dir

```
cd /usr/share/

```

&nbsp;Download CouchPotato

```
wget http://github.com/RuudBurger/CouchPotatoServer/tarball/master

```

&nbsp;Rename

```
mv master couch.tar.gz

```

&nbsp;Extract

```
tar -xzvf couch.tar.gz

```

&nbsp;Remove download

```
rm -f couch.tar.gz

```

&nbsp;Rename directory

```
mv RuudBurger* CouchPotato

```

&nbsp;Start CouchPotato

```
/usr/bin/python2.7 /usr/share/CouchPotato/CouchPotato.py

```

In my install Putty froze in this step (don’t know why). After a while, I just exited and restarted the application to resume the steps from here on. (The couchpotato service was allready running at that point at **MyCloud IP:5050** )&nbsp;

Let it run for a minute or so and a menu will come up

&nbsp;Hit q to quit and when asked if you are sure hit y

&nbsp;Hit Control and c to get back to the command line

&nbsp;&nbsp;Now we need to create the startup script

```
nano /etc/init.d/couchpotato

```

&nbsp;Paste this

```
#! /bin/sh### BEGIN INIT INFO# Provides:          couchpotato# Required-Start:    $local_fs $network $remote_fs# Required-Stop:     $local_fs $network $remote_fs# Should-Start:      $NetworkManager# Should-Stop:       $NetworkManager# Default-Start:     2 3 4 5# Default-Stop:      0 1 6# Short-Description: starts instance of CouchPotato# Description:       starts instance of CouchPotato using start-stop-daemon### END INIT INFO# Check for existance of defaults file# and utilze if availableif [-f /etc/default/couchpotato]; then    . /etc/default/couchpotatoelse    echo "/etc/default/couchpotato not found using default settings.";fi# Script nameNAME=couchpotato# App nameDESC=CouchPotato# Path to app rootCP_APP_PATH=${APP_PATH-/usr/share/CouchPotato}# User to run CP asCP_RUN_AS=${RUN_AS-root}# Path to python binCP_DAEMON=${DAEMON_PATH-/usr/bin/python2.7}# Path to store PID fileCP_PID_FILE=${PID_FILE-/var/run/couchpotato.pid}# Other startup argsCP_DAEMON_OPTS=" CouchPotato.py --daemon --pid_file=${CP_PID_FILE}"test -x $CP_DAEMON || exit 0set -ecase "$1" in  start)        echo "Starting $DESC"        rm -rf $CP_PID_FILE || return 1        touch $CP_PID_FILE        chown $CP_RUN_AS $CP_PID_FILE        start-stop-daemon -d $CP_APP_PATH -c $CP_RUN_AS --start --background --pidfile $CP_PID_FILE --exec $CP_DAEMON -- $CP_DAEMON_OPTS        ;;  stop)        echo "Stopping $DESC"        start-stop-daemon --stop --pidfile $CP_PID_FILE --retry 15        ;;  restart|force-reload)        echo "Restarting $DESC"        start-stop-daemon --stop --pidfile $CP_PID_FILE --retry 15        start-stop-daemon -d $CP_APP_PATH -c $CP_RUN_AS --start --background --pidfile $CP_PID_FILE --exec $CP_DAEMON -- $CP_DAEMON_OPTS        ;;  *)        N=/etc/init.d/$NAME        echo "Usage: $N {start|stop|restart|force-reload}" >&2        exit 1        ;;esacexit 0

```

Hit control and o

Hit enter

Hit control and x

This will save the edited file

&nbsp;Now let’s set couchpotato to start on a MyCloud reboot

```
chmod 755 /etc/init.d/couchpotato
update-rc.d couchpotato defaults

```

&nbsp;Now start the server

```
/etc/init.d/couchpotato start

```

&nbsp;Give the server a minute or 2 to start

Now open a web browser and login to **&nbsp;MyCloud IP:5050**

**&nbsp;**

**&nbsp;**

**PS: If any more experienced linux users have suggestions, I’ll be glad to add them.**

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [January 27, 2014, 11:40pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/2 "2014-01-27T23:40:43Z")

</div>

> WD-Fan wrote:

> Although it is a very interesting idea, I currently would not dare to install any additional software in MyCloud.

> &nbsp;

> &nbsp;

> &nbsp;

> Bricking the device is always a possibility. At the moment I have installed nzbget, transmission, couchpotato, sickbeard, BT sync and webmin and they’re all running great&nbsp;(although I did have 1 problem: clogging up my root partition. But that was probably just a stupid mistake on my side)

---

<div class="post-metadata">

**Author:** ![daveb121](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@daveb121](https://community.wd.com/u/daveb121)\
**Post date:** [January 29, 2014, 6:33pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/3 "2014-01-29T18:33:29Z")

</div>

Thanks&nbsp; [joskevermeulen](https://community.wd.com/t5/user/viewprofilepage/user-id/257001), putty also crashed at the same place for me too so I guess you could say your instructions worked perfectly. &nbsp;CouchPotato is now up and running&nbsp;:smiley:

---

<div class="post-metadata">

**Author:** ![jconn](https://sea2.discourse-cdn.com/wd/user_avatar/community.wd.com/jconn/32/18603_2.png) [@jconn](https://community.wd.com/u/jconn)\
**Post date:** [January 29, 2014, 7:07pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/4 "2014-01-29T19:07:33Z")

</div>

I’m picking up my My Cloud tonight, was planning to install Transmission and Flexget. Do you guys think Couch Potato is a safer/better option for downloading movies using Transmission on the MyCloud than Flexget? Sorry if this is a bit off topic.

---

<div class="post-metadata">

**Author:** ![FireWorker](https://avatars.discourse-cdn.com/v4/letter/f/3d9bf3/32.png) [@FireWorker](https://community.wd.com/u/FireWorker)\
**Post date:** [February 5, 2014, 8:49pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/5 "2014-02-05T20:49:27Z")

</div>

Hi,

I followed the guide to the piece, but can’t access the console via wdmycloud IP:5050.

The browser tries to access something, but nothing really comes up.

```auto

WDMyCloud:/# /etc/init.d/couchpotato start  
/etc/default/couchpotato not found using default settings.  
Starting CouchPotato

```

netstat -a|grep 5050 doesn’t give any reply either.

ps -e also doesn’t seem to show any process running.

Any idea what to look at?

---

<div class="post-metadata">

**Author:** ![jconn](https://sea2.discourse-cdn.com/wd/user_avatar/community.wd.com/jconn/32/18603_2.png) [@jconn](https://community.wd.com/u/jconn)\
**Post date:** [February 7, 2014, 9:45pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/6 "2014-02-07T21:45:21Z")

</div>

[joskevermeulen](https://community.wd.com/t5/user/viewprofilepage/user-id/257001)&nbsp;How did you resolve the clogged root partition? I’m at 100% capacity on root with just transmission + flexget and not sure what the cause is or what I can do to free up some space

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [February 16, 2014, 8:13am UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/7 "2014-02-16T08:13:57Z")

</div>

> jconn wrote:

> [joskevermeulen](https://community.wd.com/t5/user/viewprofilepage/user-id/257001)&nbsp;How did you resolve the clogged root partition? I’m at 100% capacity on root with just transmission + flexget and not sure what the cause is or what I can do to free up some space

Well I followed [TonyPh12345](https://community.wd.com/t5/user/viewprofilepage/user-id/2767)’s advice in post 10 of this&nbsp; [thread](https://community.wd.com/t/no-space-left-on-device-while-installing-scripts/91484). After comparing folder sizes I came to the conclusion that were was a 1GB download folder in my root folder. I deleted it and was back at 40% capactiy.&nbsp;

In my case the problem was in my nzbget settings: I had put a " **~"&nbsp;** in front of my download path which caused the download folder to be created in my root partition

---

<div class="post-metadata">

**Author:** ![karuso01](https://avatars.discourse-cdn.com/v4/letter/k/b77776/32.png) [@karuso01](https://community.wd.com/u/karuso01)\
**Post date:** [February 16, 2014, 3:04pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/8 "2014-02-16T15:04:28Z")

</div>

&nbsp;error :the certificate of [github.com](http://github.com)’ is not trusted.

??

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [February 16, 2014, 7:53pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/9 "2014-02-16T19:53:52Z")

</div>

> karuso01 wrote:

> &nbsp;error :the certificate of [github.com](http://github.com)’ is not trusted.

> &nbsp;

> ??

> &nbsp;

That’s strange, it’s working for me…

Then use the following line instead:

```
wget --no-check-certificate http://github.com/RuudBurger/CouchPotatoServer/tarball/master

```

---

<div class="post-metadata">

**Author:** ![Wormvortex](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wormvortex](https://community.wd.com/u/Wormvortex)\
**Post date:** [February 27, 2014, 7:11pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/10 "2014-02-27T19:11:45Z")

</div>

I shall try this now.

Currently have Sabznbd, sickbeard and tranmission. Bricking the device is only too easy. I managed it 1 week after having it. Thankfully you can restore it by taking the drive out the shell and using linux. Was a scary half a day though when all it would do was flash white.

---

<div class="post-metadata">

**Author:** ![Abebe69](https://avatars.discourse-cdn.com/v4/letter/a/f19dbf/32.png) [@Abebe69](https://community.wd.com/u/Abebe69)\
**Post date:** [March 1, 2014, 1:06pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/11 "2014-03-01T13:06:38Z")

</div>

thanks for the guide!!! It works!! My putty froze as well…

---

<div class="post-metadata">

**Author:** ![Morice](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Morice](https://community.wd.com/u/Morice)\
**Post date:** [July 22, 2014, 8:01pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/12 "2014-07-22T20:01:34Z")

</div>

Hi,

Just to say when putty freezes it’s because you’re starting the couchpotato program and not running it in the background. This means that your terminal wont drop you back to the prompt as it’s waiting to display messages from couchpotato and probably the developers didnt add command line messages to display.

In order to stop couchpotato once you started it you can select CTRL+Z at the same time. This will stop whatever program is running in the foreground (in this case couchpotato) and allow you to carry on in the terminal.

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [July 22, 2014, 10:51pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/13 "2014-07-22T22:51:27Z")

</div>

> Morice wrote:

> Hi,

> &nbsp;

> Just to say when putty freezes it’s because you’re starting the couchpotato program and not running it in the background. This means that your terminal wont drop you back to the prompt as it’s waiting to display messages from couchpotato and probably the developers didnt add command line messages to display.

> In order to stop couchpotato once you started it you can select CTRL+Z at the same time. This will stop whatever program is running in the foreground (in this case couchpotato) and allow you to carry on in the terminal.

> &nbsp;

> &nbsp;

Thanks! That always kept bugging me…

Can I execute the program straight away in the background?

---

<div class="post-metadata">

**Author:** ![Morice](https://avatars.discourse-cdn.com/v4/letter/m/ecc23a/32.png) [@Morice](https://community.wd.com/u/Morice)\
**Post date:** [July 23, 2014, 6:49pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/14 "2014-07-23T18:49:51Z")

</div>

yes you can run a program in the background by appending a space and then the & sign at the end of the line when you start the program. So on the line where you start couchpotato you should do:

```
/usr/bin/python2.7 /usr/share/CouchPotato/CouchPotato.py &

```

---

<div class="post-metadata">

**Author:** ![grahamtaustin](https://avatars.discourse-cdn.com/v4/letter/g/d78d45/32.png) [@grahamtaustin](https://community.wd.com/u/grahamtaustin)\
**Post date:** [August 11, 2014, 10:28pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/15 "2014-08-11T22:28:39Z")

</div>

Is there anyway to run CouchPotato on the new firmware? Thank you!

---

<div class="post-metadata">

**Author:** ![rubikcubic](https://avatars.discourse-cdn.com/v4/letter/r/c77e96/32.png) [@rubikcubic](https://community.wd.com/u/rubikcubic)\
**Post date:** [August 12, 2014, 1:14am UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/16 "2014-08-12T01:14:52Z")

</div>

Probably as couch potato is basically all python, and python is already installed.

It does require additional libraries which attempt to compile/build native lib versions of themselves and they fail. But thats ok as as they use the .py version which albeit slower, work just fine.

---

<div class="post-metadata">

**Author:** ![Wormvortex](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wormvortex](https://community.wd.com/u/Wormvortex)\
**Post date:** [October 14, 2014, 8:27am UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/17 "2014-10-14T08:27:37Z")

</div>

Is there a way to completely remove couch potato?

It worked fine but then auto updated itself and now I cannot get it to run. I’ve tried removing the .couchpotato directory and any other related files and then reinstalling but it still will not load anymore.

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [October 14, 2014, 1:56pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/18 "2014-10-14T13:56:06Z")

</div>

To remove the initial files use:

```
update-rc.d -f couchpotato remove

rm -rf /usr/share/CouchPotato

rm -f /etc/init.d/couchpotato

```

I’m not using couchpotato anymore, so I can’t search for extra folders that might have been created afterwards. But to search for every file and folder for couchpotato use

```
find / -iname \*couchpotato\*

```

&nbsp;Then delete everything you find, if any.

---

<div class="post-metadata">

**Author:** ![Wormvortex](https://avatars.discourse-cdn.com/v4/letter/w/90ced4/32.png) [@Wormvortex](https://community.wd.com/u/Wormvortex)\
**Post date:** [October 17, 2014, 5:56pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/19 "2014-10-17T17:56:48Z")

</div>

cheers.

Dunno if you still know but I cannot open anything couchpotato snatches. I have permissions set at 0777 for both couchpotato and sabnzb. sab is downloading it sucessfully and the couchpotato is moving it to the set folder but I am unable to open the files unless I manaully ssh in as root and give the file 0777 permissons

---

<div class="post-metadata">

**Author:** ![joskevermeulen](https://avatars.discourse-cdn.com/v4/letter/j/d6d6ee/32.png) [@joskevermeulen](https://community.wd.com/u/joskevermeulen)\
**Post date:** [October 17, 2014, 7:36pm UTC](https://community.wd.com/t/guide-install-couchpotato-v2/91651/20 "2014-10-17T19:36:08Z")

</div>

That is most likely an issue with sabnzb. Perform a test by manually adding a nzb to sabnzb, so without using couchpotato at all.

If you still have permission errors, then you know sabnzb is to blame. Otherwise couchpotato is the culprit.

[Next page](https://community.wd.com/t/guide-install-couchpotato-v2/91651.md?page=2)
