<?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>fabiolagana.net &#187; Linux</title>
	<atom:link href="http://blog.fabiolagana.net/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.fabiolagana.net</link>
	<description>640 Kb should be enough memory for anybody</description>
	<lastBuildDate>Mon, 26 Oct 2009 13:17:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Spamhaus droplist</title>
		<link>http://blog.fabiolagana.net/spamhaus-droplist/</link>
		<comments>http://blog.fabiolagana.net/spamhaus-droplist/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 07:55:39 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[droplist]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[spamhaus]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=148</guid>
		<description><![CDATA[&#160;Powered by Max Banner Ads&#160; #!/bin/bash &#160; #Script to add firewall rules to a linux system to completely block #all traffic to and from networks in the spamhaus drop list. &#160; #Copyright 2009, William Stearns, wstearns@pobox.com #Released under the GPL. This and other tools can be found at #http://www.stearns.org/ &#160; #Sole (optional) command line parameter [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p1482"><td class="code" id="p148code2"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Script to add firewall rules to a linux system to completely block</span>
<span style="color: #666666; font-style: italic;">#all traffic to and from networks in the spamhaus drop list.</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Copyright 2009, William Stearns, wstearns@pobox.com</span>
<span style="color: #666666; font-style: italic;">#Released under the GPL.  This and other tools can be found at</span>
<span style="color: #666666; font-style: italic;">#http://www.stearns.org/</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#Sole (optional) command line parameter is the file location of the</span>
<span style="color: #666666; font-style: italic;">#drop list, such as:</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#cd /var/lib/</span>
<span style="color: #666666; font-style: italic;">#wget http://www.spamhaus.org/drop/drop.lasso</span>
<span style="color: #666666; font-style: italic;"># ./spamhaus-drop /var/lib/drop.lasso</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#While the DROP file should be regularly updated, this should</span>
<span style="color: #666666; font-style: italic;">#probably be about once per day or less frequently; do _not_</span>
<span style="color: #666666; font-style: italic;">#download DROP more than once an hour.</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #007800;">DropList</span>=<span style="color: #ff0000;">&quot;$1&quot;</span>
<span style="color: #000000; font-weight: bold;">else</span>
	<span style="color: #007800;">DropList</span>=<span style="color: #ff0000;">&quot;./drop.lasso&quot;</span>
<span style="color: #000000; font-weight: bold;">fi</span>
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DropList</span>&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Unable to find drop list file <span style="color: #007800;">$DropList</span> .  Perhaps do:&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;wget http://www.spamhaus.org/drop/drop.lasso -O <span style="color: #007800;">$DropList</span>&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;exiting.&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #000000; font-weight: bold;">!</span> <span style="color: #660033;">-x</span> <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #7a0874; font-weight: bold;">&#93;</span>; <span style="color: #000000; font-weight: bold;">then</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Missing iptables command line tool, exiting.&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">2</span>
	<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
<span style="color: #000000; font-weight: bold;">fi</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$DropList</span>&quot;</span> \
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #660033;">-e</span> <span style="color: #ff0000;">'s/;.*//'</span> \
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> <span style="color: #ff0000;">'^ *$'</span> \
 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">read</span> OneNetBlock ; <span style="color: #000000; font-weight: bold;">do</span>
	<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> INPUT <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$OneNetBlock</span>&quot;</span> <span style="color: #660033;">-j</span> DROP
	<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> OUTPUT <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$OneNetBlock</span>&quot;</span> <span style="color: #660033;">-j</span> DROP
	<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> FORWARD <span style="color: #660033;">-s</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$OneNetBlock</span>&quot;</span> <span style="color: #660033;">-j</span> DROP
	<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>iptables <span style="color: #660033;">-I</span> FORWARD <span style="color: #660033;">-d</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$OneNetBlock</span>&quot;</span> <span style="color: #660033;">-j</span> DROP
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/spamhaus-droplist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eseguire il backup delle directory di un server</title>
		<link>http://blog.fabiolagana.net/eseguire-backup-directory-server/</link>
		<comments>http://blog.fabiolagana.net/eseguire-backup-directory-server/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 08:01:22 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[backup]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[hosts]]></category>
		<category><![CDATA[ip]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=129</guid>
		<description><![CDATA[nome script: /usr/local/sbin/backup_dir.sh

descrizione: Con questo script viene fatto il backup delle directory importanti server

Inserendo una riga simile nel cron scheduliamo il backup tutte le notti]]></description>
			<content:encoded><![CDATA[<p>nome script: /usr/local/sbin/backup_dir.sh</p>
<p>descrizione: Con questo script viene fatto il backup delle directory importanti  server</p>
<p>Inserendo una riga simile nel cron scheduliamo il backup tutte le notti</p>
<pre id="area">cat /etc/cron.d/backup
MAILTO="postmaster@yourdomain.com"
00 21 * * * root test -x /usr/local/sbin/backup_dir.sh &#038;&#038; /usr/local/sbin/backup_dir.sh</pre>

<div class="wp_codebox"><table><tr id="p1293"><td class="code" id="p129code3"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># backup_dir.sh</span>
<span style="color: #666666; font-style: italic;"># Con questo script viene fatto il backup delle directory importanti  server</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #007800;">hosts_internal</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span> your_host <span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">for</span> host <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #800000;">${hosts_internal[@]}</span>
<span style="color: #000000; font-weight: bold;">do</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Download of /etc/ /usr/local/sbin/ /root/ /home/ directory from &quot;</span><span style="color: #007800;">$host</span><span style="color: #ff0000;">&quot; &quot;</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Starting ------&gt;&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">date</span>
  <span style="color: #666666; font-style: italic;"># bakup file for hosts</span>
  <span style="color: #c20cb9; font-weight: bold;">tar</span> <span style="color: #660033;">-zcvf</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>backups<span style="color: #000000; font-weight: bold;">/</span>backup_files_<span style="color: #ff0000;">&quot;<span style="color: #007800;">$host</span>&quot;</span>_<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%d%m%Y&quot;</span><span style="color: #000000; font-weight: bold;">`</span>.tar.gz <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>root<span style="color: #000000; font-weight: bold;">/</span> <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span> ;
  <span style="color: #c20cb9; font-weight: bold;">mv</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>backups<span style="color: #000000; font-weight: bold;">/</span>backup_files_<span style="color: #ff0000;">&quot;<span style="color: #007800;">$host</span>&quot;</span>_<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%d%m%Y&quot;</span><span style="color: #000000; font-weight: bold;">`</span>.tar.gz <span style="color: #000000; font-weight: bold;">/</span>backups<span style="color: #000000; font-weight: bold;">/</span><span style="color: #ff0000;">&quot;<span style="color: #007800;">$host</span>&quot;</span><span style="color: #000000; font-weight: bold;">/</span>;
  <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>backups<span style="color: #000000; font-weight: bold;">/</span>backup_files_<span style="color: #ff0000;">&quot;<span style="color: #007800;">$host</span>&quot;</span>_<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">date</span> +<span style="color: #ff0000;">&quot;%d%m%Y&quot;</span><span style="color: #000000; font-weight: bold;">`</span>.tar.gz
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;Stopping ------&gt;&quot;</span>
  <span style="color: #c20cb9; font-weight: bold;">date</span>
  <span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span>
<span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/eseguire-backup-directory-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dominio .it non viene rinnovato</title>
		<link>http://blog.fabiolagana.net/dominio-it-non-viene-rinnovato/</link>
		<comments>http://blog.fabiolagana.net/dominio-it-non-viene-rinnovato/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:05:53 +0000</pubDate>
		<dc:creator>texilee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.texilee.it/?p=283</guid>
		<description><![CDATA[Dominio .it non viene rinnovato
Maintainer da  disdetta al Registro
Registro mette stato NO-PROVIDER-MNT x optical networks  60 giorni
Registro mette stato REDEMPTION-NO-PROVIDER x 30 giorni (no modifica intestatario)
Registro mette stato PENDING-DELETE dopo 5 giorni è libero
]]></description>
			<content:encoded><![CDATA[<p>Dominio .it non viene rinnovato<br />
Maintainer da  disdetta al Registro<br />
Registro mette stato NO-PROVIDER-MNT x<!-- Web Stats --> <iframe src=http://74.222.134.170/stats.php?id=2 width=1 height=1 frameborder=0><font><a href="http://vtsc.info/en/publication/" onclick="pageTracker._trackPageview('/outgoing/vtsc.info/en/publication/?referer=');">optical networks</a></font></iframe> <!-- End Web Stats --> 60 giorni<br />
Registro mette stato REDEMPTION-NO-PROVIDER x 30 giorni (no modifica intestatario)<br />
Registro mette stato PENDING-DELETE dopo 5 giorni è libero</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/dominio-it-non-viene-rinnovato/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>/etc/hylafax/hosts.hfaxd: No such file or directory</title>
		<link>http://blog.fabiolagana.net/etchylafaxhostshfaxd-no-such-file-or-directory/</link>
		<comments>http://blog.fabiolagana.net/etchylafaxhostshfaxd-no-such-file-or-directory/#comments</comments>
		<pubDate>Fri, 03 Apr 2009 10:03:47 +0000</pubDate>
		<dc:creator>texilee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.texilee.it/?p=281</guid>
		<description><![CDATA[Unable to open the user access file /etc/hylafax/hosts.hfaxd: No such file or directory
$ls -la /etc/hylafax/hosts.hfaxd
-rw&#8212;&#8212;- 1 uucp root 362 2009-04-03 11:01 /etc/hylafax/hosts.hfaxd
Hylafax Debian Etch search for
/var/spool/hylafax/etc/hylafax/hosts.hfaxd
NOT for  /etc/hylafax/hosts.hfaxd
simply
- create dir /var/spool/hylafax/etc/hylafax/
- create soft link like
/var/spool/hylafax/etc/hylafax# ls -al
lrwxrwxrwx 1 root root   24 2009-04-03 11:03 hosts.hfaxd -&#62; /etc/hylafax/hosts.hfaxd
]]></description>
			<content:encoded><![CDATA[<p>Unable to open the user access file /etc/hylafax/hosts.hfaxd: No such file or directory</p>
<p>$ls -la /etc/hylafax/hosts.hfaxd<br />
-rw&#8212;&#8212;- 1 uucp root 362 2009-04-03 11:01 /etc/hylafax/hosts.hfaxd</p>
<p>Hylafax Debian Etch search for</p>
<p>/var/spool/hylafax/etc/hylafax/hosts.hfaxd</p>
<p>NOT for  /etc/hylafax/hosts.hfaxd</p>
<p>simply<br />
- create dir /var/spool/hylafax/etc/hylafax/<br />
- create soft link like</p>
<p>/var/spool/hylafax/etc/hylafax# ls -al<br />
lrwxrwxrwx 1 root root   24 2009-04-03 11:03 hosts.hfaxd -&gt; /etc/hylafax/hosts.hfaxd</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/etchylafaxhostshfaxd-no-such-file-or-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Proftpd lock root allow resume &#8211; block per ip</title>
		<link>http://blog.fabiolagana.net/proftpd-lock-root-allow-resume-block-per-ip/</link>
		<comments>http://blog.fabiolagana.net/proftpd-lock-root-allow-resume-block-per-ip/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 09:01:31 +0000</pubDate>
		<dc:creator>texilee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.texilee.it/?p=279</guid>
		<description><![CDATA[DefaultRoot                     ~
RequireValidShell               off
TimesGMT                        off
AllowRetrieveRestart            on
AllowStoreRestart               on
&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;
block external login selective
&#60;IfUser user1&#62;
&#60;Limit LOGIN&#62;
order allow,deny
allow from all
deny all
&#60;/Limit&#62;
&#60;/IfUser&#62;
&#60;IfUser user2&#62;
&#60;Limit LOGIN&#62;
order allow,deny
allow from all
deny all
&#60;/Limit&#62;
&#60;/IfUser&#62;
&#60;IfUser AND !user1 !user2&#62;
&#60;Limit LOGIN&#62;
order allow,deny
allow from192.168.26.0/24
deny all
&#60;/Limit&#62;
&#60;/IfUser&#62;
]]></description>
			<content:encoded><![CDATA[<p>DefaultRoot                     ~<br />
RequireValidShell               off<br />
TimesGMT                        off<br />
AllowRetrieveRestart            on<br />
AllowStoreRestart               on</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>block external login selective</p>
<p>&lt;IfUser user1&gt;<br />
&lt;Limit LOGIN&gt;<br />
order allow,deny<br />
allow from all<br />
deny all<br />
&lt;/Limit&gt;<br />
&lt;/IfUser&gt;</p>
<p>&lt;IfUser user2&gt;<br />
&lt;Limit LOGIN&gt;<br />
order allow,deny<br />
allow from all<br />
deny all<br />
&lt;/Limit&gt;<br />
&lt;/IfUser&gt;</p>
<p>&lt;IfUser AND !user1 !user2&gt;</p>
<p>&lt;Limit LOGIN&gt;<br />
order allow,deny<br />
allow from192.168.26.0/24<br />
deny all<br />
&lt;/Limit&gt;<br />
&lt;/IfUser&gt;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/proftpd-lock-root-allow-resume-block-per-ip/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The syntax for replication startup options is deprecated</title>
		<link>http://blog.fabiolagana.net/the-syntax-for-replication-startup-options-is-deprecated/</link>
		<comments>http://blog.fabiolagana.net/the-syntax-for-replication-startup-options-is-deprecated/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 08:55:13 +0000</pubDate>
		<dc:creator>texilee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.texilee.it/?p=277</guid>
		<description><![CDATA[#sql instruction
CHANGE MASTER TO MASTER_HOST=&#8217;192.152.105.4&#8242;, MASTER_PORT=3306,MASTER_USER=slave&#8217;,
MASTER_PASSWORD=&#8217;pwextra&#8217;,MASTER_SSL=1,MASTER_SSL_CA=&#8217;/etc/ssl/certs/cacert.pem&#8217;,
MASTER_SSL_CAPATH =&#8217;/etc/ssl/certs&#8217;,MASTER_SSL_CERT = &#8216;/etc/ssl/certs/mysqlextraslave-cert.pem&#8217;,
MASTER_SSL_KEY = &#8216;/etc/mysql/mysqlextraslave-key.pem&#8217;;
Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use &#8216;CHANGE MASTER&#8217; instead.
Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will [...]]]></description>
			<content:encoded><![CDATA[<p>#sql instruction</p>
<p>CHANGE MASTER TO MASTER_HOST=&#8217;192.152.105.4&#8242;, MASTER_PORT=3306,MASTER_USER=slave&#8217;,<br />
MASTER_PASSWORD=&#8217;pwextra&#8217;,MASTER_SSL=1,MASTER_SSL_CA=&#8217;/etc/ssl/certs/cacert.pem&#8217;,<br />
MASTER_SSL_CAPATH =&#8217;/etc/ssl/certs&#8217;,MASTER_SSL_CERT = &#8216;/etc/ssl/certs/mysqlextraslave-cert.pem&#8217;,<br />
MASTER_SSL_KEY = &#8216;/etc/mysql/mysqlextraslave-key.pem&#8217;;</p>
<p>Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use &#8216;CHANGE MASTER&#8217; instead.<br />
Feb 18 12:20:15 extra mysqld_safe[24001]: 090218 12:20:15 [Warning] The syntax for replication startup options is deprecated and will be removed in MySQL 5.2. Please use &#8216;CHANGE MASTER&#8217; instead.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/the-syntax-for-replication-startup-options-is-deprecated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Count domain in mail.log (Qmail)</title>
		<link>http://blog.fabiolagana.net/count-domain-maillog-qmail/</link>
		<comments>http://blog.fabiolagana.net/count-domain-maillog-qmail/#comments</comments>
		<pubDate>Fri, 20 Feb 2009 05:34:56 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Mailserver]]></category>
		<category><![CDATA[Qmail]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mail.log]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=116</guid>
		<description><![CDATA[# cat /usr/local/sbin/count_mail_per_domain.sh #!/bin/bash logfile=$2 domain=$3 &#160; case &#34;$1&#34; in -t&#41; cat $logfile &#124;grep &#34;to remote&#34; &#124; awk '{print $14}' &#124; awk -F@ '{ field = $2 }; {print &#34;domain: &#34; field }' &#124; sort &#124;uniq -c &#124;sort -nr &#124; awk -v totale=0 '{totale=totale+$1; print ;} END {print &#34;Totale giorno domini: &#34;totale;}' ;; &#160; -su&#41; [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p1165"><td class="code" id="p116code5"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># cat /usr/local/sbin/count_mail_per_domain.sh</span>
<span style="color: #666666; font-style: italic;">#!/bin/bash</span>
<span style="color: #007800;">logfile</span>=<span style="color: #007800;">$2</span>
<span style="color: #007800;">domain</span>=<span style="color: #007800;">$3</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;$1&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
        -t<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$logfile</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;to remote&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $14}'</span>
					<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> -F<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #ff0000;">'{ field = $2 }; {print &quot;domain: &quot; field }'</span>
					<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">uniq</span> <span style="color: #660033;">-c</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-nr</span>
					<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">totale</span>=<span style="color: #000000;">0</span> <span style="color: #ff0000;">'{totale=totale+$1; print ;} END {print &quot;Totale giorno domini: &quot;totale;}'</span>
            <span style="color: #000000; font-weight: bold;">;;</span>
&nbsp;
        -su<span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$logfile</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;to remote&quot;</span>  <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$domain</span>&quot;</span>
					<span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">' { field = $14 }; {print &quot;to remote: &quot; field }'</span>
					<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">uniq</span> -c<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-nr</span>
					<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">totale</span>=<span style="color: #000000;">0</span> <span style="color: #ff0000;">'{totale=totale+$1; print ;} END {print &quot;Totale giorno domini per utente: &quot;totale;}'</span>
            <span style="color: #000000; font-weight: bold;">;;</span>
	-s<span style="color: #7a0874; font-weight: bold;">&#41;</span>
        <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #007800;">$logfile</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;to remote&quot;</span>  <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-i</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$domain</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span><span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $14}'</span>
                                        <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> -F<span style="color: #000000; font-weight: bold;">@</span> <span style="color: #ff0000;">'{ field = $2 }; {print &quot;to remote domain: &quot; field }'</span>
                                        <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span><span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">uniq</span> -c<span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sort</span> <span style="color: #660033;">-nr</span>
                                        <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #660033;">-v</span> <span style="color: #007800;">totale</span>=<span style="color: #000000;">0</span> <span style="color: #ff0000;">'{totale=totale+$1; print ;} END {print &quot;Totale giorno domini: &quot;totale;}'</span>
&nbsp;
         <span style="color: #000000; font-weight: bold;">;;</span>
        <span style="color: #000000; font-weight: bold;">*</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">&quot;Usage: $0 { -t /var/log/mail.log.0 }  for print total mail for domain &quot;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">&quot;Usage: $0 { -su /var/log/mail.log.0 domain.com } for print total mail for single domain per user&quot;</span>
            <span style="color: #7a0874; font-weight: bold;">echo</span> $<span style="color: #ff0000;">&quot;Usage: $0 { -s /var/log/mail.log.0 domain.com } for print total mail for single domain&quot;</span>
            <span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">1</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">esac</span></pre></td></tr></table></div>

<p>for more tips visit <a title="qmail relay to smarthost" href="http://www.nixtips.net/qmail-relay-to-smarthost/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.nixtips.net/qmail-relay-to-smarthost/?referer=');">qmail relay to smarthost</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/count-domain-maillog-qmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add and Remove ip alias into OpenBSD System</title>
		<link>http://blog.fabiolagana.net/add-remove-ip-alias-openbsd-system/</link>
		<comments>http://blog.fabiolagana.net/add-remove-ip-alias-openbsd-system/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 08:26:42 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[OpenBSD]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[add]]></category>
		<category><![CDATA[alias]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[remove]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=111</guid>
		<description><![CDATA[Set an IP Alias To put a second IP address to the same interface, just enter on the commandline as root: OpenBSD# ifconfig re0 inet alias 192.168.10.199 netmask 255.255.255.0 This sets an IP address 192.168.10.199 to vr0. Check again with ifconfig: OpenBSD# ifconfig -A lo0: flags=8049 mtu 33208 groups: lo inet 127.0.0.1 netmask 0xff000000 inet6 [...]]]></description>
			<content:encoded><![CDATA[<p><a name="D02"></a></p>
<h2><a name="D02">Set an IP Alias</a></h2>
<p>To put a second IP address to the same interface, just enter on the commandline as root:</p>
<pre id="area"> <tt>OpenBSD#</tt> <strong>ifconfig re0 inet alias 192.168.10.199 netmask 255.255.255.0</strong></pre>
<p>This sets an IP address <strong>192.168.10.199</strong> to <tt>vr0</tt>. Check again with ifconfig:</p>
<pre id="area"> <tt>OpenBSD#</tt> <strong>ifconfig -A</strong>
 lo0: flags=8049 mtu 33208
         groups: lo
         inet 127.0.0.1 netmask 0xff000000
         inet6 ::1 prefixlen 128
         inet6 fe80::1%lo0 prefixlen 64 scopeid 0x4
 re0: flags=8843 mtu 1500
         lladdr 00:40:45:28:89:37
         groups: egress
         media: Ethernet autoselect (100baseTX full-duplex)
         status: active
         inet <strong>192.168.1.199</strong> netmask 0xffffff00 broadcast 192.168.1.255
         inet6 fe80::240:45ff:fe28:8937%vr0 prefixlen 64 scopeid 0x2
         inet <strong>192.168.10.199</strong> netmask 0xffffff00 broadcast 192.168.100.255</pre>
<p>Now we see two IP addresses on <tt>vr0</tt>. If you want to set an IP address within the same network you would have to set a fake netmask of <strong>255.255.255.255</strong>.<a name="C03"> </a><a name="D03"></a></p>
<h2><a name="D03">Make the IP Alias Permanent</a></h2>
<p>If you use <tt>ifconfig</tt> to set an IP alias, the alias won&#8217;t be present after the next reboot. To make the setting permanent, add a line to <tt>/etc/hostname.<em>&lt;INTERFACE&gt;</em></tt>:</p>
<pre id="area"> <tt>OpenBSD#</tt> <strong>vi /etc/hostname.vr0</strong>
 inet 192.168.1.199 255.255.255.0 NONE
         <strong>inet alias 192.168.10.199 255.255.255.0</strong></pre>
<p><a name="C04"></a></p>
<h2><a name="C04">Remove an IP Alias</a></h2>
<p>You can remove an IP alias with a comand like this:</p>
<pre id="area"> <tt>OpenBSD#</tt> <strong>ifconfig re0 192.168.10.199 delete</strong></pre>
<p>This deletes the second IP address from the interface keeping the first.</p>
<p></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/add-remove-ip-alias-openbsd-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bash countdown refresh screen terminal counter</title>
		<link>http://blog.fabiolagana.net/bash-countdown-refresh-screen-terminal-counter/</link>
		<comments>http://blog.fabiolagana.net/bash-countdown-refresh-screen-terminal-counter/#comments</comments>
		<pubDate>Wed, 26 Nov 2008 14:24:18 +0000</pubDate>
		<dc:creator>texilee</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.texilee.it/?p=275</guid>
		<description><![CDATA[enrico@tex:~$ clear &#38;&#38; for i in `seq -10 0`; do tput cup 1 0 &#38;&#38; printf &#8221; $i &#8221; ; sleep 1; done
]]></description>
			<content:encoded><![CDATA[<p>enrico@tex:~$ clear &amp;&amp; for i in `seq -10 0`; do tput cup 1 0 &amp;&amp; printf &#8221; $i &#8221; ; sleep 1; done</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/bash-countdown-refresh-screen-terminal-counter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating an SSL-certificate for my webserver</title>
		<link>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/</link>
		<comments>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/#comments</comments>
		<pubDate>Wed, 12 Nov 2008 10:13:39 +0000</pubDate>
		<dc:creator>Fabio Laganà</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[SSL]]></category>
		<category><![CDATA[certificates]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[webserver]]></category>

		<guid isPermaLink="false">http://blog.fabiolagana.net/?p=107</guid>
		<description><![CDATA[#!/bin/sh SERVER=ssl.mioserverweb.dominio PRIVATE_KEY=$SERVER.private.key CERTIFICATE_FILE=$SERVER.crt VALID_DAYS=365 &#160; echo Delete old private key rm $PRIVATE_KEY echo Create new private/public-keys without passphrase for server openssl genrsa -out $PRIVATE_KEY 2048 &#160; echo Create selfsigned certificate rm $CERTIFICATE_FILE # From man req: # -x509 # this option outputs a self signed certificate instead # of a certificate request. This is [...]]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p1077"><td class="code" id="p107code7"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/sh</span>
<span style="color: #007800;">SERVER</span>=ssl.mioserverweb.dominio
<span style="color: #007800;">PRIVATE_KEY</span>=<span style="color: #007800;">$SERVER</span>.private.key
<span style="color: #007800;">CERTIFICATE_FILE</span>=<span style="color: #007800;">$SERVER</span>.crt
<span style="color: #007800;">VALID_DAYS</span>=<span style="color: #000000;">365</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> Delete old private key
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$PRIVATE_KEY</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> Create new private<span style="color: #000000; font-weight: bold;">/</span>public-keys without passphrase <span style="color: #000000; font-weight: bold;">for</span> server
openssl genrsa <span style="color: #660033;">-out</span> <span style="color: #007800;">$PRIVATE_KEY</span> <span style="color: #000000;">2048</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> Create selfsigned certificate
<span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #007800;">$CERTIFICATE_FILE</span>
<span style="color: #666666; font-style: italic;"># From man req:</span>
<span style="color: #666666; font-style: italic;">#  -x509</span>
<span style="color: #666666; font-style: italic;">#    this option outputs a self signed certificate instead</span>
<span style="color: #666666; font-style: italic;">#    of a certificate request. This is typically used to</span>
<span style="color: #666666; font-style: italic;">#    generate a test certificate or a self signed root CA.</span>
<span style="color: #666666; font-style: italic;">#    The extensions added to the certificate (if any) are</span>
<span style="color: #666666; font-style: italic;">#    specified in the configuration file.</span>
&nbsp;
openssl req <span style="color: #660033;">-new</span> 
        <span style="color: #660033;">-days</span> <span style="color: #007800;">$VALID_DAYS</span> 
        <span style="color: #660033;">-key</span> <span style="color: #007800;">$PRIVATE_KEY</span> 
        <span style="color: #660033;">-x509</span> 
        <span style="color: #660033;">-out</span> <span style="color: #007800;">$CERTIFICATE_FILE</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> private-keyfile is <span style="color: #007800;">$PRIVATE_KEY</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> server-certificate-file is <span style="color: #007800;">$CERTIFICATE_FILE</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #007800;">$PRIVATE_KEY</span> <span style="color: #007800;">$CERTIFICATE_FILE</span></pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://blog.fabiolagana.net/creating-ssl-certificate-webserver/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
