Dedicated Server Support

Tips on Linux, FreeBSD, Windows Dedicated Server.

Tuesday, April 26, 2005

Updating freeBSD ports with cvsup

Step 1

You will need to install cvsup. Which will download the latest information about the ports.

cd /usr/ports/net/cvsup-without-gui
make install
make clean

Step 2

Now we need to make a file so the cvsup will know what to download from the FreeBSD server updates.

cd /etc
vi cvsupfile


Now create and save the file with the following written in it:

*default host=cvsup2.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs
*default tag=none
*default delete use-rel-suffix
*default tag=.
ports-all
doc-all

Step 3

Now you can easily upgrade the ports tree at any time by logging into your SSH as admin/root and typing:

/usr/local/bin/cvsup -g -L2 /etc/cvsupfile

Doing this manually once a week is preferable since many programs change pretty quickly.

To have the tree update automatically (which I don't trust and neither should you Wink) we will first login to root and type:

crontab -u root -e

-u flag tells crontab to tweak the following user's crontab and the -e flag tells crontab to edit the file.

We will then add something like this:

#minute hour mday month wday command with full path
0 3 * * * /usr/local/bin/cvsup -g -L2 /etc/cvsupfile

This tells the cron to update at 3:00 A.M. every morning.

Save and exit and you are done.

Friday, April 22, 2005

NetFreeHost.com Got Page Rank 6

Today is some thing special.

Yesterday Page rank of www.netfreehost.com was ZERO. Today it got a Page Rank of 6.

I registered www.DomainsToBuy.com one year back, i put some place holder page on it. When BizHat.com start offering free web hosting, i thought it will be better to use this domain insted of a sub domain like http://free.bizhat.com as this domain have no use now, let it get some publicity too...

So i started BizHat.com free web hosting with the domain www.DomainsToBuy.com later found a better domain www.NetFreeHost.com for free web hosting, DomainsToBuy.com better suited for domain sales and not a free web hosting site.

By this time DomainsToBuy.com got some popularity and a PR of 5. So i can't shut it down. So i descided to keep both NetFreeHost.com and DomainsToBuy.com for Free Web Hosting.

But google never liked this... PR of www.NetFreeHost.com stayed ZERO all the time. I waited months, but it never changed. I think it even take months to get listed on google. Many of my sites get listed in google with weeks or even days.

Yesterday i removed index.php file from www.DomainsToBuy.com and put a 301 Redirect to www.NetFreeHost.com

I thought i will be losting my PR 5 of domainstobuy.com by doing this. But today i got a PR 6 for NetFreeHost.com


<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: http://www.netfreehost.com/");
exit();
?>

Tuesday, April 19, 2005

Creating Favicon with Adobe Photoshop

Today i have replaced faviocon for web sites

www.bizhat.com

This is done with Photo Shop 7, by default photoshop won't allow you to save files in .ico format.

You can work with .ICO format if you install plug in from

http://www.telegraphics.com.au/sw/

This is availble free of cost, so there is no need to buy or download another program to work with icon files. Also it is only 16 kb file.

Favicon.ico are files with 16 * 16 pixel size.

To create my favicon.ico file, i started with a 100 * 100 pixel new file from photoshop.

My Favicon is very simple, i just filled RED on the 100 * 100 pixel canvas, then using text tool, typed in "F" and changed it color to WHITE.

Now artwork is ready, time to convert it to favicon.ico

First change the image size to 16 * 16 pixels.

Then select save from photoshop file menu, now you have .ico option in the format list. Name it favicon.ico and upload it to your web site.

Use following code in your HTML pages inside

<link href="http://www.yourdomain.com/favicon.ico" rel="SHORTCUT ICON">

Monday, April 18, 2005

PhpBBweb.com listed in advancescripts.com

Today www.phpbbweb.com got listed in advancescripts.com script directory.

Advanced Scripts is a directory of scripts (php, perl, asp, etc...) also includes list of hosted scripts.

PhpBBweb.com is listed at

http://www.advancescripts.com/detailed/3062.html

Do visit AdvancedScrpts.com when you need to find some scripts, also don't forget to vote for phpbbweb.com

Friday, April 15, 2005

Cron /usr/local/bandmin/bandmin

modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.
modprobe: QM_MODULES: Function not implemented

modprobe: QM_MODULES: Function not implemented

modprobe: Can't locate module ip_tables
iptables v1.2.8: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.


Solved by installing latest version of

module-init-tools

WebHostingNeeds.com Free Web Hosting Directory

Today added two new catagory to Free Hosting Directory, PHPBB Forum Hosting and IB Forum Hosting.

If you run Free Web Hosting or Free Forum Hosting, add your web site to Free Hosting Directory.

Free IB Forum Hosting

PHPBB Forum Hosting

Image Hosting

Free Hosting

Wednesday, April 13, 2005

NetFreeHost Free phpBB

http://www.netfreehost.com/phpbb/

Offers Free Remotely Hosted phpBB Forums with no banner or popup ads. Includes 20+ languages, 50+ skins, Instant Activation, Unlimited Bandwidth, Sub Domain, Search Engine Optimization Mod, Quick Reply Mod, Logo Mod, Tell a friend Mod.

http://www.hotscripts.com/Detailed/44113.html

Free PHPBB Forum Hosting Offer at Yaxay.com

NetFreeHost.com Offers free phpbb forum hosting to Yaxay.com members.

Free forums are setup instantly, includes more than 250 templates and several usefull mods.

http://forum.yaxay.com/showthread.php?p=367802

For more details, visit

http://www.netfreehost.com/phpbb/

http://forums.webhosting.info/t-4864/

http://board.hostingtalk.com/index.php?showtopic=712

Scriptdex.com Directory

Scriptdex.com is a Directory of scripts

PHP - image galleries, portal systems, content management
ASP - content management, e-commerce, support
Perl - content management, e-commerce, link indexing
CFML - discussion boards, calendars, content management
Flash - software, tutorials, user communities
Python - modules, ports, tools, xml processing
Javascript - text effects, forms, visual effects
Remotely Hosted - discussion boards, ad managers
Communities - PHP, ASP, XML
Editors and Tools - Development, ActiveX
Tutorials - PHP, ASP, Javascript
CSS - tools, learning css

PhpBBweb.com Free Forum Hosting

http://www.phpbbweb.com

Offers Free Forum PhpBB Hosting with unlimited bandwidth. Free Remotely Hosted phpBB Forums with unlimited bandwidth, unlimited users. Instant activation, Easy setup, upload your own logo, more than 260 templates, all languages supported by phpbb, more templates and languages added on request. Signup now, its free!!

http://scriptdex.com/cgi-bin/search/rateit.cgi?ID=1113416214

Tuesday, April 12, 2005

Remote Backup

After getting the 100 GB Backup space, i tried to mount it with NFS, but it seems timed out.

The backup space provider is also recommending rsync over NFS backup as its more efficient, can take daily backup as only changed file get backuped.

So i decided to take backup with rsync.

I started with server2.hosthat.com.

Step 1

Login to server2.hosthat.com on SSH as root.

Step 2

Check if RSA encryption key is present

# cat /root/.ssh/id_rsa.pub

If it is not present, create a key with the ssh-keygen utility

# ssh-keygen -t rsa -N ''

(note: these are two single quotes)

root@server2 [~]# ssh-keygen -t rsa -N ''
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa):
Your identification has been saved in /root/.ssh/id_rsa.
Your public key has been saved in /root/.ssh/id_rsa.pub.
The key fingerprint is:
78:33:05:b4:9d:cf:f6:41:b7:11:4e:b1:bc:d7:58:04 root@server2.hosthat.com
root@server2 [~]#



