Koozali.org: home of the SME Server

Hellanzb on SME Howto

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 »