<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Daemon on Details...</title>
    <link>https://www.deepreflect.net/categories/daemon/</link>
    <description>Recent content in Daemon on Details...</description>
    <generator>Hugo</generator>
    <language>en-US</language>
    <copyright>Copyright © 2003 - 2026 Leonardo Rizzi</copyright>
    <lastBuildDate>Tue, 30 Jun 2026 03:28:29 +0200</lastBuildDate>
    <atom:link href="https://www.deepreflect.net/categories/daemon/feed.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Domino - Outbound internet address conversion</title>
      <link>https://www.deepreflect.net/2013/03/25/domino-outbound-internet-address-conversion/</link>
      <pubDate>Mon, 25 Mar 2013 23:16:03 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=1518</guid> 
      <description>&lt;p&gt;Messaging =&amp;gt; Configurations =&amp;gt; MIME =&amp;gt; Conversion Options&lt;/p&gt;
&lt;p&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.deepreflect.net/2013/03/domino.png&#34;&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Messaging =&gt; Configurations =&gt; MIME =&gt; Conversion Options</p>
<p><img loading="lazy" src="/2013/03/domino.png"></p>
]]></content:encoded>
    </item>
    <item>
      <title>Remote Desktop Licensing service to fail to start</title>
      <link>https://www.deepreflect.net/2012/05/14/remote-desktop-licensing-service-to-fail-to-start/</link>
      <pubDate>Mon, 14 May 2012 00:49:28 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=1191</guid> 
      <description>&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Remote Desktop Licensing service to fail to start, with error code %%-1073672191.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;The Terminal Services Licensing service cannot start. The following error occurred: Can&amp;#39;t initialize Cryptographic - error code 5.
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Sometime happens a problem with Remote Desktop Licensing services not starting.
The Terminal Licensing MachineKeys have permissions for Administrators and/or TermServLicensing  but the service starts using the &amp;ldquo;Network Service&amp;rdquo; account&amp;hellip; Why??????&lt;/p&gt;
&lt;p&gt;You can fix the problem adding Network Service account (read only privileges it&amp;rsquo;s ok), on follow directory (you can force ownership propagation for reapply the correct privilege tree):&lt;/p&gt;</description>
      <content:encoded><![CDATA[<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>Remote Desktop Licensing service to fail to start, with error code %%-1073672191.
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>The Terminal Services Licensing service cannot start. The following error occurred: Can&#39;t initialize Cryptographic - error code 5.
</span></span></code></pre></div><p>Sometime happens a problem with Remote Desktop Licensing services not starting.
The Terminal Licensing MachineKeys have permissions for Administrators and/or TermServLicensing  but the service starts using the &ldquo;Network Service&rdquo; account&hellip; Why??????</p>
<p>You can fix the problem adding Network Service account (read only privileges it&rsquo;s ok), on follow directory (you can force ownership propagation for reapply the correct privilege tree):</p>
<p><code>C:\\Documents and Settings\\all users\\Application Data\\Microsoft\\Crypto\\RSA\\MachineKeys</code></p>
<p>Then the service start, correctly.</p>
<p>For further information you can take a look at microsoft KB:</p>
<p>Default permissions for the MachineKeys folders:
<a href="http://support.microsoft.com/kb/278381">http://support.microsoft.com/kb/278381</a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/bb909654%28v=vs.90%29.aspx">http://msdn.microsoft.com/en-us/library/bb909654%28v=vs.90%29.aspx</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Lotus Domino server linux process 100% CPU usage</title>
      <link>https://www.deepreflect.net/2012/04/30/lotus-domino-server-linux-process-100-cpu-usage/</link>
      <pubDate>Mon, 30 Apr 2012 23:37:23 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=1184</guid> 
      <description>&lt;p&gt;There was a kernel change from version 2.6.x that causes statistics to suck 100% of CPU, even though the system is lightly loaded, that cause a server crash when loading platform statistics&lt;/p&gt;
&lt;p&gt;You can disable this feature by adding this to your &lt;code&gt;notes.ini&lt;/code&gt; and restarting the Domino server.
&lt;code&gt;PLATFORM\_STATISTICS\_DISABLED=1&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>There was a kernel change from version 2.6.x that causes statistics to suck 100% of CPU, even though the system is lightly loaded, that cause a server crash when loading platform statistics</p>
<p>You can disable this feature by adding this to your <code>notes.ini</code> and restarting the Domino server.
<code>PLATFORM\_STATISTICS\_DISABLED=1</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Postfix - Auth Dovecot Backend</title>
      <link>https://www.deepreflect.net/2011/10/27/postfix-auth-dovecot-backend/</link>
      <pubDate>Thu, 27 Oct 2011 22:21:56 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=1070</guid> 
      <description>&lt;p&gt;main.cf file Postfix related parametes:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;smtpd_sasl_authenticated_header = yes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;smtpd_sasl_auth_enable = yes
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;smtpd_sasl_type = dovecot
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;smtpd_sasl_path = private/auth
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;dovecot.conf file Dovecot related parameters:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; auth default {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  mechanisms = plain login
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;[&amp;hellip;removed irrelevance parameters&amp;hellip;]&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; socket listen {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    client {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      path &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;spool&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;postfix&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;private&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;auth
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      mode &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;0660&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      user &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; postfix
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;      group &lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt; postfix
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;  }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>main.cf file Postfix related parametes:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>smtpd_sasl_authenticated_header = yes
</span></span><span style="display:flex;"><span>smtpd_sasl_auth_enable = yes
</span></span><span style="display:flex;"><span>smtpd_sasl_type = dovecot
</span></span><span style="display:flex;"><span>smtpd_sasl_path = private/auth
</span></span></code></pre></div><p>dovecot.conf file Dovecot related parameters:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> auth default {
</span></span><span style="display:flex;"><span>  mechanisms = plain login
</span></span></code></pre></div><p>[&hellip;removed irrelevance parameters&hellip;]</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span> socket listen {
</span></span><span style="display:flex;"><span>    client {
</span></span><span style="display:flex;"><span>      path <span style="color:#f92672">=</span> <span style="color:#f92672">/</span><span style="color:#66d9ef">var</span><span style="color:#f92672">/</span>spool<span style="color:#f92672">/</span>postfix<span style="color:#f92672">/</span>private<span style="color:#f92672">/</span>auth
</span></span><span style="display:flex;"><span>      mode <span style="color:#f92672">=</span> <span style="color:#ae81ff">0660</span>
</span></span><span style="display:flex;"><span>      user <span style="color:#f92672">=</span> postfix
</span></span><span style="display:flex;"><span>      group <span style="color:#f92672">=</span> postfix
</span></span><span style="display:flex;"><span>    }
</span></span><span style="display:flex;"><span>  }
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>.ssh - Permission</title>
      <link>https://www.deepreflect.net/2010/09/09/ssh-permission/</link>
      <pubDate>Thu, 09 Sep 2010 23:24:41 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=946</guid> 
      <description>&lt;p&gt;If any of the files (or directories leading up to the files) have permissions set too loose, the connection will fail. Permission errors may be logged on the server side by the sshd(8) daemon.&lt;/p&gt;
&lt;p&gt;&lt;code&gt;Authentication refused: bad ownership or modes for directory …&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;In most cases, potential permission problems can be solved by restricting down access to the SSH configuration files. Permission changes to the home directory might be needed, though restricted rights may break other things.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If any of the files (or directories leading up to the files) have permissions set too loose, the connection will fail. Permission errors may be logged on the server side by the sshd(8) daemon.</p>
<p><code>Authentication refused: bad ownership or modes for directory …</code></p>
<p>In most cases, potential permission problems can be solved by restricting down access to the SSH configuration files. Permission changes to the home directory might be needed, though restricted rights may break other things.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>server$ chmod go-w ~/
</span></span><span style="display:flex;"><span>server$ chmod 700 ~/.ssh
</span></span><span style="display:flex;"><span>server$ chmod 600 ~/.ssh/authorized_keys
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Cron Syntax</title>
      <link>https://www.deepreflect.net/2010/03/22/cron-syntax/</link>
      <pubDate>Mon, 22 Mar 2010 16:04:58 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=879</guid> 
      <description>&lt;p&gt;&lt;a href=&#34;https://www.deepreflect.net/wp-content/uploads/2010/03/crontab-syntax.gif&#34;&gt;&lt;img loading=&#34;lazy&#34; src=&#34;https://www.deepreflect.net/wp-content/uploads/2010/03/crontab-syntax.gif&#34;&gt;&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p><a href="/wp-content/uploads/2010/03/crontab-syntax.gif"><img loading="lazy" src="/wp-content/uploads/2010/03/crontab-syntax.gif"></a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Squid - Radius auth</title>
      <link>https://www.deepreflect.net/2010/03/15/squid-radius-auth/</link>
      <pubDate>Mon, 15 Mar 2010 02:16:05 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=848</guid> 
      <description>&lt;p&gt;In this example a squid installation will use RADIUS &amp;ldquo;squid_radius_auth&amp;rdquo; Squid RADIUS authentication helper to authenticate users.&lt;/p&gt;
&lt;p&gt;Get last version of squid radius auth helper at:
&lt;a href=&#34;http://www.squid-cache.org/contrib/squid_radius_auth/&#34;&gt;http://www.squid-cache.org/contrib/squid_radius_auth/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Download:
&lt;code&gt;[leo@srv01 leo]# wget http://www.squid-cache.org/contrib/squid_radius_auth/squid_radius_auth-1.10.tar.gz&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Extract:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[leo@srv01 leo]# tar -xvf squid_radius_auth-1.10.tar.gz&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Go to directory:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;[leo@srv01 leo]# cd squid_radius_auth-1.10&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Compile:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[leo@srv01 squid_radius_auth-1.10]# make
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; gcc -O2 -Wall -g   -c -o squid_rad_auth.o squid_rad_auth.c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; gcc -O2 -Wall -g -c md5.c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; gcc -O2 -Wall -g -c util.c
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; gcc -g -o squid_radius_auth squid_rad_auth.o md5.o util.o
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now the installation, for my needs, I wanna keep binary into /usr/lib/squid/ and configuration file into /etc/squid/ and I don&amp;rsquo;t wanna take man files then edit Make.inc like this:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>In this example a squid installation will use RADIUS &ldquo;squid_radius_auth&rdquo; Squid RADIUS authentication helper to authenticate users.</p>
<p>Get last version of squid radius auth helper at:
<a href="http://www.squid-cache.org/contrib/squid_radius_auth/">http://www.squid-cache.org/contrib/squid_radius_auth/</a></p>
<p>Download:
<code>[leo@srv01 leo]# wget http://www.squid-cache.org/contrib/squid_radius_auth/squid_radius_auth-1.10.tar.gz</code></p>
<p>Extract:</p>
<p><code>[leo@srv01 leo]# tar -xvf squid_radius_auth-1.10.tar.gz</code></p>
<p>Go to directory:</p>
<p><code>[leo@srv01 leo]# cd squid_radius_auth-1.10</code></p>
<p>Compile:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[leo@srv01 squid_radius_auth-1.10]# make
</span></span><span style="display:flex;"><span> gcc -O2 -Wall -g   -c -o squid_rad_auth.o squid_rad_auth.c
</span></span><span style="display:flex;"><span> gcc -O2 -Wall -g -c md5.c
</span></span><span style="display:flex;"><span> gcc -O2 -Wall -g -c util.c
</span></span><span style="display:flex;"><span> gcc -g -o squid_radius_auth squid_rad_auth.o md5.o util.o
</span></span></code></pre></div><p>Now the installation, for my needs, I wanna keep binary into /usr/lib/squid/ and configuration file into /etc/squid/ and I don&rsquo;t wanna take man files then edit Make.inc like this:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>BINDIR  = /usr/lib/squid
</span></span><span style="display:flex;"><span>CONFDIR  = /etc/squid
</span></span><span style="display:flex;"><span>install: squid_radius_auth
</span></span><span style="display:flex;"><span>mkdir -p $(BINDIR)
</span></span><span style="display:flex;"><span>install -m 755 -s squid_radius_auth $(BINDIR)/squid_radius_auth
</span></span><span style="display:flex;"><span>#       mkdir -p $(DESTDIR)$(MANDIR)
</span></span><span style="display:flex;"><span>#       install -m 755 squid_radius_auth.8 $(DESTDIR)$(MANDIR)/squid_radius_auth$(MANEXT)
</span></span><span style="display:flex;"><span>mkdir -p $(CONFDIR)
</span></span><span style="display:flex;"><span>install -m 644 etc/squid_radius_auth.conf $(CONFDIR)/squid_radius_auth.conf.default
</span></span><span style="display:flex;"><span>if ! test -f $(CONFDIR)/squid_radius_auth.conf; then \
</span></span><span style="display:flex;"><span>cp -p $(CONFDIR)/squid_radius_auth.conf.default $(CONFDIR)/squid_radius_auth.conf; \
</span></span><span style="display:flex;"><span>fi
</span></span></code></pre></div><p>Edit config file /etc/squid/squid_radius_auth.conf here my example:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>server 10.255.X.X
</span></span><span style="display:flex;"><span>secret XXXXXXXX
</span></span><span style="display:flex;"><span>port 1645
</span></span></code></pre></div><p>Now you can test the helper, execute and then type your radius username/password on the same line separated with space, on successful authentication it will give &ldquo;OK&rdquo; otherwise &ldquo;ERR login failure&rdquo;</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[leo@srv01 leo]# /usr/lib/squid/squid_radius_auth -f /etc/squid/squid_radius_auth.conf
</span></span><span style="display:flex;"><span>leo xxxx
</span></span><span style="display:flex;"><span>OK
</span></span></code></pre></div><p>Now you can made change to &ldquo;squid.conf&rdquo;</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#  TAG: auth_param
</span></span><span style="display:flex;"><span>auth_param basic program /usr/lib/squid/squid_radius_auth -f /etc/squid/squid_radius_auth.conf
</span></span><span style="display:flex;"><span>auth_param basic children 5
</span></span><span style="display:flex;"><span>auth_param basic realm Wide-NET-Proxy
</span></span><span style="display:flex;"><span>auth_param basic credentialsttl 5 minute
</span></span><span style="display:flex;"><span>auth_param basic casesensitive on
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#  TAG: acl
</span></span><span style="display:flex;"><span>acl radius-auth proxy_auth REQUIRED
</span></span></code></pre></div><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#  TAG: http_access
</span></span><span style="display:flex;"><span>http_access allow localhost
</span></span><span style="display:flex;"><span>http_access allow radius-auth
</span></span><span style="display:flex;"><span>http_access deny all
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Nagios - Twitter alerts</title>
      <link>https://www.deepreflect.net/2010/02/27/nagios-twitter-alerts/</link>
      <pubDate>Sat, 27 Feb 2010 13:22:23 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=844</guid> 
      <description>&lt;p&gt;This entry will cover how to send nagios alerts to twitter, in the examples to follow using curl.&lt;/p&gt;
&lt;p&gt;Firstly edit &lt;code&gt;commands.cfg&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;And add the two following line:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;define command {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;command_name    notify-by-twitter
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;command_line    /usr/bin/curl --basic --user &amp;#34;twitteruser:twitterpassword&amp;#34; --data-ascii &amp;#34;status=[Nagios] $NOTIFICATIONTYPE$ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$&amp;#34; http://twitter.com/statuses/update.json
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;define command {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;command_name    host-notify-by-twitter
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;command_line    /usr/bin/curl --basic --user &amp;#34;twitteruser:twitterpassword&amp;#34; --data-ascii &amp;#34;status=[Nagios] $HOSTSTATE$ alert for $HOSTNAME$&amp;#34; http://twitter.com/statuses/update.json
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now define a contact for this twitter service into: &lt;code&gt;contacts.cfg&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>This entry will cover how to send nagios alerts to twitter, in the examples to follow using curl.</p>
<p>Firstly edit <code>commands.cfg</code></p>
<p>And add the two following line:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>define command {
</span></span><span style="display:flex;"><span>command_name    notify-by-twitter
</span></span><span style="display:flex;"><span>command_line    /usr/bin/curl --basic --user &#34;twitteruser:twitterpassword&#34; --data-ascii &#34;status=[Nagios] $NOTIFICATIONTYPE$ $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$&#34; http://twitter.com/statuses/update.json
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span>define command {
</span></span><span style="display:flex;"><span>command_name    host-notify-by-twitter
</span></span><span style="display:flex;"><span>command_line    /usr/bin/curl --basic --user &#34;twitteruser:twitterpassword&#34; --data-ascii &#34;status=[Nagios] $HOSTSTATE$ alert for $HOSTNAME$&#34; http://twitter.com/statuses/update.json
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>Now define a contact for this twitter service into: <code>contacts.cfg</code></p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>define contact{
</span></span><span style="display:flex;"><span>contact_name                    twitter
</span></span><span style="display:flex;"><span>service_notification_commands   notify-by-twitter
</span></span><span style="display:flex;"><span>host_notification_commands      host-notify-by-twitter
</span></span><span style="display:flex;"><span>service_notification_period 24x7
</span></span><span style="display:flex;"><span>host_notification_period 24x7
</span></span><span style="display:flex;"><span>service_notification_options a
</span></span><span style="display:flex;"><span>host_notification_options a
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>Add this contact into your existing contact groups like this (in <code>contacts.cfg</code>):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>define contactgroup{
</span></span><span style="display:flex;"><span>contactgroup_name       admins
</span></span><span style="display:flex;"><span>alias                   Nagios Administrators
</span></span><span style="display:flex;"><span>members                 nagiosadmin,sms_alert,twitter
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><p>Then run a nagios prefly check to ensure you have no syntax errors, and restart nagios.</p>
]]></content:encoded>
    </item>
    <item>
      <title>ProFTP(D) - listen on single ip</title>
      <link>https://www.deepreflect.net/2009/12/02/proftpd-listen-on-single-ip/</link>
      <pubDate>Wed, 02 Dec 2009 07:19:58 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=759</guid> 
      <description>&lt;p&gt;I don&amp;rsquo;t use ftp, but wordpress comes with this nice feature to upgrade plugins automatically from the web admin interface that needs ftp.&lt;/p&gt;
&lt;p&gt;the problem is I don&amp;rsquo;t want to enable the ftp service and make it available to the rest of the world just for that.&lt;/p&gt;
&lt;p&gt;So I needs the following two options in proftpd.conf:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DefaultAddress 127.0.0.1
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SocketBindTight                 on
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now restart proftpd and you&amp;rsquo;re done.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>I don&rsquo;t use ftp, but wordpress comes with this nice feature to upgrade plugins automatically from the web admin interface that needs ftp.</p>
<p>the problem is I don&rsquo;t want to enable the ftp service and make it available to the rest of the world just for that.</p>
<p>So I needs the following two options in proftpd.conf:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>DefaultAddress 127.0.0.1
</span></span><span style="display:flex;"><span>SocketBindTight                 on
</span></span></code></pre></div><p>Now restart proftpd and you&rsquo;re done.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Asterisk - permissions and ownership for the socket console</title>
      <link>https://www.deepreflect.net/2009/11/10/asterisk-permissions-and-ownership-for-the-socket-console/</link>
      <pubDate>Tue, 10 Nov 2009 06:18:28 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=752</guid> 
      <description>&lt;p&gt;If you need to give asterisk operational permission to a simple user on linux system, first of all you can add it on asterisk group, then you can edit &amp;ldquo;asterisk.conf&amp;rdquo; usually on /etc/asterisk/ and give rwx permission to asterisk group like this (add if they don&amp;rsquo;t exist):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[files]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;astctlpermissions &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;770&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;astctlowner &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; asterisk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;astctlgroup &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; asterisk
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;astctl &lt;span style=&#34;color:#f92672&#34;&gt;=&amp;gt;&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;run&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;asterisk&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;asterisk&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;ctl
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Restart asterisk to apply changes.&lt;/p&gt;
&lt;p&gt;Common error (wrong socket permission):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[leo&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;srv01 &lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;$&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;usr&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;sbin&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;asterisk &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;r
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Asterisk &lt;span style=&#34;color:#ae81ff&#34;&gt;1.4&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;22&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;4&lt;/span&gt; RPM by vc&lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt;rpms&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;voipconsulting&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;nl, Copyright (C) &lt;span style=&#34;color:#ae81ff&#34;&gt;1999&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;-&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;2008&lt;/span&gt; Digium, Inc&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; others&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Created by Mark Spencer
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Asterisk comes with ABSOLUTELY NO WARRANTY; type &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;core show warranty&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; details&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;This is free software, with components licensed under the GNU General Public
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;License version &lt;span style=&#34;color:#ae81ff&#34;&gt;2&lt;/span&gt; &lt;span style=&#34;color:#f92672&#34;&gt;and&lt;/span&gt; other licenses; you are welcome to redistribute it under
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;certain conditions&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt; Type &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;core show license&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#66d9ef&#34;&gt;for&lt;/span&gt; details&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;=========================================================================&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Unable to connect to remote asterisk (does &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;&lt;span style=&#34;color:#66d9ef&#34;&gt;var&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;run&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;asterisk&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;asterisk&lt;span style=&#34;color:#f92672&#34;&gt;.&lt;/span&gt;ctl exist&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;?&lt;/span&gt;)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[leo&lt;span style=&#34;color:#960050;background-color:#1e0010&#34;&gt;@&lt;/span&gt;srv01 &lt;span style=&#34;color:#f92672&#34;&gt;~&lt;/span&gt;]&lt;span style=&#34;color:#f92672&#34;&gt;$&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>If you need to give asterisk operational permission to a simple user on linux system, first of all you can add it on asterisk group, then you can edit &ldquo;asterisk.conf&rdquo; usually on /etc/asterisk/ and give rwx permission to asterisk group like this (add if they don&rsquo;t exist):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span>[files]
</span></span><span style="display:flex;"><span>astctlpermissions <span style="color:#f92672">=&gt;</span> <span style="color:#ae81ff">770</span>
</span></span><span style="display:flex;"><span>astctlowner <span style="color:#f92672">=&gt;</span> asterisk
</span></span><span style="display:flex;"><span>astctlgroup <span style="color:#f92672">=&gt;</span> asterisk
</span></span><span style="display:flex;"><span>astctl <span style="color:#f92672">=&gt;</span> <span style="color:#f92672">/</span><span style="color:#66d9ef">var</span><span style="color:#f92672">/</span>run<span style="color:#f92672">/</span>asterisk<span style="color:#f92672">/</span>asterisk<span style="color:#f92672">.</span>ctl
</span></span></code></pre></div><p>Restart asterisk to apply changes.</p>
<p>Common error (wrong socket permission):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span>[leo<span style="color:#960050;background-color:#1e0010">@</span>srv01 <span style="color:#f92672">~</span>]<span style="color:#f92672">$</span> <span style="color:#f92672">/</span>usr<span style="color:#f92672">/</span>sbin<span style="color:#f92672">/</span>asterisk <span style="color:#f92672">-</span>r
</span></span><span style="display:flex;"><span>Asterisk <span style="color:#ae81ff">1.4</span><span style="color:#f92672">.</span><span style="color:#ae81ff">22</span><span style="color:#f92672">-</span><span style="color:#ae81ff">4</span> RPM by vc<span style="color:#f92672">-</span>rpms<span style="color:#960050;background-color:#1e0010">@</span>voipconsulting<span style="color:#f92672">.</span>nl, Copyright (C) <span style="color:#ae81ff">1999</span> <span style="color:#f92672">-</span> <span style="color:#ae81ff">2008</span> Digium, Inc<span style="color:#f92672">.</span> <span style="color:#f92672">and</span> others<span style="color:#f92672">.</span>
</span></span><span style="display:flex;"><span>Created by Mark Spencer
</span></span><span style="display:flex;"><span>Asterisk comes with ABSOLUTELY NO WARRANTY; type <span style="color:#e6db74">&#39;core show warranty&#39;</span> <span style="color:#66d9ef">for</span> details<span style="color:#f92672">.</span>
</span></span><span style="display:flex;"><span>This is free software, with components licensed under the GNU General Public
</span></span><span style="display:flex;"><span>License version <span style="color:#ae81ff">2</span> <span style="color:#f92672">and</span> other licenses; you are welcome to redistribute it under
</span></span><span style="display:flex;"><span>certain conditions<span style="color:#f92672">.</span> Type <span style="color:#e6db74">&#39;core show license&#39;</span> <span style="color:#66d9ef">for</span> details<span style="color:#f92672">.</span>
</span></span><span style="display:flex;"><span><span style="color:#f92672">=========================================================================</span>
</span></span><span style="display:flex;"><span>Unable to connect to remote asterisk (does <span style="color:#f92672">/</span><span style="color:#66d9ef">var</span><span style="color:#f92672">/</span>run<span style="color:#f92672">/</span>asterisk<span style="color:#f92672">/</span>asterisk<span style="color:#f92672">.</span>ctl exist<span style="color:#960050;background-color:#1e0010">?</span>)
</span></span><span style="display:flex;"><span>[leo<span style="color:#960050;background-color:#1e0010">@</span>srv01 <span style="color:#f92672">~</span>]<span style="color:#f92672">$</span>
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Exim - Command</title>
      <link>https://www.deepreflect.net/2009/09/16/exim-command/</link>
      <pubDate>Wed, 16 Sep 2009 02:30:59 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=718</guid> 
      <description>&lt;p&gt;Some userfull Exim command:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -bpmailq --- The mailq is relevant as it gives your the email IDs.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -M emailIDforce delivery of one message
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -qf Force another queue run
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -qff
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Force another queue run and attempt to flush frozen messages
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -Mvl message IDView Log for message
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -Mvb message IDView Body for message
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -Mvh message IDView Header for message
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -Mrm message IDReMove message (no errors sent)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exim -Mg message IDGive up and fail message, message bounces to sender
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Some userfull Exim command:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>exim -bpmailq --- The mailq is relevant as it gives your the email IDs.
</span></span><span style="display:flex;"><span>exim -M emailIDforce delivery of one message
</span></span><span style="display:flex;"><span>exim -qf Force another queue run
</span></span><span style="display:flex;"><span>exim -qff
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>Force another queue run and attempt to flush frozen messages
</span></span><span style="display:flex;"><span>exim -Mvl message IDView Log for message
</span></span><span style="display:flex;"><span>exim -Mvb message IDView Body for message
</span></span><span style="display:flex;"><span>exim -Mvh message IDView Header for message
</span></span><span style="display:flex;"><span>exim -Mrm message IDReMove message (no errors sent)
</span></span><span style="display:flex;"><span>exim -Mg message IDGive up and fail message, message bounces to sender
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Watch - Exim Queue</title>
      <link>https://www.deepreflect.net/2009/09/16/watch-exim-queue/</link>
      <pubDate>Wed, 16 Sep 2009 02:13:35 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=715</guid> 
      <description>&lt;p&gt;Just in one line memo:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# watch -n 5 &#39;exim -bp | exiqsumm |grep TOTAL&#39;&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Just in one line memo:</p>
<p><code># watch -n 5 'exim -bp | exiqsumm |grep TOTAL'</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>OpenSSH - Generate server key</title>
      <link>https://www.deepreflect.net/2009/08/11/openssh-generate-server-key/</link>
      <pubDate>Tue, 11 Aug 2009 22:08:55 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=680</guid> 
      <description>&lt;p&gt;OpenSSH require different keys depending if you use SSH1 or SSH2 protocol. All keys are generated by &amp;ldquo;ssh-keygen&amp;rdquo; commad, that one should be available on your system with the ssh package. Default key lengths are also appropriate (2048 bits for rsa and 1024 bits for dsa)
For SSH1 protocol, you need a rsa1 key generated has follow:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# ssh-keygen -q -f /etc/ssh/ssh_host_key -N &#39;&#39; -t rsa1&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;For SSH2 protocol, you need two keys, one rsa key and one dsa key generated has follow:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>OpenSSH require different keys depending if you use SSH1 or SSH2 protocol. All keys are generated by &ldquo;ssh-keygen&rdquo; commad, that one should be available on your system with the ssh package. Default key lengths are also appropriate (2048 bits for rsa and 1024 bits for dsa)
For SSH1 protocol, you need a rsa1 key generated has follow:</p>
<p><code># ssh-keygen -q -f /etc/ssh/ssh_host_key -N '' -t rsa1</code></p>
<p>For SSH2 protocol, you need two keys, one rsa key and one dsa key generated has follow:</p>
<p><code># ssh-keygen -f /etc/ssh/ssh_host_rsa_key -N '' -t rsa</code>
<code># ssh-keygen -f /etc/ssh/ssh_host_dsa_key -N '' -t dsa</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Cool Tools for OpenSPARC</title>
      <link>https://www.deepreflect.net/2009/07/21/cool-tools-for-opensparc/</link>
      <pubDate>Tue, 21 Jul 2009 03:09:16 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=409</guid> 
      <description>&lt;p&gt;Optimized Applications for Solaris OS and OpenSparc computing.&lt;/p&gt;
&lt;p&gt;Simple and very useful example is &amp;ldquo;Cool Stack&amp;rdquo; a web deployment packge include most commonly used free and open source applications, recompiled to deliver a 30 to 200 percent performance improvement over standard binaries compiled with GCC.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://cooltools.sunsource.net/&#34;&gt;Cool Tools&lt;/a&gt;.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Optimized Applications for Solaris OS and OpenSparc computing.</p>
<p>Simple and very useful example is &ldquo;Cool Stack&rdquo; a web deployment packge include most commonly used free and open source applications, recompiled to deliver a 30 to 200 percent performance improvement over standard binaries compiled with GCC.</p>
<p><a href="http://cooltools.sunsource.net/">Cool Tools</a>.</p>
]]></content:encoded>
    </item>
    <item>
      <title>IIS Socket Pooling</title>
      <link>https://www.deepreflect.net/2009/07/18/iis-socket-pooling/</link>
      <pubDate>Sat, 18 Jul 2009 04:06:28 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=484</guid> 
      <description>&lt;p&gt;C&amp;rsquo;è una cosa brutta da sapere e si scopre quando per caso proviamo ad installare un servizio in ascolto sulla porta 80 su windows che ha già attivo per sfortuna nostra IIS, si chiama socket pooling, infatti automaticamente iis decide di essere in ascolto su tutti i socket quindi ogni indirizzo configurato sulla macchina, impedendo l&amp;rsquo;avvio di qualsiasi altro servizio (es. apache) anche se apparentemente configurato correttamente.&lt;/p&gt;
&lt;p&gt;Per ovviare a questo problema ecco come fare:
-Prima di tutto installate i support tools, dove sono? Inserite il cd nella directory \Support\Tools trovate un pacchetto suptools.msi
-Ora potete procedere:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>C&rsquo;è una cosa brutta da sapere e si scopre quando per caso proviamo ad installare un servizio in ascolto sulla porta 80 su windows che ha già attivo per sfortuna nostra IIS, si chiama socket pooling, infatti automaticamente iis decide di essere in ascolto su tutti i socket quindi ogni indirizzo configurato sulla macchina, impedendo l&rsquo;avvio di qualsiasi altro servizio (es. apache) anche se apparentemente configurato correttamente.</p>
<p>Per ovviare a questo problema ecco come fare:
-Prima di tutto installate i support tools, dove sono? Inserite il cd nella directory \Support\Tools trovate un pacchetto suptools.msi
-Ora potete procedere:</p>
<p>Definizione dello scenario in questo caso un server con windows con i seguenti ip:
xxx.xxx.xxx.xxx (destinato a iis)
yyy.yyy.yyy.yyy (destinato ad altro webserver)</p>
<p>from cmd (support tool shell):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> #settiamo l&#39;ip in ascolto di iis
</span></span><span style="display:flex;"><span> httpcfg set iplisten -i xxx.xxx.xxx.xxx
</span></span><span style="display:flex;"><span> #eliminiamo l&#39;ascolto di iis su questo ip
</span></span><span style="display:flex;"><span> httpcfg delete iplisten -i yyy.yyy.yyy.yyy
</span></span><span style="display:flex;"><span> #verifichiamo di non aver fatto errori
</span></span><span style="display:flex;"><span> httpcfg query iplisten
</span></span><span style="display:flex;"><span> #riavviamo il tutto per rendere effettive le modifiche
</span></span><span style="display:flex;"><span> net stop http /y
</span></span><span style="display:flex;"><span> net start w3svc
</span></span></code></pre></div><p>Nota: queste operazioni sono testate su IIS6 quindi sulle piattaforme Windows 2003 (tutte le versioni) non posso garantire il funzionamento identico su 2008</p>
]]></content:encoded>
    </item>
    <item>
      <title>Miaoo - Tomcat su Debian</title>
      <link>https://www.deepreflect.net/2009/07/18/miaoo-tomcat-su-debian/</link>
      <pubDate>Sat, 18 Jul 2009 03:40:09 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=493</guid> 
      <description>&lt;p&gt;Breve draft su come installare tomcat su debian, in questo caso lenny, le versioni dei pacchetti potrebbero cambiare ma il risultato finale è quello.&lt;/p&gt;
&lt;p&gt;Partiamo installando quello che ci serve:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;#apt-get install tomcat5.5 tomcat5.5-admin sun-java5-jdk tomcat5.5-webapps&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Attenzione, se l&amp;rsquo;installazione debian di default sicuramente non trovo il java jdk, è necessario quindi aggiungere il repository non-free, in apt editando in questo modo: /etc/apt/source.list&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;deb http://your-mirror-url/debian/ lenny main non-free
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;deb-src http://your-mirror-url/debian/ lenny main non-free
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Configurare il sistema per utilizzare java&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Breve draft su come installare tomcat su debian, in questo caso lenny, le versioni dei pacchetti potrebbero cambiare ma il risultato finale è quello.</p>
<p>Partiamo installando quello che ci serve:</p>
<p><code>#apt-get install tomcat5.5 tomcat5.5-admin sun-java5-jdk tomcat5.5-webapps</code></p>
<p>Attenzione, se l&rsquo;installazione debian di default sicuramente non trovo il java jdk, è necessario quindi aggiungere il repository non-free, in apt editando in questo modo: /etc/apt/source.list</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>deb http://your-mirror-url/debian/ lenny main non-free
</span></span><span style="display:flex;"><span>deb-src http://your-mirror-url/debian/ lenny main non-free
</span></span></code></pre></div><p>Configurare il sistema per utilizzare java</p>
<p><code>srv01#update-alternatives --config java</code></p>
<blockquote>
</blockquote>
<p>There are 2 alternatives which provide &lsquo;java&rsquo;.</p>
<blockquote>
</blockquote>
<p>Selection Alternative
---&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&mdash;&ndash;
1 /usr/lib/jvm/java-1.5.0-sun/jre/bin/java
\*+ 2 /etc/alternatives/kaffe-system/bin/java</p>
<blockquote>
</blockquote>
<p>Press enter to keep the default[*], or type selection number:</p>
<p>digitiamo 1 per attivare /usr/lib/jvm/java-1.5.0-sun/jre/bin/java</p>
<p>Definiamo il runtime java specifico installato e reso di default nel sistema come da step precendenti, editando il file /etc/default/tomcat5.5 e aggiungendo:</p>
<p><code>JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun/</code></p>
<p>Definiamo ora gli utenti per l&rsquo;interffaccia di gestione editando il file /var/lib/tomcat5.5/conf/tomcat-users.xml e creando una struttura simile:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>&lt;?xml version=&#39;1.0&#39; encoding=&#39;utf-8&#39;?&gt;
</span></span><span style="display:flex;"><span>&lt;tomcat-users&gt;
</span></span><span style="display:flex;"><span>&lt;role rolename=&#34;tomcat&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;role rolename=&#34;role1&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;role rolename=&#34;standard&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;role rolename=&#34;manager&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;role rolename=&#34;admin&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;user username=&#34;tomcat&#34; password=&#34;pwd&#34; roles=&#34;tomcat,admin&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;user username=&#34;both&#34; password=&#34;pwd&#34; roles=&#34;tomcat,role1&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;user username=&#34;role1&#34; password=&#34;pwd&#34; roles=&#34;role1&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;user username=&#34;leo&#34; password=&#34;pwd&#34; fullName=&#34;leonardo&#34; roles=&#34;standard&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;user username=&#34;manager&#34; password=&#34;pwd&#34; fullName=&#34;&#34; roles=&#34;manager&#34;/&gt;
</span></span><span style="display:flex;"><span>&lt;/tomcat-users&gt;
</span></span></code></pre></div><p>In questo caso sono definiti 3 utenti, due principali e uno definito dall&rsquo;utente (manager, admin, leo)</p>
<p>Fatto questo avviamo tomcat o riavviamolo se già attivo:</p>
<p><code>srv01#/etc/init.d/tomcat5.5 start o restart</code></p>
<p>Di default il server è in ascolto sulla porta 8180 quindi per accedere andare all&rsquo;indirizzo:</p>
<p><code>http://ipserver:8180/</code></p>
<p>Nota: nel mio caso ho usato il pacchetto jdk5 che contiene il java 1.5.0 è disponibile anche a scelta il pacchetto 1.6.0 ovviamente di chiama jdk6</p>
]]></content:encoded>
    </item>
    <item>
      <title>Configuring the svnserve daemon</title>
      <link>https://www.deepreflect.net/2009/03/29/configuring-the-svnserve-daemon/</link>
      <pubDate>Sun, 29 Mar 2009 12:59:32 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=449</guid> 
      <description>&lt;ul&gt;
&lt;li&gt;Creating the repositories&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you have not created any subversion repositories yet, you can create one with svnadmin:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# svnadmin create ~/my-repository&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Tweaking svnserve.conf&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory.&lt;/p&gt;
&lt;p&gt;Sample $HOME/my-repo/conf/svnserve.conf&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[general]
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Path to the file containing svn users and passwords.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;password-db = $HOME/my-repo/conf/passwd
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Authentication realm of the repository. Two repositories using the
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# same password-db should have the same realm.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;realm = My-test-repository
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Deny all anonymous access
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;anon-access = none
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Grant authenticated users read and write privileges
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;auth-access = write
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Setting up password authentication&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this:&lt;/p&gt;</description>
      <content:encoded><![CDATA[<ul>
<li>Creating the repositories</li>
</ul>
<p>If you have not created any subversion repositories yet, you can create one with svnadmin:</p>
<p><code># svnadmin create ~/my-repository</code></p>
<ul>
<li>Tweaking svnserve.conf</li>
</ul>
<p>Open up and edit the svnserve.conf file located in the $HOME/my-repo/conf/ directory.</p>
<p>Sample $HOME/my-repo/conf/svnserve.conf</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[general]
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Path to the file containing svn users and passwords.
</span></span><span style="display:flex;"><span>password-db = $HOME/my-repo/conf/passwd
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Authentication realm of the repository. Two repositories using the
</span></span><span style="display:flex;"><span># same password-db should have the same realm.
</span></span><span style="display:flex;"><span>realm = My-test-repository
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Deny all anonymous access
</span></span><span style="display:flex;"><span>anon-access = none
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Grant authenticated users read and write privileges
</span></span><span style="display:flex;"><span>auth-access = write
</span></span></code></pre></div><ul>
<li>Setting up password authentication</li>
</ul>
<p>Open up and edit the password-db file (ie. $HOME/my-repo/conf/passwd). A sample entry might look like this:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>[users]
</span></span><span style="display:flex;"><span>user1 = password1
</span></span><span style="display:flex;"><span>user2 = password2
</span></span></code></pre></div><ul>
<li>Starting up the server</li>
</ul>
<p>Run the server by invoking svnserve with the -d switch (daemon mode) and &ndash;listen-host 1.2.3.4 (substituting 1.2.3.4 for your v-host IP address).</p>
<p><code># svnserve -d --listen-host 1.2.3.4 -r $HOME/my-repo</code></p>
<p>To ensure that your svnserve gets started whenever the server is booted, you must add a @reboot line to your crontab. Use the crontab -e command to bring up your crontab in your favorite text editor and add the following line:</p>
<p><code>@reboot svnserve -d --listen-host 1.2.3.4 -r $HOME/my-repo</code></p>
<ul>
<li>Testing the server</li>
</ul>
<p>To test the server&rsquo;s functionality, you can create a working copy of your repository using your shell. The checkout command will create a working copy of the repository:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span># svn co svn://your-domain.com/$HOME/my-repo my-working-dir
</span></span><span style="display:flex;"><span># cd my-working-dir
</span></span><span style="display:flex;"><span># echo &#34;foo bar&#34; test-file
</span></span><span style="display:flex;"><span># svn add test-file
</span></span><span style="display:flex;"><span># svn remove test-file
</span></span><span style="display:flex;"><span># svn commit
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Configuring subversion access over HTTP/DAV</title>
      <link>https://www.deepreflect.net/2009/03/29/configuring-subversion-access-over-httpdav/</link>
      <pubDate>Sun, 29 Mar 2009 12:53:15 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=446</guid> 
      <description>&lt;ul&gt;
&lt;li&gt;Creating the repository&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you have not created any Subversion repositories yet, you can create one with svnadmin:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# svnadmin create ~/my-repository&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Adding mod_dav_svn to your httpd&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# a2enmod mod\_dav\_svn&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;If you plan to use fine-grained permissions, load mod_authz_svn.so as well:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# a2enmod mod_authz_svn&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Configuring access to repositories&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;HTTP access to your repositories is defined using a &lt;code&gt;&amp;lt;Location&amp;gt;&lt;/code&gt; section in your httpd.conf.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;Location /myproject&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;DAV svn
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;SVNPath /home/myself/myrepos/myproject
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AuthType Basic
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AuthName &amp;#34;My project&amp;#34;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;AuthUserFile /home/myself/private/myproject.pw
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Order deny,allow
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;LimitExcept GET PROPFIND OPTIONS REPORT&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Require valid-user
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;/LimitExcept&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&amp;lt;/Location&amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;This entry would grant read-only access to everyone and write access to every user AuthUserFile. You can use the htpasswd utility to create or update this file, as described here.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<ul>
<li>Creating the repository</li>
</ul>
<p>If you have not created any Subversion repositories yet, you can create one with svnadmin:</p>
<p><code># svnadmin create ~/my-repository</code></p>
<p>Adding mod_dav_svn to your httpd</p>
<p><code># a2enmod mod\_dav\_svn</code></p>
<p>If you plan to use fine-grained permissions, load mod_authz_svn.so as well:</p>
<p><code># a2enmod mod_authz_svn</code></p>
<ul>
<li>Configuring access to repositories</li>
</ul>
<p>HTTP access to your repositories is defined using a <code>&lt;Location&gt;</code> section in your httpd.conf.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>&lt;Location /myproject&gt;
</span></span><span style="display:flex;"><span>DAV svn
</span></span><span style="display:flex;"><span>SVNPath /home/myself/myrepos/myproject
</span></span><span style="display:flex;"><span>AuthType Basic
</span></span><span style="display:flex;"><span>AuthName &#34;My project&#34;
</span></span><span style="display:flex;"><span>AuthUserFile /home/myself/private/myproject.pw
</span></span><span style="display:flex;"><span>Order deny,allow
</span></span><span style="display:flex;"><span>&lt;LimitExcept GET PROPFIND OPTIONS REPORT&gt;
</span></span><span style="display:flex;"><span>Require valid-user
</span></span><span style="display:flex;"><span>&lt;/LimitExcept&gt;
</span></span><span style="display:flex;"><span>&lt;/Location&gt;
</span></span></code></pre></div><p>This entry would grant read-only access to everyone and write access to every user AuthUserFile. You can use the htpasswd utility to create or update this file, as described here.</p>
<p>The next entry grants read/write access to users in the AuthUserFile, and no access to anyone else.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>&lt;Location /myproject&gt;
</span></span><span style="display:flex;"><span>DAV svn
</span></span><span style="display:flex;"><span>SVNPath /home/myself/myrepos/myproject
</span></span><span style="display:flex;"><span>AuthType Basic
</span></span><span style="display:flex;"><span>AuthName &#34;My project&#34;
</span></span><span style="display:flex;"><span>AuthUserFile /home/myself/private/myproject.pw
</span></span><span style="display:flex;"><span>Order deny,allow
</span></span><span style="display:flex;"><span>Require valid-user
</span></span><span style="display:flex;"><span>&lt;/Location&gt;
</span></span></code></pre></div><p>The previous examples all define access on a per-repository basis. It is also possible to grant access from specific users to specific areas of the repository, using fine-grained permissions.</p>
<ul>
<li>Testing the repository</li>
</ul>
<p>Using either a remote Subversion client or the standard svn command from your shell, you can generate your working copy of the repository with the checkout command. If you are accessing public data over a read-only account, you can use a standard http URL:</p>
<p><code># svn co http://your-domain/myproject/</code></p>
<p>If you are accessing private data or using a read/write account, make sure to use an https URL:</p>
<p><code># svn co https://your-domain/myproject/</code></p>
<p>The contents of public repositories are also accessible from a web browser. Keep in mind that search engines will try to index any public data, so you may want to use a robots.txt file.</p>
<ul>
<li>Using fine-grained permissions (optional)</li>
</ul>
<p>You can allow or deny specific users read/write privileges on specific items within a repository using AuthzSVNAccessFile. If you use this directive, make sure the mod_authz_svn module is loaded.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>&lt;Location /repos&gt;
</span></span><span style="display:flex;"><span>DAV svn
</span></span><span style="display:flex;"><span>SVNPath /home/myself/myrepos
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span># Access Control via the authz module.
</span></span><span style="display:flex;"><span>AuthzSVNAccessFile /home/myself/private/myrepos.acl
</span></span><span style="display:flex;"><span># Anonymous access is allowed. Prompt as needed.
</span></span><span style="display:flex;"><span>Satisfy Any
</span></span><span style="display:flex;"><span>Require valid-user
</span></span><span style="display:flex;"><span>AuthType Basic
</span></span><span style="display:flex;"><span>AuthName &#34;My subversion repositories&#34;
</span></span><span style="display:flex;"><span>AuthUserFile /home/myself/private/myrepos.pw
</span></span><span style="display:flex;"><span>&lt;/Location&gt;
</span></span></code></pre></div><p>The file specified in AuthzSVNAccessFile is a plain text file which defines fine-grained access lists. Note that all path names specified are relative to the SVNPath.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span># Allow anonymous read access to everything by default.
</span></span><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span>[/]
</span></span><span style="display:flex;"><span>\* = r
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span># Grant alice and bob write access to all of /myproject1/.
</span></span><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span>[/myproject]
</span></span><span style="display:flex;"><span>\* = r
</span></span><span style="display:flex;"><span>leo = rw
</span></span><span style="display:flex;"><span>temp = rw
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span># Grant carol and charlie write access to only /myproject/foo
</span></span><span style="display:flex;"><span>#
</span></span><span style="display:flex;"><span>[/myproject/foo]
</span></span><span style="display:flex;"><span>leo= rw
</span></span><span style="display:flex;"><span>temp = rw
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>MySQL Change Password</title>
      <link>https://www.deepreflect.net/2009/03/22/mysql-change-password/</link>
      <pubDate>Sun, 22 Mar 2009 23:44:10 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=411</guid> 
      <description>&lt;p&gt;If you have never set a root password for mysql, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# mysqladmin -u root password NEWPASSWORD&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;However, if you want to change (or update) a root password, then you need to use following command&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# mysqladmin -u root -p oldpassword newpass&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Enter password:
Change MySQL password for other user
To change a normal user password you need to type (let us assume you would like to change password for leo):&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>If you have never set a root password for mysql, the server does not require a password at all for connecting as root. To setup root password for first time, use mysqladmin command at shell prompt as follows:</p>
<p><code># mysqladmin -u root password NEWPASSWORD</code></p>
<p>However, if you want to change (or update) a root password, then you need to use following command</p>
<p><code># mysqladmin -u root -p oldpassword newpass</code></p>
<p>Enter password:
Change MySQL password for other user
To change a normal user password you need to type (let us assume you would like to change password for leo):</p>
<p><code># mysqladmin -u leo -p oldpassword newpass</code></p>
<p>Changing mysql root user password using mysql sql command
This is another method. mysql stores username and passwords in user table inside mysql database. You can directly update password using the following method to update or change password for user leo:</p>
<ol>
<li>Login to mysql server, type following command at shell prompt:</li>
</ol>
<p><code># mysql -u root -p</code></p>
<ol start="2">
<li>Use mysql database (type command at mysqlprompt):</li>
</ol>
<p><code>mysqluse mysql;</code></p>
<ol start="3">
<li>Change password for user leo:</li>
</ol>
<p><code>mysqlupdate user set password=PASSWORD(&quot;NEWPASSWORD&quot;) where User='leo';</code></p>
<ol start="4">
<li>Reload privileges:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>mysqlflush privileges;
</span></span><span style="display:flex;"><span>mysqlquit
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>ProFTP(D) - Ident Lookups</title>
      <link>https://www.deepreflect.net/2009/03/17/proftp-ident-lookups/</link>
      <pubDate>Tue, 17 Mar 2009 22:20:43 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=440</guid> 
      <description>&lt;p&gt;Visto che mi è capitato e mi dimentico sempre, proftpd nell&amp;rsquo;installazione standard (Debian per capirci) è attivo di defaultl l&amp;rsquo;ident del client, quindi colpa del reverse o colpa dei dns mal configurati la connessione risulta parecchio lenta nella fase di autenticazione.&lt;/p&gt;
&lt;p&gt;Per risolvere:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;#/etc/proftpd/proftpd.conf
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IdentLookups no
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Visto che mi è capitato e mi dimentico sempre, proftpd nell&rsquo;installazione standard (Debian per capirci) è attivo di defaultl l&rsquo;ident del client, quindi colpa del reverse o colpa dei dns mal configurati la connessione risulta parecchio lenta nella fase di autenticazione.</p>
<p>Per risolvere:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#/etc/proftpd/proftpd.conf
</span></span><span style="display:flex;"><span>IdentLookups no
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>IIS maxupload limit ASP</title>
      <link>https://www.deepreflect.net/2009/02/08/iis-maxupload-limit-asp/</link>
      <pubDate>Sun, 08 Feb 2009 04:19:59 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=425</guid> 
      <description>&lt;p&gt;IIS 6 on Windows Server 2003 or R2 has a limit of 200 KB for ASP requests in general and file uploads. To change this limitation you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.
Follow these steps:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Stop IIS from command line&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;code&gt;iisreset /STOP&lt;/code&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;Open MetaBase file, find the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>IIS 6 on Windows Server 2003 or R2 has a limit of 200 KB for ASP requests in general and file uploads. To change this limitation you need to edit the Metabase file, which can be found at c:\Windows\System32\Inetsrv\MetaBase.xml.
Follow these steps:</p>
<ul>
<li>Stop IIS from command line</li>
</ul>
<p><code>iisreset /STOP</code></p>
<ul>
<li>
<p>Open MetaBase file, find the variable AspMaxRequestEntityAllowed limits the number of bytes in the page request (by default 200KB); change the value to 1073741824 (unlimited) or to a limit of your choice.</p>
</li>
<li>
<p>Start IIS from command linet:</p>
</li>
</ul>
<p><code>iisreset /START</code></p>
<p>There&rsquo;s another way for do this change without stop the service but sincerly IIS is a Microsoft program, I&rsquo;m no sure about this operation..</p>
<p>Go to IIS and right click the server, select Properties, and check the box &ldquo;Allow changes to MetaBase configuration while IIS is running&rdquo; then try to edit metbase file.</p>
]]></content:encoded>
    </item>
    <item>
      <title>MySQL Backup &amp; Restore</title>
      <link>https://www.deepreflect.net/2008/12/26/mysql-backup-restore/</link>
      <pubDate>Fri, 26 Dec 2008 02:52:03 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=355</guid> 
      <description>&lt;p&gt;Per effettuare un backup del singolo database:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@tardis:~# `mysqldump --database dbname &amp;gt; name_db.sql -u root -p`
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Queste sono opzioni utili:&lt;/p&gt;
&lt;p&gt;&amp;ndash;quick: effettua il dump direttamente sullo standard output;
&amp;ndash;add-drop-table: inserisce le istruzioni di eliminare le tabelle esistenti prima di ricrearle;
&amp;ndash;add-locks: blocca gli inserimenti;
&amp;ndash;lock-tables: blocca la lettura;&lt;/p&gt;
&lt;p&gt;Per fare un restore del singolo database:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;root@tardis:~# `mysql --one-database dbname &amp;lt; name_db.sql -u root -p `
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Per effettuare un backup del singolo database:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>root@tardis:~# `mysqldump --database dbname &gt; name_db.sql -u root -p`
</span></span></code></pre></div><p>Queste sono opzioni utili:</p>
<p>&ndash;quick: effettua il dump direttamente sullo standard output;
&ndash;add-drop-table: inserisce le istruzioni di eliminare le tabelle esistenti prima di ricrearle;
&ndash;add-locks: blocca gli inserimenti;
&ndash;lock-tables: blocca la lettura;</p>
<p>Per fare un restore del singolo database:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>root@tardis:~# `mysql --one-database dbname &lt; name_db.sql -u root -p `
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Perl - Zabbix SMS Allert</title>
      <link>https://www.deepreflect.net/2008/11/21/zabbix-sms-allert/</link>
      <pubDate>Fri, 21 Nov 2008 00:56:33 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=330</guid> 
      <description>&lt;p&gt;Un netmonitor, non è un vero netmonitor se non fa squillare il telefono del sysadmin con un sms almeno 3 volte a notte, ecco qui uno script in perl per interfacciare zabbix con il servizio fornito da Mobyt tramite un POST http su un loro gateway, con qualche aggiustatina può essere usato anche con altri servizi analoghi.&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;#!/usr/bin/perl
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Leonardo Rizzi
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Version 0.3
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# SMS sent throuth Mobyt gateway
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Designed for use without ip autentication only MD5 Hash
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;# Attention: there aren&amp;#39;t any check but message limit is of 160 charaters.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;use Digest::MD5  qw(md5_hex);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;use strict;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;use LWP::UserAgent;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;use HTTP::Request::Common qw(POST);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my ($operation, $qty, $rcpt, $query, $out, $ua, $ok, $ko, $data, $from);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my ($code, $id, $password);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$id=&amp;#34;username&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$password=&amp;#34;password&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ok=&amp;#39;SMS Sent Correctly&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ko=&amp;#39;SMS Not Sent&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$from= $ARGV[1];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$operation=&amp;#34;TEXT&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$qty = &amp;#39;h&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;#attention this fuking provider don&amp;#39;t accept 00 for international area code only + if you use 00 you get sent error
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$rcpt = $ARGV[0];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$data = $ARGV[2];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$code = join &amp;#39;&amp;#39;, $id,$operation,$rcpt,$from,$data,$password;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my $ticket=md5_hex($code);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ua = new LWP::UserAgent;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;$ua-&amp;gt;agent(&amp;#34;SMS_MD5_Relay/0.2 &amp;#34; . $ua-&amp;gt;agent);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my $req = POST &amp;#39;http://smsweb.mobyt.it/sms-gw/sendsmart&amp;#39;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;[
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;id =$id,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;operation =&amp;#39;TEXT&amp;#39;,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;rcpt =$rcpt,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;from =$from,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;data =$data,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;qty =$qty,
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ticket=$ticket
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;];
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my $res=$ua-&amp;gt;request($req);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;if ($res-&amp;gt;content =~ /^OK/)
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;fine_ok (); }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;else
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;{ fine_ko (); }
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exit;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sub fine_ko () {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my $msg=shift;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print &amp;#34;$ko\n&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exit (1);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;sub fine_ok () {
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;my $msg=shift;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;print &amp;#34;$ok\n&amp;#34;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;exit (1);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;}
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Un netmonitor, non è un vero netmonitor se non fa squillare il telefono del sysadmin con un sms almeno 3 volte a notte, ecco qui uno script in perl per interfacciare zabbix con il servizio fornito da Mobyt tramite un POST http su un loro gateway, con qualche aggiustatina può essere usato anche con altri servizi analoghi.</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>#!/usr/bin/perl
</span></span><span style="display:flex;"><span># Leonardo Rizzi
</span></span><span style="display:flex;"><span># Version 0.3
</span></span><span style="display:flex;"><span># SMS sent throuth Mobyt gateway
</span></span><span style="display:flex;"><span># Designed for use without ip autentication only MD5 Hash
</span></span><span style="display:flex;"><span># Attention: there aren&#39;t any check but message limit is of 160 charaters.
</span></span><span style="display:flex;"><span>use Digest::MD5  qw(md5_hex);
</span></span><span style="display:flex;"><span>use strict;
</span></span><span style="display:flex;"><span>use LWP::UserAgent;
</span></span><span style="display:flex;"><span>use HTTP::Request::Common qw(POST);
</span></span><span style="display:flex;"><span>my ($operation, $qty, $rcpt, $query, $out, $ua, $ok, $ko, $data, $from);
</span></span><span style="display:flex;"><span>my ($code, $id, $password);
</span></span><span style="display:flex;"><span>$id=&#34;username&#34;;
</span></span><span style="display:flex;"><span>$password=&#34;password&#34;;
</span></span><span style="display:flex;"><span>$ok=&#39;SMS Sent Correctly&#39;;
</span></span><span style="display:flex;"><span>$ko=&#39;SMS Not Sent&#39;;
</span></span><span style="display:flex;"><span>$from= $ARGV[1];
</span></span><span style="display:flex;"><span>$operation=&#34;TEXT&#34;;
</span></span><span style="display:flex;"><span>$qty = &#39;h&#39;;
</span></span><span style="display:flex;"><span>#attention this fuking provider don&#39;t accept 00 for international area code only + if you use 00 you get sent error
</span></span><span style="display:flex;"><span>$rcpt = $ARGV[0];
</span></span><span style="display:flex;"><span>$data = $ARGV[2];
</span></span><span style="display:flex;"><span>$code = join &#39;&#39;, $id,$operation,$rcpt,$from,$data,$password;
</span></span><span style="display:flex;"><span>my $ticket=md5_hex($code);
</span></span><span style="display:flex;"><span>$ua = new LWP::UserAgent;
</span></span><span style="display:flex;"><span>$ua-&gt;agent(&#34;SMS_MD5_Relay/0.2 &#34; . $ua-&gt;agent);
</span></span><span style="display:flex;"><span>my $req = POST &#39;http://smsweb.mobyt.it/sms-gw/sendsmart&#39;,
</span></span><span style="display:flex;"><span>[
</span></span><span style="display:flex;"><span>id =$id,
</span></span><span style="display:flex;"><span>operation =&#39;TEXT&#39;,
</span></span><span style="display:flex;"><span>rcpt =$rcpt,
</span></span><span style="display:flex;"><span>from =$from,
</span></span><span style="display:flex;"><span>data =$data,
</span></span><span style="display:flex;"><span>qty =$qty,
</span></span><span style="display:flex;"><span>ticket=$ticket
</span></span><span style="display:flex;"><span>];
</span></span><span style="display:flex;"><span>my $res=$ua-&gt;request($req);
</span></span><span style="display:flex;"><span>if ($res-&gt;content =~ /^OK/)
</span></span><span style="display:flex;"><span>{
</span></span><span style="display:flex;"><span>fine_ok (); }
</span></span><span style="display:flex;"><span>else
</span></span><span style="display:flex;"><span>{ fine_ko (); }
</span></span><span style="display:flex;"><span>exit;
</span></span><span style="display:flex;"><span>sub fine_ko () {
</span></span><span style="display:flex;"><span>my $msg=shift;
</span></span><span style="display:flex;"><span>print &#34;$ko\n&#34;;
</span></span><span style="display:flex;"><span>exit (1);
</span></span><span style="display:flex;"><span>}
</span></span><span style="display:flex;"><span>sub fine_ok () {
</span></span><span style="display:flex;"><span>my $msg=shift;
</span></span><span style="display:flex;"><span>print &#34;$ok\n&#34;;
</span></span><span style="display:flex;"><span>exit (1);
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>MySQL - Reset root password</title>
      <link>https://www.deepreflect.net/2008/11/17/mysql-reset-root-password/</link>
      <pubDate>Mon, 17 Nov 2008 19:43:42 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=316</guid> 
      <description>&lt;p&gt;E si a volte capita di non ricordare o avere sotto mano la password di un database mysql, ecco qualche breve passaggio per reimpostarla:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Stoppare il server mysql solitamente una cosa del genere dovrebbe bastare:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;root@tardis:~# /etc/init.d/mysql stop&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;2`. Avviare una sessione del demone mysql con il parametro &amp;ldquo;skip grant table&amp;rdquo;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;root@tardis:~# mysqld\_safe --skip-grant-tables&lt;/code&gt;&lt;/p&gt;
&lt;ol start=&#34;3&#34;&gt;
&lt;li&gt;A questo punto è possibile collegarsi al server senza che richieda credenziali quindi:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; root@tardis:~# mysql
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; &amp;gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;4&#34;&gt;
&lt;li&gt;Reipostiamo direttamente nella tabella del db la password di root:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql&amp;gt; UPDATE mysql.user SET Password=PASSWORD(&amp;#39;NewPass&amp;#39;) WHERE User=&amp;#39;root&amp;#39;;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;mysql&amp;gt; FLUSH PRIVILEGES;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ol start=&#34;5&#34;&gt;
&lt;li&gt;Stoppiamo il demone avviato con il &amp;ldquo;skip grant table&amp;rdquo; e riavviare quello corretto:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;root@tardis:~# /etc/init.d/mysql start&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>E si a volte capita di non ricordare o avere sotto mano la password di un database mysql, ecco qualche breve passaggio per reimpostarla:</p>
<ol>
<li>Stoppare il server mysql solitamente una cosa del genere dovrebbe bastare:</li>
</ol>
<p><code>root@tardis:~# /etc/init.d/mysql stop</code></p>
<p>2`. Avviare una sessione del demone mysql con il parametro &ldquo;skip grant table&rdquo;</p>
<p><code>root@tardis:~# mysqld\_safe --skip-grant-tables</code></p>
<ol start="3">
<li>A questo punto è possibile collegarsi al server senza che richieda credenziali quindi:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> root@tardis:~# mysql
</span></span><span style="display:flex;"><span> &gt;
</span></span></code></pre></div><ol start="4">
<li>Reipostiamo direttamente nella tabella del db la password di root:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>mysql&gt; UPDATE mysql.user SET Password=PASSWORD(&#39;NewPass&#39;) WHERE User=&#39;root&#39;;
</span></span><span style="display:flex;"><span>mysql&gt; FLUSH PRIVILEGES;
</span></span></code></pre></div><ol start="5">
<li>Stoppiamo il demone avviato con il &ldquo;skip grant table&rdquo; e riavviare quello corretto:</li>
</ol>
<p><code>root@tardis:~# /etc/init.d/mysql start</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Debian - PXE installation</title>
      <link>https://www.deepreflect.net/2008/11/15/debian-pxe-installation/</link>
      <pubDate>Sat, 15 Nov 2008 16:09:12 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=282</guid> 
      <description>&lt;p&gt;Dato che ultimamente è più facile per me avere a portata di mano un portatile o dispositivo simile e non i cd che vanno innesorabilmente persi, mi sono deciso a mettere un sistema di boot PXE sul notebook per effettuare l&amp;rsquo;installazioni dei server.&lt;/p&gt;
&lt;p&gt;Ecco quello che serve per partire, è necessario avere questi 3 pacchetti:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Il server TFTP dove risiederanno le immagini di boot.&lt;/li&gt;
&lt;li&gt;Il server DHCP per distribuire gli indirizzi e i parametri PXE&lt;/li&gt;
&lt;li&gt;Il dnsmasq questo servirà ad installazione avviata per recuperare i pacchetti dal repository&lt;/li&gt;
&lt;/ul&gt;
&lt;ol&gt;
&lt;li&gt;Quindi prima cosa installiamo:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;root@tardis:~/apt-get install tftpd-hpa dhcp3-server dnsmasq&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Dato che ultimamente è più facile per me avere a portata di mano un portatile o dispositivo simile e non i cd che vanno innesorabilmente persi, mi sono deciso a mettere un sistema di boot PXE sul notebook per effettuare l&rsquo;installazioni dei server.</p>
<p>Ecco quello che serve per partire, è necessario avere questi 3 pacchetti:</p>
<ul>
<li>Il server TFTP dove risiederanno le immagini di boot.</li>
<li>Il server DHCP per distribuire gli indirizzi e i parametri PXE</li>
<li>Il dnsmasq questo servirà ad installazione avviata per recuperare i pacchetti dal repository</li>
</ul>
<ol>
<li>Quindi prima cosa installiamo:</li>
</ol>
<p><code>root@tardis:~/apt-get install tftpd-hpa dhcp3-server dnsmasq</code></p>
<ol start="2">
<li>Abilitiamo il server tftp con questi passaggi:</li>
</ol>
<p>Editiamo:
<code>/etc/default/tftpd-hpa</code></p>
<p>Modificando questo parametro:
<code>RUN_DAEMON=&quot;no&quot;</code>
in questo:
<code>RUN_DAEMON=&quot;yes&quot;</code>
Io mi sono creato per comodità un link simbolico alla root del tftp in /</p>
<p><code>root@tardis:~# ln -s /var/lib/tftpboot /tftp-root</code></p>
<p>Ora di può far partire il servizio:</p>
<p><code>root@tardis:~# /etc/init.d/tftpd-hpa start</code></p>
<ol start="3">
<li>Abilitiamo il server dhcp:</li>
</ol>
<p>Editiamo questo file:
/etc/dhcp3/dhcpd.conf</p>
<p>Inserendo queste righe:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> option domain-name-servers 192.168.10.50;
</span></span><span style="display:flex;"><span> default-lease-time 86400;
</span></span><span style="display:flex;"><span> max-lease-time 604800;
</span></span><span style="display:flex;"><span> authoritative;
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> subnet 192.168.10.0 netmask 255.255.255.0 {
</span></span><span style="display:flex;"><span> range 192.168.10.10 192.168.1.20;
</span></span><span style="display:flex;"><span> filename &#34;pxelinux.0&#34;;
</span></span><span style="display:flex;"><span> next-server 192.168.10.50;
</span></span><span style="display:flex;"><span> option subnet-mask 255.255.255.0;
</span></span><span style="display:flex;"><span> option broadcast-address 192.168.1.255;
</span></span><span style="display:flex;"><span> option routers 192.168.10.50;
</span></span><span style="display:flex;"><span> }
</span></span></code></pre></div><p>Ora di può far partire il servizio:</p>
<p><code>root@tardis:~# /etc/init.d/dhcpd-server start</code></p>
<ol start="4">
<li>Abilitiamo il dnsmasq</li>
</ol>
<p>Editiamo questo file:
<code>/etc/dnsmasq.conf</code></p>
<p><code>dhcp-boot=pxelinux.0,tardis,192.168.10.50</code></p>
<p>Ora di può far partire il servizio:</p>
<p><code>root@tardis:~# /etc/init.d/dnsmasq start</code></p>
<ol start="5">
<li>Routing:</li>
</ol>
<p>Questa parte ci serve per fare il get dal repository usando il portatile da router.</p>
<p><code>root@tardis:~# echo 1 &gt; /proc/sys/net/ipv4/ip_forward</code></p>
<ol start="6">
<li>Prepariamo il repository locale:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>root@tardis:~# cd /tftp-root
</span></span><span style="display:flex;"><span>root@tardis:~# wget http://ftp.nl.debian.org/debian/dists/etch/main/installer-i386/current/images/netboot/netboot.tar.gz
</span></span><span style="display:flex;"><span>root@tardis:~# tar xvf netboot.tar.gz
</span></span></code></pre></div><p>Con questa operazione creaiamo il repository per il boot normale senza opzioni, eventuali parametri andranno specificati manualmente.</p>
<p>Ora collegando una macchina da installare con il pxe abilitato, prederà l&rsquo;ip dal server dhcp e caricherà l&rsquo;immagine di boot tramite tftp!</p>
]]></content:encoded>
    </item>
    <item>
      <title>Debian - debian-sys-maint</title>
      <link>https://www.deepreflect.net/2008/11/12/debian-debian-sys-maint/</link>
      <pubDate>Wed, 12 Nov 2008 20:06:04 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=278</guid> 
      <description>&lt;p&gt;Se per sbaglio durante un restore di un database mysql cancellaste l&amp;rsquo;utente di sistema debian-sys-maint
Potete ripristinarlo usando la password generata e scritta in chiaro in questo file:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;/etc/mysql/debian.cnf&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Questo è necessario se usate il sitema APT per gestire gli aggiornamenti dei servizi, in caso contrario non ha senso di esistere.&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Se per sbaglio durante un restore di un database mysql cancellaste l&rsquo;utente di sistema debian-sys-maint
Potete ripristinarlo usando la password generata e scritta in chiaro in questo file:</p>
<p><code>/etc/mysql/debian.cnf</code></p>
<p>Questo è necessario se usate il sitema APT per gestire gli aggiornamenti dei servizi, in caso contrario non ha senso di esistere.</p>
]]></content:encoded>
    </item>
    <item>
      <title>Tool - Make Self</title>
      <link>https://www.deepreflect.net/2008/11/11/tool-make-self/</link>
      <pubDate>Tue, 11 Nov 2008 10:47:49 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=274</guid> 
      <description>&lt;p&gt;Segnalo un tool per creare gli eseguibili autoestraenti sui sistemi *nix sempre utile per ogni evenienza.&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://megastep.org/makeself/&#34;&gt;http://megastep.org/makeself/&lt;/a&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Segnalo un tool per creare gli eseguibili autoestraenti sui sistemi *nix sempre utile per ogni evenienza.</p>
<p><a href="http://megastep.org/makeself/">http://megastep.org/makeself/</a></p>
]]></content:encoded>
    </item>
    <item>
      <title>Manipolazione certificati ssl P12</title>
      <link>https://www.deepreflect.net/2008/11/09/manipolazione-certificati-ssl-p12/</link>
      <pubDate>Sun, 09 Nov 2008 00:06:24 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=250</guid> 
      <description>&lt;p&gt;Memo su come estrarre i certificati compressi in P12&lt;/p&gt;
&lt;p&gt;Comando per estrarre la chiave:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# openssl pkcs12 -nocerts -in cert.p12 -out key.pem&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Comando per estrarre il certificato:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# openssl pkcs12 -nokeys -in cert.p12 -out cert.pem&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Comando per decriptare la chiave, questo serve per evitare di reinserire tutte le volte che si usa la chiave, la password rsa:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;# openssl rsa -in key.pem -out decryptkey.pem&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Memo su come estrarre i certificati compressi in P12</p>
<p>Comando per estrarre la chiave:</p>
<p><code># openssl pkcs12 -nocerts -in cert.p12 -out key.pem</code></p>
<p>Comando per estrarre il certificato:</p>
<p><code># openssl pkcs12 -nokeys -in cert.p12 -out cert.pem</code></p>
<p>Comando per decriptare la chiave, questo serve per evitare di reinserire tutte le volte che si usa la chiave, la password rsa:</p>
<p><code># openssl rsa -in key.pem -out decryptkey.pem</code></p>
]]></content:encoded>
    </item>
    <item>
      <title>Linux - Zabbix Build 1.6.1 (MySql)</title>
      <link>https://www.deepreflect.net/2008/11/08/linux-zabbix-build-161-mysql/</link>
      <pubDate>Sat, 08 Nov 2008 18:00:51 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=245</guid> 
      <description>&lt;p&gt;Una breve guida sull&amp;rsquo;implementazione di questo giovane netmonitor che a mio avviso a differenza di soluzioni più conosciute e consolidate come nagios, introduce una gestione molto più web oriented semplificando moldo le operazioni in ambienti che necessitano di rapida scalabilità.&lt;/p&gt;
&lt;p&gt;L&amp;rsquo;installazione è stata effettuato con successo usando Debian Etch 4.0r5 e CentOS 5.2 inutile dire che tutte le operazio che seguiranno dovranno essere fatte da utente &amp;lsquo;root&amp;rsquo;&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Prepariamo quello che ci serve per la compilazione:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;code&gt;tardis:~# aptitude -y install build-essential libmysqlclient-dev libssl-dev libsnmp-dev libiksemel-dev libcurl3-dev&lt;/code&gt;&lt;/p&gt;</description>
      <content:encoded><![CDATA[<p>Una breve guida sull&rsquo;implementazione di questo giovane netmonitor che a mio avviso a differenza di soluzioni più conosciute e consolidate come nagios, introduce una gestione molto più web oriented semplificando moldo le operazioni in ambienti che necessitano di rapida scalabilità.</p>
<p>L&rsquo;installazione è stata effettuato con successo usando Debian Etch 4.0r5 e CentOS 5.2 inutile dire che tutte le operazio che seguiranno dovranno essere fatte da utente &lsquo;root&rsquo;</p>
<ol>
<li>Prepariamo quello che ci serve per la compilazione:</li>
</ol>
<p><code>tardis:~# aptitude -y install build-essential libmysqlclient-dev libssl-dev libsnmp-dev libiksemel-dev libcurl3-dev</code></p>
<p><code>tardis:~# apt-get install snmp libiksemel3 libcurl3 libsnmp-base libmysqlclient15off</code></p>
<ol start="2">
<li>Scarichiamo i sorgenti, e procediamo con scompattazione:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>tardis:~# wget http://garr.dl.sourceforge.net/sourceforge/zabbix/zabbix-1.6.1.tar.gz
</span></span><span style="display:flex;"><span>tardis:~# tar zxvf zabbix-1.6.1.tar.gz
</span></span><span style="display:flex;"><span>tardis:~# cd zabbix-1.6.1
</span></span></code></pre></div><ol start="3">
<li>Configurazione e compilazione, in questo caso verà compilato oltre all&rsquo;agente dedicato a discovery e al monitoraggio, anche il server che ha la funzione di raccogliere di dati dai vari agent, gestire gli allarmi e le operazioni di cordinameto:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>tardis:~# ./configure --prefix=/usr --with-mysql --with-net-snmp --enable-server --enable-agent --enable-ipv6 --with-jabber
</span></span><span style="display:flex;"><span>tardis:~# make
</span></span></code></pre></div><p>Ora una piccola nota, se compilaste direttamente su macchine di produzione a questo punto basterebbe fare un &lsquo;make install&rsquo; non avendo gli strumenti dedicati, è necessario spostare il compilato sulla macchina dedicata e procedere a mano, quindi (questa fase è da eseguire sulla macchina di produzione che dovrà avere a bordo Apache2, PHP5, Mysql5 già funzionanti):</p>
<ol start="4">
<li>Creiamo utente e gruppo dedicato:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> groupadd zabbix
</span></span><span style="display:flex;"><span> useradd -c &#39;Zabbix&#39; -d /home/zabbix -g zabbix -s /bin/bash zabbix
</span></span><span style="display:flex;"><span> mkdir /home/zabbix
</span></span><span style="display:flex;"><span> chown zabbix:zabbix /home/zabbix
</span></span></code></pre></div><ol start="5">
<li>Creiamo database e utente dedicato in mysql server:</li>
</ol>
<p>mysql -p -u root
create database zabbix;
grant all on zabbix.* to &lsquo;zabbix&rsquo;@&rsquo;localhost&rsquo; identified by &lsquo;changeme&rsquo;;
quit;</p>
<ol start="6">
<li>Popoliamo le tabelle del database:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> server:~/zabbix-1.6.1# mysql -u root -p zabbix  &lt; create/schema/mysql.sql
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# mysql -u root -p zabbix &lt; create/data/data.sql
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# mysql -u root -p zabbix &lt; create/data/images_mysql.sql
</span></span></code></pre></div><ol start="7">
<li>Creaiamo una struttura di directory dedicata, questa soluzione potrebbe risultare noiasa, ma durante le operazioni di aggiornamento e manutenzione sarà molto più comodo e veloce:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> server:~# mkdir /usr/share/zabbix
</span></span><span style="display:flex;"><span> server:~# mkdir /usr/share/zabbix/sbin
</span></span><span style="display:flex;"><span> server:~# mkdir /usr/share/zabbix/etc
</span></span><span style="display:flex;"><span> server:~# mkdir /usr/share/zabbix/frontends
</span></span></code></pre></div><ol start="8">
<li>Con i seguenti passaggi creaiamo un link simbolico delle /etc di zabbix alla /etc di sistema, copiamo il frontend php nella directory dedicata, e infine copiamo gli esguibili compilati che ci servono:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> server:~/zabbix-1.6.1# ln -s /usr/share/zabbix/etc/ /etc/zabbix
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# cp -r frontends/php/* /usr/share/zabbix/frontends
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# cp src/zabbix\_agent/zabbix_agent /usr/share/zabbix/sbin/zabbix_agent
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# cp src/zabbix\_agent/zabbix_agentd /usr/share/zabbix/sbin/zabbix_agentd
</span></span><span style="display:flex;"><span> server:~/zabbix-1.6.1# cp src/zabbix_server/zabbix_server /usr/share/zabbix/sbin/zabbix_server
</span></span></code></pre></div><ol start="9">
<li>Configuriamo i file di init.d copiandoli e aggiustando i path</li>
</ol>
<p>server:~/zabbix-1.6.1# cp misc/init.d/debian/* /etc/init.d/</p>
<p>Modificate entrambi gli script aggiustando i path in particolare questa riga:</p>
<p>da così: <code>DAEMON=/home/zabbix/bin/${NAME}</code>
deve diventare così: <code>DAEMON=/usr/share/zabbix/sbin/${NAME}</code></p>
<ol start="10">
<li>Aggiungiamo la definizione delle porte usate da zabbix nei /etc/services</li>
</ol>
<p>echo &gt; &quot;
zabbix_agent 10050/tcp # Zabbix ports
zabbix_trap 10051/tcp&quot;  /etc/services</p>
<ol start="11">
<li>Copiamo le configurazioni di default e apportiamo le modifiche di base:</li>
</ol>
<p>server:<del>/zabbix-1.6.1# chown -R zabbix:zabbix /usr/share/zabbix/etc
server:</del>/zabbix-1.6.1# cp misc/conf/zabbix_* /usr/share/zabbix/etc</p>
<p>Editiamo il file: zabbix_agentd.conf e assicuriamoci che ci sia la seguente riga</p>
<p>Server=127.0.0.1</p>
<p>Editiamo <code>zabbix_server.conf</code></p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> max_execution_time = 300
</span></span><span style="display:flex;"><span> date.timezone = UTC
</span></span><span style="display:flex;"><span> DBHost=localhost
</span></span><span style="display:flex;"><span> DBName=zabbix
</span></span><span style="display:flex;"><span> DBUser=zabbix
</span></span><span style="display:flex;"><span> DBPassword=changeme
</span></span></code></pre></div><ol start="12">
<li>Apache e PHP</li>
</ol>
<p>Nel file php.ini è necessario avere i seguenti parametri definiti:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> max_execution_time = 300
</span></span><span style="display:flex;"><span> date.timezone = UTC
</span></span></code></pre></div><p>La configurazione di apache è abbastanza a discrezione dell&rsquo;amministratore si può fare in due modi:</p>
<p>Creando un vhost dedicato:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span> &lt;virtualhost&gt;
</span></span><span style="display:flex;"><span> ServerName zabbix.domain.tld
</span></span><span style="display:flex;"><span>DocumentRoot /usr/share/zabbix/frontends
</span></span><span style="display:flex;"><span> &lt;directory&gt;
</span></span><span style="display:flex;"><span> Options FollowSymLinks
</span></span><span style="display:flex;"><span> AllowOverride None
</span></span><span style="display:flex;"><span> &lt;/directory&gt;
</span></span><span style="display:flex;"><span> &lt;/virtualhost&gt;
</span></span></code></pre></div><p>Oppure creando un&rsquo;alias in una vhost già definito:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>&lt;IfModule mod\_alias.c&gt;
</span></span><span style="display:flex;"><span> Alias /zabbix /usr/share/zabbix/frontends
</span></span><span style="display:flex;"><span>&lt;/IfModule&gt;
</span></span></code></pre></div><ol start="13">
<li>Ora se tutto è stato fatto correttamente avviando i servizi e aprendo la pagina web si potrà procedere con la rapiada configurazione del frontends e poi all&rsquo;uso ma prima i seguenti comandi:</li>
</ol>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>/etc/init.d/apache2 restart
</span></span><span style="display:flex;"><span>/etc/init.d/zabbix-server start
</span></span><span style="display:flex;"><span>/etc/init.d/zabbix-agent start
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Apache - Client denied by server configuration</title>
      <link>https://www.deepreflect.net/2008/10/30/apache-client-denied-by-server-configuration/</link>
      <pubDate>Thu, 30 Oct 2008 11:58:32 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=196</guid> 
      <description>&lt;p&gt;Tipico errore 403 Access Denied e nel log una stringa simile a quest &amp;ldquo;client denied by server configuration&amp;rdquo; con incluso il path del file specifico?&lt;/p&gt;
&lt;p&gt;Allora con buona probabilita&amp;rsquo; manca una direttiva nella configurazione globale o nella singola del vhost:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Directory&lt;/span&gt; &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;/var/www/&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; Options None
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; AllowOverride None
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; Order allow,deny
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt; Allow from all
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;/&lt;/span&gt;&lt;span style=&#34;color:#a6e22e&#34;&gt;Directory&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Tipico errore 403 Access Denied e nel log una stringa simile a quest &ldquo;client denied by server configuration&rdquo; con incluso il path del file specifico?</p>
<p>Allora con buona probabilita&rsquo; manca una direttiva nella configurazione globale o nella singola del vhost:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span><span style="color:#f92672">&lt;</span><span style="color:#a6e22e">Directory</span> <span style="color:#e6db74">&#34;/var/www/&#34;</span><span style="color:#f92672">&gt;</span>
</span></span><span style="display:flex;"><span> Options None
</span></span><span style="display:flex;"><span> AllowOverride None
</span></span><span style="display:flex;"><span> Order allow,deny
</span></span><span style="display:flex;"><span> Allow from all
</span></span><span style="display:flex;"><span><span style="color:#f92672">&lt;/</span><span style="color:#a6e22e">Directory</span><span style="color:#f92672">&gt;</span>
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>Server Strings</title>
      <link>https://www.deepreflect.net/2008/10/03/server-strings/</link>
      <pubDate>Fri, 03 Oct 2008 23:20:18 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=106</guid> 
      <description>&lt;p&gt;Adoro quando i server rispondono cosi&amp;rsquo; (si, il server di posta e&amp;rsquo; in ascolto anche in ipv6):&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;leobook-w:~ leonardorizzi$ telnet mail.deepreflect.net 25
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Trying 2001:470:1f13:10a::100...
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Connected to mail.deepreflect.net.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Escape character is &amp;#39;^\]&amp;#39;.
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;220 deepreflect.net ESMTP - Life is short talk fast!
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Adoro quando i server rispondono cosi&rsquo; (si, il server di posta e&rsquo; in ascolto anche in ipv6):</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>leobook-w:~ leonardorizzi$ telnet mail.deepreflect.net 25
</span></span><span style="display:flex;"><span>Trying 2001:470:1f13:10a::100...
</span></span><span style="display:flex;"><span>Connected to mail.deepreflect.net.
</span></span><span style="display:flex;"><span>Escape character is &#39;^\]&#39;.
</span></span><span style="display:flex;"><span>220 deepreflect.net ESMTP - Life is short talk fast!
</span></span></code></pre></div>]]></content:encoded>
    </item>
    <item>
      <title>SSH key</title>
      <link>https://www.deepreflect.net/2008/08/30/ssh-key/</link>
      <pubDate>Sat, 30 Aug 2008 16:08:38 +0000</pubDate>
       <guid isPermaLink="false">http://blog.deepreflect.net/?p=81</guid> 
      <description>&lt;p&gt;Nel caso succeda che il demone sshd non parta per i seguenti motivi:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-gdscript3&#34; data-lang=&#34;gdscript3&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key: &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;etc&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh_host_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key: &lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;etc&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh&lt;span style=&#34;color:#f92672&#34;&gt;/&lt;/span&gt;ssh_host_dsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disabling protocol version &lt;span style=&#34;color:#ae81ff&#34;&gt;1.&lt;/span&gt; Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;Disabling protocol version &lt;span style=&#34;color:#ae81ff&#34;&gt;2.&lt;/span&gt; Could &lt;span style=&#34;color:#f92672&#34;&gt;not&lt;/span&gt; load host key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Con questi comandi si generano le chiavi host:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;&#34;&gt;&lt;code class=&#34;language-fallback&#34; data-lang=&#34;fallback&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
      <content:encoded><![CDATA[<p>Nel caso succeda che il demone sshd non parta per i seguenti motivi:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-gdscript3" data-lang="gdscript3"><span style="display:flex;"><span>Could <span style="color:#f92672">not</span> load host key: <span style="color:#f92672">/</span>etc<span style="color:#f92672">/</span>ssh<span style="color:#f92672">/</span>ssh_host_key
</span></span><span style="display:flex;"><span>Could <span style="color:#f92672">not</span> load host key: <span style="color:#f92672">/</span>etc<span style="color:#f92672">/</span>ssh<span style="color:#f92672">/</span>ssh_host_dsa_key
</span></span><span style="display:flex;"><span>Disabling protocol version <span style="color:#ae81ff">1.</span> Could <span style="color:#f92672">not</span> load host key
</span></span><span style="display:flex;"><span>Disabling protocol version <span style="color:#ae81ff">2.</span> Could <span style="color:#f92672">not</span> load host key
</span></span></code></pre></div><p>Con questi comandi si generano le chiavi host:</p>
<div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"><code class="language-fallback" data-lang="fallback"><span style="display:flex;"><span>ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
</span></span><span style="display:flex;"><span>ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
</span></span><span style="display:flex;"><span>ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_key
</span></span></code></pre></div>]]></content:encoded>
    </item>
  </channel>
</rss>
