<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Random Bugs &#187; How-to</title>
	<atom:link href="http://www.randombugs.com/category/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://www.randombugs.com</link>
	<description>Just another Bastard Operator From Hell. Everything from *nix to programming</description>
	<lastBuildDate>Thu, 06 May 2010 14:21:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Compile and configure mod_qos to prevent Slowloris DDOS on Apache 2 from Debian Lenny distribution</title>
		<link>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html</link>
		<comments>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html#comments</comments>
		<pubDate>Tue, 04 May 2010 20:00:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[compile]]></category>
		<category><![CDATA[ddos]]></category>
		<category><![CDATA[qos]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=650</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>mod_qos is becoming a very popular module for Apache, from the discover of Slowloris DDoS Attack. It seems, mod_qos is the best solution for Slowloris attack on Apache 2, but you can also check mod_evasive, mod_security or http accelerator &#8220;Varnish&#8221;. In this post I will try to present a step by step tutorial how to install mod_qos and configure to prevent Slowloris DDoS attack. 

This post is just a compendium of other good posts:

How To Defend slowloris DDoS With mod_qos (Apache2 On Debian [Lenny])
DDoS, Apache2 and mod_qos
How to best defend ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/compile-configure-modqos-prevent-slowloris-ddos-apache-2-debian-lenny-distribution.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade from Glassfish 2.1 to 2.1.1</title>
		<link>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html</link>
		<comments>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html#comments</comments>
		<pubDate>Tue, 29 Dec 2009 13:39:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=625</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>For some reasons the asupgrade tool from Sun Glassfish doesn&#8217;t work if you want to upgrade your Glassfish from 2.1 to 2.1.1. The upgrade method what I will present you in the next post, probably, is not recommended by SUN, but it will work in most cases (clustered or not). Just follow this steps:

1. Stop all domains, node agents, instances from all cluster (or only the domain if you have only 1 server)
2. Rename Glassfish folder to g2.1
3. Install glassfish 2.1.1

$ java -Xmx256m -jar glassfish-installer-v2.1.1-b31g-linux.jar
$ cd glassfish
$ chmod +x lib/ant/bin/ant
$ ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/upgrade-glassfish-21-211.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing default logging system in Glassfish 2.1 with Log4J</title>
		<link>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html</link>
		<comments>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html#comments</comments>
		<pubDate>Mon, 28 Sep 2009 18:04:20 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tuning]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=606</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><br/>A lot of people are not satisfied by the default Java Logging (JUL) in Glassfish. Also, myself I encountered some problems on clustered environments where we should have one single log and not one log for each instance.  Trying to change the logging system in Glassfish it looks to be almost impossible , but I found a very interesting project  java.util.logging to log4j Bridge and the sky become more clear for Glassfish logging. Jul to Log4J Bridge are part of log4J project and is very useful when you ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/changing-logging-system-glassfish-21.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tuning a Linux system for Database Server</title>
		<link>http://www.randombugs.com/linux/tuning-linux-system-database.html</link>
		<comments>http://www.randombugs.com/linux/tuning-linux-system-database.html#comments</comments>
		<pubDate>Thu, 16 Jul 2009 17:24:13 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=567</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/kexi.png" width="24" height="24" alt="" title="Databases" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/> In my experiments with databases I was constrained to tune the system together with the databases. A system what will run a database is quite different from any other server system, because databases put a lot of stress on the IO and especially on the disks (probably the file servers too). Hardware is not all you should tune your system as much as possible. In this post I will talk about Linux with Ext3 (is what I have right now), but on future I will test OpenSolaris with ZFS.

1. ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/tuning-linux-system-database.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compiling sysbench 0.4.12 for Debian</title>
		<link>http://www.randombugs.com/linux/compiling-sysbench-0412-debian.html</link>
		<comments>http://www.randombugs.com/linux/compiling-sysbench-0412-debian.html#comments</comments>
		<pubDate>Thu, 09 Jul 2009 14:09:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Bugs]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[bug]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=556</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bug.png" width="24" height="24" alt="" title="Bugs" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>

On the Linux market are a lot of distributions and every distribution is unique in his way. Is normal to have different compilers and tools from distribution to distribution so is almost normal to have programs what doesn&#8217;t compile on all distributions. sysbench 0.4.12 is one of them. 

