Guide: How to install Sick Beard The Piratebay on Synology..

If you've made an extra_script, made a 3rd party tool, or just added some functionality in a fork you can post about it here.

Guide: How to install Sick Beard The Piratebay on Synology..

Postby larza » Fri Oct 26, 2012 10:01 am

Had some issues when installing on my Synology, mostly because there are many installation threads "in the progress". After a lot of help from IOSens Milhouse and Mr Orange I have now managed to setup everything according to my wishes, so for future reference and for any new individuals that want to try this amazing script (modified script) on their Synology NAS (probably the same for other platforms as well) here is a comprehensive guide.

Installations need prior to Sick Beard The Piratebay
If you already have IPKG, Git, Python and Cheetah you can skip this part.
1. If you do not have terminal access you need to start with that, http://www.ingmarverheij.com/2012/04/ho ... ology-nas/. (Control panel, Terminal)

2. Install IPKG
Follow this guide
http://forum.synology.com/wiki/index.ph ... stall_ipkg

3. Install Git
Type “ipkg install git” in terminal

4. Install Python
Install by typing “ipkg install python26” and then link via typing ln -s /opt/bin/python2.6 /usr/bin/python

5. Install Cheetah
Install cheetah, “ipkg install py26-cheetah”

Time to install Sick beard The Piratebay
If you have Sick Beard installed since before from Package center, please uninstall this.
Go to the dir that you want to install in, i.e. /volume1/@appstore or any other. After this write the following:
“git clone git://github.com/mr-orange/Sick-Beard.git sickbeard”. Thats´it, almost.. :)

Now you should be able to launch manually by typing “/volume1/@appstore/sickbeard/SickBeard.py --daemon (or other directory if you have chosen to install it in another folder).
Please verify that it is installed by going to http://xx.xx.xx.xx:8081

Make Sick Beard start on boot
Big thanks to IOSens! (viewtopic.php?f=3&t=3571&start=10)
If you want to make Sick beard start automatically when starting your NAS
cd /usr/syno/etc/rc.d/ (where to startupscript should be)
vi S99SickBeard.sh (to create the file and go into editor)
Paste the following code (remember to push “I” first to enter editing mode)

Code: Select all
#!/bin/sh   
COMMAND="python /volume1/@appstore/sickbeard/SickBeard.py"

start() {
   echo "Starting SickBeard"
   $COMMAND --daemon
}

status() {
   echo -n "Status of SickBeard: "
   STATUS=$($COMMAND --status)
   if [[ $STATUS = "False" ]]; then
      echo "Not running"
   else
      echo "Running as PID $STATUS"
   fi
}

stop() {
   echo "Stopping SickBeard"
   $COMMAND --quit                                                         
}                                                                               

case "$1" in                                 
   start)                               
      start                       
      ;;                           
   stop)                               
      stop                         
      ;;                           
   restart)                             
      stop                         
      sleep 4                     
      start                       
      ;;                           
   status)                             
      status                       
      ;;           
   *)                   
      echo "Usage: $0 (start|stop|restart|status)"
      exit 1                                     
      ;;                                         
esac                                                       
exit 0


Save the file (ESC, then "wq").
Type chmod +x /usr/syno/etc/rc.d/S99SickBeard.sh (to make it executable.
Run it:
“/usr/syno/etc/rc.d/S99SickBeard.sh start”

Install Transmission
To be able to download you should use Transmission as torrent client, install this via packagecenter via http://packages.synocommunity.com, if you don’t know how to do this there is a good guide at http://www.synocommunity.com/faq.

Configure Transmission
After installation you should stop transmission via package center, so that you can modify settings. After you have stopped Transmission go in via terminal and adjust settings by opening settings.json:
vi /volume1/@appstore/transmission/var/settings.json
What you should consider changing would be:
download-dir
rcp-enabled (make sure it is set to “true”)
rpc-password
rpc-username
watch-dir
After you done you modifications save the file and start the service in package center again.

Connect Sick Beard to Transmission
Access Sickbeard through https://xx.xx.xx.xx:8081.
Under settings, search options, Torrent search, choose Transmission and fill in the details. If you´re not going to use NZB Search disable this under NZB Search.

Optional add on scripts
I wanted to make a solution where the following was done after download:

1. Unrar any potential RAR files
2. Sorts and moves files into other folder with subfolder “Movies” and “TV-Shows”.
3. Download subtitles
4. Cleans up initial download folder
5. Removes any empty directories.

But due to not being able to trigger script through Tranmission (still trying to find a solution to this) I made a workaround, as you can find more about here: http://forum.synology.com/enu/viewtopic ... 27&t=58892



If you see anything wrong or some adjustment to above, please inform me.. :) This worked for me at least but of course it might look different in the future.
larza
 
