# HowTo install CouchPotato on Synology ################################# # # Couchpotato: http://couchpotatoapp.com/ # CouchPotato is an automatic NZB and torrent downloader. You can keep a "movies I want"-list and it will search for # NZBs/torrents of these movies every X hours. Once a movie is found, it will send it to SABnzbd or download the .nzb # or .torrent to a specified directory. # # http://forum.synology.com/enu/viewtopic.php?f=45&t=27170 # # Author: J. van Emden (Brickman) # Latest version: http://synology.brickman.nl # # Version: # 2012-03-07: # - start scripts moved to /usr/local/etc/rc.d/ instead of /opt/etc/init.d/ # # 2012-02-12: # - Python2.7 will be used # # 2012-01-08: # - Initial release # # # SABnzbd+: http://synoblog.superzebulon.org/category/sab/ # ################################# #################################################################################################################################### #################################################################################################################################### ## ## ## This installation requires a bootstrapped Synology, more info can be found on: ## ## http://forum.synology.com/wiki/index.php/Overview_on_modifying_the_Synology_Server,_bootstrap,_ipkg_etc#How_to_install_ipkg ## ## ## #################################################################################################################################### #################################################################################################################################### # Connect to your Synology DiskStation using SSH, and login as root (password is the same as admin!) # Install the following if needed ipkg update # Download the latest package list ipkg upgrade # Upgrade installed packages to the latest version ipkg install git # Install git if it is not on your system ipkg install textutils # Needed to use git pull to update from the source ipkg install python27 # Install Python 2.7 if it is not on your system ipkg install py27-setuptools # Install Setuptools for Python 2.7 ipkg install nano # Install Nano text editor or use vi # Use the python2.7 setup tools to install pip easy_install-2.7 pip # Install Cheetah - The Python-Powered Template Engine /opt/local/bin/pip-2.7 install Cheetah # Installation in the appstore directory cd /volume1/@appstore # Your applications dir # Get a clone of the source in /volume1/@appstore/couchpotato git clone git://github.com/RuudBurger/CouchPotatoServer.git /volume1/@appstore/couchpotato2 # Add CouchPotato to the startup scripts wget -O /usr/local/etc/rc.d/S99couchpotato2.sh http://dl.dropbox.com/u/5653370/syn_files/couchpotato2/S99couchpotato2.sh && chmod a+x /usr/local/etc/rc.d/S99couchpotato2.sh # Create a user called "couchpotato" in the DSM ( Control Panel -> User -> Create User ) # Create directory for the configuration and data files mkdir /volume1/@appstore/.couchpotato2 # Change the user attributes chown -R couchpotato:users /volume1/@appstore/couchpotato2 chown -R couchpotato:users /volume1/@appstore/.couchpotato2 # Exit CouchPotato version 1 # Command below is if you have installed with LaSI from Mar2zz or with mine HowTo # If you have used a package go to your DSM and stop the service in the Package Manager /usr/local/etc/rc.d/S99couchpotato.sh stop # Start /opt/bin/python2.6 /volume1/@appstore/couchpotato2/CouchPotato.py --console_log --config_file=/volume1/@appstore/.couchpotato2/settings.conf # Go to :5050 for the webinterface # Change the following behaviour: # - Different port number as 5050 is used by default in CouchPotato v1 (ex. 5051) # - Disable browser on launch # - Specify your data dir (ex. /volume1/@appstore/.couchpotato2) # When finished return to PuTTY and press "ctrl+c" to stop CouchPotato # Run the following command to see if its stopped ps | grep /volume1/@appstore/couchpotato2/CouchPotato.py # If there are processes shown (except "grep /volume1/@appstore/couchpotato2/CouchPotato.py") where PID is the first number shown followed by couchpotato kill # run "ps | grep /volume1/@appstore/couchpotato2/CouchPotato.py" again to ensure every is exited # Change the user attributes chown -R couchpotato:users /volume1/@appstore/.couchpotato2 # Start the CouchPotato daemon /usr/local/etc/rc.d/S99couchpotato2.sh start # Go to :5051 for the webinterface