newznab + unRAID integration?


Recommended Posts

I'm working on getting newznab up and working as well, but having some issues when I get to step three in the admin hangout.

 

3.Next you will want to get the latest headers. This should be done from the command line, using the linux or windows shell scripts found in /misc/update_scripts/cron_scripts (or batch_scripts for windows users), as it can take some time. If this is your first time dont bother with the cron/init scripts just open a command prompt...

cd newznab/misc/update_scripts

php update_binaries.php

4.After obtaining headers, the next step is to create releases. This is best done from the command line using the linux or windows shell scripts found in /misc/update_scripts/cron_scripts (or batch_scripts for windows users). If this is your first time dont bother with the cron/init scripts just open a command prompt...

cd newznab/misc/update_scripts

php update_releases.php

 

Not sure where to input this, I have tried in the terminal and states

root@ubuntu:~# cd newznab/misc/update_scripts

bash: cd: newznab/misc/update_scripts: No such file or directory

root@ubuntu:~# /misc/update_scripts/cron_scripts

bash: /misc/update_scripts/cron_scripts: No such file or directory

 

Can anyone help a noob get to playing around with this setup?

 

 

Link to comment
  • Replies 254
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

The regexes are 100% essential to everything working. As far as automatic updating a cron is the best way, the paid version I believe has a script that basically runs as a daemon monitoring the headers so everything happens on the fly vs set by cron, but I'll have to double check

Ditto on the regexes - the free version only comes with 2 regexes which won't do anything. You'll end up with a massive index that is essentially unreadable.

 

I paid for the + version, it was like $16. The download link they give you after purchase is for a Subversion repository, so you'll need a SVN client to download it, I found a mac client call Versions which had a free trial. For Win I think the main one is call Tortoise is something.

Link to comment

they recommend updating via a screen session with a special script, it will process, wait 600 seconds and start over - with a cron job you risk running the binaries update more than once at a time and really mess stuff up

 

Myk

Sorry to be dumb, whats a screen session. Is the script something I'd have to write?

Link to comment

Hello All,

 

1. Installed WebServer Plug,  mysql5 plug and then  newznab

 

2. Increased php mem to 512m

3. copied the rewrite rules text file to the root of newznab

4. restarted the webserver

 

All went okay and only warning was the apache_rewrite module

 

 

It went to the admin area and i selected a few newsgroups, activated them, then did a php.binaries_update.php

 

I could see it checking the news groups and downloading the header/ parts etc

 

 

I than ran  php.update_releases.php

 

It said applying regex 1 and 2 for groups

stage2

stage3

 

ending --- with 0 releases

 

Any idea how to proceed?

 

Thanks

Joe

 

 

Link to comment

I have the plus version, so have not tried this myself... but for those with the classic / free version, here are some regexes:

 

https://github.com/kop1/newznab/blob/master/db/latestregex.sql

 

    cd /tmp
    wget https://raw.github.com/kop1/newznab/master/db/latestregex.sql
    mysql -u USERNAME -p DATABASENAME < latestregex.sql

 

This information comes from http://www.reddit.com/r/usenet/comments/14krxf/newznab_gotta_pay_to_play/

 

Link to comment

Hello All

 

 

Progess:

 

I found my problem of no releases.

 

 

I had to go to the newznab admin page and manual add some group regx.

 

I hit test and the test releases appeared.

 

In the admin

 

I ran the 2 scripts - binaries and release updates(telneted to server)  then checked the view  release option on the admin page and there they were.

 

 

 

Now i went to the regular user page but everytime i select an option i get 404 - it can seem to find my web pages except for the main one

 

 

 

Joe

Link to comment

Hi Guys,

 

I've got my Newznab installation up and running. Here are the steps I followed:

  • Install the mysql unraid plugin
  • Install the simple features web server plugin
  • After installation, you should have a /boot/config/plugins/simpleFeatures/lighttpd.cfg file, open it in a text editor of your choice and add the following rewrite rules:

