No Fuss Computing

Using Technology to Make Life Easier

User Tools

Site Tools


public:help:software_install:couch_potato

Couch Potato as a Windows Service

Running CouchPotato as a service enables it to run in the background and starts when the computer boots up. This guide has been created for informational purposes and by following it you should give you a working copy of CouchPotato that starts when windows completes booting up and without user intervention.

This guide was created using Windows 7. Your on your own if you want to use Windows Vista or Windows XP.

Pre-requisites:

  • Python 2.7 Download Here
  • CouchPotato Source Here
  • 'srvany.exe' - Available in the windows server 2003 Resource Kit

To install CouchPotato as a service, follow these steps:

  1. Install Python 2.7
  2. Download Couchpotato source zip and extract to C:\CouchPotato
  3. Place srvany.exe into C:\CouchPotato
  4. Run the Install-CouchPotato_Service.cmd (See Downloads)
  5. Run the registry File (See Downloads)
  6. Start the CouchPotato Service and click allow access though the firewall

CouchPotato windows firewall dialog CouchPotato windows firewall dialog

Downloads

on downloading this file your antivirus may give a false positive stating this file is a virus. This is normal practice for this type of file and there is no cause for concern.

CouchPotato-Service.reg
Windows Registry Editor Version 5.00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CouchPotato-Service]
"Type"=dword:00000010
"Start"=dword:00000002
"ErrorControl"=dword:00000001
"ImagePath"=hex(2):43,00,3a,00,5c,00,43,00,6f,00,75,00,63,00,68,00,50,00,6f,00,\
  74,00,61,00,74,00,6f,00,5c,00,73,00,72,00,76,00,61,00,6e,00,79,00,2e,00,65,\
  00,78,00,65,00,00,00
"ObjectName"="NT AUTHORITY\\LocalService"
"DelayedAutostart"=dword:00000001
"FailureActions"=hex:00,00,00,00,00,00,00,00,00,00,00,00,03,00,00,00,14,00,00,\
  00,01,00,00,00,20,bf,02,00,01,00,00,00,20,bf,02,00,00,00,00,00,00,00,00,00
 
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\CouchPotato-Service\Parameters]
"AppDirectory"="C:\\Python27"
"Application"="C:\\Python27\\python.exe"
"AppParameters"="C:\\CouchPotato\\couchpotato.py"

This Registry file has been setup for the Couchpotato service using the install path above. If you change any paths above you will need to manually edit the registry yourself.

If you can't download this file please cut and past into a file named as per the name used above, including the file extension.

on downloading this file your antivirus may give a false positive stating this file is a virus. This is normal practice for this type of file and there is no cause for concern.

Install-CouchPotato_Service.cmd
@echo on
 
SET ServicePath="C:\CouchPotato\srvany.exe"
 
sc create CouchPotato-Service binPath=%ServicePath% obj= "NT AUTHORITY\LocalService" start= delayed-auto

This Windows Command File installs the windows service to run CouchPotato. If you modified the install path used above you will need to adjust the commands used to install the service.

If you can't download this file please cut and past into a file named as per the name used above, including the file extension.

public/help/software_install/couch_potato.txt · Last modified: 2014/07/24 13:46 (external edit)

Page Tools