Step 3


Copy your RSA encryption key to the remote backup system.

You may do this through the shell as well.

# scp ~/.ssh/id_rsa.pub flashwebhost@remove-backup-server.com:keys/server2
# ssh flashwebhost@remove-backup-server.com mergekeys


Step 4

You may now test rsync by copying a small directory, such as /etc:

# rsync -avz -e ssh /etc flashwebhost@remove-backup-server.com:server2

You may now add rsync as a daily cron job, as outlined in step 5.

Step 5

Backup /home folder

/usr/local/bin/rsync -avz -e ssh /home flashwebhost@remove-backup-server.com:server2


The Problem

Upto step 4 went with out problem, that is i can backup /etc folder to remote folder with out error.

But when i start backing up the /home folder, got the error

root@server2 [~]# rsync -avz -e ssh /home flashwebhost@remote-backup-server.com:server2 building file list ... rsync: writefd_unbuffered failed to write 4092 bytes: phase "send_file_entry": Broken pipe
rsync error: error in rsync protocol data stream (code 12) at io.c(515)
root@server2 [~]#


Solved this by installing latest version of rsync on the server.

It seems everything working fine. I am now running first rsync backup of /home directory by connecting to putty from a windows 2003 server, do i can check it later to see the status of the backup. I think next backups won't take this much time as it only need to update files changed after last backup.