# newznab rewrite rules
url.rewrite-once = (
"^/.*\.(css|jpg|jpeg|gif|png|js|ico)" => "$0",
"^/(admin|install).*$" => "$0",
"^/([^/\.]+)/?(?:\?(.*))$" => "index.php?page=$1&$2",
"^/([^/\.]+)/?$" => "index.php?page=$1",
"^/([^/\.]+)/([^/]+)/?(?:\?(.*))$" => "index.php?page=$1&id=$2&$3",
"^/([^/\.]+)/([^/]+)/?$" => "index.php?page=$1&id=$2",
"^/([^/\.]+)/([^/]+)/([^/]+)/?$" => "index.php?page=$1&id=$2&subpage=$3"
)

  • Download newznab (http://www.newznab.com/download.html) and unzip the contents to were you want your newznab web root (i.e. /mnt/cache/apps/webroot/newznab/)
  • Go to your Unraid Settings page and click Web Server. Enable, set the web root (i.e. /mnt/cache/apps/webroot/newznab/www) and port (i.e. 81) - click Apply
  • Now visit http://tower:81 and you should be able to configure newznab!

 

Let me know if you run into any issues.

 

james

Link to comment

Not passing the preflight checklist.  Apache's mod_rewrite is not detected for some reason.

 

Edit:

 

I am passing just seeing that as a warning.  I continued on so not sure if its something I should be concerned about.

 

Right, it is because we are using lighttpd instead of Apache. Rewriting is enabled by default, so you should be okay.

Link to comment

Hello All,

 

1. Installed WebServer Plug,  mysql5 plug and then  newznab

 

2. Increased php mem to 512m

3. copied the rewrite rules text file to the root of newznab

4. restarted the webserver

 

All went okay and only warning was the apache_rewrite module

 

 

It went to the admin area and i selected a few newsgroups, activated them, then did a php.binaries_update.php

 

I could see it checking the news groups and downloading the header/ parts etc

 

 

I than ran  php.update_releases.php

 

It said applying regex 1 and 2 for groups

stage2

stage3

 

ending --- with 0 releases

 

Any idea how to proceed?

 

Thanks

Joe

 

Set the back fill date for that group to say 7 days, or better try a popular group like a.b.hdtv.

 

When pulling binaries did it it pull groups of them?

Link to comment



....  (i.e. /mnt/cache/apps/webroot/newznab/)

 

Thanks for this. Forgive me as I don't currently use a cache drive (but have one ready to install)... will that file location stay on the cache drive or would "mover" shift it to the array overnight?

 

When adding the "apps" share through the "Shares" unraid page, I set Use cache disk: as "Only". This will make the app directory a cache share only and will not get moved by the mover script.

Link to comment

I am running the donated version. I get the admin page checklist and I have this warnings.

 

Checking PHP's memory_limit:

Your PHP installation's memory_limit setting is low, please consider increasing it >= 256MB

 

Checking for Apache's mod_rewrite:

The Apache module mod_rewrite is not loaded. This module is required, please enable it if you are running Apache

 

Link to comment

I am running the donated version. I get the admin page checklist and I have this warnings.

 

Checking PHP's memory_limit:

Your PHP installation's memory_limit setting is low, please consider increasing it >= 256MB

 

Checking for Apache's mod_rewrite:

The Apache module mod_rewrite is not loaded. This module is required, please enable it if you are running Apache

 

You can increase the memory size for php by editing the php.ini file found in /boot/config/plugins/simpleFeatures/.  Open that file and search for "memory_limit".  I have mine set to 512mb.  You can ignore the apache mode_rewrite.

Link to comment

Joeman, you only have the two stock regexes, those are pretty poor and basically proof of concept, and will not find any releases. The regexes included with the donated version are more complete and will find releases.

 

The PHP memory can be increased in the php.ini, but if you are only indexing a few groups you probably won't notice. I have tested with the stock memory limit and indexed 17 groups, haven't had an issue.

 

The apache mod_rewrite warning can be ignored if you are using lighttpd which is included in simpleFeatures web server plug-in. If you choose to manually install apache then you MUST have mod_rewrite enabled. For the majority of users here I'd say its safe to ignore.

 

Also Joeman, you need to add the lighttpd rewrite rules to the lighttpd.cfg found in /boot/config/plugins/simplefeatures/.

 

The rewrite rules can be found in your newznab installation in /misc/rewriterules/lighttpd.txt

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.