Just a few things before I comment on the HOW TO.
My unraid box is listed in this
forum thread.
I have 16 gigs of mem and a 320 gig cache drive. Mem is overkill but was so cheap I thought WTH. I also am running unRAID Server version 5.0-rc8a AiO, which I think you need inorder for all the additional plugins to run correctly.
I find the cache drive to be a must have for getting the newznab setting up and running, plus a great place to load other plugins. I have Sickbeard, SAB, Couch, Mysql, Plex media server and webserver on mine.
In my unraid shares I have a share named appdata. That share is configured in the share setting as use "cache only". In the folder called "appdata" I have the above folders created for those specific plugins.Having the folder "appdata" using only "cache only" setting will prevent the mover script that I have running everyday from moving anything in the folder called "appdata". Otherwise everything woud be moved to my main array off the cache drive. In order to proceed please create a new share on your unraid server called whatever you want (mine= appdata) but use cache only setting.
Since I am a total noob with linux and the commands for it, I used windows as much as I could. If you are not like me then forgive my stupidity on the subject. So before I get started there are a few programs you will need.
Notepad2 or
Notepad ++ along with the donated version of
Newznab and
TortoiseSVN. Last one is
Putty.
Packages or plugins needed for newznab to run are as follows,
Simple Features and
MySql and
Newznab plg (For the Newznab.plg right click,save target as all files, rename .xml to .plg)
The free version of newznab is not worth setting up IMO.
Now I am assuming that you are running the unRAID Server version 5.0-rc8a. I also assume you know something about Unraid and how to enable shares to be seen on your network.
1) Unzip Simple Features zip file, find
simpleFeatures.core.webGUI-1.0.5-noarch-1.plg and
simpleFeatures.web.server-1.0.5-noarch-1.plg along with the
Mysql-5.5.22-i486-1gds.plg from the MySql zip folder and open your network in windows, find your unraid box, double click to open all the shares, find the flash (your usb drive) if it is not shared you will need to share it in the unraid webGUI. Where you want to go is like such \\TOWER\flash\config\plugins. Once there drag the file
simpleFeatures.core.webGUI-1.0.5-noarch-1.plg,
simpleFeatures.web.server-1.0.5-noarch-1.plg,
Mysql-5.5.22-i486-1gds.plg and
newznab_unplugged.plg into the plugins folder. Exit out
2) go to //tower/ and stop array and then reboot.
3)In my understanding the .plgs you had just dragged into the flash/config/plugins folder should now be working. If not you will need to use putty to install them. Ask for help if the plugins are not working. For right now lets say the plugins are working. go back to //tower/ and under the settings you should now see the new plugins listed on the page. Do nothing yet. Exit out
4)open windows network and go to your unraid cache drive locate your shared folder called appdata, open that folder and now create 2 new folders named "mysql' and "server".
5) Open the server folder and now right click and use tortoisesvn to download or check out the newznab. Once done your folder structure should look like Tower\cache\appdata\server\ with folders.svn,db,docs,misc,nzbfiles,and www.
6) under the Tower/cache/appdata/server/misc/urlrewriting find the lighttpd.txt, copy that to desktop. exit
7) Open up your Unraid webGUI in browser //tower got to settings find mysql and set the data directory to /mnt/cache/appdata/mysql/ and enable to yes, then apply and it should show running. Done
8) back in settings find the webserver set the web root as
/mnt/cache/appdata/server/www/ port 81 enable and apply , done
9) back in setting again into web server and disable server.
10)go back into windows network, we are looking for this \\TOWER\flash\config\plugins\simpleFeatures . In the simple features folder is a lighttpd.cfg. On your desktop is a file called lighttpd.txt , open that in notepad2 and copy that into the lighttpd.cfg. Your new lighttpd.cfg should look like this
Code:
# User customizations
# Add your own settings here. These won't get overwritten upon reboot
#
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"
)
11) in the same folder is a
php.ini open that up in notepad2 and find the line that says
memory_limit = 256 and change that to 512 save and close.
12) While we are in the network folder lets go to \\Tower\cache\appdata\server\misc\update_scripts\nix_scripts and open
newznab_screen.sh with notepad2. find the line
export NEWZNAB_PATH= and fill in with this
"/mnt/cache/appdata/server/misc/update_scripts" save and close.
13) Go back to your browser and into the unraid webGUI, settings enable webserver. Now under the newznab plugin we are ready to configure.
14) under the Newznab configutation set Server Root: * Set in simpleFeatures web server plug-in! to
/mnt/cache/appdata/server/ install automatically yes NN Plus setting you can input your username and password in from the email they sent you. Click apply.
15) The plugin says not configure , so click that and if all goes well it should lauch the first step.
16) on step 2 for mysql fill in username
root password
root then onto step 3 and such if all goes well.
17) Now that newznab is running you need configure the groups list and other items for the webpage under the admin section. Do not grap all the groups at first only a few. Now that you have configured that close it off.
18)Now to get some info into the webpage. Open Putty Host Name or IP is where you would put your internal Unraid ip. Ex.. 192.168.x.x Port 23 and connection type Telnet. save session as tower or whatever. Then open. should be greeted with Tower login: input your password. if you haven't set one it will be
root as default.Once logged in type cd /mnt/cache/appdata/server/misc/update_scripts. then type ls -l this will list all the files in that dir. then type
php update_binaries.php you should now see all the binaries downloading . Once this is thru in the same dir (/mnt/cache/appdata/server/misc/update_scripts) type
php update_releases.php once done close putty. Go to //tower:81 and see the newly created nzbs on your webpage.
19) Well you have everything working but now need to auto mate the updating of those scripts. Open Putty once again and cd /mnt/cache/appdata/server/misc/update_scripts/nix_scripts , then type
chmod +x ./newznab_screen.sh This will make the newznab_screen.sh file excutable , I think.
If you get an error permission denied type
chmod -R 777 /mnt/cache/appdata/server/misc/update_scripts/nix_scripts/ if it is excutable it will be in green.If not you need to chmod +x ./newznab_screen again.Once it is green type
screen. this is like another window in windoz except it is on the same window, but detached.Now type
./newznab_screen.sh start If all is working ok this will start to grap the binaries and the release scripts for you every 10 mins. DO NOT CLOSE PUTTY Instead hit the
CTRL and
A key and
D key all togather. This will detach the screen you are on and bring you back to the other screen. You can now close putty since the newznab_screen.sh will keep running.
Please don't flame me to hard for my lack of commands in linux and probably pretty simple way to install this but this is what worked for me. Took me 2 days to get mine up and running with trial and ALOT of error.
Good Luck to you.
All the credit for all this information should be given to all the people over at
Unraid Forum Thse threads were of the most useful
This one,
This one,
This one and
The one that started it Thank you guys