If everything went well, have to make a shell script to backup the files to remote server daily.... Not daily... May be every 4 days, else if a hacker compromised a clients web site, we will be making backup of that compromised code.

Thursday, April 07, 2005

Remote Server Backup with NFS

Today found a way to backup server with NFS.

You can mount drive in a remote backup server in your web server as /backup and take backup. So backup will get stored in remote server. It seems much better than having a second harddisk on each server of having backup.

Now you can use the same remote NFS backup drive to backup all your servers. Just mount the NFS drive on the server, take backup and umount it on finishing backup, now login to new server and take backup, so on... Untill your NSF can hold...

nfs - nfs fstab format and options

SYNOPSIS

/etc/fstab

DESCRIPTION

The fstab file contains information about which filesystems to mount where and with what options. For NFS mounts, it contains the server name and exported server directory to mount from, the local directory that is the mount point, and the NFS specific options that control the way the filesystem is mounted. Here is an example from an /etc/fstab file from an NFS mount.



server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr

Options

rsize=n

The number of bytes NFS uses when reading files from an NFS server. The default value is dependent on the kernel, currently 1024 bytes. (However, throughput is improved greatly by asking for rsize=8192.)

wsize=n

The number of bytes NFS uses when writing files to an NFS server. The default value is dependent on the kernel, currently 1024 bytes. (However, throughput is improved greatly by asking for wsize=8192.)

timeo=n

The value in tenths of a second before sending the first retransmission after an RPC timeout. The default value is 7 tenths of a second. After the first timeout, the timeout is doubled after each successive timeout until a maximum timeout of 60 seconds is reached or the enough retransmissions have occured to cause a major timeout. Then, if the filesystem is hard mounted, each new timeout cascade restarts at twice the initial value of the previous cascade, again doubling at each retransmission. The maximum timeout is always 60 seconds. Better overall performance may be achieved by increasing the timeout when mounting on a busy network, to a slow server, or through several routers or gateways.

retrans=n

The number of minor timeouts and retransmissions that must occur before a major timeout occurs. The default is 3 timeouts. When a major timeout occurs, the file operation is either aborted or a "server not responding" message is printed on the console.

acregmin=n

The minimum time in seconds that attributes of a regular file should be cached before requesting fresh information from a server. The default is 3 seconds.

acregmax=n

The maximum time in seconds that attributes of a regular file can be cached before requesting fresh information from a server. The default is 60 seconds.

acdirmin=n

The minimum time in seconds that attributes of a directory should be cached before requesting fresh information from a server. The default is 30 seconds.

acdirmax=n

The maximum time in seconds that attributes of a directory can be cached before requesting fresh information from a server. The default is 60 seconds.

actimeo=n

Using actimeo sets all of acregmin, acregmax, acdirmin, and acdirmax to the same value. There is no default value.

retry=n

The number of minutes to retry an NFS mount operation in the foreground or background before giving up. The default value is 10000 minutes, which is roughly one week.

namlen=n

When an NFS server does not support version two of the RPC mount protocol, this option can be used to specify the maximum length of a filename that is supported on the remote filesystem. This is used to support the POSIX pathconf functions. The default is 255 characters.

port=n

The numeric value of the port to connect to the NFS server on. If the port number is 0 (the default) then query the remote host's portmapper for the port number to use. If the remote host's NFS daemon is not registered with its portmapper, the standard NFS port number 2049 is used instead.

