Ga naar inhoud


[DM500HD] Nzbget autom. mee opstarten


M€®LïÑ

Aanbevolen berichten


  • Reacties 43
  • Aangemaakt
  • Laatste reactie

Beste reacties in dit topic

maak een startscript in /etc/init.d, kan heel simpel zijn:

 

Code:
cat > /etc/init.d/nzbget/usr/bin/nzbget -with -some -options &(ctrl-d)

 

Maak een link vanuit /etc/rcS.d:

 

Code:
ln -s ../init.d/nzbget /etc/rcS.d/S80nzbget

 

En da's alles.

Link naar reactie
Delen op andere sites

Ben met een eerste aanzet begonnen om SABnzbd-0.5.6 draaiend te gaan maken op de DM8000HD met openPLi2.0. Deze nzb tool heeft helaas ook andere dependencies nodig zoals cheetah, welke ik niet zo snel kon terugvinden in de repositories:

 

opkg list |grep python-c

python-codecs - 2.6.5-ml11.2 - Python Codecs, Encodings & i18n Support

python-compile - 2.6.5-ml11.2 - Python Bytecode Compilation Support

python-compiler - 2.6.5-ml11.2 - Python Compiler Support

python-compression - 2.6.5-ml11.2 - Python High Level Compression Support

python-core - 2.6.5-ml11.2 - Python Interpreter and core modules (needed!)

python-crypt - 2.6.5-ml11.2 - Python Basic Cryptographic and Hashing Support

python-ctypes - 2.6.5-ml11.2 - Python C Types Support

python-curses - 2.6.5-ml11.2 - Python Curses Support

 

 

Dus naast cheetah moet yenc, unrar, par2cmdline er ook nog worden ingeschoven. SABnzbd geeft bij het starten nu:

 

python SABnzbd.py

Traceback (most recent call last):

File "SABnzbd.py", line 28, in <module>

import glob

ImportError: No module named glob

 

Mochten hobbyisten al verder zijn, dan is dat natuurlijk handig zodat het wiel niet opnieuw wordt uitgevonden!

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

"glob" zit in python-shell, die even installeren (en toevoegen aan dependencies) dus.

 

Python-cheetah is een recept voor, die heb ik even voor je gebakken dan kun je verder.

Link naar reactie
Delen op andere sites

Toch even tussendoor geprobeerd na een drietal packages toe te voegen:

 

root@dm800:/tmp# opkg install python-cheetah_2.0.1-r2_mipsel.ipk

Installing python-cheetah (2.0.1-r2) to root...

Installing python-pprint (2.6.5-ml11.2) to root...

Downloading http://downloads.pli-images.org/feeds/op...1.2_mipsel.ipk.

Configuring python-pprint.

Configuring python-cheetah.

 

root@dm800:/media/hdd/SABnzbd-0.5.6# opkg install python-shell

Installing python-shell (2.6.5-ml11.2) to root...

Downloading http://downloads.pli-images.org/feeds/openpli-2.0/dm800/mipsel/python-shell_2.6.5-ml11.2_mipsel.ipk.

Configuring python-shell.

 

 

So far, so good nu dus "even" weer platform opzoeken.

 

root@dm800:/media/hdd/SABnzbd-0.5.6# python SABnzbd.py

Traceback (most recent call last):

File "SABnzbd.py", line 30, in <module>

import platform

ImportError: No module named platform

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

yip dat was 'm, dank. Dan is nu het moment aangebroken unzip, rar en par2cmdline erin te zetten zoals hier is terug te vinden.

 

root@dm800:/media/hdd/SABnzbd-0.5.6# ./SABnzbd.py

Traceback (most recent call last):

File "./SABnzbd.py", line 66, in <module>

import sabnzbd

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/__init__.py", line 27, in <module>

import zipfile

ImportError: No module named zipfile

 

 

Packages gebruikt: python_shell, python_sqlite3, python_misc

 

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

zipfile support is package python-compression, daarna ook python-subprocess toegevoegd en dan is de stand:

 

Traceback (most recent call last):

File "./SABnzbd.py", line 66, in <module>

import sabnzbd

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/__init__.py", line 66, in <module>

import sabnzbd.nzbqueue as nzbqueue

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/nzbqueue.py", line 36, in <module>

import sabnzbd.downloader

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/downloader.py", line 39, in <module>

import sabnzbd.scheduler

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/scheduler.py", line 29, in <module>

import sabnzbd.rss as rss

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/rss.py", line 35, in <module>

import sabnzbd.utils.feedparser as feedparser

File "/media/hdd/SABnzbd-0.5.6/sabnzbd/utils/feedparser.py", line 69, in <module>

import sgmllib, re, sys, copy, urlparse, time, rfc822, types, cgi, urllib, urllib2

ImportError: No module named sgmllib

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

het antwoord daarop is dan weer python-html en python-email:

 

Het is nu even concentreten op deze drie:

2011-01-08 13:00:42,684::INFO::[sABnzbd:395] _yenc module... NOT found!

2011-01-08 13:00:42,701::ERROR::[sABnzbd:400] par2 binary... NOT found!

2011-01-08 13:00:42,720::WARNING::[sABnzbd:408] unrar binary... NOT found

 

Dat is bekend en aici te vinden dus SABnzbd is op openpli op te vuren, dat is duielijk nu

 

root@dm800:/media/hdd/SABnzbd-0.5.6# ./SABnzbd.py

/usr/lib/python2.6/site-packages/Cheetah/CacheRegion.py:30: DeprecationWarning: the md5 module is deprecated; use hashlib instead

import md5

2011-01-08 13:00:39,368::INFO::[sABnzbd:973] --------------------------------

2011-01-08 13:00:39,386::INFO::[sABnzbd:974] SABnzbd.py-0.5.6 (rev=2503)

