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,907
  • +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?