<?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>Rasila Garage &#187; Business</title>
	<atom:link href="http://rasilagarage.com/category/business/feed/" rel="self" type="application/rss+xml" />
	<link>http://rasilagarage.com</link>
	<description>Tuomas Rasila's blog about software and entrepreneurship</description>
	<lastBuildDate>Sun, 07 Mar 2010 09:11:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to save 10 hours a month on time of other people by filtering their spam</title>
		<link>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/</link>
		<comments>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 15:12:59 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=98</guid>
		<description><![CDATA[“The average spam messages per day is 18.5 and the average time spent per day deleting them is 2.8 minutes. The loss in productivity is equivalent to $21.6 billion per year at average U.S. wages.” - Jesdanun, A. (2005), “Deleting spam costs billions, study finds”, The Associated Press Newswires (online) Let’s say there are ten [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p>“The average spam messages per day is 18.5 and the average time spent per day deleting them is 2.8 minutes. The loss in productivity is equivalent to $21.6 billion per year at average U.S. wages.”</p>
<p>- Jesdanun, A. (2005), “Deleting spam costs billions, study finds”, The Associated Press Newswires (online)</p></blockquote>
<div id="attachment_168" class="wp-caption alignleft" style="width: 235px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_0087.jpg"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/img_0087-225x300.jpg" alt="You can filter spam and viruses before they hit your mailserver" title="Untangle" width="225" height="300" class="size-medium wp-image-168" /></a><p class="wp-caption-text">You can filter spam and viruses before they hit your mailserver</p></div><br />
Let’s say there are ten people working in your office and monthly cost per person is 4500€ (25,50€ per hour). By eliminating spam you could save 9:48 hours or 249,90€ per month totaling 2998,80€ per year the study says. Ok, I know I&#8217;m quantifying the unquantifiable, but the amount is anyway far greater than zero.</p>
<p>In my opinion the problem that is not solved yet is the deployment. <strong>I think every tech savvy person filters their spam already.</strong> But how about the rest of the people. Sure, you can use time and install a spam filter to each client, you can also install a spam filter to mail server and get more results.</p>
<p>If you wish to install spam filter to every client computer it will take lot of time and possibly people can mess up their installations. Updating lots of PCs does not sound like a good idea either.</p>
<p>Installing spam filter to a mail server sounds like a better idea but it might be that you cannot go to the mail server. Another problem would be that having a universal spam filter that works with any mail server is not reality.</p>
<p>But what about I you could just use hardware based solution that works out-of-the-box with any kind of setup. Wouldn&#8217;t that be cool? Perhaps the easiest way to eliminate spam in any POP3, IMAP &amp; SMTP scenario would be to set up a network attached spam filter. This way would be 100% transparent to clients and completely platform independent. In SMTP scenario (You are not using mail server of your service provider, instead you have your own mail server) you can directly block spam before it goes to your mail server. You can also set up a simple shell script to automatically log in to your mail accounts and sweep the spam with Spamassassin. This would also be useful if you use a mobile device e.g. an iPhone to read your mail.<br />
<span id="more-98"></span><br />
<a href="http://www.untangle.com/" onclick="pageTracker._trackPageview('/outgoing/www.untangle.com/?referer=');">Untangle</a> has made a great job by putting it all together and by offering the whole thing as an <a href="http://www.untangle.com/Downloads/Download-ISO" onclick="pageTracker._trackPageview('/outgoing/www.untangle.com/Downloads/Download-ISO?referer=');">ISO-image</a>. Their software is open source, licensed under GPLv2. All you are going to need is a extra computer with two network controllers.</p>
<p>To get started you should have following items:</p>
<ul>
<li>Untangle ISO image, and empty cd-r, obviously</li>
<li>Extra computer with two nics, see hardware requirements</li>
</ul>
<p>During the installation you might also need:</p>
<ul>
<li>a monitor</li>
<li>an external CD drive</li>
</ul>
<p>So, let’s get started with it.</p>
<p>I didn’t have extra computer for this so I ordered one. Here is my hardware configuration:</p>
<ul>
<li>Kingston Valueram 2GB 23,90€</li>
<li>Intel Dual Core E5200 86,90€</li>
<li>D-Link DGE-528T 14,70€</li>
<li>Shuttle K45 barebone 111,90€</li>
<li>500GB HDD 56,90€</li>
<li>Total 301,80€ with shipping.</li>
</ul>
<p>This setup would be enough for pretty large network (maybe 200 clients). Hardware is not the case here, almost any x86 hardware should be just fine.</p>
<p><strong>Unboxing and putting hardware together</strong></p>
<p><div id="attachment_103" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1030.jpg"><img class="size-thumbnail wp-image-103" title="Spam filter unboxing 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1030-150x150.jpg" alt="Spam filter unboxing 1" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 1</p></div>
<div id="attachment_105" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1033.jpg"><img class="size-thumbnail wp-image-105" title="Spam filter unboxing 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1033-150x150.jpg" alt="Spam filter unboxing 2" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 2</p></div>
<div id="attachment_106" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1035.jpg"><img class="size-thumbnail wp-image-106" title="Spam filter unboxing 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1035-150x150.jpg" alt="Spam filter unboxing 3" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 3</p></div>
<div id="attachment_107" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1039.jpg"><img class="size-thumbnail wp-image-107" title="Spam filter unboxing 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1039-150x150.jpg" alt="Spam filter unboxing 4" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 4</p></div>
<div id="attachment_108" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1043.jpg"><img class="size-thumbnail wp-image-108" title="Spam filter unboxing 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1043-150x150.jpg" alt="Spam filter unboxing 5" width="150" height="150" /></a><p class="wp-caption-text">Spam filter unboxing 5</p></div>
<p>Putting the hardware is an easy thing to do and even if you have not done it before I&#8217;m sure it won&#8217;t be a big problem. To me it took something like 15 minutes.</p>
<p>Since I think most of the readers might end up with a different hardware setup I won&#8217;t go thru putting the hardware together part any further. If you find any problems with the hardware, post a comment.</p>
<p><strong>The installation process screenshots</strong></p>
<div id="attachment_115" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1044.jpg"><img class="size-thumbnail wp-image-115" title="Spam filter installation 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1044-150x150.jpg" alt="Setting up BIOS to boot from USB-CD" width="150" height="150" /></a><p class="wp-caption-text">Setting up BIOS to boot from USB-CD</p></div>
<div id="attachment_116" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1046.jpg"><img class="size-thumbnail wp-image-116" title="Spam filter installation 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1046-150x150.jpg" alt="Setting up BIOS continues" width="150" height="150" /></a><p class="wp-caption-text">Setting up bios continues</p></div>
<div id="attachment_117" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1047.jpg"><img class="size-thumbnail wp-image-117" title="Spam filter installation 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1047-150x150.jpg" alt="Saving BIOS and booting" width="150" height="150" /></a><p class="wp-caption-text">Saving BIOS and booting</p></div>
<div id="attachment_118" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1048.jpg"><img class="size-thumbnail wp-image-118" title="Spam filter installation 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1048-150x150.jpg" alt="Untangle booting" width="150" height="150" /></a><p class="wp-caption-text">Untangle booting</p></div>
<div id="attachment_119" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1049.jpg"><img class="size-thumbnail wp-image-119" title="Spam filter installation 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1049-150x150.jpg" alt="Entering to the installation wizard" width="150" height="150" /></a><p class="wp-caption-text">Entering to the installation wizard</p></div>
<div id="attachment_120" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1050.jpg"><img class="size-thumbnail wp-image-120" title="Spam filter installation 6" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1050-150x150.jpg" alt="Installation wizard 2, Accepting the GPL license" width="150" height="150" /></a><p class="wp-caption-text">Installation wizard 2</p></div>
<div id="attachment_122" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1051.jpg"><img class="size-thumbnail wp-image-122" title="Spam filter installation 7" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1051-150x150.jpg" alt="Selecting the destination drive" width="150" height="150" /></a><p class="wp-caption-text">Selecting the destination drive</p></div>
<div id="attachment_123" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1052.jpg"><img class="size-thumbnail wp-image-123" title="Spam filter installation 8" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1052-150x150.jpg" alt="Testing hardware" width="150" height="150" /></a><p class="wp-caption-text">Testing hardware</p></div>
<div id="attachment_124" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1054.jpg"><img class="size-thumbnail wp-image-124" title="Spam filter installation 9" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1054-150x150.jpg" alt="Final warning before writing to the disk" width="150" height="150" /></a><p class="wp-caption-text">Final warning before writing to the disk</p></div>
<div id="attachment_125" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1056.jpg"><img class="size-thumbnail wp-image-125" title="Spam filter installation 10" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1056-150x150.jpg" alt="Writing to the disk" width="150" height="150" /></a><p class="wp-caption-text">Writing to the disk</p></div>
<div id="attachment_126" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1057.jpg"><img class="size-thumbnail wp-image-126" title="Spam filter installation 11" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1057-150x150.jpg" alt="The installation is ready, remove CD and boot it for the first time" width="150" height="150" /></a><p class="wp-caption-text">The installation is ready, remove CD and boot it for the first time</p></div>
<p>Installing Untangle is quite straightforward process. My hardware setup did not have a CD-drive, keyboard, mouse or a monitor so I borrowed those from another computer. <strong>The mouse is essential!</strong> You cannot install Untangle without a mouse if you want to use the installer.</p>
<p>I think installation took something like half an hour for me, I didn&#8217;t time it. The installation wizard was easy to use and I sure most of the potential users with limited experience are fine with it.</p>
<p>My only complain would be the fact that in some step I needed a mouse to continue. I not sure if it was before or after the boot. Maybe text based installation option and SSH stating as a default would be a good idea for the future.</p>
<p>So as said, even thru Untangle pretty much works out of the box you should do some work more before you can remotely administer it.</p>
<p>Next couple of screens will guide you thru making basic settings and enabling the SSH server.</p>
<p><strong>Configuration screenshots</strong></p>
<div id="attachment_131" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1059.jpg"><img class="size-thumbnail wp-image-131" title="Untangle configuration 1" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1059-150x150.jpg" alt="Welcome to configuration wizard" width="150" height="150" /></a><p class="wp-caption-text">Welcome to configuration wizard</p></div>
<div id="attachment_132" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1060.jpg"><img class="size-thumbnail wp-image-132" title="Untangle configuration 2" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1060-150x150.jpg" alt="Entering some basic information" width="150" height="150" /></a><p class="wp-caption-text">Entering some basic information</p></div>
<div id="attachment_133" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1061.jpg"><img class="size-thumbnail wp-image-133" title="Untangle configuration 3" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1061-150x150.jpg" alt="Select a password" width="150" height="150" /></a><p class="wp-caption-text">Select a password</p></div>
<div id="attachment_134" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1063.jpg"><img class="size-thumbnail wp-image-134" title="Untangle configuration 4" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1063-150x150.jpg" alt="Select external and internal network interface" width="150" height="150" /></a><p class="wp-caption-text">Select external and internal network interface</p></div>
<div id="attachment_135" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1065.jpg"><img class="size-thumbnail wp-image-135" title="Untangle configuration 5" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1065-150x150.jpg" alt="Setup network" width="150" height="150" /></a><p class="wp-caption-text">Setup network</p></div>
<div id="attachment_136" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1066.jpg"><img class="size-thumbnail wp-image-136" title="Untangle configuration 6" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1066-150x150.jpg" alt="Checking connectivity" width="150" height="150" /></a><p class="wp-caption-text">Checking connectivity</p></div>
<div id="attachment_137" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1067.jpg"><img class="size-thumbnail wp-image-137" title="Untangle configuration 7" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1067-150x150.jpg" alt="As a router with NAT or completely transparent" width="150" height="150" /></a><p class="wp-caption-text">As a router with NAT or completely transparent</p></div>
<div id="attachment_138" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1068.jpg"><img class="size-thumbnail wp-image-138" title="Untangle configuration 8" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1068-150x150.jpg" alt="Setup email" width="150" height="150" /></a><p class="wp-caption-text">Setup email</p></div>
<div id="attachment_139" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1069.jpg"><img class="size-thumbnail wp-image-139" title="Untangle configuration 9" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1069-150x150.jpg" alt="Congrats Untangle is now installed" width="150" height="150" /></a><p class="wp-caption-text">Congrats Untangle is now installed</p></div>
<div id="attachment_140" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1070.jpg"><img class="size-thumbnail wp-image-140" title="Untangle configuration 10" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1070-150x150.jpg" alt="Login to admin interface" width="150" height="150" /></a><p class="wp-caption-text">Login to admin interface</p></div>
<div id="attachment_141" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1071.jpg"><img class="size-thumbnail wp-image-141" title="Untangle configuration 11" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1071-150x150.jpg" alt="By default your Untangle rack is empty" width="150" height="150" /></a><p class="wp-caption-text">By default your Untangle rack is empty</p></div>
<div id="attachment_142" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1072.jpg"><img class="size-thumbnail wp-image-142" title="Untangle configuration 12" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1072-150x150.jpg" alt="Launch a shell" width="150" height="150" /></a><p class="wp-caption-text">Launch a shell</p></div>
<div id="attachment_143" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1073.jpg"><img class="size-thumbnail wp-image-143" title="Untangle configuration 13" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1073-150x150.jpg" alt="Type ifconfig to see your network configuration" width="150" height="150" /></a><p class="wp-caption-text">Type ifconfig to see your network configuration</p></div>
<div id="attachment_144" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1075.jpg"><img class="size-thumbnail wp-image-144" title="Untangle configuration 14" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1075-150x150.jpg" alt="Enabling remote admin functionality" width="150" height="150" /></a><p class="wp-caption-text">Enabling remote admin functionality</p></div>
<div id="attachment_145" class="wp-caption alignleft" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1076.jpg"><img class="size-thumbnail wp-image-145" title="Untangle configuration 15" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1076-150x150.jpg" alt="Starting SSH by typing /etc/init.d/ssh start" width="150" height="150" /></a><p class="wp-caption-text">Starting SSH by typing /etc/init.d/ssh start</p></div>
<div id="attachment_146" class="wp-caption alignnone" style="width: 160px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/img_1077.jpg"><img class="size-thumbnail wp-image-146" title="Untangle configuration 16" src="http://rasilagarage.com/wp-content/uploads/2009/01/img_1077-150x150.jpg" alt="To make sure SSH starts next time you boot you have to type update-rc.d ssh defaults" width="150" height="150" /></a><p class="wp-caption-text">To make sure SSH starts next time you boot you have to type update-rc.d ssh defaults</p></div>
<p>Configuring Untangle is done with another wizard and it includes following steps:</p>
<p>- Agree with license, select password</p>
<p>- Select which network interface to use as external and which as internal</p>
<p>- Select router mode with NAT or transparent mode</p>
<p>Remote admin functionality is not on by default due the security reasons so in most cases you would like to put that on.</p>
<p>Putting SSH on is also a good idea and don&#8217;t forget to get SSH to the default runlevel. This is done by saying following to the terminal as a root:<br />
<code><br />
/etc/init.d/ssh start<br />
update-rc.d ssh defaults<br />
</code></p>
<p>Now that Untangle is installed and configured I would like to write few words about its capabilities.</p>
<p><strong>Using Untangle</strong></p>
<p>The beauty of Untangle is in its transparency. If you have only one computer I cannot see why you would like to install hardware based spam filter. But for network from couple to hundreds of clients PCs it is just great! After you get it up and running all the clients get the benefit of being spam free with no software installations and no new skills to learn. Sure this depends little bit of your configuration. It is going to be 100% transparent only if you will install it in front of the mail server you are using.</p>
<p>If you have a mail server outside of your network. You can use a small script called <a href="http://www.rogerbinns.com/isbg/" onclick="pageTracker._trackPageview('/outgoing/www.rogerbinns.com/isbg/?referer=');">IMAP Spam Begone</a> to sweep the spam on e.g. hourly basis. Installation is bit more difficult, I might write about it later on because it is generally useful.</p>
<p><strong>The admin utility</strong></p>
<p>Finally couple word about the admin utility. Untangle admin utility&#8217;s user interface looks like a server rack. Each component appears as a rack-mounted utility. I did not like the look of the UI for at first but it was simple to use.</p>
<p>Untangle&#8217;s spam filter is <a href="http://spamassassin.apache.org/" onclick="pageTracker._trackPageview('/outgoing/spamassassin.apache.org/?referer=');">Spamassassin</a>. The other components you can get to your rack are:</p>
<ul>
<li>Web Filter</li>
<li>Spyware Blocker</li>
<li>Protocol Control</li>
<li>Virus Blocker</li>
<li>Phish Blocker</li>
<li>IPS</li>
<li>Attack Blocker</li>
<li>Firewall</li>
<li>OpenVPN</li>
<li>Reports Routing</li>
<li>QoS</li>
</ul>
<p><strong>UPDATE: Statistics after about six weeks</strong><br />
It appears to be that after six weeks 121480 spam messages have been blocked and 1051 non-spam messages passed. Users are saying that they are virtually getting no spam at all. So I am pretty happy with it.<br />
<div id="attachment_178" class="wp-caption alignright" style="width: 310px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/02022009252.jpg"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/02022009252-300x225.jpg" alt="Untangle stats after six weeks of operation" title="Untangle stats" width="300" height="225" class="size-medium wp-image-178" /></a><p class="wp-caption-text">Untangle stats after six weeks of operation</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/how-to-save-10-hours-a-month-on-time-of-other-people-by-filtering-their-spam/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to write a simple bot that updates status to Laconi.ca</title>
		<link>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/</link>
		<comments>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/#comments</comments>
		<pubDate>Sun, 25 Jan 2009 10:36:43 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[laconi.ca]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=73</guid>
		<description><![CDATA[In my last post I wrote about Laconi.ca and mentioned that we have many bots updating Laconi.ca too. The bots are made active when some condition has met. Example: Make server running out of disk space to post an update to Laconi.ca This is actually quite useful. Sure, you can tell every service to send [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_91" class="wp-caption alignleft" style="width: 220px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/419970_front_rack_server.jpg"><img class="size-full wp-image-91 " title="Rack server" src="http://rasilagarage.com/wp-content/uploads/2009/01/419970_front_rack_server.jpg" alt="Full disk is a lousy reason to wake up in a middle of the night" width="210" height="158" /></a><p class="wp-caption-text">Full disk is a lousy reason to wake up in a middle of the night</p></div>
<p>In my <a href="http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/">last post</a> I wrote about Laconi.ca and mentioned that we have many bots updating Laconi.ca too. The bots are made active when some condition has met.</p>
<p><strong>Example: Make server running out of disk space to post an update to Laconi.ca</strong></p>
<p>This is actually quite useful. Sure, you can tell every service to send an email when something not wanted is happening but then you will have to read that mailbox too. Sending email to someone else doesn’t solve the problem. Hmm, updating to Laconi.ca doesn’t solve the problem either but it makes servers easier follow and to subscribe.</p>
<p>So here is a simple shell script:</p>
<p><span id="more-73"></span></p>
<p><code>#!/bin/sh<br />
fs=`mount|egrep '^/dev'|grep -iv cdrom| awk '{print $3}'`<br />
typeset -i thresh="96"<br />
typeset -i warn="98"<br />
for i in $fs<br />
do<br />
skip=0<br />
typeset -i used=`df -k $i|tail -n 1|awk '{print $5}'|cut -d "%" -f 1`<br />
if [ "$used" -ge "$warn" ]; then<br />
laconica.sh "1.2.3.4 server CRITICAL: filesystem $i is $used% full"<br />
fi<br />
if [ "$used" -ge "$thresh" -a "$used" -le "$warn" ]; then<br />
laconica.sh "1.2.3.4 server WARNING: filesystem $i is $used %full"<br />
fi<br />
done</code></p>
<p>I didn’t want to use cURL directly to talk to Laconi.ca so I downloaded laconica.sh from http://downloads.guillermoamaral.com/misc/laconica. Sure it uses cURL, but if I change a password no I can change it to this wrapper instead.</p>
<p>I saved the script as diskfull.sh. So lets first chmod it and then try it:</p>
<p><code>chmod 755 diskfull.sh<br />
./diskfull.sh</code></p>
<p>Laconi.ca gets an update as follows:</p>
<div id="attachment_75" class="wp-caption alignnone" style="width: 310px"><a href="http://rasilagarage.com/wp-content/uploads/2009/01/picture-3.png"><img class="size-medium wp-image-75" title="Laconi.ca bot in action" src="http://rasilagarage.com/wp-content/uploads/2009/01/picture-3-300x49.png" alt="Screenshot of Laconi.ca" width="300" height="49" /></a><p class="wp-caption-text">Screenshot of Laconi.ca</p></div>
<p>You would need schedule Cron to run the script. To do so, edit the /etc/crontab and add the following line:</p>
<p><code>31 8  * * *     root    /opt/diskfull.sh</code></p>
<p>This line will run it daily on 08:31 as root. You might want to change it. If you are not familiar with Cron <a href="http://guerrillatech.wordpress.com/2008/01/25/howto-use-cron-to-schedule-tasks/" onclick="pageTracker._trackPageview('/outgoing/guerrillatech.wordpress.com/2008/01/25/howto-use-cron-to-schedule-tasks/?referer=');">here is some help</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/how-to-write-a-simple-bot-that-updates-to-laconica/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Laconi.ca an Open Source Twitter clone behind a password and your firewall</title>
		<link>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/</link>
		<comments>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/#comments</comments>
		<pubDate>Thu, 22 Jan 2009 10:11:17 +0000</pubDate>
		<dc:creator>Tuomas Rasila</dc:creator>
				<category><![CDATA[Business]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[laconi.ca]]></category>
		<category><![CDATA[twitterific]]></category>

		<guid isPermaLink="false">http://rasilagarage.com/?p=19</guid>
		<description><![CDATA[Not familiar with Twitter? Twitter is a free social networking and micro-blogging service that allows its users to send and read other users&#8217; updates (otherwise known as tweets), which are text-based posts of up to 140 characters in length. Twitter page on Wikipedia This post covers: Why I like Laconi.ca as our internal Micro-Blogging-service How [...]]]></description>
			<content:encoded><![CDATA[<p>Not familiar with Twitter?</p>
<blockquote><p>Twitter is a free social networking and micro-blogging service that allows its users to send and read other users&#8217; updates (otherwise known as tweets), which are text-based posts of up to 140 characters in length.<br />
<a href="http://en.wikipedia.org/wiki/Twitter" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/Twitter?referer=');">Twitter page on Wikipedia</a>
</p></blockquote>
<p><strong>This post covers:</strong></p>
<ul>
<li>Why I like Laconi.ca as our internal Micro-Blogging-service</li>
<li>How to configure Laconi.ca behind password without breaking up the API functionality</li>
<li>How to set up Twitterific to work with custom Laconi.ca installation</li>
</ul>
<p><div id="attachment_31" class="wp-caption alignnone" style="width: 410px"><img src="http://rasilagarage.com/wp-content/uploads/2009/01/laconica-screenshot.jpg" alt="Laconi.ca in a browser &#038; Twitterific" title="Laconi.ca Screenshot" width="400" height="203" class="size-full wp-image-31" /><p class="wp-caption-text">Laconi.ca in a browser &#038; Twitterific</p></div><br />
<strong>Motivation</strong></p>
<p>Ok, Twitter is sweet, even a bit addictive, but not that useful in internal use of your business for couple of reasons:</p>
<ul>
<li>Privacy concerns; I know you don&#8217;t have to tweet everything in public but still; You might not want to trust any third parties</li>
<li>It is useful to have a possibility to customize your micro-blogging application, make backups and so on</li>
</ul>
<p>At first, Micro-blogging is like wiki in a way that it does not implement any kind of process. In Twitter the idea is &#8220;it&#8217;s a tool, use it as you like&#8221; This works well with Twitter.com, where all the users have their own reasons to use the service. In business however, the business has a goal and people are working to meet this goal for their common reason. Therefore a process, as loose as it might be, must be implemented.<br />
<span id="more-19"></span><br />
<strong>How and why it should be used</strong></p>
<p>We got Laconi.ca running to our office a few weeks ago. In our case we have two offices with a distance of 600 km to each other. Some people in our staff are working from home and someone is always on the road. We use Laconi.ca to keep on track where people are on what are they working with.</p>
<p>So we have two rules on how to use it:</p>
<ul>
<li>When you start to work, tell what you are going to work with</li>
<li>When you finish the day, tell when you are going to be back</li>
</ul>
<p>Nothing too complicated just two easy rules. In my opinion it works just great. Before getting Laconi.ca I made far more phone calls to people asking for these same basic questions.</p>
<p>We also have many bots updating to Laconi.ca from our project management systems, internal blog and errors &#038; warnings from servers. Generally I think you should not be worried about the amount of data because everyone doesn&#8217;t have to subscribe everything and everything does not have to be read by everyone. Still, having a possibility to subscribe a bot when needed is great.</p>
<p><strong>How to install Laconi.ca on Ubuntu and get it behind a password</strong></p>
<p>Laconi.ca installation guide can be found at <a href="http://laconi.ca/trac/wiki/Installation" onclick="pageTracker._trackPageview('/outgoing/laconi.ca/trac/wiki/Installation?referer=');">http://laconi.ca/trac/wiki/Installation</a></p>
<p>Getting Laconi.ca behind password is actually the simplest thing:</p>
<p>1) Just create .htaccess and .htpasswd file. If don&#8217;t know how <a href="http://www.javascriptkit.com/howto/htaccess3.shtml" onclick="pageTracker._trackPageview('/outgoing/www.javascriptkit.com/howto/htaccess3.shtml?referer=');">here is some help</a>.</p>
<p>2) Create the same users with the same passwords as you have in your Laconi.ca installation.</p>
<p><strong>How to make Twitterific to work with Laconi.ca</strong></p>
<p>Get <a href="http://iconfactory.com/software/twitterrific" onclick="pageTracker._trackPageview('/outgoing/iconfactory.com/software/twitterrific?referer=');">Twitterific</a></p>
<p>Open terminal and run:</p>
<p><code>defaults write com.iconfactory.Twitterrific baseUrl -string 'your-hostname/path-to-laconica/api'</code></p>
<p>The command to switch back is the following:</p>
<p><code>defaults write com.iconfactory.Twitterrific baseUrl -string 'twitter.com'</code></p>
<p>I found this tip from <a href="http://decafbad.com/blog/2008/07/18/using-twitterrific-with-identica" onclick="pageTracker._trackPageview('/outgoing/decafbad.com/blog/2008/07/18/using-twitterrific-with-identica?referer=');">Leslie Michael Orchard&#8217;s blog</a>, thank you Leslie!</p>
]]></content:encoded>
			<wfw:commentRss>http://rasilagarage.com/2009/01/laconica-an-open-source-twitter-clone-behind-a-password-and-your-firewall/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