2011-01-08 13:00:39,402::INFO::[sABnzbd:984] Platform = posix

2011-01-08 13:00:39,419::INFO::[sABnzbd:985] Python-version = 2.6.5 (r265:79063, Dec 7 2010, 00:25:19)

[GCC 4.4.4]

2011-01-08 13:00:40,953::INFO::[misc:308] cache_dir directory: /home/root/.sabnzbd/cache does not exist, try to create it

2011-01-08 13:00:41,002::INFO::[__init__:674] /home/root/.sabnzbd/cache/bookmarks.sab missing

2011-01-08 13:00:41,026::INFO::[__init__:674] /home/root/.sabnzbd/cache/rss_data.sab missing

2011-01-08 13:00:41,059::INFO::[__init__:674] /home/root/.sabnzbd/cache/bytes9.sab missing

2011-01-08 13:00:41,093::INFO::[__init__:674] /home/root/.sabnzbd/cache/queue9.sab missing

2011-01-08 13:00:41,118::INFO::[postproc:139] Loading postproc queue

2011-01-08 13:00:41,139::INFO::[__init__:674] /home/root/.sabnzbd/cache/postproc1.sab missing

2011-01-08 13:00:41,190::INFO::[__init__:674] /home/root/.sabnzbd/cache/watched_data.sab missing

2011-01-08 13:00:41,225::INFO::[downloader:334] Resuming

2011-01-08 13:00:41,847::INFO::[__init__:251] All processes started

2011-01-08 13:00:41,868::INFO::[sABnzbd:269] Web dir is /media/hdd/SABnzbd-0.5.6/interfaces/smpl

2011-01-08 13:00:42,590::INFO::[sABnzbd:1038] Starting SABnzbd.py-0.5.6

2011-01-08 13:00:42,639::INFO::[dirscanner:375] Dirscanner starting up

2011-01-08 13:00:42,666::INFO::[urlgrabber:103] URLGrabber starting up

2011-01-08 13:00:42,684::INFO::[sABnzbd:395] _yenc module... NOT found!

2011-01-08 13:00:42,701::ERROR::[sABnzbd:400] par2 binary... NOT found!

2011-01-08 13:00:42,720::WARNING::[sABnzbd:408] unrar binary... NOT found

2011-01-08 13:00:42,745::INFO::[sABnzbd:411] unzip binary... found (/usr/bin/unzip)

2011-01-08 13:00:42,761::INFO::[sABnzbd:417] nice binary... found (/bin/nice)

2011-01-08 13:00:42,778::INFO::[sABnzbd:421] ionice binary... found (/usr/bin/ionice)

2011-01-08 13:00:42,795::INFO::[sABnzbd:426] pyOpenSSL... found (True)

2011-01-08 13:00:42,849::INFO::[sABnzbd:1136] Starting web-interface on 127.0.0.1:8085

2011-01-08 13:00:42,872::INFO::[_cplogging:55] [08/Jan/2011:13:00:42] ENGINE Bus STARTING

2011-01-08 13:00:43,018::INFO::[_cplogging:55] [08/Jan/2011:13:00:43] ENGINE Started monitor thread '_TimeoutMonitor'.

2011-01-08 13:00:43,225::INFO::[_cplogging:55] [08/Jan/2011:13:00:43] ENGINE Serving on 127.0.0.1:8085

2011-01-08 13:00:43,249::INFO::[_cplogging:55] [08/Jan/2011:13:00:43] ENGINE Bus STARTED

2011-01-08 13:00:43,268::INFO::[misc:584] Lauching browser with http://127.0.0.1:8085/sabnzbd

 

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

Je bent in ieder geval al een flink eind met sabnzbd.

Dus als ik het goed begrijp werkt alles en kun je met je webbrowser sabnzbd benaderen maar het unpacken e.d werkt nog niet.

 

Top man, hopelijk maak je voor ons ook een howto om dit te installeren want een goede nzb grabber is wat ik mis op de Dreambox, dit in samenwerking met Project Valerie is de dreambox een perfecte media player geworden.

Denk eerst eens na voordat je een scherpe opmerking maakt !!!!

Link naar reactie
Delen op andere sites

dat gaat vanzelf ooit komen, alleen ik wil eerst alles zelf op rijtje zetten en met name eerst eens zien hoe ik die twee files ga compilen voor openpli2.0, te weten:

- par2cmdline-0.4-tbb-20090203-lin32.tar.gz

- yenc-0.3.tar.gz

 

Overigens ik denk niet dat het geweldig loopt op een andere droomdoos dan de DM8000HD maar ook dat gaan we natuurlijk tzt testen als het allemaal meezit natuurlijk ...

 

hier is de unrar mipsel die werkt en even in /usr/bin zetten ( zie comment DRK )

 

Down to:

2011-01-08 13:36:46,919::INFO::[sABnzbd:395] _yenc module... NOT found!

2011-01-08 13:36:46,936::ERROR::[sABnzbd:400] par2 binary... NOT found!

2011-01-08 13:36:46,955::INFO::[sABnzbd:406] unrar binary... found (/usr/bin/unrar)

Xtrend ET10000 met Quad Inverto Ultra

Link naar reactie
Delen op andere sites

Maak een account aan of log in om te reageren

Je moet een lid zijn om een reactie te kunnen achterlaten

Account aanmaken

Registreer voor een nieuwe account in onze community. Het is erg gemakkelijk!

Registreer een nieuwe account

Inloggen

Heb je reeds een account? Log hier in.

Nu inloggen
  • Wie is er online   0 leden

    • Er zijn geen geregistreerde gebruikers deze pagina aan het bekijken
×
×
  • Nieuwe aanmaken...