# 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/ # # 2011-12-02: # - Wrong config directory set in the retrieval of the configuration file # # 2011-11-24: # - Configuration and data files directory added # # 2011-11-22: # - Added default configuration file that has the correct port number in it # # 2011-07-16: # - Chown command moved to a lower position # # 2011-07-03: # - Create daemon file for start up. Not depending on a SABnzbd package # # 2011-07-02: # - Typo fix Couchpotato.sh instead of CouchPotato.sh # # 2011-06-19: # - Changed SABnzbd package to Zebulon # # 2011-01-02: # - Added a description to create the config.ini file which is required to change the default port number # # 2010-11-19: # - Port to the webinterface added # # 2010-11-16: # - Initial release # # # SABnzbd+: http://synoblog.superzebulon.org/category/sab/ # ################################# ############################################################## ############################################################## ## ## ## This installation requires a bootstrapped Synology, ## ## more info can be found on: ## ## http://bit.ly/l2Hx5a ## ## ## ############################################################## ############################################################## # 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 python26 # Install Python 2.6 if it is not on your system ipkg install py26-cheetah # Install Cheetah - The Python-Powered Template Engine ipkg install nano # Install Nano text editor or use vi # Installation in the appstore directory cd /volume1/@appstore # Your applications dir # Link python with python2.6 ln -s /opt/bin/python2.6 /usr/bin/python # Get a clone of the source in /volume1/@appstore/couchpotato git clone git://github.com/RuudBurger/CouchPotato.git /volume1/@appstore/couchpotato # Add CouchPotato to the startup scripts wget -O /usr/local/etc/rc.d/S99couchpotato.sh http://dl.dropbox.com/u/5653370/syn_files/couchpotato/S99couchpotato.sh && chmod a+x /usr/local/etc/rc.d/S99couchpotato.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/.couchpotato # Retrieve the default config file wget -O /volume1/@appstore/.couchpotato/config.ini http://dl.dropbox.com/u/5653370/syn_files/couchpotato/config.ini && chmod 644 /volume1/@appstore/.couchpotato/config.ini # Change the user attributes chown -R couchpotato:users /volume1/@appstore/couchpotato chown -R couchpotato:users /volume1/@appstore/.couchpotato # Start the CouchPotato daemon /usr/local/etc/rc.d/S99couchpotato.sh start # Go to :5050 for the webinterface. # One can update via two methods: # 1) webinterface: version info on the webinterface and easy updating # 2) git pull: ssh needed # 1) Push the update button in the webinterface # 2) git update, run only when CP is not running cd /volume1/@appstore/couchpotato/ git pull