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 thread. 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/
Download CouchPotato
wget http://github.com/RuudBurger/CouchPotatoServer/tarball/master
Rename
mv master couch.tar.gz
Extract
tar -xzvf couch.tar.gz
Remove download
rm -f couch.tar.gz
Rename directory
mv RuudBurger* CouchPotato
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)
Let it run for a minute or so and a menu will come up
Hit q to quit and when asked if you are sure hit y
Hit Control and c to get back to the command line
Now we need to create the startup script
nano /etc/init.d/couchpotato
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
Now let’s set couchpotato to start on a MyCloud reboot
chmod 755 /etc/init.d/couchpotato
update-rc.d couchpotato defaults
Now start the server
/etc/init.d/couchpotato start
Give the server a minute or 2 to start
Now open a web browser and login to MyCloud IP:5050
PS: If any more experienced linux users have suggestions, I’ll be glad to add them.