Anyway the solution is simple and I will describe it very quickly how to compile sysbench under Debian. Probably it will work for other distributions if you have the same problem. 
Let&#8217;s start with the error. I run the normal steps to ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/compiling-sysbench-0412-debian.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Using VMware Webservice with C++ and gSOAP</title>
		<link>http://www.randombugs.com/linux/vmware-webservice-gsoap.html</link>
		<comments>http://www.randombugs.com/linux/vmware-webservice-gsoap.html#comments</comments>
		<pubDate>Fri, 26 Jun 2009 15:12:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Webservice]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=529</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/>For me one of the most annoying thing from VMware is the VMware Infrastructure Client, because it doesn&#8217;t support Linux. Every-time when I want to manage some machines, or I want to see the IP/Status/etc of some machines, I need to log on on some Windows Server and run the VMware Infrastructure Client from there. Because I&#8217;m running exclusively on Linux (Debian 5.0.1 Lenny) on my workstation, this can be very annoying. Anyway, VMware VirtualCenter is exposing to us a set of web services who can control your VMware ESX ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/vmware-webservice-gsoap.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compile, install and run mod_limitipconn for Apache2 under Debian</title>
		<link>http://www.randombugs.com/tuning/compile-install-run-modlimitipconn-apache2-debian.html</link>
		<comments>http://www.randombugs.com/tuning/compile-install-run-modlimitipconn-apache2-debian.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 17:17:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=509</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/apache3.jpg" width="24" height="24" alt="" title="Apache" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Limiting abusers from running 20 download threads from the same Apache server is easy now with mod_limitipconn. But the apache 2 module, mod_limitipconn, is not available under the latest Debian distribution, Lenny. In this mini how-to I will show you how-to manage this module to work for Debian Lenny users. The compile process of mod_limitipconn is a little bit more than &#8220;make install&#8221;.
First install apache prefork development utilities (we need apxs2 to compile our module)

[rb@randombugs]# apt-get install apache2-prefork-dev
After that, download source code of iplimit module from http://dominia.org/djao/limitipconn2.html and unpack it
[rb@randombugs]# ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/tuning/compile-install-run-modlimitipconn-apache2-debian.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Changing defaults ports for JMS under Glassfish</title>
		<link>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html</link>
		<comments>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html#comments</comments>
		<pubDate>Thu, 28 May 2009 07:47:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Clustering]]></category>
		<category><![CDATA[Glassfish]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[JMS]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=452</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/cluster.png" width="24" height="24" alt="" title="Clustering" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/bluefish.png" width="24" height="24" alt="" title="Glassfish" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Why you should do that?  All this ports, by default, are allocated dynamically and if you want to use a firewall between your client and JMS broker then you should have static ports assigned. Another solution is to tunnel through httpjms and httpsjms protocol but this are slow. In the next article I will show you how to assign static ports to this JMS service in Glassfish.  To show you the all ports what need for JMS I just &#8220;ripped&#8221; the following table from SUN Site:  http://docs.sun.com/app/docs/doc/820-4916/gcuhq?a=view





Connection ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/java/glassfish/changeing-defaults-ports-jms-glassfish.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using GPG under Ubuntu or Debian</title>
		<link>http://www.randombugs.com/linux/gpg-ubuntu-debian.html</link>
		<comments>http://www.randombugs.com/linux/gpg-ubuntu-debian.html#comments</comments>
		<pubDate>Wed, 13 May 2009 12:40:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Cryptography]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Newbie]]></category>
		<category><![CDATA[Recovery]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Tuning]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=443</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/gpg.png" width="24" height="24" alt="" title="Cryptography" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><br/>Gpg is stands for Gnu Privacy Guard and is a free alternative to the PGP cryptographic software. GnuPG (or GPG) follows the RFC 4880 which is the standard specification of OpenPGP. The most important thing GPG is interoperable with PGP. GPG is build as a command line utility but also have several front-ends for KDE, Gnome and other Linux desktops, but also is directly integrated in other software like: Email Clients as  Mozilla Thunderbird, Evolution, Kmail, Instant Messaging as PSI, Fire, Browsers as Mozilla Firefox etc.

GnuPG encrypts messages using ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/gpg-ubuntu-debian.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Linux ISC DHCP Server and Dynamic DNS updates under Debian and Ubuntu</title>
		<link>http://www.randombugs.com/linux/linux-isc-dhcp-server-dynamic-dns-updates-debian-ubuntu.html</link>
		<comments>http://www.randombugs.com/linux/linux-isc-dhcp-server-dynamic-dns-updates-debian-ubuntu.html#comments</comments>
		<pubDate>Wed, 08 Apr 2009 12:38:08 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Headline]]></category>
		<category><![CDATA[How-to]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[ddns]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://www.randombugs.com/?p=395</guid>
		<description><![CDATA[<img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/debian.png" width="24" height="24" alt="" title="Debian" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/help-contents.png" width="24" height="24" alt="" title="How-to" /><img src="http://www.randombugs.com/wp-content/uploads/icons/24x24/tux.png" width="24" height="24" alt="" title="Linux" /><br/>This article will cover the DNS dynamic updates and DHCP DNS updates. I assume you already followed my last 2 articles &#8220;Linux ISC DHCP Server under Debian and Ubuntu&#8221; and &#8220;Linux ISC DHCP Server failover under Debian and Ubuntu&#8221; and I assume you have minimum skills in configuring ISC BIND dns server.
Why Dynamic DNS with DHCP ? Beacuse is hard to remeber IP&#8217;s for all type of devices. Managing a Dynamic DNS is more simple than learn everytime new ip&#8217;s  from your network. Also this configuration in big networks ...]]></description>
		<wfw:commentRss>http://www.randombugs.com/linux/linux-isc-dhcp-server-dynamic-dns-updates-debian-ubuntu.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
