Orbi WiFi 7 RBE973
Reply

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

bseos
Aspirant

HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyNASO6

   
Required: Install Basic Development Packages & Python
apt-get update
apt-get -qy install apt-utils nano dialog whiptail
apt-get -qy install build-essential ca-certificates libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev python-software-properties software-properties-common git-core python2.7

NOTE:
Extra Optional Packages: sysv-rc-conf

Optional: Install Sabnzbd
echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu precise main" | tee -a /etc/apt/sources.list
echo "deb http://ftp.us.debian.org/debian wheezy main non-free" | tee -a /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F13930B14BB9F05F
apt-get update
apt-get -qy install python-cheetah python-distribute python-configobj python-feedparser python-dbus python-openssl python-support python-yenc par2 unrar rar sabnzbdplus
nano /etc/default/sabnzbdplus
    USER=root
    HOST=0.0.0.0
    PORT=8800

/etc/init.d/sabnzbdplus restart
/etc/init.d/sabnzbdplus stop
nano ~/.sabnzbd/sabnzbd.ini
    permissions = "777"

/etc/init.d/sabnzbdplus start

Open your browser and go to:
X.X.X.X:8800

NOTES:
X.X.X.X = Your NAS Network IP
nano ~/.sabnzbd/sabnzbd.ini (take note of the API_KEY if you want to integrate with Sickbeard and CouchPotato )
Sabnzbd installed in /usr/share
Delete ~/Downloads Folder if you're not going to be using Sabznbd's default download locations.
Sabnzbds default config file location: ~/.sabnzbd/sabnzbd.ini

Optional: Install Sickbeard
Install python-cheetah if you haven't already installed it from the previous Sabnzbd Install
apt-get install python-cheetah

cd  /usr/share
git clone git://github.com/midgetspy/Sick-Beard.git sickbeard
cp sickbeard/init.ubuntu /etc/init.d/sickbeard
nano /etc/init.d/sickbeard
    RUN_AS=${SB_USER-root}
    APP_PATH=${SB_HOME-/usr/share/sickbeard}
    DATA_DIR=${SB_DATA-/usr/share/sickbeard}
    PID_FILE=${SB_PIDFILE-/var/run/sickbeard.pid}

chmod +x /etc/init.d/sickbeard
update-rc.d sickbeard defaults
/etc/init.d/sickbeard start
/etc/init.d/sickbeard stop
nano /usr/share/sickbeard/config.ini

/etc/init.d/sickbeard start

Open your browser and go to:
X.X.X.X:7071

NOTE:
X.X.X.X = Your NAS Network IP
If you want to integrate with Sabnzbd, add Sabnzbd's API_Key over WebGUI

Optional: Install CouchPotato
cd  /usr/share
git clone https://github.com/RuudBurger/CouchPotatoServer.git couchpotatoserver
cp couchpotatoserver/init/ubuntu /etc/init.d/couchpotato
nano /etc/init.d/couchpotato
    CP_APP_PATH=${APP_PATH-/usr/share/couchpotatoserver/}

chmod +x /etc/init.d/couchpotato
update-rc.d couchpotato defaults
/etc/init.d/couchpotato start
/etc/init.d/couchpotato stop
nano ~/.couchpotato/settings.conf
    permission_folder = 0000
    permission_file = 0000
    launch_browser = False
      [sabnzbd]
      host = localhost:8800
    /etc/init.d/couchpotato restart

    Open your browser and go to:
    X.X.X.X:5050

    NOTE:
    X.X.X.X = Your NAS Network IP
    If you want to integrate with Sabnzbd, add Sabnzbd's API_Key over WebGUI

    Additional Notes
    sysv-rc-conf
    systemctl status <NAME>
    invoke-rc.d <NAME> start
    $USER's Home Directory: cd ~
    Show hidden directorys: ls -al
    Fix missing GPG keys: apt-key adv --keyserver keyserver.ubuntu.com --recv-keys ENTER_KEY_HERE
    Uninstall a package:
      apt-get remove <package>
      dpkg --purge remove <package>
      apt-get clean
      apt-get update

    General convention for *nix is to put optional software in /opt not /usr/share


    Update 2 - 06/07/2013
    Modifications made to the guide, all steps were simplified and added Couchpotato

    Update 1 - 05/07/2013
    Modifications were made to all the IP Addresses. They were changed from the previous 192.168.x.x to 0.0.0.0 Host address.
    These changes were made to solve issues related to Sabnzbd/Sickbeards Post Processing.
    NZBs were failing to be sent to Sabnzbd and Sickbeard was reporting socket error's due to non local IP.
    This issue now been resolved by changing the HOST IP to 0.0.0.0 for both Sabnzbd and Sickbeard.
Message 1 of 10
wizzard
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

Few errors, when it comes to coouchpotato:

etc/init.d/couchpotato start

