This guide assumes you have already installed SABnzb or Transmission following my guides
For more information, see https://github.com/RuudBurger/CouchPotatoServer
Install python2.7
ipkg install python27
Change dir
cd /opt/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
/opt/bin/python2.7 /opt/share/CouchPotato/CouchPotato.py
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-/opt/share/CouchPotato}# User to run CP asCP_RUN_AS=${RUN_AS-root}# Path to python binCP_DAEMON=${DAEMON_PATH-/opt/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 MBL 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 your mbl name or ip:5050
Setup and enjoy!
Again I don’t use CouchPotato but there were some requests so I put this guide together
Please feel free to share any setup information you may have for incorporating this with SABnzb or Transmission
More to come…