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=0tar -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