[....] Starting couchpotato (via systemctl): couchpotato.serviceWarning: Unit file of created job changed on disk, 'systemctl --system daemon-reload' recommended.
. ok


might be ok

but
/etc/default/couchpotato not found using default settings.

might be more problematic

nano ~/.couchpotato/settings.conf

catalog is none existing. catalog must be created first, no problem if an empty file with the info you posted is all that is supposed t be there.
Message 2 of 10
mtakacs
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

Thanks!
Message 3 of 10
F_L_
Tutor

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

Great! many thanks.

Maybe you want to add Headphones too?
(https://github.com/rembo10/headphones)

Then your HowTo would be complete! 😄

EDIT: just follow the SB guide and use this git and it will be a piece of cake:
git clone git://github.com/rembo10/headphones.git headphones
Message 4 of 10
F_L_
Tutor

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

wizzard: did you solve the CP problem?

I just installed Sabnzbd and Sickbeard using this guide and it all went fine.
However I have some issues regarding CP.

I followed the steps above but when starting I have:


root@Ultra:/usr/share# /etc/init.d/couchpotato start
/etc/default/couchpotato not found using default settings.
[....] Starting couchpotato (via systemctl): couchpotato.serviceWarning: Unit file of created job changed on disk, 'systemctl --system daemon-reload' recommended.
Job failed. See system journal and 'systemctl status' for details.
failed!


My /etc/init.d/couchpotato looks like this:


# Run CP as username
RUN_AS=${CP_USER-couchpotato}

# Path to app
# CP_HOME=path_to_app_CouchPotato.py
APP_PATH=${CP_HOME-/usr/share/couchpotatoserver}

# Data directory where couchpotato.db, cache and logs are stored
DATA_DIR=${CP_DATA-/usr/share/couchpotatoserver}

# Path to store PID file
PID_FILE=${CP_PIDFILE-/var/run/couchpotato.pid}

# path to python bin
DAEMON=${PYTHON_BIN-/usr/bin/python}



Any ideas?

EDIT: running it manually works:
/usr/share/couchpotatoserver/CouchPotato.py --quiet --daemon
and it seems CP is using the settings in ~/.couchpotato#

EDIT2: I ended up using another init.d script and now it´s working
Message 5 of 10
jasongrimme
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

Great guide, I've followed it a couple of times, but other tinkering had led to need to rebuild my box.

when executing...
apt-get -qy install apt-utils nano dialog whiptail

I get...

Reading package lists...
Building dependency tree...
Package apt-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package apt-utils has no installation candidate
nas-EA-8B-F6:~# apt-get -qy install apt-utils nano dialog whiptail
Reading package lists...
Building dependency tree...
Package apt-utils is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
E: Package apt-utils has no installation candidate

I'm sure I need to add a source, here is the /etc/apt/sources.lst file, should I just uncomment out the debian.org entry?
deb http://www.readynas.com/packages 4.2.24/

#deb http://archive.debian.org/debian etch main
Message 6 of 10
jiska78
Tutor

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

No longer works. Looks like packages have been removed.

Hit http://ppa.launchpad.net precise/main amd64 Packages
Hit http://apt.readynas.com 6.1.8/main amd64 Packages
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
Err http://ppa.launchpad.net wheezy/main Sources
404 Not Found
Err http://ppa.launchpad.net wheezy/main amd64 Packages
404 Not Found
W: Failed to fetch http://ppa.launchpad.net/mattn/gntp-send/ubuntu/dists/wheezy/main/source/Sources 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/mattn/gntp-send/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/mattn/growl-for-linux/ubuntu/dists/wheezy/main/source/Sources 404 Not Found

W: Failed to fetch http://ppa.launchpad.net/mattn/growl-for-linux/ubuntu/dists/wheezy/main/binary-amd64/Packages 404 Not Found

E: Some index files failed to download. They have been ignored, or old ones used instead.
Message 7 of 10
mtakacs
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

ditto

and i noticed that using this package, I dont get notified of the auto updates. eg: my nas is happily running 0.7.16, and hasnt bothered to inform me (like i was used to when running on my mac mini) that the version have marched on to 0.7.17 some months ago.
Message 8 of 10
lolkejan
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

He i am a noob concerning scripts and all. Does anyone know if there is a clear how-to guide for people with little knowledge to setup their readynas with these programs?
Message 9 of 10
FilthyAmatuer
Aspirant

Re: HowTo:Install Sabnzbd, Sickbeard & CouchPotato on ReadyN

Hi All,

First up thanks to bseos for the OP. This enabled me to get sickbeard and sabnzbd running on my readynas. I am still unfortunately having problems getting couchpotato to run. I am having the problem that F.L was having with couchpotato failing to start. F.L can use please elaborate a bit more on the steps you used to get couchpotato going. This would be much appreciated. Thanks.
Message 10 of 10
Discussion stats
  • 9 replies
  • 10772 views
  • 0 kudos
  • 8 in conversation
Announcements