mountport=n

The numeric value of the mountd port.

mounthost=name

The name of the host running mountd .

mountprog=n

Use an alternate RPC program number to contact the mount daemon on the remote host. This option is useful for hosts that can run multiple NFS servers. The default value is 100005 which is the standard RPC mount daemon program number.

mountvers=n

Use an alternate RPC version number to contact the mount daemon on the remote host. This option is useful for hosts that can run multiple NFS servers. The default value is version 1.

nfsprog=n

Use an alternate RPC program number to contact the NFS daemon on the remote host. This option is useful for hosts that can run multiple NFS servers. The default value is 100003 which is the standard RPC NFS daemon program number.

nfsvers=n

Use an alternate RPC version number to contact the NFS daemon on the remote host. This option is useful for hosts that can run multiple NFS servers. The default value is version 2.

nolock

Disable NFS locking. Do not start lockd. This has to be used with some old NFS servers that don't support locking.

bg

If the first NFS mount attempt times out, retry the mount in the background. After a mount operation is backgrounded, all subsequent mounts on the same NFS server will be backgrounded immediately, without first attempting the mount. A missing mount point is treated as a timeout, to allow for nested NFS mounts.

fg

If the first NFS mount attempt times out, retry the mount in the foreground. This is the complement of the bg option, and also the default behavior.

soft

If an NFS file operation has a major timeout then report an I/O error to the calling program. The default is to continue retrying NFS file operations indefinitely.

hard

If an NFS file operation has a major timeout then report "server not responding" on the console and continue retrying indefinitely. This is the default.

intr

If an NFS file operation has a major timeout and it is hard mounted, then allow signals to interupt the file operation and cause it to return EINTR to the calling program. The default is to not allow file operations to be interrupted.

posix

Mount the NFS filesystem using POSIX semantics. This allows an NFS filesystem to properly support the POSIX pathconf command by querying the mount server for the maximum length of a filename. To do this, the remote host must support version two of the RPC mount protocol. Many NFS servers support only version one.

nocto

Suppress the retrieval of new attributes when creating a file.

noac

Disable all forms of attribute caching entirely. This extracts a server performance penalty but it allows two different NFS clients to get reasonable good results when both clients are actively writing to common filesystem on the server.

tcp

Mount the NFS filesystem using the TCP protocol instead of the default UDP protocol. Many NFS servers only support UDP.

udp

Mount the NFS filesystem using the UDP protocol. This is the default. All of the non-value options have corresponding nooption forms. For example, nointr means don't allow file operations to be interrupted.

Saturday, April 02, 2005

Cpanel control panel from cplicensing.net

http://www.cplicensing.net/

Offers Cpanel Licence at $55 per month. They also provide 15 day trail licence.

Control Panels play an important role in web hosting environments today. In the past, hosting and web service companies have spent hundreds of costly admin hours configuring services, modifying permissions, and changing configuration files to meet the demands of there customers. Today however, there is an alternative solution to this time consuming processes that limits organizations abilities. Control panels, such as cPanel eliminates much of the hassle in a production hosting environment by automating the tasks administrators perform every day.

As an internal and external cPanel license distributor, cPlicensing.net provides a wide range of cPanel licensing options. cPlicensing.net offers both supported and unsupported license types alike, giving license seekers even more flexibility and the permitting the lowest cPanel pricing around.

cPlicensing.net and its parent company NDC Host are active members in the cPanel community. Our staff is continually developing 3rd party scripts, and add-ons to increase users abilities and cPanel.s functions. Additional complementary support for all can be found voluntary through our involvement with cPanel.net's forums and the official cPanel IRC (internet relay chat) channel #cPanel on EFNet. Thank you for visiting cPlicensing.net, we welcome your business and interest in cPanel.

NOTE: Cpanel price is costly, many data centers provide cpanel at $20 per month when you buy dedicated servers. But this licence can used inside the data center only.

WebScriptsDirectory.com

PhpBBweb.com Free Forum Hosting got listed on WebScriptsDirectory.com

Vote PhpBBweb.com