Posts: 28
Joined: Wed Oct 10, 2012 2:56 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby knowram » Sun Oct 28, 2012 12:12 pm

I just ran through this process on my DS412+ and everything works great until i try to run the following command
Code: Select all
/usr/syno/etc/rc.d/S99SickBeard.sh start
I get this error
Code: Select all
-ash: /usr/syno/etc/rc.d/S99SickBeard.sh: not found
which is odd because i can run
Code: Select all
chmod +x /usr/syno/etc/rc.d/S99SickBeard.sh
with out any problems. Anyone have any ideas? Thanks for all the help and the great walk through.
knowram
 
Posts: 7
Joined: Sun Oct 28, 2012 12:02 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby larza » Mon Oct 29, 2012 3:37 am

Good question...

2 things comes to mind..

One would be path to sh.. Its specified /bin/sh, please check in your /bin folder and verify that you can find sh there. Sorry if this is to basic (and insulting) but I´m new at this.. :)

Other thing would be the command "COMMAND="python /volume1/@appstore/sickbeard/SickBeard.py" within the script, is that correct and changed? You might have it on an other volume.. However the error should probably not state what it states if that was the issue..

Anyone more experienced that might shed some light here?
larza
 
Posts: 28
Joined: Wed Oct 10, 2012 2:56 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby knowram » Tue Oct 30, 2012 3:29 pm

larza,

Thanks for the ideas. however sh is in the bin directory and the SickBeard.ph is in the /volume1/@appstore/sickbeard/ directory. also when i run
Code: Select all
/volume1/@appstore/sickbeard/SickBeard.py --daemon
sickbeard stars up fine.
knowram
 
Posts: 7
Joined: Sun Oct 28, 2012 12:02 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby larza » Wed Oct 31, 2012 5:46 am

What if you run "python /volume1/@appstore/sickbeard/SickBeard.py".. Same error?
larza
 
Posts: 28
Joined: Wed Oct 10, 2012 2:56 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby knowram » Wed Nov 07, 2012 7:10 pm

larza wrote:What if you run "python /volume1/@appstore/sickbeard/SickBeard.py".. Same error?


That command works without a problem
knowram
 
Posts: 7
Joined: Sun Oct 28, 2012 12:02 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby larza » Fri Nov 09, 2012 3:46 am

Strange indeed.. Please verify the script so everything is correct. Where did you do the script? On a windows machine? Make sure it is in Unix format..
larza
 
Posts: 28
Joined: Wed Oct 10, 2012 2:56 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby ciordia9 » Sun Nov 11, 2012 4:55 pm

Am I missing something, I'm using DSM to install Sickbeard and it's also been updated, but I'm not seeing any options under the Torrent Search, just that it wants to search and where the black hole is.
ciordia9
 
Posts: 1
Joined: Sun Nov 11, 2012 4:54 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby larza » Tue Nov 13, 2012 12:19 pm

ciordia9 wrote:Am I missing something, I'm using DSM to install Sickbeard and it's also been updated, but I'm not seeing any options under the Torrent Search, just that it wants to search and where the black hole is.


Just to double check, have you installed Sick Beard alpha "ThePirateBay"? It´s a modified release. Or have you installed Sickbeard from Package center? If you have followed my instructions above you have, so I let´s assume that.. :)

Settings, Search settings, Torrent search
This is where you choose what software should handle your torrent download, since you are referring to blackhole you already been here. However, since everything (almost) on Piratebay now is magnetlinks you cannot (as far as I know) use blackhole method, so you need to choose a Torrent client, such as Transmission here.

Settings, Search providers, Provider priories
Here you need to make sure to checkbox "The Piratebay".

Settings, Search providers, Configure Built-In Providers
You should now see the piratebay in the list. I have chosen to only download from trusted sources, to avoid fakes.

Does the above help you? Can you find TPB? :)
larza
 
Posts: 28
Joined: Wed Oct 10, 2012 2:56 pm

Re: Guide: How to install Sick Beard The Piratebay on Synolo

Postby knowram » Sat Dec 08, 2012 7:18 am

larza wrote:Strange indeed.. Please verify the script so everything is correct. Where did you do the script? On a windows machine? Make sure it is in Unix format..


I was having issues with my sick beard install so i had to uninstall and reinstall. This time around I manually typed the start up script and it's working. So some how the copy past was messing it up.

Thanks for the help
knowram
 
Posts: 7
Joined: Sun Oct 28, 2012 12:02 pm

Next

Return to Mobile Apps, Extra Scripts, Supplementary Tools

Who is online

Users browsing this forum: No registered users and 4 guests

cron