<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://frost.de/lifetype-1.2.2//styles/rss.css" type="text/css"?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
    xmlns:atom="http://www.w3.org/2005/Atom"
>
 <channel>
  <title>coldtobi&#039;s blog</title>
  <link>http://blog.coldtobi.de/1_coldtobis_blog</link>
  <description> Life is more than binary. 
</description>
  <pubDate>Fri, 03 Sep 2010 07:21:38 +0200</pubDate>
  <generator>http://www.lifetype.net</generator>
    <item>
   <title>Configure lighttp to simulate .htaccess rules (Deny From All)</title>
   <description>
    &lt;p&gt;
Unfortunatly, lighhtpd does not support &amp;quot;.htaccess&amp;quot; rules directly. So if you want to use a script targeted for Apache, you have to implement your own rules.
&lt;/p&gt;
&lt;p&gt;
Luckily, the most needed rule is to forbid the serving of a whole directory, the &amp;quot;Deny From All&amp;quot; rule.
&lt;/p&gt;
&lt;p&gt;
This one can be emulated within the lighttpd.con -- but you have to list every affected directory.&amp;nbsp; A tedious task to find out every .htaccess contianing the rule and then adding the path to the configuration. 
&lt;/p&gt;
&lt;p&gt;
But this can be automated:
&lt;/p&gt;
&lt;p&gt;
 <div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div>
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;#!/bin/bash&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;# run this script in the base directory of the web content&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;# give a parameter the mapping to the webroot, eg.&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;# if it is running under localhost/xyz/, say &amp;quot;/xyz/&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;found=$(find -name &amp;quot;.htaccess&amp;quot; )&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;echo $found &amp;gt;&amp;amp;2&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;for files in $found&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;do&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; f=$(echo $files |&amp;nbsp; sed -e &amp;quot;s/^\.\///&amp;quot;&amp;nbsp; -e &amp;quot;s/\.htaccess$//g&amp;quot; )&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cat $files | grep -i &amp;quot;Deny&amp;quot; | grep -i &amp;quot;from&amp;quot; | grep -i -L &amp;quot;All&amp;quot;&amp;nbsp; &lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if [[ $? -eq 0 ]]&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; then&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;# Detected deny from all in &#039; $files&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo &#039;$HTTP[&amp;quot;url&amp;quot;] =~ &amp;quot;^&#039;$1/$f&#039;&amp;quot; {&#039;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo -e &amp;quot;\\turl.access-deny = (\&amp;quot;\&amp;quot;) \\n}&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fi&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-size: xx-small; font-family: courier new,courier&quot;&gt;done&lt;/span&gt;&lt;br /&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;br /&gt;
Invoke this script in the root directory of your apache-flavoured webscript, giving it a parameter what the &amp;quot;webprefix&amp;quot; of the directory is.
&lt;/p&gt;
&lt;p&gt;
For example, if your script is located in /usr/share/squirellmail, the url is &amp;quot;http://&amp;lt;host&amp;gt;/squirrel execute it in&amp;nbsp;  /usr/share/squirellmail with the parameter &amp;quot;squirrel&amp;quot;
&lt;/p&gt;
&lt;p&gt;
The output of the script can be directly appended to the lighttpd.conf (e.g piping it with &amp;gt;&amp;gt;)
&lt;/p&gt;
&lt;p&gt;
(Note: Always check the result before applying it! The script might not find all files to block, or failing to parse more complicated rules!) 
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/286_configure_lighttp_to_simulate_htaccess_rules_deny_from_all.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/286_configure_lighttp_to_simulate_htaccess_rules_deny_from_all.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/286_configure_lighttp_to_simulate_htaccess_rules_deny_from_all.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Linux / Debian</category>
      
    <category>Tips and Tricks</category>
      
    <category>Thecus N2100</category>
         <pubDate>Sat, 19 Jun 2010 13:14:31 +0200</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>WoW Money Laundering?</title>
   <description>
    &lt;p&gt;
