If you want you can change the friendly name for $iface_title[‘eth0’]. Do not change the definition of variable $vnstat_bin, this must be left blank because the php script that calls vnstat uses a “\” which is not allowed by the php service in safe mode. Safe and quit vi.

7. Consequently we have to set up a cronjob to dump the vnstat data in to the “dumps” directory defined in variable $data_dir. Make the directory dumps:mkdir dumps

8. Now we need to make a script and cronjob to update the nvstat data and create the dumpfile. Make a folder for your scriptsmkdir /home/sysadmin/my_scripts

10. Make the script executable by doing:
chmod +x /home/sysadmin/my_scripts/vnstatdump.sh

and test the script by running itsh /home/sysadmin/my_scripts/vnstatdump.shvnstatdump.sh

There shouldn’t be any error messages.

11. Create the cronjob schedule
vi /etc/crontab

… and enter new lines for however frequently you want the web page data to be updated. For instance to have it updated every hour at 1 minute past the hour enter a line like1 * * * * root /home/sysadmin/my_scripts/vnstatdump.sh

A little how-to for installing SABnzbd 0.5 on your Xtreamer eTRAYZ. I’m not explaining how to SSH to your box ecc, you should all know that before doing this. Newzbin is working well in version 0.5 on my eTRAYz.

Follow the guide on mavvy.net to install version 0.4.x on your box, to get the base system running. Try this before using this guide to update SABnzbd to version 0.5 RC3.

1. SSH to your box and goto the /opt/share folder.
2. Get the source from the SABnzbd site:
wget http://downloads.sourceforge.net/project/sabnzbdplus/sabnzbdplus-beta/0.5.0RC3/SABnzbd-0.5.0RC3-src.tar.gz?use_mirror=mesh

7. Copy the SABnzbd.sh file from the old folder to the new one and edit it with VI
cp /opt/share/oldSABnzbd/SABnzbd.sh /opt/share/SABnzbd/
vi /opt/share/SABnzbd/SABnzbd.sh

8. This is the main trick to get 0.5 working! Edit the start commando as follows:
nice -n 20 python2.5 /opt/share/SABnzbd/SABnzbd.py -s $IP:8888 &

I’ve added the nice -n option to give more importance to other processes on the box and, more importantly, forced SABnzbd to use python 2.5, otherwise the Cheetah module won’t work. Test this by starting python and python2.5 for the command line and by typing:
import Cheetah