Script Name: PhpBBweb.com Free Forum Hosting
Author: phpbbweb
Price: Free
Homepage Link: PhpBBweb.com Free Forum Hosting Homepage
Date Added: Mon Mar 28 2005
Last Updated: Wed Mar 30 2005
Summary: Offers Free Forum PhpBB Hosting with unlimited ban

Description: Offers Free Forum PhpBB Hosting with unlimited bandwidth. Free Remotely Hosted phpBB Forums with unlimited bandwidth, unlimited users. Instant activation, Easy setup, upload your own logo, more than 260 templates, all languages supported by phpbb, more templates and languages added on request, tell a friend and Quick reply Mods. Signup now, its free!!

FreeBSD Allow Root Login

FreeBSD won't allow you to login as root through SSH.

This is for security, but i don't like extra work of login as user and then "su -" to root. So i added

PermitRootLogin yes

to end of /etc/ssh/sshd_config

I still use vi text editor on FreeBSD, its little different than that available in Linux. Few changes are delete key, Home , End keys are not working.

Then restart sshd

/etc/rc.d/sshd restart

FreeBSD 5.3 - PureFTPD Install

Today i installed PureFTPd on FreeBSD 5.3 server.

cd /usr/ports/ftp/pure-ftpd
make install clean

It show a text based menu with options like LDAP, MySQL PAM, PGSQL, etc... Only PAM is checked by default.

I do not select anything other than the default PAM as i am not going to use them on this server. On this server, i will be the FTP only user, i only need the PAM. I will be login with insecure "root" account for FTP as i get full control when i FTP :-)

Now the pureftpd got installed.

/usr/local/sbin/pure-authd
/usr/local/sbin/pure-ftpd


This port has installed the following startup scripts which may cause these network services to be started at boot time.

/usr/local/etc/rc.d/pure-ftpd.sh

With the pure-ftpd.sh in rc.d folder, pureftpd will auto start on system boot.

I tried

/usr/local/etc/rc.d/pure-ftpd.sh start

But FTP server doesn't start. May be it need a reboot before start working.

/usr/local/sbin/pure-ftpd &

Worked fine. i found i need to

#
# Add the following lines to /etc/rc.conf to enable pure-ftpd:
#
# pureftpd_enable="YES"
#

But i decided not to do that now as why should i run FTP on a server that only i will use ? For now, i will login to server and enable FTP when i need to use FTP.

FreeBSD 5.3 Server Setup - Apache Install

On Wednesday, March 30, 2005 11:42 PM i got root login info on new FreeBSD 5.3 server.

AMD 3000+/1GB/80GB
BW: 1000GB
OS: FreeBSD 5.3
Port: 10Mbps Port

First problem i faced is i could not SSH to the new server. When i connect the server with putty, it ask login and then password. Once i give password, it will disconnect me instantly, it won't say anything why it disconnected me.

Next i try to login to new FreeBSD box from another server. That worked fine, not sure why i am not able to SSH from my local PC. I tried to SSH from all other servers (Linux and Windows) and it all worked well. But now allowing me to login from my local pc. May be the new server only like servers and not a home pc.

Since this is the first FreeBSD server, i could not start like other servers. I started installing next day around 10 AM.

Started with Apache 2 from port collection

cd /usr/ports/www/apache2
make install clean

Got Apache 2 installed on new FreeBSD. Port will download required files and install it. It is easier than Linux installation, where you have to download Apache, un compress, configure, make and make install. Still i don't feel its any great advantage as we are not going to install Apache everyday. Also getting new Apache source from Apache, you get new version, with FreeBSD you need to wait for port developer to port new version of Apache to FreeBSD port.

To start/stop Apache on FreeBSD, you have to use /usr/local/sbin/apachectl start|stop|restart etc... I feel like i miss the Linux service httpd start|stop|restart and thinking why FreeBSD won't implement such a thing, after all Apache is a service.

In FreeBSD, Apache configuration file is located in

/usr/local/etc/apache2/httpd.conf

Apache is started with start-up script installed at

/usr/local/etc/rc.d/

This is a normal shell script, ending with .sh, it require permission 751 to run.

I finished installing Apache, MySQL and PHP by end of the day.