Koozali.org: home of the SME Server

Hellanzb on SME Howto

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« on: May 13, 2007, 07:35:35 PM »
*** updated 8-8-2007 ***
HOW To – Hellanzbd on SME

Add 1 group :
Hellanzb_group (group name),  Domain Hellanzb_group(discription)
Add 1  ibays :
Hellanzb
(php enabled), with read groep write groep (hellanzb)  , access entire internet password recuired
login as root ( copy and paste the next lines ):
cd /root
mkdir hellanzb
cd hellanzb
yum install python-devel  gcc -y
wget http://www.hellanzb.com/distfiles/hellanzb-0.13.tar.gz
tar -xvzf hellanzb-0.13.tar.gz
wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2
tar -xvjf Twisted-2.5.0.tar.bz2
wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz
tar -xvzf zope.interface-3.3.0.tar.gz
wget http://downloads.sourceforge.net/zussaweb/zussaweb03.tar.gz?modtime=1163535184&big_mirror=0
tar -xvzf zussaweb03.tar.gz
cp -r /root/hellanzb/zussaweb/* /home/e-smith/files/ibays/hellanzb/html/
wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm
rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm
wget http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2
mv  -f par2 /usr/bin
chmod +x /usr/bin/par2
signal-event post-upgrade
#signal-event reboot
cd /root/hellanzb
cd zope.interface-3.3.0
python setup.py install
cd ..
cd Twisted-2.5.0
python setup.py install
cd ..
cd hellanzb-0.13
python setup.py install
cd ..
mkdir /opt/hellanzb
mkdir /home/e-smith/files/ibays/hellanzb/files/ready
rm  -f /home/e-smith/files/ibays/hellanzb/html/index.html
mkdir /home/e-smith/files/ibays/hellanzb/files/nzbdrop
rm -fr  /root/hellanzb
mv /usr/etc/hellanzb.conf.sample /usr/etc/hellanzb.conf
lets edit the configuration
vi /usr/etc/hellanzb.conf
ok, go through the file, enter your newsserver info etc. Then go to this line :
Change the location where we let hellanzb do her work (make sure the directory exists):
# Important locations
Hellanzb.PREFIX_DIR = '/opt/hellanzb/'
# Where to put queued .nzb files
Hellanzb.QUEUE_DIR = '/home/e-smith/files/ibays/hellanzb/files/nzbdrop/'
# Where the fully processed archives go
Hellanzb.DEST_DIR = '/home/e-smith/files/ibays/hellanzb/files/ready/'
Remove # from this line Hellanzb.UMASK = 0022
Hellanzb.XMLRPC_PASSWORD = ‘******’
Set ***** as your password for later.

Save the file,and exit the editor.
ok, now we are all ready to go!
start hellanzb like this:
/usr/bin/hellanzb.py
you should get something like this:
hellanzb v0.13 (config = /usr/etc/hellanzb.conf)
(somename) Opening 4 connections...
hellanzb - Now monitoring queue...
control +c to exit
Oke now you can go to network, find your server,
You can drop nzb in your network dir nzbdrop on hellaready
The ready files are in ready dir on hellaready
Hellanzb works now you can start it as a deamon with :
/usr/bin/hellanzb.py –D
Now its time to setup the webinterface:
edit the settings.php file in the ibay hellanzb/html
$host = 'localhost';
$port = 8760;
$user = 'hellanzb';
$passwd = '******';// enter your password here that i asked you to remember
$disk = '/home/e-smith/files/ibays/hellanzb/files/ready/';
$download_nzb_path = '/home/e-smith/files/ibays/hellanzb/files/nzbdrop';

Know you can login from anywhere with username hellanzb and the password set for the ibay, here you can upload the nzb en see progress bar for hellanzb
Autostart hellanzb in SME
vi /etc/init.d/hellanzb
Put this in te file :
#! /bin/sh
# /etc/init.d/hellanzb
#
# System startup script for Helllanzb
#
case "$1" in
       start)
           echo -n "Starting Hellanzb."
           /usr/bin/hellanzb.py &
           ;;
       stop)
           echo -n "Shutting down Hellanzb."
           killall hellanzb.py
           ;;
    *)
           echo "Usage: $0 {start|stop}"
         ;;
esac
Save it
chmod 744 /etc/init.d/hellanzb
cd /etc/rc7.d
Check with start number is free S92 if not change this !!!
ln -s /etc/init.d/hellanzb S92hellanzb
Now you can start hellanzb with /usr/bin/hellanzb.py –D
Know if you have to reboot hellanzb wil start op also.

rt op also.

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Hellanzb on SME Howto
« Reply #1 on: May 14, 2007, 10:34:38 AM »
I've compiled par2cmdline for the contrib smeserver-backuppc. You can find it here: http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2

Code: [Select]

wget http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2
mv ./par2 /usr/bin
chmod +x /usr/bin/par2
C'est la fin du monde !!! :lol:

Offline painkiller

  • ***
  • 66
  • +0/-0
thanks
« Reply #2 on: May 14, 2007, 12:15:30 PM »
par2 is working, updated the howto. Know i have a problem with extracting and because i changed the download en nzb location de timers are not 100 % working in zussaweb. Know i'm gone check out de rar problem.

problem occurred: FatalError: There was a problem during the rar listing, output: Usage: UNRAR  - -    c- Disable comments show x Exclude specified file x@ Exclude files in specified list file x@ Read file names to exclude from stdin p Set password p- Do not query password kb Keep broken extracted files ierr Send all messages to stderr inul Disable all messages

Offline painkiller

  • ***
  • 66
  • +0/-0
little update
« Reply #3 on: May 15, 2007, 08:34:02 PM »
Ok, evrythings works except the sometimes the files won't unrar with the above error. Par is ok. Unrarring on my xp machine works with these files ok. I'm still testing this.

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto, par2cmdline install problem
« Reply #4 on: May 17, 2007, 10:51:56 PM »
WHile testing i could erase the downloads in de ready directory from another network computer. When i set the ibay group to everyone this problem was gone. The unrar problem is still here. Stil sometimes it's unrar's and sometimes it doesn't!!!!

Offline Jean-Philippe Pialasse

  • *
  • 2,912
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Hellanzb on SME Howto
« Reply #5 on: May 23, 2007, 08:29:12 PM »
Code: [Select]

yum groupinstall "Development Tools"
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Group Process
Setting up repositories
Loading mirror speeds from cached hostfile
Error: No Groups on which to run command
================================================================
No new rpms were installed. No additional commands are required.
================================================================


what's wrong doc ?

Offline painkiller

  • ***
  • 66
  • +0/-0
Read carefully
« Reply #6 on: May 24, 2007, 08:01:32 PM »
Quote from: "unnilennium"
Code: [Select]

yum groupinstall "Development Tools"
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "fastestmirror" plugin
Loading "smeserver" plugin
Setting up Group Process
Setting up repositories
Loading mirror speeds from cached hostfile
Error: No Groups on which to run command
================================================================
No new rpms were installed. No additional commands are required.
================================================================


what's wrong doc ?



A few steps of my howto comes from another howto to install hellanzb on Fedora. The 3 commands that didn't work in SME are :
yum groupinstall "Development Tools"
yum install par2cmdline
yum install unrar
I tried a few rpm but nothing worked.


Read carefully : "didn't work" in the line above

these steps you have to pass, they won't work de rest of the steps in this howto do work!.

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Hellanzb on SME Howto
« Reply #7 on: June 03, 2007, 03:44:23 PM »
Painkiller,

I've followed your how-to
but when i try to access http://mydomain.com/hellazbd/
i get a blank screen

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #8 on: June 06, 2007, 08:29:07 PM »
Did you untar files zussaweb and copy these to the ibay?
Dit you  enabled php?

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #9 on: June 10, 2007, 12:09:06 PM »
Quote from: "gixmo"
Painkiller,

I've followed your how-to
but when i try to access http://mydomain.com/hellazbd/
i get a blank screen


Did you delete the standard index.html page in hellazbd ibay ?

Offline tec

  • ***
  • 48
  • +0/-0
Hellanzb on SME Howto
« Reply #10 on: July 19, 2007, 02:14:59 AM »
Quote
remove index.php and edit the settings.php file in the ibay hellanzb/html

This is wrong you should not remove the index.php because then it wont work

Quote
vi chmod_hellanzb
Paste :
chown -R rene:hellanzb_group /home/e-smith/files/ibays/hellanzb/files/ready
replace rene with your username
save, exit
chmod 755 chmod_hellanzb
vi cron.txt
paste :
* * * * * /root/chmod_hellanzb
Save , exit
crontab /root/cron.txt

This is not necessary, when you run hellnzb in deamon mode you can set in hellanzb.conf the UMASK-Parameter uncomment it and change the umask to your needs. Umask =0022 will let you see all files via SMB but you cannot delete them Umask=0022 will have the result on you files like chmod 777

Maybe you can user Hellanzb.EXTERNAL_HANDLER_SCRIPT = '~/bin/post_hellanzb.sh' for changing the owner and the group


Also install zussaweb in /opt and make an custom template for httpd conf
you should also do a yum install pyopenssl for ssl capability of hellanzb

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #11 on: July 19, 2007, 11:11:37 AM »
Quote from: "painkiller"
Quote from: "gixmo"
Painkiller,

I've followed your how-to
but when i try to access http://mydomain.com/hellazbd/
i get a blank screen


Did you delete the standard index.html page in hellazbd ibay ?


I updated the howto, the ibay name that you have to create has to be called hellanzb, i overlooked this, try again and it wil work.

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #12 on: July 19, 2007, 11:33:33 AM »
Quote from: "tec"
Quote
remove index.php and edit the settings.php file in the ibay hellanzb/html

This is wrong you should not remove the index.php because then it wont work

Quote
vi chmod_hellanzb
Paste :
chown -R rene:hellanzb_group /home/e-smith/files/ibays/hellanzb/files/ready
replace rene with your username
save, exit
chmod 755 chmod_hellanzb
vi cron.txt
paste :
* * * * * /root/chmod_hellanzb
Save , exit
crontab /root/cron.txt

This is not necessary, when you run hellnzb in deamon mode you can set in hellanzb.conf the UMASK-Parameter uncomment it and change the umask to your needs. Umask =0022 will let you see all files via SMB but you cannot delete them Umask=0022 will have the result on you files like chmod 777

Maybe you can user Hellanzb.EXTERNAL_HANDLER_SCRIPT = '~/bin/post_hellanzb.sh' for changing the owner and the group


Also install zussaweb in /opt and make an custom template for httpd conf
you should also do a yum install pyopenssl for ssl capability of hellanzb


thanks for this support

the index.php has to be the standerd index.html page i changed it in the howto.

i used the external script file put this in it :
#!/bin/bash
chown -R rene:hellanzb_group home/e-smith/files/ibays/hellanzb/files/ready

This is what you mean???

il try his if it works i changed this in the howto

Can you give me a hint how i make a custum template for httpd.conf?

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Hellanzb on SME Howto
« Reply #13 on: July 21, 2007, 08:06:20 PM »
i have followed your new howto.

but when i try to open http://mydomain.com/hellanzb

i get the following messages :

Quote
Fault: Code: 5 Reason 'Didn't receive 200 OK from remote server. (HTTP/1.0 401 Unauthorized)'


and when i go to http://mydomain.com:8760/hellanzb/

i get a blank screen.

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #14 on: July 24, 2007, 09:35:50 PM »
Quote from: "gixmo"
i have followed your new howto.

but when i try to open http://mydomain.com/hellanzb

i get the following messages :

Quote
Fault: Code: 5 Reason 'Didn't receive 200 OK from remote server. (HTTP/1.0 401 Unauthorized)'


and when i go to http://mydomain.com:8760/hellanzb/

i get a blank screen.


is hellanzb running?

Offline gixmo

  • ***
  • 63
  • +0/-0
    • http://www.gixmo.nl
Hellanzb on SME Howto
« Reply #15 on: July 24, 2007, 10:15:09 PM »
Yes, i'm very sure.

here the results of ps -ef |grep hellanzb

Quote
root      4247     1  0 Jul23 ?        00:02:36 /usr/bin/python /usr/bin/hellanzb.py


Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #16 on: July 26, 2007, 06:38:59 AM »
Quote from: "gixmo"
Yes, i'm very sure.

here the results of ps -ef |grep hellanzb

Quote
root      4247     1  0 Jul23 ?        00:02:36 /usr/bin/python /usr/bin/hellanzb.py



at this moment i'm on
holiday , when i'm back i will help you ,

are the pass and username hellanzb.conf and zussaweb good! and the config lines off zussaweb?
with
hellanzb.py status
you can see what the status is of hellanzb

Offline painkiller

  • ***
  • 66
  • +0/-0
Hellanzb on SME Howto
« Reply #17 on: August 08, 2007, 10:00:49 AM »
Quote from: "gixmo"
i have followed your new howto.

but when i try to open http://mydomain.com/hellanzb

i get the following messages :

Quote
Fault: Code: 5 Reason 'Didn't receive 200 OK from remote server. (HTTP/1.0 401 Unauthorized)'


and when i go to http://mydomain.com:8760/hellanzb/

i get a blank screen.


I think you haven't set the passwords in hellanzb.conf and settings.php

check the howto

Offline smeerbartje

  • *
  • 71
  • +0/-0
Re: Hellanzb on SME Howto
« Reply #18 on: August 14, 2008, 03:44:30 PM »
Is it still possible to install hellanzb on a SME server v7.3? Are there alternatives?

Offline painkiller

  • ***
  • 66
  • +0/-0
[UPDATE]: Hellanzb on SME Howto
« Reply #19 on: February 07, 2009, 01:07:31 PM »
UPDATE 6-2-2009

I stopped some time ago with SME, but i can't find any better solution then SME (SME RULES) I just installed hellanzb on SME 7.4 and worked ok. Here is an update of my installation howto.

ENJOY
Add 1 group :
hellanzb_group (group name),  Domain Hellanzb_group(discription)
Add 1  ibays :
hellanzb
(php enabled), with read groep write groep (hellanzb)  , access entire internet password recuired


login as root ( copy and paste the next lines ):



   mkdir -p /root/hellanzb;
   cd /root/hellanzb;
   yum install python-devel  gcc -y;
   wget http://www.hellanzb.com/distfiles/hellanzb-0.13.tar.gz;
   tar -xvzf hellanzb-0.13.tar.gz;
   wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2;
   tar -xvjf Twisted-2.5.0.tar.bz2;
   wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz;
   tar -xvzf zope.interface-3.3.0.tar.gz;
   wget http://alienvenom.com/files/projects/hellaphp/hella_0.3.tgz;
   tar -xvzf hella_0.3.tgz;
   cp -r /root/hellanzb/hella_0.3/* /home/e-smith/files/ibays/hellanzb/html/;
   wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm;
   rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm;
   wget http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2;   
   mv  -f par2 /usr/bin;
   chmod +x /usr/bin/par2;
   signal-event post-upgrade ;
   signal-event reboot;
   cd /root/hellanzb/zope.interface-3.3.0;
   python setup.py install;
   cd /root/hellanzb/Twisted-2.5.0;
   python setup.py install;
   cd /root/hellanzb/hellanzb-0.13;
   python setup.py install;
   mkdir -p /opt/hellanzb;
   rm -fr  /root/hellanzb;
   rm  -f /home/e-smith/files/ibays/hellanzb/html/index.html;
   mv /usr/etc/hellanzb.conf.sample /usr/etc/hellanzb.conf

make a file in /root called post_hellanzb.sh
put this in :
chown -R username:hellanzb_group /home/e-smith/files/ibays/hellanzb/files/ready/
change username in your username in SME
chmod 777 /root/post_hellanzb.sh

lets edit the configuration

   vi /usr/etc/hellanzb.conf

ok, go through the file, enter your newsserver info etc. Then go to this line :
Change the location where we let hellanzb do her work (make sure the directory exists):
   
   # Important locations
   Hellanzb.PREFIX_DIR = '/opt/hellanzb/'
   # Where to put queued .nzb files
   Hellanzb.QUEUE_DIR = '/home/e-smith/files/ibays/hellanzb/files/'
   # Where the fully processed archives go
   Hellanzb.DEST_DIR = '/home/e-smith/files/ibays/hellanzb/files/ready/'
   
   Hellanzb.XMLRPC_PASSWORD = ‘******’
   Set ***** as your password for later.
   change # Hellanzb.EXTERNAL_HANDLER_SCRIPT = '/root/post_hellanzb.sh'
   in
   Hellanzb.EXTERNAL_HANDLER_SCRIPT = '/root/post_hellanzb.sh'
Save the file,and exit the editor.
ok, now we are all ready to go!
start hellanzb like this:

   /usr/bin/hellanzb.py

you should get something like this:
hellanzb v0.13 (config = /usr/etc/hellanzb.conf)
(somename) Opening 4 connections...
hellanzb - Now monitoring queue...
   
control +c to exit

Oke now you can go to network, find your server,
You can drop nzb in your network dir files on hellaready
The ready files are in ready dir on hellaready
Hellanzb works now you can start it as a deamon with :

   /usr/bin/hellanzb.py –D

Now its time to setup the webinterface:
edit the config.hp file in the ibay /home/e-smith/files/ibays/hellanzb/html/

   <?php
   $hellanzb_xmlrpc_host = 'localhost';
   $hellanzb_xmlprc_port = 8760;
   $hellanzb_xmlrpc_user = 'hellanzb';
   $hellanzb_xmlrpc_pass = '*******';

   $hellanzb_nzb_dir = '/home/e-smith/files/ibays/hellanzb/files/';
   $hellanzb_dl_dir = '/home/e-smith/files/ibays/hellanzb/files/ready/';

   $hellaphp_debug_mode = false;
?>
Know you can login from anywhere with username hellanzb and the password set for the ibay, here you can upload the nzb en see progress bar for hellanzb
Autostart hellanzb in SME
   vi /etc/init.d/hellanzb
Put this in te file :
   #! /bin/sh
   # /etc/init.d/hellanzb
   #
   # System startup script for Helllanzb
   #
   case "$1" in
       start)
           echo -n "Starting Hellanzb."
           /usr/bin/hellanzb.py &
           ;;
       stop)
           echo -n "Shutting down Hellanzb."
           killall hellanzb.py
           ;;
    *)
           echo "Usage: $0 {start|stop}"
         ;;
   esac

Save it
   chmod 744 /etc/init.d/hellanzb
   cd /etc/rc7.d

Check with start number is free S92 if not change this !!!
   
   ln -s /etc/init.d/hellanzb S92hellanzb

Now you can start hellanzb with /usr/bin/hellanzb.py –D
Know if you have to reboot hellanzb wil start op also.

« Last Edit: February 13, 2009, 04:15:43 PM by painkiller »

Offline painkiller

  • ***
  • 66
  • +0/-0
Re: Hellanzb on SME Howto
« Reply #20 on: February 25, 2009, 11:50:10 AM »
I'm still having a problem. The file right are not ok. I can't open the files with another user of the same group, because the post_hellanzb.sh won't execute afther it has finished. On the commandline it works ok (./post_hellanzb.sh)
Als when i move the files with mc it gets usre root and group root.

Anyone has a solution.

Offline davibou

  • ****
  • 79
  • +0/-0
Re: Hellanzb on SME Howto
« Reply #21 on: March 30, 2009, 12:04:50 AM »
Try this,

I just install hellanzb with your tutorial and i review some steps for suit my own.

ENJOY
Add 1 group :
hellanzb_group (group name),  Domain Hellanzb_group(discription)
Add 1  ibays :
hellanzb
(php enabled), with read groep write groep (hellanzb)  , access entire internet password recuired


login as root ( copy and paste the next lines ):

yum install pyOpenSSL php-xmlrpc


   mkdir -p /root/hellanzb;
   cd /root/hellanzb;
   yum install python-devel  gcc -y;
   wget http://www.hellanzb.com/distfiles/hellanzb-0.13.tar.gz;
   tar -xvzf hellanzb-0.13.tar.gz;
   wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2;
   tar -xvjf Twisted-2.5.0.tar.bz2;
   wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz;
   tar -xvzf zope.interface-3.3.0.tar.gz;
   wget http://alienvenom.com/files/projects/hellaphp/hella_0.3.tgz;
   tar -xvzf hella_0.3.tgz;
   cp -r /root/hellanzb/hella_0.3/* /home/e-smith/files/ibays/hellanzb/html/;
   wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm;
   rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm;
   wget http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2;  
   mv  -f par2 /usr/bin;
   chmod +x /usr/bin/par2;
   signal-event post-upgrade ;
   signal-event reboot;
   cd /root/hellanzb/zope.interface-3.3.0;
   python setup.py install;
   cd /root/hellanzb/Twisted-2.5.0;
   python setup.py install;
   cd /root/hellanzb/hellanzb-0.13;
   python setup.py install;
   mkdir -p /opt/hellanzb;
   rm -fr  /root/hellanzb;
   rm  -f /home/e-smith/files/ibays/hellanzb/html/index.html;
   mv /usr/etc/hellanzb.conf.sample /usr/etc/hellanzb.conf



lets edit the configuration

   vi /usr/etc/hellanzb.conf

ok, go through the file, enter your newsserver info etc for ssl change the ssl value to true .
Change the location where we let hellanzb do her work (make sure the directory exists):
  
   # Important locations
   Hellanzb.PREFIX_DIR = '/opt/hellanzb/'
   # Where to put queued .nzb files
   Hellanzb.QUEUE_DIR = '/home/e-smith/files/ibays/hellanzb/files/'
   # Where the fully processed archives go
   Hellanzb.DEST_DIR = '/home/e-smith/files/ibays/hellanzb/files/ready/'

   #Hellanzb.UMASK = 0022
   Change 0022 to 0000 and remove # so the line will be like this
   Hellanzb.UMASK = 0000


   Hellanzb.XMLRPC_PASSWORD = ‘******’
   Set ***** as your password for later.
  
Save the file,and exit the editor.
ok, now we are all ready to go!
start hellanzb like this:

   /usr/bin/hellanzb.py

you should get something like this:
hellanzb v0.13 (config = /usr/etc/hellanzb.conf)
(somename) Opening 4 connections...
hellanzb - Now monitoring queue...
  
control +c to exit

Oke now you can go to network, find your server,
You can drop nzb in your network dir files on hellaready
The ready files are in ready dir on hellaready
Hellanzb works now you can start it as a deamon with :

   /usr/bin/hellanzb.py –D


hellanzb create itself the directory "/home/e-smith/files/ibays/hellanzb/files/ready/"
chmod 775 /home/e-smith/files/ibays/hellanzb/files/ready/


Now its time to setup the webinterface:
edit the config.hp file in the ibay /home/e-smith/files/ibays/hellanzb/html/

   <?php
   $hellanzb_xmlrpc_host = 'localhost';
   $hellanzb_xmlprc_port = 8760;
   $hellanzb_xmlrpc_user = 'hellanzb';
   $hellanzb_xmlrpc_pass = '*******';

   $hellanzb_nzb_dir = '/home/e-smith/files/ibays/hellanzb/files/';
   $hellanzb_dl_dir = '/home/e-smith/files/ibays/hellanzb/files/ready/';

   $hellaphp_debug_mode = false;
?>


We need to fix a bug that not showing disk space :
Edit /home/e-smith/files/ibays/hellanzb/html/functions.php and change:

function freediskspace() {
        return (round (disk_free_space(disk)/1024/1024,2));
}

 into:

function freediskspace($disk) {
        return (round (disk_free_space($disk)/1024/1024,2));
}


Know you can login from anywhere with username hellanzb and the password set for the ibay, here you can upload the nzb en see progress bar for hellanzb
Autostart hellanzb in SME
   vi /etc/init.d/hellanzb
Put this in te file :
   #! /bin/sh
   # /etc/init.d/hellanzb
   #
   # System startup script for Helllanzb
   #
   case "$1" in
       start)
           echo -n "Starting Hellanzb."
           /usr/bin/hellanzb.py &
           ;;
       stop)
           echo -n "Shutting down Hellanzb."
           killall hellanzb.py
           ;;
    *)
           echo "Usage: $0 {start|stop}"
         ;;
   esac

Save it
   chmod 744 /etc/init.d/hellanzb
   cd /etc/rc7.d

Check with start number is free S92 if not change this !!!
  
   ln -s /etc/init.d/hellanzb S92hellanzb

Now you can start hellanzb with /usr/bin/hellanzb.py –D
Know if you have to reboot hellanzb wil start op also.

Try this and tell me if you have any problems

Regards David
« Last Edit: March 30, 2009, 10:26:48 PM by davibou »

Offline davibou

  • ****
  • 79
  • +0/-0
Re: Hellanzb on SME Howto
« Reply #22 on: April 12, 2009, 03:20:46 AM »
Sorry i'm confused with the two tutorials so here we go for the right version



Add 1 group :
hellanzb_group (group name),  Domain Hellanzb_group(discription)
Add 1  ibays :
hellanzb
(php enabled), with read group write group (hellanzb)  , access entire internet password required


login as root ( copy and paste the next lines ):

yum install pyOpenSSL php-xmlrpc


   mkdir -p /root/hellanzb;
   cd /root/hellanzb;
   yum install python-devel  gcc -y;
   wget http://www.hellanzb.com/distfiles/hellanzb-0.13.tar.gz;
   tar -xvzf hellanzb-0.13.tar.gz;
   wget http://tmrc.mit.edu/mirror/twisted/Twisted/2.5/Twisted-2.5.0.tar.bz2;
   tar -xvjf Twisted-2.5.0.tar.bz2;
   wget http://www.zope.org/Products/ZopeInterface/3.3.0/zope.interface-3.3.0.tar.gz;
   tar -xvzf zope.interface-3.3.0.tar.gz;
   wget http://downloads.sourceforge.net/zussaweb/zussaweb03.tar.gz?modtime=1163535184&big_mirror=0
tar -xvzf zussaweb03.tar.gz
cp -r /root/hellanzb/zussaweb/* /home/e-smith/files/ibays/hellanzb/html/
   wget http://dag.wieers.com/packages/unrar/unrar-3.6.2-1.el4.rf.i386.rpm;
   rpm -Uvh unrar-3.6.2-1.el4.rf.i386.rpm;
   wget http://sme.firewall-services.com/downloads/smeserver-backuppc/par2/par2; 
   mv  -f par2 /usr/bin;
   chmod +x /usr/bin/par2;
   signal-event post-upgrade ;
   signal-event reboot;
   cd /root/hellanzb/zope.interface-3.3.0;
   python setup.py install;
   cd /root/hellanzb/Twisted-2.5.0;
   python setup.py install;
   cd /root/hellanzb/hellanzb-0.13;
   python setup.py install;
   mkdir -p /opt/hellanzb;
   rm -fr  /root/hellanzb;
   rm  -f /home/e-smith/files/ibays/hellanzb/html/index.html;
   mv /usr/etc/hellanzb.conf.sample /usr/etc/hellanzb.conf



lets edit the configuration

   vi /usr/etc/hellanzb.conf

ok, go through the file, enter your newsserver info etc for ssl change the ssl value to true .
Change the location where we let hellanzb do her work (make sure the directory exists):
 
   # Important locations
   Hellanzb.PREFIX_DIR = '/opt/hellanzb/'
   # Where to put queued .nzb files
   Hellanzb.QUEUE_DIR = '/home/e-smith/files/ibays/hellanzb/files/nzbdrop/'
   # Where the fully processed archives go
   Hellanzb.DEST_DIR = '/home/e-smith/files/ibays/hellanzb/files/ready/'

   #Hellanzb.UMASK = 0022
   Change 0022 to 0000 and remove # so the line will be like this
   Hellanzb.UMASK = 0000


   Hellanzb.XMLRPC_PASSWORD = ‘******’
   Set ***** as your password for later.
 
Save the file,and exit the editor.
ok, now we are all ready to go!
start hellanzb like this:

   /usr/bin/hellanzb.py

you should get something like this:
hellanzb v0.13 (config = /usr/etc/hellanzb.conf)
(somename) Opening 4 connections...
hellanzb - Now monitoring queue...
 
control +c to exit

Oke now you can go to network, find your server,
You can drop nzb in your network dir files on hellaready
The ready files are in ready dir on hellaready
Hellanzb works now you can start it as a deamon with :

   /usr/bin/hellanzb.py –D


hellanzb create itself the directory "/home/e-smith/files/ibays/hellanzb/files/ready/" and "/home/e-smith/files/ibays/hellanzb/files/nzbdrop/"
chmod 775 /home/e-smith/files/ibays/hellanzb/files/ready/
chmod 775 /home/e-smith/files/ibays/hellanzb/files/nzbdrop/


Now its time to setup the webinterface:
edit the settings.php file in the ibay /home/e-smith/files/ibays/hellanzb/html/
vi /home/e-smith/files/ibays/hellanzb/html/settings.php

   <?php

$host = 'localhost';
$port = 8760;
$user = 'hellanzb';
$passwd = 'changeme';

$disk = '/home/e-smith/files/ibays/hellanzb/files/ready/';
$download_nzb_path = '/home/e-smith/files/ibays/hellanzb/files/nzbdrop/';




We need to fix a bug that not showing disk space :
Edit /home/e-smith/files/ibays/hellanzb/html/functions.php and change:

function freediskspace() {
        return (round (disk_free_space(disk)/1024/1024,2));
}

 into:

function freediskspace($disk) {
        return (round (disk_free_space($disk)/1024/1024,2));
}


Now you can login from anywhere with username hellanzb and the password set for the ibay, here you can upload the nzb and see progress bar for hellanzb
Autostart hellanzb in SME
   vi /etc/init.d/hellanzb
Put this in te file :
   #! /bin/sh
   # /etc/init.d/hellanzb
   #
   # System startup script for Helllanzb
   #
   case "$1" in
       start)
           echo -n "Starting Hellanzb."
           /usr/bin/hellanzb.py &
           ;;
       stop)
           echo -n "Shutting down Hellanzb."
           killall hellanzb.py
           ;;
    *)
           echo "Usage: $0 {start|stop}"
         ;;
   esac

Save it
   chmod 744 /etc/init.d/hellanzb
   cd /etc/rc7.d

Check with start number is free S92 if not change this !!!
 
   ln -s /etc/init.d/hellanzb S92hellanzb

Now you can start hellanzb with /usr/bin/hellanzb.py –D
Now if you have to reboot hellanzb will start op also.

Try this and tell me if you have any problems

PS: you can use firefox and the hellafox extention that automaticaly add nzb to download queue with a simple right click option

Regards David


« Last Edit: April 15, 2009, 10:08:56 PM by davibou »