Today I want to share you a spam comment which was submitted some days ago. (I modified the comment and removed all external links. SPAM won&#039;t pay on this blog)
&lt;/p&gt;
&lt;p&gt;
It seems that WoW has some reached some money laundery scheme, at least with &amp;quot;virtual money.&amp;quot; I&#039;m not playing the game, but it could also be that they (gold traders?) Use some victim as money mule to hide traces? Anti-Cheat detection prevention (you know, buying gold is considered cheating). I don&#039;t know, but I think it is an interesting development, and it might make sense to use caution. Especially if this is a way to launder real money, this can cause you real trouble (this could send someone to jail, worst case. &lt;a href=&quot;http://en.wikipedia.org/wiki/IANAL&quot; target=&quot;_blank&quot;&gt;IANAL&lt;/a&gt;! ) 
&lt;/p&gt;
&lt;p&gt;
 Disclaimer: I am not a lawyer! This is not legal advice!
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt;Entire guild got &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt; . So did 5,000 other people. We got a good laugh out of &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt;. &lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt;Then reported the idiot.Over a billion Chinese, a good percentage of them I&amp;rsquo;m sure with enough creative juices to come up with something better than this crap, but I guess the good ones chose not to work for the RMT industry, so only the quasi-bots whose sole talent is copying-and-pasting are left to generate this laughable excuse of content.Well, you know the drill, kiddies. &lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt;Don&amp;rsquo;t buy &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt; from the above seller. Visiting their website might give you the keylogging booboo-jeebies.This isn&#039;t about any particular &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt; -selling site.  It&amp;rsquo;s about a common denominator - a complaint that&amp;rsquo;s cause for concern - in the several emails I received from different readers who have ordered &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt; from different sites. &lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt;In fact, it&amp;rsquo;s a scary pattern that I think all legitimate and professional gold sellers should address; otherwise their reputation could be ruined.Here&amp;rsquo;s what&amp;rsquo;s been happening:1. Customer buys &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt; from seller.2. Seller delivers. Customer gets the goodies.3. Minutes later, customer gets a tell in-game to return the &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt;. Why? &lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt;The reasons vary, ranging from &amp;quot;Blizzard has seen the transaction and you better give us back the gold so your account won&amp;rsquo;t be banned&amp;quot; to &amp;quot;Sorry I gave the gold to the wrong person, you are not my customer, please give me back the &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;wow gold&lt;/a&gt;  or else I will tell Blizzard you bought from us&amp;quot; (probably the lamest excuse in the book). What&amp;rsquo;s scary is that the toon name of the scammer telling the player to return the wow gold bears a near-resemblance to the delivery toon. Example: genuine delivery toon is named Justin&amp;hellip;and scammer toon sending the tell happens to be a J&amp;uuml;stin - with an umlaut accent.&lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	&lt;span style=&quot;font-family: verdana,geneva&quot;&gt; Pretty tricky and difficult for the player to spot the difference.I&amp;rsquo;m just wondering how the hell the scammer could know about the transaction quick enough to create a character mimicking the name of the delivery toon and in a matter of minutes, launch their attack on the poor buyer. Have those scam artists started planting spies in the usual meeting places like Ratchet and the banks of Org and Stormwind? &lt;a href=&quot;#&quot; rel=&quot;nofollow&quot;&gt;Aion gold&lt;/a&gt;  sellers, you better do something about this shirt.&lt;/span&gt;
	&lt;/p&gt;
	&lt;p&gt;
	(The text above is Comment received. It is verbatim quoted with just the external links changed to a local hook. It does not necessarly reflect coldtobi&#039;s opinion.) 
	&lt;/p&gt;
	&lt;p&gt;
	&amp;nbsp;
	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
Disclaimer: I am not a lawyer! This is not legal advice! 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp; 
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div>
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/291_wow_money_laundering.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/291_wow_money_laundering.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/291_wow_money_laundering.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Netzfunde</category>
         <pubDate>Sat, 19 Jun 2010 09:37:21 +0200</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>Samba: No mount as user.</title>
   <description>
    &lt;p&gt;
For security reasons (CVE-2009-2948) samba ceases to support setuid mount.cifs. Until at least a proper fix has been generated (saw patches for them, but at least in Debian they are not or defunc (Patches: http://archives.free.net.ph/message/20100326.142523.e959e38d.en.html, details of the problem http://www.samba.org/samba/security/CVE-2009-2948.html ) 
&lt;/p&gt;
&lt;p&gt;
(IMHO the CVE is valid, but only makes sense in an multi-user enviorment &lt;strong&gt;and&lt;/strong&gt; if you want to store your passwords in some files. Both are false for me. )&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
However, I need a working system. The other option is waiting until upstreams deciding what&#039;s better for me -- a security problem not touching my samba usage or no service at all. (Yes, I&#039;m a little upset by this -- hitten cold by this &amp;quot;improvement&amp;quot; and finding out that they indeed choosen a way to &amp;quot;fix&amp;quot; it by disabling the execution at all. When I read the CVE notice from samba, it could also be done to disable the offending &amp;quot;information leaking&amp;quot; command options when run setuid... Well.)
&lt;/p&gt;
&lt;p&gt;
Well *taking deep breath* lets stop ranting:
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
The quick-and-dirty do-as-before repair is to disable the setuid check.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
For this -- using debian apt-get source cifs-utils (also build-dependencies) and edit the mount.cifs.c file at line 88 so it reads:
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: courier new,courier&quot;&gt;#define CIFS_DISABLE_SETUID_CHECK 1&lt;br /&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
dpkg-buildpackage -us -uc
&lt;/p&gt;
&lt;p&gt;
and install the generated package, and enjoy your working-again version.
&lt;/p&gt;
&lt;p&gt;
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div>
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/290_samba_no_mount_as_user.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/290_samba_no_mount_as_user.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/290_samba_no_mount_as_user.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>General</category>
         <pubDate>Mon, 05 Apr 2010 22:48:23 +0200</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>Nice Links #1 -- How hardrives works and how they do recovery</title>
   <description>
    &lt;p&gt;
I start a new series: Nice Links: Links I came around and I want to keep / share.
&lt;/p&gt;
&lt;p&gt;
Today: Harddisks low level functionality explained, some types of errors and some approach to repair. (Interesting, but don&#039;t try this at home.) 
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://www.myharddrivedied.com/presentations_whitepaper.html&quot; target=&quot;_blank&quot;&gt;http://www.myharddrivedied.com/presentations_whitepaper.html&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
I came accross this site, as my laptop&#039;s hardrive showed&amp;nbsp; some read erros in the log, and I wanted to know what the AMNF acrconym is all about. This was the error my drive showed.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
This also reminded me to do backups ;-) 
&lt;/p&gt;
&lt;p&gt;

&lt;/p&gt;
&lt;p&gt;
As an addional link for today (contained in the original one): &lt;a href=&quot;http://hddguru.com/content/en/software/2005.10.02-MHDD/&quot; target=&quot;_blank&quot;&gt;http://hddguru.com/content/en/software/2005.10.02-MHDD/&lt;/a&gt; is a tool I needed some time earlier: Instead I tried with the OEM&#039;s tool to remap one nasty bad block -- as I found out, they are only remapped when written to it... 
&lt;/p&gt;
&lt;p&gt;
Another Xtra, link also stolen from the first site: A paper about HDD failure patterns: &lt;a href=&quot;http://labs.google.com/papers/disk_failures.pdf&quot;&gt;http://labs.google.com/papers/disk_failures.pdf&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div> 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/288_nice_links_1_--_how_hardrives_works_and_how_they_do_recovery.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/288_nice_links_1_--_how_hardrives_works_and_how_they_do_recovery.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/288_nice_links_1_--_how_hardrives_works_and_how_they_do_recovery.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Nice Links</category>
         <pubDate>Sun, 14 Mar 2010 10:07:58 +0100</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>Squirrelmail and lighttpd -- An Installation Guide --</title>
   <description>
    &lt;meta content=&quot;text/html; charset=utf-8&quot; http-equiv=&quot;CONTENT-TYPE&quot; /&gt;
&lt;title&gt;&lt;/title&gt;
&lt;meta content=&quot;OpenOffice.org 3.1  (Linux)&quot; name=&quot;GENERATOR&quot; /&gt;
&lt;style type=&quot;text/css&quot;&gt;
&lt;/style&gt;
&lt;p&gt;
&lt;img src=&quot;http://blog.coldtobi.de/gallery/1/sm_logo.jpg&quot; border=&quot;0&quot; alt=&quot;sm_logo.jpg&quot; width=&quot;324&quot; height=&quot;94&quot; align=&quot;RIGHT&quot; name=&quot;graphics1&quot; /&gt;Today
I installed the squirrel on my Thecus. The horde used before -- even
if powerful -- was just to slow to make fun. As friends told me that
the squirrel is slick and quick -- as its name suggests. (After
installation, I can confirm this) 
&lt;/p&gt;
&lt;p&gt;
The &lt;a href=&quot;http://blog.coldtobi.de/1_coldtobis_blog/archive/204_webmailer_for_the_thecus.html&quot; target=&quot;_blank&quot;&gt;squirrel&lt;/a&gt;
-- is a web interface for accessing your mail, written in PHP. It
does -- by default -- needs not to have any database. It can access
your mail both by IMAP and by POP3. 
&lt;/p&gt;
&lt;p&gt;
As my setup is not the regular &amp;quot;Apache&amp;quot; based one, it
might make sense to show how it has to be configured with lighttpd as
web server. 
&lt;/p&gt;
&lt;p&gt;
Lets start. 
&lt;/p&gt;
&lt;p&gt;
 &lt;img src=&quot;http://blog.coldtobi.de/js/tinymce/themes/advanced/images/spacer.gif&quot; border=&quot;0&quot; alt=&quot;More...&quot; width=&quot;100%&quot; height=&quot;10&quot; align=&quot;BOTTOM&quot; name=&quot;graphics2&quot; /&gt;&lt;em&gt;(Assumptions:
You have debian installed, and lighttpd is running as web server. It
is set up to run PHP scripts. This is not covered here. Well I think,
at least I once described installing debian on the Thecus... Please
use the search button...)&lt;/em&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;BTW, I use dovecot as IMAP provider. This one really pretty in
terms of configuration and speed. Also its configuration is not
explained here. &lt;/em&gt;
&lt;/p&gt;
&lt;p&gt;
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div> 
&lt;/p&gt;
&lt;p&gt;
After the message from the advertiser, now lets really start: 
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;1. Install the packages squirrelmail&lt;/strong&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;aptitude install
	squirrelmail&lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
Yes, this is why I love debian that much. One line pulls in
everything you need for a program. Nevertheless, there are some
optional plugins, which are not installed by default but available
via debian packaging system.  
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;2. Configure squirrelmail&lt;/strong&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: small&quot;&gt;&lt;strong&gt;The Tool&lt;/strong&gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;em&gt;(Note: In this guide, I will not show every configuration
option, just the most important ones. I guess you want to walk
through every option by yourself.)&lt;/em&gt; 
&lt;/p&gt;
&lt;p&gt;
The busy squirrel team supplied a tool for configuration: 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;squirrelmail-configure&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
When invoked, it will show you this menu:
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;SquirrelMail
	Configuration : Read: config.php
	(1.4.0)&lt;br /&gt;
	---------------------------------------------------------&lt;br /&gt;
	Main
	Menu --&lt;br /&gt;
	1.&amp;nbsp; Organization Preferences&lt;br /&gt;
	2.&amp;nbsp; Server
	Settings&lt;br /&gt;
	3.&amp;nbsp; Folder Defaults&lt;br /&gt;
	4.&amp;nbsp; General Options&lt;br /&gt;
	5.&amp;nbsp;
	Themes&lt;br /&gt;
	6.&amp;nbsp; Address Books&lt;br /&gt;
	7.&amp;nbsp; Message of the Day
	(MOTD)&lt;br /&gt;
	8.&amp;nbsp; Plugins&lt;br /&gt;
	9.&amp;nbsp; Database&lt;br /&gt;
	10. Languages&lt;br /&gt;
	&lt;br /&gt;
	D.&amp;nbsp;
	Set pre-defined settings for specific IMAP servers&lt;br /&gt;
	&lt;br /&gt;
	C&amp;nbsp;&amp;nbsp;
	Turn color off&lt;br /&gt;
	S&amp;nbsp;&amp;nbsp; Save data&lt;br /&gt;
	Q&amp;nbsp;&amp;nbsp;
	Quit&lt;br /&gt;
	&lt;br /&gt;
	Command &amp;gt;&amp;gt; &lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-weight: normal&quot;&gt;The program is self-explanatory.
Just enter the number before the menu and follow the on screen
instructions. &lt;/span&gt;&lt;strong&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Presetting your IMAP Server&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
Using the tool your squirrel will be ready in no-time. 
&lt;/p&gt;
&lt;p&gt;
First, you should apply some settings according your mail server
setup. This would be Command &amp;quot;D&amp;quot;: 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;SquirrelMail
	Configuration : Read:
	config.php&lt;br /&gt;
	---------------------------------------------------------&lt;br /&gt;
	While
	we have been building SquirrelMail, we have discovered
	some&lt;br /&gt;
	preferences that work better with some servers that don&#039;t
	work so&lt;br /&gt;
	well with others.&amp;nbsp; If you select your IMAP server,
	this option will&lt;br /&gt;
	set some pre-defined settings for that
	server.&lt;br /&gt;
	&lt;br /&gt;
	Please note that you will still need to go through and
	make sure&lt;br /&gt;
	everything is correct.&amp;nbsp; This does not change
	everything.&amp;nbsp; There are&lt;br /&gt;
	only a few settings that this will
	change.&lt;br /&gt;
	&lt;br /&gt;
	Please select your IMAP server:&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	bincimap&amp;nbsp;&amp;nbsp;&amp;nbsp; = Binc IMAP server&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	courier&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Courier IMAP server&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	cyrus&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Cyrus IMAP server&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	dovecot&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Dovecot Secure IMAP server&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	exchange&amp;nbsp;&amp;nbsp;&amp;nbsp; = Microsoft Exchange IMAP server&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	hmailserver = hMailServer&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; macosx&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	= Mac OS X Mailserver&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; mercury32&amp;nbsp;&amp;nbsp; =
	Mercury/32&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp; uw&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	= University of Washington&#039;s IMAP server&lt;br /&gt;
	&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;
	quit&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = Do not change
	anything&lt;br /&gt;
	Command &amp;gt;&amp;gt; &lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
In my case, I entered &amp;quot;dovecot&amp;quot;. The tool confirms what
it changed.
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;&amp;quot;2.&amp;nbsp;&amp;nbsp; Server Settings&lt;/strong&gt;&amp;quot; 
&lt;/p&gt;
&lt;p&gt;
One important menu is to check &amp;quot;Server Settings&amp;quot;. I
wrote &amp;quot;check&amp;quot; because the defaults given are  usually
fine.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
You should confirm if &lt;a href=&quot;http://www.debian.org/doc/manuals/debian-reference/ch06.en.html#_the_mail_address_configuration&quot; target=&quot;_blank&quot;&gt;/etc/mailname&lt;/a&gt;
is correct, containing the right mail domain. (Usually, on a
right-setup linux, it will. If not, I suggest you spend a while with
the debians installation guide to get it right) 
&lt;/p&gt;
&lt;p&gt;
Usually &amp;ndash; when your box is setup right &amp;ndash; you can use the SMTP
(localhost:25) to send out mails. &lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;em&gt;Again, be
referenced to some debian documentaion)&lt;/em&gt;&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Here are the setting I use: 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;Server
	Settings&lt;br /&gt;
	&lt;br /&gt;
	General&lt;br /&gt;
	-------&lt;br /&gt;
	1.&amp;nbsp; Domain&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: trim(implode(&#039;&#039;,
	file(&#039;/etc/&#039;.(file_exists(&#039;/etc/mailname&#039;)?&#039;mail&#039;:&#039;host&#039;).&#039;name&#039;)))&lt;br /&gt;
	2.&amp;nbsp;
	Invert Time&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: false&lt;br /&gt;
	3.&amp;nbsp; Sendmail or SMTP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: SMTP&lt;br /&gt;
	&lt;br /&gt;
	A.&amp;nbsp; Update IMAP Settings&amp;nbsp;&amp;nbsp; :
	localhost:143 (dovecot)&lt;br /&gt;
	B.&amp;nbsp; Update SMTP Settings&amp;nbsp;&amp;nbsp;
	: localhost:25&lt;/span&gt;&lt;/span&gt;&amp;nbsp; 
&lt;/blockquote&gt;
&lt;p&gt;
&amp;nbsp;&lt;strong&gt;&lt;br /&gt;
&amp;nbsp; Global Address Book &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
Squirrelmail also allows you to have a global address book,
optionally writable by all your users. To use this feature, first you
have to enable it via the options in &amp;quot;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;6.&amp;nbsp;
Address Books&amp;quot;.:&lt;/span&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;Address
	Books&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;1.&amp;nbsp;
	Change LDAP Servers&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;2.&amp;nbsp;
	Use Javascript Address Book Search&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: false&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;3.&amp;nbsp;
	Global file address book&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: /var/lib/squirrelmail/globladrbook/adr.csv&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;4.&amp;nbsp;
	Allow writing into global file address book : true&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;5.&amp;nbsp;
	Allow listing of global file address book&amp;nbsp;&amp;nbsp; : true&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;6.&amp;nbsp;
	Allowed address book line length&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	: 2048&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;R&amp;nbsp;&amp;nbsp;
	Return to Main Menu&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;C&amp;nbsp;&amp;nbsp;
	Turn color off&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;br /&gt;
	&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;S&amp;nbsp;&amp;nbsp;
	Save data&lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
If you have an LDAP, you can use it here. For me LDAP is to way to
much (and also read-only), I go with the &amp;quot;global file address
book&amp;quot;. 
&lt;/p&gt;
&lt;p&gt;
To do this, select &amp;quot;3&amp;quot; and enter the file-name including
path for the file where the addresses should be stored.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
Now you have to create the path and the file by yourself,
adjusting the permissions: &lt;em&gt;(adapt to the paths you&#039;re using)&lt;/em&gt; 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;mkdir
	-p&amp;nbsp; /var/lib/squirrelmail/&lt;br /&gt;
	touch
	/var/lib/squirrelmail/adr.csv&lt;br /&gt;
	chown root:www-data
	/var/lib/squirrelmail/&lt;br /&gt;
	chown www-data:www-data
	/var/lib/squirrelmail/adr.csv&lt;br /&gt;
	chmod 0770 /var/lib/squirrelmail/
	/var/lib/squirrelmail/adr.csv&lt;/span&gt;&lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;strong&gt;Plugins&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
Squirrelmail has a &lt;a href=&quot;http://squirrelmail.org/plugins.php&quot; target=&quot;_blank&quot;&gt;lots
of plugins&lt;/a&gt;. Some of them are shipped already with the base
version.&amp;nbsp; Once installed, stop by the configuration option &amp;quot;8&amp;quot;
and select everything you like. 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Saving &amp;amp; Testing&lt;/strong&gt;&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
If you are done configuring, don&#039;t forget to save. After you quit,
squirrelmail tells you that you should test your configuration: &amp;nbsp;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;Exiting
	conf.pl.&lt;br /&gt;
	You might want to test your configuration by browsing
	to&lt;br /&gt;
	http://your-squirrelmail-location/src/configtest.php&lt;br /&gt;
	Happy
	SquirrelMailing! &lt;/span&gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: x-small&quot;&gt;But we are not yet ready: The lighttpd is not set up
to serve for the squirrel.&amp;nbsp; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;3. Configure lighttpd&lt;/strong&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p&gt;
Lighttpd does not yet know that it also should help you reading
your mail. This is next. 
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;blockquote style=&quot;margin-left: 0in&quot; style=&quot;margin-left: 0in&quot;&gt;
	Open
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;/&lt;/span&gt;&lt;/span&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;&lt;span style=&quot;font-size: small&quot;&gt;etc/lighttpd/lighttpd.conf.
	M&lt;/span&gt;&lt;/span&gt;aybe around line175, add the &lt;span style=&quot;color: #ff0000&quot;&gt;(red)
	section &lt;/span&gt;&lt;span style=&quot;color: #000000&quot;&gt;shown below: This will tell the
	web server to which &amp;ldquo;directory&amp;rdquo; it should map the squirrel.  &lt;/span&gt;(My
	setup maps the reader to the &amp;quot;http://example.com/squirrel&amp;quot;.)
&lt;/blockquote&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;####
	handle Debian Policy Manual, Section 11.5. urls&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;##
	by default allow them only from localhost&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;##
	(This must come last due to #445459)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;##
	Note: =~ &amp;quot;127.0.0.1&amp;quot; works with ipv6 enabled, whereas ==
	&amp;quot;127.0.0.1&amp;quot; doesn&#039;t&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;$HTTP[&amp;quot;remoteip&amp;quot;]
	=~ &amp;quot;127.0.0.1&amp;quot; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;alias.url +=
	(&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&amp;quot;/doc/&amp;quot;
	=&amp;gt; &amp;quot;/usr/share/doc/&amp;quot;,&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&amp;quot;/images/&amp;quot;
	=&amp;gt; &amp;quot;/usr/share/images/&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;$HTTP[&amp;quot;url&amp;quot;]
	=~ &amp;quot;^/doc/|^/images/&amp;quot; {&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;dir-listing.activate
	= &amp;quot;enable&amp;quot;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;br /&gt;
	&lt;span style=&quot;color: #ff0000&quot;&gt;&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;span style=&quot;background: #ffffff none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous&quot;&gt;#
	For squirrelmail&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
	&lt;span style=&quot;color: #ff0000&quot;&gt;&lt;span style=&quot;font-family: comic sans ms,sans-serif&quot;&gt;&lt;span style=&quot;font-size: xx-small&quot;&gt;&lt;span style=&quot;background: #ffffff none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous&quot;&gt;alias.url
	+= (&amp;quot;/squirrel/&amp;quot; =&amp;gt; &amp;quot;/usr/share/squirrelmail/&amp;quot;
	)&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; 
&lt;/blockquote&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: small&quot;&gt;&lt;strong&gt;Check that out!&amp;nbsp;&lt;/strong&gt;&lt;/span&gt; 
&lt;/p&gt;
&lt;p&gt;
Done? Reload lighty&#039;s configuration (invoke-rc.d lighttpd reload)
and open up&amp;nbsp; a browser to check your configuration..&amp;nbsp;
Remember, it told us to load
&lt;span style=&quot;font-family: courier new,courier&quot;&gt;http://your-squirrelmail-location/src/configtest.php.&lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
Maybe it finds some non-perfect PHP setting,&amp;nbsp; some tweaks,
etc. The page is very verbatim, so fixing them should be not a
problem. (I had to switch off two fetures in /etc/php5/cgi/php.ini)
&lt;/p&gt;
&lt;p&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;
But eventually, you will see&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;Congratulations, your
SquirrelMail setup looks fine to me!&lt;/span&gt; &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
and can start using your squirrel. 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: medium&quot;&gt;&lt;strong&gt;Follow Up&lt;/strong&gt;&lt;/span&gt;: Fixing htaccess for lighttpd&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
Unfortunatly, lighttpd does not support .htaccess files. Squirrelmail does not depend on the support of these files, but protects source code files from being served by the web server. Even if squirrelsmail&#039;s developer are comortable with this (see quote), I&#039;d prefer not to serve these files.&amp;nbsp; 
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;p&gt;
	Only a small subset of the SquirrelMail source code needs to be directly
	accessible to users&#039; browsers.  The rest of the source code is used internally
	by SquirrelMail.  Leaving the entire source tree open to outside access is
	not a problem or vulnerability, but some attackers have been known to snoop
	for old versions of SquirrelMail by trying to inspect things such as the
	ChangeLog file.  If you want to employ the maximum level of protection against
	snoops and would-be attackers, you can make use of the &lt;span style=&quot;font-family: courier new,courier&quot;&gt;.htaccess&lt;/span&gt; files that
	come with the SquirrelMail source code by adding
	&amp;quot;&lt;span style=&quot;font-family: courier new,courier&quot;&gt;AllowOverride AuthConfig&lt;/span&gt;&amp;quot; to the Directory settings for
	SquirrelMail in your Apache configuration file (if using the Apache web server),
	or you can use the Directory settings suggested in the
	&lt;a href=&quot;http://squirrelmail.org/docs/admin/admin-3.html#apache_configuration&quot;&gt;Apache configuration&lt;/a&gt; section below. 
	&lt;/p&gt;
	&lt;p&gt;
	[Quoted from &lt;a href=&quot;http://squirrelmail.org/docs/admin/admin-3.html&quot; target=&quot;_blank&quot;&gt;here&lt;/a&gt;]
	&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;
In an follow up article, I will describe how you simulate the .htaccess with lighttpd&#039;s mod_access -- at least the &amp;quot;Deny from All&amp;quot; rule.&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
So lets close for today with a word from the advertiser&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div> 
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-size: medium&quot;&gt;Update:&amp;nbsp;&lt;/span&gt; 
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://blog.coldtobi.de/1_coldtobis_blog/archive/286_configure_lighttp_to_simulate_htaccess_rules_deny_from_all.html&quot;&gt;The follow up is now online. &lt;/a&gt;
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/285_squirrelmail_and_lighttpd_--_an_installation_guide_--.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/285_squirrelmail_and_lighttpd_--_an_installation_guide_--.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/285_squirrelmail_and_lighttpd_--_an_installation_guide_--.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Linux / Debian</category>
      
    <category>Tips and Tricks</category>
      
    <category>Thecus N2100</category>
         <pubDate>Sat, 09 Jan 2010 21:57:45 +0100</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>Link Crosscompiling</title>
   <description>
    &lt;p&gt;
In case I port solarpowerlog to arm hardware.... 
&lt;/p&gt;
&lt;p&gt;
http://pocoproject.org/wiki/index.php/CrossCompiling
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/284_link_crosscompiling.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/284_link_crosscompiling.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/284_link_crosscompiling.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Linux / Debian</category>
         <pubDate>Thu, 07 Jan 2010 20:59:44 +0100</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
    <item>
   <title>git cheat sheet</title>
   <description>
    &lt;p&gt;
&lt;strong&gt;A Cheat-sheet for not-so-often used or some command I frequently forget....&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
Some commands you just use too seldom. When you need them, you just thinking how you did it before... So I need a cheat sheet to note these down...&amp;nbsp; 
&lt;/p&gt;

&lt;p&gt;
<div style="border: thin dotted grey;float:left; margin: 0 2em 0 10px; padding: -1em 5px 0 5px"><div style="font-size:x-small; margin: -5px 0 1 0;">Anzeige</div>
<div>
<script type="text/javascript"><!--
var random_number = Math.random();
if (random_number < .33)
{
google_ad_client = "pub-2920186055509438";
//336x280, Erstellt 10.12.07
google_ad_slot = "0082973187";
google_ad_width = 336;
google_ad_height = 280;
}
else if (random_number < .67)
{
google_ad_client = "pub-2920186055509438";
/* 200x200, created 4/5/09 */
google_ad_slot = "5719076919";
google_ad_width = 200;
google_ad_height = 200;
} 
else
{
google_ad_client = "pub-2920186055509438";
//Alternative C für ASIP
google_ad_slot = "2886945764";
google_ad_width = 300;
google_ad_height = 250;
}
//--></script>
<script type="text/javascript"     src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</div>
</div>
<div style="margin-bottom:em; float:left">  </div> 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Push to a remote branch (warning not tested)&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;span style=&quot;font-family: courier new,courier&quot;&gt;git push . origin/&amp;lt;remotebranch&amp;gt; &lt;/span&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;
Push one branch to another remote one (for example pushing it from the bleeding edge &amp;quot;trunk&amp;quot; to a staging area called &amp;quot;testing.&amp;quot; 
&lt;/strong&gt;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;
	git push origin trunk:testing&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
explained: git push origin &amp;lt;from-branch&amp;gt;:&amp;lt;to-branch&amp;gt; 
&lt;/p&gt;
&lt;p&gt;
Afterwards, the branches are at&amp;nbsp; the same commit.&amp;nbsp; 
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Checkout tracked branches&lt;/strong&gt;&amp;nbsp;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;git checkout --track -b&amp;nbsp;  &amp;lt;local&amp;gt; &amp;lt;remote&amp;gt;/&amp;lt;remotebranch&amp;gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
e.g git checkout --track -b testing origin/testing
&lt;/p&gt;
&lt;p&gt;
of -- to delete and recreate it --&amp;nbsp;
&lt;/p&gt;
&lt;blockquote&gt;
	&lt;span style=&quot;font-family: courier new,courier&quot;&gt;git branch -f &amp;lt;local&amp;gt; origin/&amp;lt;remotebranch&amp;gt;&lt;/span&gt;
&lt;/blockquote&gt;
&lt;p&gt;
&lt;strong&gt;A Git workflow explained&lt;/strong&gt; 
&lt;/p&gt;
&lt;p&gt;
This description is targeted for workgroups, but also works if you are alone on the project and&amp;nbsp; want to use feature-branches dedicated for some well feature...
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html&quot; target=&quot;_blank&quot;&gt;http://reinh.com/blog/2009/03/02/a-git-workflow-for-agile-teams.html&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;
Link: Clone all branches 
&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;&lt;a href=&quot;http://stackoverflow.com/questions/67699/how-do-i-clone-all-remote-branches-with-git &quot; target=&quot;_blank&quot;&gt;http://stackoverflow.com/questions/67699/how-do-i-clone-all-remote-branches-with-git
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Link: Best practive for commit messages &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://www.tpope.net/node/106 &quot; target=&quot;_blank&quot;&gt;http://www.tpope.net/node/106
&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Link: Gitosis -- add a new repository&lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://bogdan.org.ua/2009/02/20/gitosis-how-to-add-new-repository.html&quot; target=&quot;_blank&quot;&gt;http://bogdan.org.ua/2009/02/20/gitosis-how-to-add-new-repository.html&lt;/a&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;strong&gt;Link: Gitosis -- Git and Gitosis under windows (windows users as client) &lt;/strong&gt;
&lt;/p&gt;
&lt;p&gt;
&lt;a href=&quot;http://blog.dmbcllc.com/2010/04/22/git-gitosis-putty-and-windows/&quot; target=&quot;_blank&quot;&gt;http://blog.dmbcllc.com/2010/04/22/git-gitosis-putty-and-windows/&lt;/a&gt; 
&lt;/p&gt;
   </description>
   <link>http://blog.coldtobi.de/1_coldtobis_blog/archive/272_git_cheat_sheet.html</link>
   <comments>http://blog.coldtobi.de/1_coldtobis_blog/archive/272_git_cheat_sheet.html</comments>
   <guid>http://blog.coldtobi.de/1_coldtobis_blog/archive/272_git_cheat_sheet.html</guid>
      <dc:creator>coldtobi</dc:creator>
      
    <category>Linux / Debian</category>
         <pubDate>Thu, 07 Jan 2010 13:01:35 +0100</pubDate>
   <source url="http://blog.coldtobi.de/1_coldtobis_blog/feeds/rss20">coldtobi&#039;s blog</source>
     </item>
   </channel>
</rss>