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

<channel>
	<title>Linux 360° &#124; Italia &#187; linux</title>
	<atom:link href="http://www.linux360.it/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linux360.it</link>
	<description>Notizie, guide e tutorial per il mondo Linux a 360°</description>
	<lastBuildDate>Tue, 16 Dec 2014 14:03:33 +0000</lastBuildDate>
	<language>it-IT</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=3.9.40</generator>
	<item>
		<title>Aumentare Sicurezza SSL Apache2</title>
		<link>http://www.linux360.it/2014/11/18/aumentare-sicurezza-ssl-apache2/</link>
		<comments>http://www.linux360.it/2014/11/18/aumentare-sicurezza-ssl-apache2/#comments</comments>
		<pubDate>Tue, 18 Nov 2014 17:44:04 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ssl]]></category>
		<category><![CDATA[vulnerability]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=2040</guid>
		<description><![CDATA[<p>SSLCompression offCiao Ragazzi, oggi vi spiego un po&#8217; di info basilari su come implementare delle policy di strong security per Apache2. Quello che andremo a fare sarà principalmente la disattivazione della compressione SSL, per evitare attacchi di tipo CRIME e la disabilitazione di SSL v.3 Per chi volesse saperne di più sui tipi di attacchi ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/11/18/aumentare-sicurezza-ssl-apache2/">Aumentare Sicurezza SSL Apache2</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>SSLCompression offCiao Ragazzi,</p>
<p>oggi vi spiego un po&#8217; di info basilari su come implementare delle policy di strong security per Apache2.</p>
<p>Quello che andremo a fare sarà principalmente la disattivazione della compressione SSL, per evitare attacchi di tipo CRIME e la disabilitazione di SSL v.3</p>
<p>Per chi volesse saperne di più sui tipi di attacchi che può subire un server Apache2 con SSL:</p>
<ul>
<li><a href="https://en.wikipedia.org/wiki/Transport_Layer_Security#BEAST_attack">BEAST Attack</a></li>
<li><a href="https://en.wikipedia.org/wiki/CRIME_%28security_exploit%29">CRIME Attack</a></li>
<li><a href="https://en.wikipedia.org/wiki/Perfect_forward_secrecy">Perfect Forward Secrecy</a></li>
<li><a href="https://en.wikipedia.org/wiki/Transport_Layer_Security#Dealing_with_RC4_and_BEAST">Dealing with RC4 and BEAST</a></li>
</ul>
<p>&nbsp;</p>
<p>Vediamo adesso come proteggerci.</p>
<p>Per prima cosa aprire il file di configurazione del webserver che utilizza SSL e aggiungiamo la seguente riga:</p>
<p>&nbsp;</p>
<div id="wpshdo_1" class="wp-synhighlighter-outer"><div id="wpshdt_1" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_1"></a><a id="wpshat_1" class="wp-synhighlighter-title" href="#codesyntax_1"  onClick="javascript:wpsh_toggleBlock(1)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_1" onClick="javascript:wpsh_code(1)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_1" onClick="javascript:wpsh_print(1)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_1" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">SSLCompression off</pre></div></div>
<p>In questo modo disattiviamo la compressione SSL e quindi si evitamo attacchi Crime.</p>
<p>Per evitare problemi di sicurezza relativi alle versioni 2 e 3 di SSL quello che si fa è abilitare solo la versione 1 con la seguente stringa:</p>
<div id="wpshdo_2" class="wp-synhighlighter-outer"><div id="wpshdt_2" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_2"></a><a id="wpshat_2" class="wp-synhighlighter-title" href="#codesyntax_2"  onClick="javascript:wpsh_toggleBlock(2)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_2" onClick="javascript:wpsh_code(2)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_2" onClick="javascript:wpsh_print(2)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_2" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">SSLProtocol All <span class="re5">-SSLv2</span> <span class="re5">-SSLv3</span></pre></div></div>
<p>Infine vanno modificate le cifrature possibili&#8230;Diciamo che le ideali sono 2-3 ma purtroppo per rendere il sito retrocompatibile con IE e Windows è necessario abilitarne diverse:</p>
<div id="wpshdo_3" class="wp-synhighlighter-outer"><div id="wpshdt_3" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_3"></a><a id="wpshat_3" class="wp-synhighlighter-title" href="#codesyntax_3"  onClick="javascript:wpsh_toggleBlock(3)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_3" onClick="javascript:wpsh_code(3)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_3" onClick="javascript:wpsh_print(3)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_3" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">SSLCipherSuite ECDHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES128-GCM-SHA256:DHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES128-GCM-SHA256:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:<span class="sy0">!</span>aNULL:<span class="sy0">!</span>eNULL:<span class="sy0">!</span>EXPORT:<span class="sy0">!</span>DES:<span class="sy0">!</span>MD5:<span class="sy0">!</span>PSK:<span class="sy0">!</span>RC4</pre></div></div>
<p>&nbsp;</p>
<p>Il gioco è fatto.</p>
<p>Salvare e verificare la configurazione di apache, se tutto è ok si può fare un restart:</p>
<div id="wpshdo_4" class="wp-synhighlighter-outer"><div id="wpshdt_4" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_4"></a><a id="wpshat_4" class="wp-synhighlighter-title" href="#codesyntax_4"  onClick="javascript:wpsh_toggleBlock(4)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_4" onClick="javascript:wpsh_code(4)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_4" onClick="javascript:wpsh_print(4)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_4" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">#Controllo Config</span>
&nbsp;
apache2ctl <span class="re5">-t</span>
&nbsp;
<span class="co0">#Riavvio Apache</span>
&nbsp;
<span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>apache2 restart</pre></div></div>
<p>Per controllare il risultato:</p>
<p>https://www.ssllabs.com/ssltest/analyze.html?d=miodominio.it</p>
<p>Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/11/18/aumentare-sicurezza-ssl-apache2/">Aumentare Sicurezza SSL Apache2</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/11/18/aumentare-sicurezza-ssl-apache2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurare Postfix come smtp Gmail Relay</title>
		<link>http://www.linux360.it/2014/10/27/configurare-postfix-come-smtp-gmail-relay/</link>
		<comments>http://www.linux360.it/2014/10/27/configurare-postfix-come-smtp-gmail-relay/#comments</comments>
		<pubDate>Mon, 27 Oct 2014 09:06:37 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[relaygmail]]></category>
		<category><![CDATA[relaygoogle]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=801</guid>
		<description><![CDATA[<p>Installiamo i pacchetti necessari: Rinconfiguriamo Postfix selezionando &#8220;Sito internet con SmartHost&#8221; ed inseriamo il seguente server: Una volta ultimato il wizard editiamo il file /etc/postfix/main.cf ed aggiungiamo le seguenti righe: Adesso creiamo il file contenente il nome utente e la password dell&#8217;email google: Modifichiamo i permessi del file: Modifichiamo il file per essere letto da ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/27/configurare-postfix-come-smtp-gmail-relay/">Configurare Postfix come smtp Gmail Relay</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><strong>Installiamo i pacchetti necessari:</strong><br />
<div id="wpshdo_5" class="wp-synhighlighter-outer"><div id="wpshdt_5" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_5"></a><a id="wpshat_5" class="wp-synhighlighter-title" href="#codesyntax_5"  onClick="javascript:wpsh_toggleBlock(5)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_5" onClick="javascript:wpsh_code(5)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_5" onClick="javascript:wpsh_print(5)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_5" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> postfix libsasl2-<span class="nu0">2</span> ca-certificates libsasl2-modules mailutils</pre></div></div>
<p><strong>Rinconfiguriamo Postfix selezionando &#8220;Sito internet con SmartHost&#8221; ed inseriamo il seguente</strong> <strong>server:</strong><br />
<div id="wpshdo_6" class="wp-synhighlighter-outer"><div id="wpshdt_6" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_6"></a><a id="wpshat_6" class="wp-synhighlighter-title" href="#codesyntax_6"  onClick="javascript:wpsh_toggleBlock(6)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_6" onClick="javascript:wpsh_code(6)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_6" onClick="javascript:wpsh_print(6)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_6" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="br0">[</span>smtp.gmail.com<span class="br0">]</span>:<span class="nu0">587</span></pre></div></div>
<p><strong>Una volta ultimato il wizard editiamo il file /etc/postfix/main.cf ed aggiungiamo le seguenti righe:</strong><br />
<div id="wpshdo_7" class="wp-synhighlighter-outer"><div id="wpshdt_7" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_7"></a><a id="wpshat_7" class="wp-synhighlighter-title" href="#codesyntax_7"  onClick="javascript:wpsh_toggleBlock(7)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_7" onClick="javascript:wpsh_code(7)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_7" onClick="javascript:wpsh_print(7)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_7" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">smtp_sasl_auth_enable = <span class="kw2">yes</span>
smtp_sasl_password_maps = <span class="kw3">hash</span>:<span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>cacert.pem
smtp_use_tls = <span class="kw2">yes</span>
sender_canonical_maps = <span class="kw3">hash</span>:<span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sender_canonical</pre></div></div>
<p><strong>Adesso creiamo il file contenente il nome utente e la password dell&#8217;email google:</strong><br />
<div id="wpshdo_8" class="wp-synhighlighter-outer"><div id="wpshdt_8" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_8"></a><a id="wpshat_8" class="wp-synhighlighter-title" href="#codesyntax_8"  onClick="javascript:wpsh_toggleBlock(8)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_8" onClick="javascript:wpsh_code(8)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_8" onClick="javascript:wpsh_print(8)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_8" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vim</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sasl_passwd
<span class="br0">[</span>smtp.gmail.com<span class="br0">]</span>:<span class="nu0">587</span>    username<span class="sy0">@</span>gmail.com:password</pre></div></div>
<p><strong>Modifichiamo i permessi del file:</strong><br />
<div id="wpshdo_9" class="wp-synhighlighter-outer"><div id="wpshdt_9" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_9"></a><a id="wpshat_9" class="wp-synhighlighter-title" href="#codesyntax_9"  onClick="javascript:wpsh_toggleBlock(9)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_9" onClick="javascript:wpsh_code(9)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_9" onClick="javascript:wpsh_print(9)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_9" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">chmod</span> <span class="nu0">400</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sasl_passwd</pre></div></div>
<p><strong>Modifichiamo il file per essere letto da postfix:</strong><br />
<div id="wpshdo_10" class="wp-synhighlighter-outer"><div id="wpshdt_10" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_10"></a><a id="wpshat_10" class="wp-synhighlighter-title" href="#codesyntax_10"  onClick="javascript:wpsh_toggleBlock(10)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_10" onClick="javascript:wpsh_code(10)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_10" onClick="javascript:wpsh_print(10)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_10" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">postmap <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sasl_passwd</pre></div></div>
<p><strong>Risciviamo il mittente sostituendo root con la nostra email:</strong><br />
<div id="wpshdo_11" class="wp-synhighlighter-outer"><div id="wpshdt_11" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_11"></a><a id="wpshat_11" class="wp-synhighlighter-title" href="#codesyntax_11"  onClick="javascript:wpsh_toggleBlock(11)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_11" onClick="javascript:wpsh_code(11)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_11" onClick="javascript:wpsh_print(11)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_11" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vim</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sender_canonical
root        username<span class="sy0">@</span>gmail.com</pre></div></div>
<p><strong>Modifichiamo i permessi anche di questo file:</strong><br />
<div id="wpshdo_12" class="wp-synhighlighter-outer"><div id="wpshdt_12" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_12"></a><a id="wpshat_12" class="wp-synhighlighter-title" href="#codesyntax_12"  onClick="javascript:wpsh_toggleBlock(12)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_12" onClick="javascript:wpsh_code(12)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_12" onClick="javascript:wpsh_print(12)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_12" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">chmod</span> <span class="nu0">400</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sender_canonical</pre></div></div>
<p><strong>Modifichiamo anche questo file per essere letto da postfix:</strong><br />
<div id="wpshdo_13" class="wp-synhighlighter-outer"><div id="wpshdt_13" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_13"></a><a id="wpshat_13" class="wp-synhighlighter-title" href="#codesyntax_13"  onClick="javascript:wpsh_toggleBlock(13)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_13" onClick="javascript:wpsh_code(13)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_13" onClick="javascript:wpsh_print(13)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_13" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">postmap <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sender_canonical</pre></div></div>
<p><strong>Ora usiamo un certificato compatibile per la negoziazione con i server di google:</strong><br />
<div id="wpshdo_14" class="wp-synhighlighter-outer"><div id="wpshdt_14" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_14"></a><a id="wpshat_14" class="wp-synhighlighter-title" href="#codesyntax_14"  onClick="javascript:wpsh_toggleBlock(14)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_14" onClick="javascript:wpsh_code(14)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_14" onClick="javascript:wpsh_print(14)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_14" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">cat</span> <span class="sy0">/</span>etc<span class="sy0">/</span>ssl<span class="sy0">/</span>certs<span class="sy0">/</span>Equifax_Secure_CA.pem <span class="sy0">&gt;&gt;</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>cacert.pem</pre></div></div>
<p><strong>Per terminare facciamo un bel restart del servizio:</strong><br />
<div id="wpshdo_15" class="wp-synhighlighter-outer"><div id="wpshdt_15" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_15"></a><a id="wpshat_15" class="wp-synhighlighter-title" href="#codesyntax_15"  onClick="javascript:wpsh_toggleBlock(15)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_15" onClick="javascript:wpsh_code(15)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_15" onClick="javascript:wpsh_print(15)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_15" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>postfix restart</pre></div></div>
<p><strong>Facciamo una prova d&#8217;invio da console:</strong><br />
<div id="wpshdo_16" class="wp-synhighlighter-outer"><div id="wpshdt_16" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_16"></a><a id="wpshat_16" class="wp-synhighlighter-title" href="#codesyntax_16"  onClick="javascript:wpsh_toggleBlock(16)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_16" onClick="javascript:wpsh_code(16)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_16" onClick="javascript:wpsh_print(16)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_16" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> <span class="st0">&quot;Questa è una prova d'invio tramite Gmail.&quot;</span> <span class="sy0">|</span> mail <span class="re5">-s</span> <span class="st0">&quot;Email di Test&quot;</span> francesco.gabriele<span class="sy0">@</span>gmail.com</pre></div></div>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/27/configurare-postfix-come-smtp-gmail-relay/">Configurare Postfix come smtp Gmail Relay</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/10/27/configurare-postfix-come-smtp-gmail-relay/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reboot Forzato su Linux</title>
		<link>http://www.linux360.it/2014/10/08/reboot-forzato-su-linux/</link>
		<comments>http://www.linux360.it/2014/10/08/reboot-forzato-su-linux/#comments</comments>
		<pubDate>Wed, 08 Oct 2014 13:17:20 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[emergenza]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[reboot]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=772</guid>
		<description><![CDATA[<p>Se anche voi come me avete un server linux che è parzialmente bloccato e che non riuscite a riavviare in nessun modo (reboot,init 6 ecc..) E vi sentite male solo al pensiero di farvi 37KM per riavviarlo fisicamente.. potete eseguire questi magici comandi. Riavvio immediato: Se invece per qualche motivo vogliamo spegnerla completamente basta fare: ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/08/reboot-forzato-su-linux/">Reboot Forzato su Linux</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Se anche voi come me avete un server linux che è parzialmente bloccato<br />
e che non riuscite a riavviare in nessun modo (reboot,init 6 ecc..)<br />
E vi sentite male solo al pensiero di farvi 37KM per riavviarlo fisicamente.. <img src="http://www.linux360.it/wp-includes/images/smilies/icon_biggrin.gif" alt=":-D" class="wp-smiley" /><br />
potete eseguire questi magici comandi.</p>
<p><strong>Riavvio immediato</strong>:</p>
<div id="wpshdo_17" class="wp-synhighlighter-outer"><div id="wpshdt_17" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_17"></a><a id="wpshat_17" class="wp-synhighlighter-title" href="#codesyntax_17"  onClick="javascript:wpsh_toggleBlock(17)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_17" onClick="javascript:wpsh_code(17)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_17" onClick="javascript:wpsh_print(17)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_17" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> 1 <span class="sy0">&gt;</span> <span class="sy0">/</span>proc<span class="sy0">/</span>sys<span class="sy0">/</span>kernel<span class="sy0">/</span>sysrq 
<span class="kw3">echo</span> b <span class="sy0">&gt;</span> <span class="sy0">/</span>proc<span class="sy0">/</span>sysrq-trigger</pre></div></div>
<p><strong>Se invece per qualche motivo vogliamo spegnerla completamente basta fare:</strong></p>
<div id="wpshdo_18" class="wp-synhighlighter-outer"><div id="wpshdt_18" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_18"></a><a id="wpshat_18" class="wp-synhighlighter-title" href="#codesyntax_18"  onClick="javascript:wpsh_toggleBlock(18)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_18" onClick="javascript:wpsh_code(18)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_18" onClick="javascript:wpsh_print(18)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_18" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw3">echo</span> 1 <span class="sy0">&gt;</span> <span class="sy0">/</span>proc<span class="sy0">/</span>sys<span class="sy0">/</span>kernel<span class="sy0">/</span>sysrq 
<span class="kw3">echo</span> o <span class="sy0">&gt;</span> <span class="sy0">/</span>proc<span class="sy0">/</span>sysrq-trigger</pre></div></div>
<p>Spero di aver rallegrato la giornata a molti con questa soluzione <img src="http://www.linux360.it/wp-includes/images/smilies/icon_biggrin.gif" alt=":-D" class="wp-smiley" /> </p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/08/reboot-forzato-su-linux/">Reboot Forzato su Linux</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/10/08/reboot-forzato-su-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix: Autenticazione SASL</title>
		<link>http://www.linux360.it/2014/10/02/postfix-sasl-auth/</link>
		<comments>http://www.linux360.it/2014/10/02/postfix-sasl-auth/#comments</comments>
		<pubDate>Thu, 02 Oct 2014 16:14:48 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[sasl]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=1990</guid>
		<description><![CDATA[<p>Ciao Ragazzi, oggi andiamo sul tecnico. Questo articolo server a chi utilizza Postfix come SMTP Server e nel caso specifico ad implementare l&#8217;autenticazione mediante il sistema Simple Authentication and Security Layer (SASL) Questo sistema prevede la possibilità di integrare diverse modalità di autenticazione: - EXTERNAL, in cui l&#8217;autenticazione è implicita nel contesto (per esempio, nei ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/02/postfix-sasl-auth/">Postfix: Autenticazione SASL</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ciao Ragazzi,</p>
<p>oggi andiamo sul tecnico.</p>
<p>Questo articolo server a chi utilizza Postfix come SMTP Server e nel caso specifico ad implementare l&#8217;autenticazione mediante il sistema <b>Simple Authentication and Security Layer</b> (SASL)</p>
<p>Questo sistema prevede la possibilità di integrare diverse modalità di autenticazione:</p>
<p>- EXTERNAL, in cui l&#8217;autenticazione è implicita nel contesto (per esempio, nei protocolli che già utilizzano IPsec o TLS)<br />
- ANONYMOUS, per accessi guest non autenticati<br />
- PLAIN, per gli accessi in testo chiaro<br />
- OTP, un meccanismo one-time password. (OTP è stato reso obsoleto da SKEY)<br />
- SKEY, meccanismo S/KEY.<br />
- CRAM-MD5, un semplice schema challenge-response basato su HMAC-MD5.<br />
- DIGEST-MD5 (storico), meccanismo challenge-response compatibile parzialmente con HTTP Digest basato su MD5.<br />
- SCRAM (RFC 5802), schema moderno challenge-response con supporto al binding del canale<br />
- NTLM, schema di autenticazione NT LAN Manage<br />
- GSSAPI, per Kerberos V5 authentication attraverso il GSSAPI.<br />
- BROWSERID-AES128, per Mozilla Persona authentication<br />
- EAP-AES128, per GSS EAP authentication<br />
- GateKeeper (&amp; GateKeeperPassport), meccanismo challenge-response sviluppato da Microsoft per MSN Chat</p>
<p>Quello che vediamo oggi per Postfix è il più semplice ovvero il <strong>PLAIN</strong> con login tramite username e password memorizzati in un Database MySQL.</p>
<p>In questo articolo do per scontato che Postfix sia installato e funzionante.</p>
<p>Installiamo il demone di SASL:</p>
<div id="wpshdo_19" class="wp-synhighlighter-outer"><div id="wpshdt_19" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_19"></a><a id="wpshat_19" class="wp-synhighlighter-title" href="#codesyntax_19"  onClick="javascript:wpsh_toggleBlock(19)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_19" onClick="javascript:wpsh_code(19)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_19" onClick="javascript:wpsh_print(19)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_19" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">apt-get</span> <span class="kw2">install</span> libsasl2-<span class="nu0">2</span> libsasl2-modules libsasl2-modules-sql sasl2-bin libpam-mysql</pre></div></div>
<p>&nbsp;</p>
<p>Fatto questo modifichiamo il file <strong>/etc/default/saslauthd </strong>sostituendo START=no con START=yes così il demone partirà all&#8217;avvio del pc.</p>
<p>Inoltre modificate la stringa OPTIONS=&#8230;. così OPTIONS=&#8221;-c -r -m /var/spool/postfix/var/run/saslauthd&#8221; questo è necessario perchè Postfix è eseguito come chroot e ha bisogno di accedere al socket di saslauthd</p>
<p>Inoltre dobbiamo creare la directory:</p>
<div id="wpshdo_20" class="wp-synhighlighter-outer"><div id="wpshdt_20" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_20"></a><a id="wpshat_20" class="wp-synhighlighter-title" href="#codesyntax_20"  onClick="javascript:wpsh_toggleBlock(20)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_20" onClick="javascript:wpsh_code(20)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_20" onClick="javascript:wpsh_print(20)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_20" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">mkdir</span> <span class="re5">-p</span> <span class="sy0">/</span>var<span class="sy0">/</span>spool<span class="sy0">/</span>postfix<span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>saslauthd</pre></div></div>
<p>Sempre per l&#8217;ambiente chroot è necessario creare il link simbolico:</p>
<div id="wpshdo_21" class="wp-synhighlighter-outer"><div id="wpshdt_21" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_21"></a><a id="wpshat_21" class="wp-synhighlighter-title" href="#codesyntax_21"  onClick="javascript:wpsh_toggleBlock(21)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_21" onClick="javascript:wpsh_code(21)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_21" onClick="javascript:wpsh_print(21)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_21" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">rm</span> <span class="re5">-rf</span> <span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>saslauthd
<span class="kw2">ln</span> <span class="re5">-s</span> <span class="sy0">/</span>var<span class="sy0">/</span>spool<span class="sy0">/</span>postfix<span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>saslauthd <span class="sy0">/</span>var<span class="sy0">/</span>run<span class="sy0">/</span>saslauthd</pre></div></div>
<p><span style="color: #ff0000;">ATTENZIONE</span>: se non cancellate il file /var/run/saslauthd testando il sistema avrete l&#8217;errore <em>&#8220;connect() : No such file or directory 0&#8243;</em></p>
<p>Creiamo un nuovo file:</p>
<div id="wpshdo_22" class="wp-synhighlighter-outer"><div id="wpshdt_22" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_22"></a><a id="wpshat_22" class="wp-synhighlighter-title" href="#codesyntax_22"  onClick="javascript:wpsh_toggleBlock(22)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_22" onClick="javascript:wpsh_code(22)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_22" onClick="javascript:wpsh_print(22)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_22" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vi</span> <span class="sy0">/</span>etc<span class="sy0">/</span>pam.d<span class="sy0">/</span>smtp</pre></div></div>
<p>Modifichiamo il file come segue:</p>
<div id="wpshdo_23" class="wp-synhighlighter-outer"><div id="wpshdt_23" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_23"></a><a id="wpshat_23" class="wp-synhighlighter-title" href="#codesyntax_23"  onClick="javascript:wpsh_toggleBlock(23)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_23" onClick="javascript:wpsh_code(23)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_23" onClick="javascript:wpsh_print(23)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_23" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">auth    required   pam_mysql.so <span class="re2">user</span>=mailadmin <span class="kw2">passwd</span>=newpassword <span class="re2">host</span>=127.0.0.1 <span class="re2">db</span>=mail <span class="re2">table</span>=mailbox <span class="re2">usercolumn</span>=username <span class="re2">passwdcolumn</span>=password <span class="re2">crypt</span>=1
account sufficient pam_mysql.so <span class="re2">user</span>=mailadmin <span class="kw2">passwd</span>=newpassword <span class="re2">host</span>=127.0.0.1 <span class="re2">db</span>=mail <span class="re2">table</span>=mailbox <span class="re2">usercolumn</span>=username <span class="re2">passwdcolumn</span>=password <span class="re2">crypt</span>=<span class="nu0">1</span></pre></div></div>
<p>Abbiamo necessità di un secondo file:</p>
<div id="wpshdo_24" class="wp-synhighlighter-outer"><div id="wpshdt_24" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_24"></a><a id="wpshat_24" class="wp-synhighlighter-title" href="#codesyntax_24"  onClick="javascript:wpsh_toggleBlock(24)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_24" onClick="javascript:wpsh_code(24)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_24" onClick="javascript:wpsh_print(24)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_24" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="kw2">vi</span> <span class="sy0">/</span>etc<span class="sy0">/</span>postfix<span class="sy0">/</span>sasl<span class="sy0">/</span>smtpd.conf</pre></div></div>
<p>Che editiamo come segue:</p>
<div id="wpshdo_25" class="wp-synhighlighter-outer"><div id="wpshdt_25" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_25"></a><a id="wpshat_25" class="wp-synhighlighter-title" href="#codesyntax_25"  onClick="javascript:wpsh_toggleBlock(25)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_25" onClick="javascript:wpsh_code(25)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_25" onClick="javascript:wpsh_print(25)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_25" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pwcheck_method: saslauthd
mech_list: plain <span class="kw2">login</span>
allow_plaintext: <span class="kw2">true</span></pre></div></div>
<p>Nel caso di autenticazione basata su DB MySQL il file va editato come segue (attenzione a mettere i nomi giusti del db e delle tabelle!):</p>
<div id="wpshdo_26" class="wp-synhighlighter-outer"><div id="wpshdt_26" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_26"></a><a id="wpshat_26" class="wp-synhighlighter-title" href="#codesyntax_26"  onClick="javascript:wpsh_toggleBlock(26)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_26" onClick="javascript:wpsh_code(26)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_26" onClick="javascript:wpsh_print(26)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_26" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">pwcheck_method: saslauthd
mech_list: plain <span class="kw2">login</span>
allow_plaintext: <span class="kw2">true</span>
auxprop_plugin: sql
sql_engine: mysql
sql_hostnames: 127.0.0.1
sql_user: dbuser
sql_passwd: dbpassword
sql_database: dbname
sql_select: SELECT password FROM user WHERE username = <span class="st_h">'%u@%r'</span></pre></div></div>
<p>Aggiungiamo l&#8217;utente postfix al gruppo sasl:</p>
<div id="wpshdo_27" class="wp-synhighlighter-outer"><div id="wpshdt_27" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_27"></a><a id="wpshat_27" class="wp-synhighlighter-title" href="#codesyntax_27"  onClick="javascript:wpsh_toggleBlock(27)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_27" onClick="javascript:wpsh_code(27)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_27" onClick="javascript:wpsh_print(27)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_27" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">adduser postfix sasl</pre></div></div>
<p>Poi provvediamo ad inserire le voci per l&#8217;autenticazione SASL dentro il main.cf di Postfix:</p>
<div id="wpshdo_28" class="wp-synhighlighter-outer"><div id="wpshdt_28" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_28"></a><a id="wpshat_28" class="wp-synhighlighter-title" href="#codesyntax_28"  onClick="javascript:wpsh_toggleBlock(28)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_28" onClick="javascript:wpsh_code(28)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_28" onClick="javascript:wpsh_print(28)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_28" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination</pre></div></div>
<p>Riavviamo i servizi:</p>
<div id="wpshdo_29" class="wp-synhighlighter-outer"><div id="wpshdt_29" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_29"></a><a id="wpshat_29" class="wp-synhighlighter-title" href="#codesyntax_29"  onClick="javascript:wpsh_toggleBlock(29)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_29" onClick="javascript:wpsh_code(29)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_29" onClick="javascript:wpsh_print(29)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_29" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>postfix restart
<span class="sy0">/</span>etc<span class="sy0">/</span>init.d<span class="sy0">/</span>saslauthd restart</pre></div></div>
<p>E proviamo che tutto funziona correttamente:</p>
<div id="wpshdo_30" class="wp-synhighlighter-outer"><div id="wpshdt_30" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_30"></a><a id="wpshat_30" class="wp-synhighlighter-title" href="#codesyntax_30"  onClick="javascript:wpsh_toggleBlock(30)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_30" onClick="javascript:wpsh_code(30)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_30" onClick="javascript:wpsh_print(30)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_30" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">razorblade:~<span class="co0"># testsaslauthd -s smtp -u root@example.com -p newpassword</span>
<span class="nu0">0</span>: OK <span class="st0">&quot;Success.&quot;</span></pre></div></div>
<p>Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/10/02/postfix-sasl-auth/">Postfix: Autenticazione SASL</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/10/02/postfix-sasl-auth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>“cannot open the disk Reason : The parent virtual disk has been modified since the child was created”</title>
		<link>http://www.linux360.it/2014/09/24/cannot-open-the-disk-reason-the-parent-virtual-disk-has-been-modified-since-the-child-was-created/</link>
		<comments>http://www.linux360.it/2014/09/24/cannot-open-the-disk-reason-the-parent-virtual-disk-has-been-modified-since-the-child-was-created/#comments</comments>
		<pubDate>Wed, 24 Sep 2014 18:50:54 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=157</guid>
		<description><![CDATA[<p>A seguito di modifiche mentre il server VMware ha tutte le risorse impegnate può succedere che vi venga fuori questo errore: Cannot open the disk Reason : The parent virtual disk has been modified since the child was created Questo errore non permette di avviare la macchina virtuale, dopo una ricerca nella kb di vmware ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/24/cannot-open-the-disk-reason-the-parent-virtual-disk-has-been-modified-since-the-child-was-created/">“cannot open the disk Reason : The parent virtual disk has been modified since the child was created”</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>A seguito di modifiche mentre il server VMware ha tutte le risorse impegnate può succedere che vi venga fuori questo errore:</p>
<p>Cannot open the disk Reason : The parent virtual disk has been modified since the child was created</p>
<p>Questo errore non permette di avviare la macchina virtuale, dopo una ricerca nella kb di vmware sembra che il problema risiede</p>
<p>nel vmdk della snapshot che ha perso il parent cid.</p>
<p>Per risolvere il problema collegarsi via ssh al server Esxi navigare all’interno del datastore fino a trovare la directory della macchina virtuale.</p>
<p># cd /vmfs/volumes/46c0f14f-55428b78-a2d3-0018fe79b968/hudson</p>
<p>facciamo ls  e troviamo i file che ci interessano (il vmdk originale, gli snapshot e il vmx).</p>
<p>/vmfs/volumes/46c0f14f-55428b78-a2d3-0018fe79b968/hudson# ls</p>
<p>hudson01.vmdk</p>
<p>hudson01-000001.vmdk</p>
<p>hudson01-000002.vmdk</p>
<p>hudson01.vmx</p>
<p>Cerchiamo di capire quindi cosa veniva avviato, apriamo il file vmx e andiamo a leggere il campo scsi0:0.fileName</p>
<p>scsi0:0.fileName = &#8220;hudson01-000002.vmdk&#8221;</p>
<p>Nel nostro caso significa che a partire è il secondo snapshot (identificato dallo 000002).</p>
<p>Apriamo il vmdk originale con l&#8217;editor vi.</p>
<p># Disk DescriptorFile</p>
<p>version=1</p>
<p>CID=bea5305c</p>
<p>parentCID=ffffffff</p>
<p>createType=&#8221;vmfs&#8221;</p>
<p># Extent description</p>
<p>RW 41943040 VMFS &#8220;hudson-flat.vmdk&#8221;</p>
<p># The Disk Data Base</p>
<p>#DDB</p>
<p>ddb.geometry.biosSectors = &#8220;63&#8243;</p>
<p>ddb.geometry.biosHeads = &#8220;255&#8243;</p>
<p>ddb.geometry.biosCylinders = &#8220;2610&#8243;</p>
<p>ddb.adapterType = &#8220;buslogic&#8221;</p>
<p>ddb.geometry.sectors = &#8220;63&#8243;</p>
<p>ddb.geometry.heads = &#8220;255&#8243;</p>
<p>ddb.geometry.cylinders = &#8220;2610&#8243;</p>
<p>ddb.uuid = &#8220;99 01 C4 9f 36 ce 65 03-73 55 15 7e 92 88 c8 4c&#8221;</p>
<p>ddb.toolsVersion = &#8220;5353&#8243;</p>
<p>ddb.virtualHWVersion = &#8220;7&#8243;</p>
<p>Il campo che ci interessa è CID (in questo caso bea5305c), che andremo a sostituire nel campo parentCID del primo snapshot.</p>
<p>/vmfs/volumes/46c0f14f-55428b78-a2d3-0018fe79b968/hudson# vi hudson-000001.vmdk</p>
<p># Disk DescriptorFile</p>
<p>version=1</p>
<p>CID=b9567c51</p>
<p>parentCID=bea5305c</p>
<p>createType=&#8221;vmfsSparse&#8221;</p>
<p>parentFileNameHint=&#8221;hudson.vmdk&#8221;</p>
<p># Extent description</p>
<p>RW 41943040 VMFSSPARSE &#8220;hudson-000001-delta.vmdk&#8221;</p>
<p># The Disk Data Base</p>
<p>#DDB</p>
<p>ddb.toolsVersion = &#8220;5353&#8243;</p>
<p>Salviamo con :wq</p>
<p>Il primo snapshot è ora sistemato, dobbiamo poi riparare il secondo, apriamolo con vi e vediamo di chi è parent.</p>
<p>/vmfs/volumes/46c0f14f-55428b78-a2d3-0018fe79b968/hudson # vi hudson-000002.vmdk</p>
<p># Disk DescriptorFile</p>
<p>version=1</p>
<p>CID=1efd6875</p>
<p>parentCID=b9567c51</p>
<p>createType=&#8221;vmfsSparse&#8221;</p>
<p>parentFileNameHint=&#8221;hudson-000001.vmdk&#8221;</p>
<p># Extent description</p>
<p>RW 41943040 VMFSSPARSE &#8220;hudson-000002-delta.vmdk&#8221;</p>
<p># The Disk Data Base</p>
<p>#DDB</p>
<p>ddb.toolsVersion = &#8220;5353”</p>
<p>Dal campo parentFileNameHint capiamo che è legato al primo snapshot (hudson-000001.vmdk), prenderemo quindi il valore CID presente nel file Webserv01-000001.vmdk, e lo sostituiremo come valore parentCID in hudson-000002.vmdk.</p>
<p>Salviamo con :wq</p>
<p>Ora possiamo avviare tranquillamente la nostra macchina virtuale.</p>
<p>Spero possa essere di aiuto</p>
<p>Bye</p>
<p>Frank</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/24/cannot-open-the-disk-reason-the-parent-virtual-disk-has-been-modified-since-the-child-was-created/">“cannot open the disk Reason : The parent virtual disk has been modified since the child was created”</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/09/24/cannot-open-the-disk-reason-the-parent-virtual-disk-has-been-modified-since-the-child-was-created/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Come cambiare la password di Admin di Pentaho</title>
		<link>http://www.linux360.it/2014/09/19/come-cambiare-la-password-di-admin-di-pentaho/</link>
		<comments>http://www.linux360.it/2014/09/19/come-cambiare-la-password-di-admin-di-pentaho/#comments</comments>
		<pubDate>Fri, 19 Sep 2014 13:08:56 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=164</guid>
		<description><![CDATA[<p>1) Generiamo la nuova password crittografata ci posizioniamo nella home della administration console ex. biserver-ce/administration-console java -cp lib/jetty-6.1.2.jar:lib/jetty-util-6.1.9.jar org.mortbay.jetty.security.Password admin mypassword dovrebbe dare un risultato del genere: mypassword OBF:1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm MD5:34819d7beeabb9260a5c854bc85b3e44 CRYPT:adS/4zigRVhZk 2) Prendiamo il risultato della colonna OBF &#8220;1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm&#8221; e la sostituiamo nel file biserver-ce/administration-console/resource/config/login.properties vim biserver-ce/administration-console/resource/config/login.properties admin: OBF:1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm,server-administrator,content-administrator,admin Dopo un bel stop and start ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/19/come-cambiare-la-password-di-admin-di-pentaho/">Come cambiare la password di Admin di Pentaho</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>1) Generiamo la nuova password crittografata</p>
<p>ci posizioniamo nella home della administration console ex. biserver-ce/administration-console</p>
<p>java -cp lib/jetty-6.1.2.jar:lib/jetty-util-6.1.9.jar org.mortbay.jetty.security.Password admin mypassword</p>
<p>dovrebbe dare un risultato del genere:<br />
mypassword<br />
OBF:1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm<br />
MD5:34819d7beeabb9260a5c854bc85b3e44<br />
CRYPT:adS/4zigRVhZk</p>
<p>2) Prendiamo il risultato della colonna OBF &#8220;1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm&#8221;<br />
e la sostituiamo nel file biserver-ce/administration-console/resource/config/login.properties</p>
<p>vim biserver-ce/administration-console/resource/config/login.properties</p>
<p>admin: OBF:1uh41zly1x8g1vu11ym71ym71vv91x8e1zlk1ugm,server-administrator,content-administrator,admin</p>
<p>Dopo un bel stop and start di Pentaho, riusciremo ad entrare nella console di amministrazione &#8220;0.0.0.0:8099&#8243; con la nuova password.</p>
<p>Spero possa essere utile a molti</p>
<p>By</p>
<p>Frank</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/19/come-cambiare-la-password-di-admin-di-pentaho/">Come cambiare la password di Admin di Pentaho</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/09/19/come-cambiare-la-password-di-admin-di-pentaho/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Collegare due Centralini Asterisk tramite il protollo IAX</title>
		<link>http://www.linux360.it/2014/09/05/collegare-due-centralini-asterisk-tramite-il-protollo-iax/</link>
		<comments>http://www.linux360.it/2014/09/05/collegare-due-centralini-asterisk-tramite-il-protollo-iax/#comments</comments>
		<pubDate>Fri, 05 Sep 2014 09:48:31 +0000</pubDate>
		<dc:creator><![CDATA[Francesco Gabriele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[asterisk]]></category>

		<guid isPermaLink="false">http://www.ubuntuserver.it/?p=169</guid>
		<description><![CDATA[<p>Qualche giorno fa mi è venuta l&#8217;idea di collegare un centralino asterisk che ho in ufficio e che uso come test con il mio centralino di casa. Allora pongo la domanda al mio caro amico Walter esperto di Asterisk e lui mi risponde cosi: Certo che si può fare (a patto che i centralini da ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/05/collegare-due-centralini-asterisk-tramite-il-protollo-iax/">Collegare due Centralini Asterisk tramite il protollo IAX</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Qualche giorno fa mi è venuta l&#8217;idea di collegare un centralino asterisk che ho in ufficio e che uso come test con il mio centralino di casa.<br />
Allora pongo la domanda al mio caro amico Walter esperto di Asterisk e lui mi risponde cosi:</p>
<p>Certo che si può fare (a patto che i centralini da collegare abbiano una connessione adsl, o comunque a banda larga)<br />
basta usare IAX che è il protocollo di interconnessione nativo di asterisk.<br />
Poi mi spiegava che questo protocollo ha una serie di vantaggi in confronto al piu tiffuso dei protolli.. SIP</p>
<p>1) può incapsulare tutto il traffico in un unico canale<br />
2) usa una sola porta di comunicazione<br />
3) l’attraversamento delle NAT è nativo, e non da problemi<br />
4) permette di selezionare il punto di arrivo nel dialplan di destinazione sin dall’origine<br />
5) permette l&#8217;autenticazione su chiave pubblica</p>
<p>comunque tante altre piccole funzionalità che nell’insieme lo rendono imbattibile.</p>
<p>Mi sono studiato la configurazione e alla fine non è stata molto difficile.<br />
Veniamo al sodo abbiamo due centralini (Hardy e Karmic in perfetto stile Ubuntu) di cui vado ad illustrare iax.conf:</p>
<p><strong>Hardy</strong><br />
iax.conf:<br />
[general]
<p>bindport=4569<br />
bindaddr=0.0.0.0<br />
language=it<br />
bandwidth=medium<br />
disallow=all<br />
allow=gsm<br />
allow=g729<br />
allow=alaw<br />
jitterbuffer=no<br />
forcejitterbuffer=no<br />
autokill=yes<br />
requirecalltoken=no<br />
mailboxdetail=yes<br />
minregexpire=360<br />
maxregexpire=3600</p>
[karmic]
type=friend<br />
username=ubuntu<br />
secret=linux<br />
auth=plaintext<br />
host=karmic.mydomain.it<br />
context=fromiax<br />
peercontext=fromiax<br />
qualify=yes<br />
transfer=yes</p>
<p><strong>Karmic</strong><br />
iax.conf:<br />
[general]
<p>bindport=4569<br />
bindaddr=0.0.0.0<br />
language=it<br />
bandwidth=medium<br />
disallow=all<br />
allow=gsm<br />
allow=g729<br />
allow=alaw<br />
jitterbuffer=no<br />
forcejitterbuffer=no<br />
autokill=yes<br />
requirecalltoken=no<br />
mailboxdetail=yes<br />
minregexpire=360<br />
maxregexpire=3600</p>
[hardy]
type=friend<br />
username=ubuntu<br />
secret=linux<br />
auth=plaintext<br />
host=hardy.mydomain.it<br />
context=fromiax<br />
peercontext=fromiax<br />
qualify=yes<br />
transfer=yes</p>
<p>Le righe da inserire in extensions.conf a questo punto sono abbastanza semplici e logiche;</p>
<p><strong>Hardy</strong><br />
extensions.conf<br />
[uscita]
exten =&gt; _88XXX,1,Dial(IAX2/karmic/${EXTEN:2})</p>
[...]
[fromiax]
exten =&gt; _X.,1,Set(CALLERID(name)=Karmic)<br />
exten =&gt; _X.,n,Goto(interni,${EXTEN},1)</p>
<p><strong>Karmic</strong><br />
extensions.conf<br />
[uscita]
exten =&gt; _88XXX,1,Dial(IAX2/hardy/${EXTEN:2})</p>
[...]
[fromiax]
exten =&gt; _X.,1,Set(CALLERID(name)=Hardy)<br />
exten =&gt; _X.,n,Goto(interni,${EXTEN},1)</p>
<p>Come potete vedere nel primo esempio per chiamare un interno remoto basta seleziona 88 + l&#8217;interno, mentre il secondo esempio è la rotta in entrata che cambia il Caller ID per distinguere chi chiama, e poi inoltra la chiamata nel contesto interni che è il contesto in cui si trovano i miei interni.</p>
<p>Spero possa essere utile a molti.</p>
<p>By</p>
<p>Frank</p>
<p>&nbsp;</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/09/05/collegare-due-centralini-asterisk-tramite-il-protollo-iax/">Collegare due Centralini Asterisk tramite il protollo IAX</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/09/05/collegare-due-centralini-asterisk-tramite-il-protollo-iax/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Linux How To Whois New Tlds</title>
		<link>http://www.linux360.it/2014/07/30/linux-how-to-whois-new-tlds/</link>
		<comments>http://www.linux360.it/2014/07/30/linux-how-to-whois-new-tlds/#comments</comments>
		<pubDate>Wed, 30 Jul 2014 16:24:18 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[howto]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Programmazione]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=1955</guid>
		<description><![CDATA[<p>Ciao Ragazzi, oggi uno script carino per fare il whois dei nuovi gtlds (.shop, .club, .news) solo usando la CLI di Linux! Semplicissimo: Modificate/Create il file /etc/whois.conf  e aggiungete il seguente testo: Salvate e uscite! Il gioco è fatto adesso potete provare direttamente da shell con il seguente comando: whois paolodaniele.club Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/30/linux-how-to-whois-new-tlds/">Linux How To Whois New Tlds</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Ciao Ragazzi,</p>
<p>oggi uno script carino per fare il whois dei nuovi gtlds (.shop, .club, .news) solo usando la CLI di Linux!</p>
<p>Semplicissimo:</p>
<p>Modificate/Create il file <em><strong>/etc/whois.conf</strong></em>  e aggiungete il seguente testo:</p>
<div id="wpshdo_31" class="wp-synhighlighter-outer"><div id="wpshdt_31" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_31"></a><a id="wpshat_31" class="wp-synhighlighter-title" href="#codesyntax_31"  onClick="javascript:wpsh_toggleBlock(31)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_31" onClick="javascript:wpsh_code(31)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_31" onClick="javascript:wpsh_print(31)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_31" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">## </span>
<span class="co0"># WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)</span>
<span class="co0">##</span>
&nbsp;
.academy$ whois.donuts.co
.actor$ whois.unitedtld.com
.agency$ whois.donuts.co
.bar$ whois.nic.bar
.bargains$ whois.donuts.co
.berlin$ whois.nic.berlin
.best$ whois.nic.best
.bid$ whois.nic.bid
.bike$ whois.donuts.co
.blue$ whois.afilias.net
.boutique$ whois.donuts.co
.build$ whois.nic.build
.builders$ whois.donuts.co
.buzz$ whois.nic.buzz
.cab$ whois.donuts.co
.camera$ whois.donuts.co
.camp$ whois.donuts.co
.cards$ whois.donuts.co
.careers$ whois.donuts.co
.catering$ whois.donuts.co
.center$ whois.donuts.co
.ceo$ whois.nic.ceo
.cheap$ whois.donuts.co
.christmas$ whois.uniregistry.net
.cleaning$ whois.donuts.co
.clothing$ whois.donuts.co
.club$ whois.nic.club
.codes$ whois.donuts.co
.coffee$ whois.donuts.co
.cologne$ whois-fe1.pdt.cologne.tango.knipp.de
.community$ whois.donuts.co
.company$ whois.donuts.co
.computer$ whois.donuts.co
.construction$ whois.donuts.co
.contractors$ whois.donuts.co
.cool$ whois.donuts.co
.cruises$ whois.donuts.co
.dance$ whois.unitedtld.com
.dating$ whois.donuts.co
.democrat$ whois.unitedtld.com
.diamonds$ whois.donuts.co
.directory$ whois.donuts.co
.domains$ whois.donuts.co
.education$ whois.donuts.co
.email$ whois.donuts.co
.enterprises$ whois.donuts.co
.equipment$ whois.donuts.co
.estate$ whois.donuts.co
.events$ whois.donuts.co
.expert$ whois.donuts.co
.exposed$ whois.donuts.co
.farm$ whois.donuts.co
.fish$ whois.donuts.co
.flights$ whois.donuts.co
.florist$ whois.donuts.co
.foundation$ whois.donuts.co
.futbol$ whois.unitedtld.com
.gallery$ whois.donuts.co
.gift$ whois.uniregistry.net
.glass$ whois.donuts.co
.graphics$ whois.donuts.co
.guitars$ whois.uniregistry.net
.guru$ whois.donuts.co
.holdings$ whois.donuts.co
.holiday$ whois.donuts.co
.house$ whois.donuts.co
.immobilien$ whois.unitedtld.com
.industries$ whois.donuts.co
.institute$ whois.donuts.co
.international$ whois.donuts.co
.jetzt$ whois.nic.jetzt
.jobs$ jobswhois.verisign-grs.com
.kaufen$ whois.unitedtld.com
.kim$ whois.afilias.net
.kitchen$ whois.donuts.co
.kiwi$ whois.dot-kiwi.com
.koeln$ whois-fe1.pdt.koeln.tango.knipp.de
.kred$ whois.nic.kred
.land$ whois.donuts.co
.lighting$ whois.donuts.co
.limo$ whois.donuts.co
.link$ whois.uniregistry.net
.london$ whois-lon.mm-registry.com
.luxury$ whois.nic.luxury
.management$ whois.donuts.co
.mango$ whois.mango.coreregistry.net
.marketing$ whois.donuts.co
.menu$ whois.nic.menu
.moda$ whois.unitedtld.com
.monash$ whois.nic.monash
.nagoya$ whois.gmoregistry.net
.ninja$ whois.unitedtld.com
.nyc$ whois.nic.nyc
.okinawa$ whois.gmoregistry.ne
.partners$ whois.donuts.co
.parts$ whois.donuts.co
.photo$ whois.uniregistry.net
.photography$ whois.donuts.co
.photos$ whois.donuts.co
.pics$ whois.uniregistry.net
.pink$ whois.afilias.net
.plumbing$ whois.donuts.co
.productions$ whois.donuts.co
.properties$ whois.donuts.co
.pub$ whois.unitedtld.com
.qpon$ whois.nic.qpon
.recipes$ whois.donuts.co
.red$ whois.nic.red
.rentals$ whois.donuts.co
.repair$ whois.donuts.co
.report$ whois.donuts.co
.reviews$ whois.unitedtld.com
.rich$ whois.afilias-srs.net
.ruhr$ whois.nic.ruhr
.sexy$ whois.uniregistry.net
.shiksha$ whois.nic.shiksha
.shoes$ whois.donuts.co
.singles$ whois.donuts.co
.social$ whois.unitedtld.com
.sohu$ whois.gtld.knet.cn
.solar$ whois.donuts.co
.solutions$ whois.donuts.co
.supplies$ whois.donuts.co
.supply$ whois.donuts.co
.support$ whois.donuts.co
.systems$ whois.donuts.co
.tattoo$ whois.uniregistry.net
.technology$ whois.donuts.co
.tienda$ whois.donuts.co
.tips$ whois.donuts.co
.today$ whois.donuts.co
.tokyo$ whois.nic.tokyo
.tools$ whois.donuts.co
.trade$ whois.nic.trade
.training$ whois.donuts.co
.uno$ whois.nic.uno
.vacations$ whois.donuts.co
.ventures$ whois.donuts.co
.viajes$ whois.donuts.co
.villas$ whois.donuts.co
.vision$ whois.donuts.co
.vote$ whois.afilias.net
.voting$ whois.nic.voting
.voto$ whois.afilias.net
.voyage$ whois.donuts.co
.wang$ whois.gtld.knet.cn
.watch$ whois.donuts.co
.webcam$ whois.nic.webcam
.wed$ whois.nic.wed
.wien$ whois.nic.wien
.wiki$ whois.nic.wiki
.works$ whois.donuts.co
.xn--3bst00m$ whois.gtld.knet.cn
.xn--3ds443g$ whois.afilias-srs.net
.xn--55qw42g$ whois.conac.cn
.xn--55qx5d$ whois.ngtld.cn
.xn--6frz82g$ whois.afilias.net
.xn--6qq986b3xl$ whois.gtld.knet.cn
.xn--80asehdb$ whois.online.rs.corenic.net
.xn--80aswg$ whois.site.rs.corenic.net
.xn--c1avg$ whois.publicinterestregistry.net
.xn--cg4bki$ whois.kr
.xn--d1acj3b$ whois.nic.xn--d1acj3b
.xn--fiq228c5hs$ whois.afilias-srs.net
.xn--fiq64b$ whois.gtld.knet.cn
.xn--i1b6b1a6a2e$ whois.publicinterestregistry.net
.xn--io0a7i$ whois.ngtld.cn
.xn--mgbab2bd$ whois.bazaar.coreregistry.net
.xn--ngbc5azd$ whois.nic.xn--ngbc5azd
.xn--nqv7f$ whois.publicinterestregistry.net
.xn--nqv7fs00ema$ whois.publicinterestregistry.net
.xn--q9jyb4c$ domain-registry-whois.l.google.com
.xn--rhqv96g$ whois.nic.xn--rhqv96g
.xn--unup4y$ whois.donuts.co
.xn--zfr164b$ whois.conac.cn
.xyz$ whois.nic.xyz
.zone$ whois.donuts.co</pre></div></div>
<p>Salvate e uscite!</p>
<p>Il gioco è fatto adesso potete provare direttamente da shell con il seguente comando:</p>
<p>whois paolodaniele.club</p>
<p>Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/30/linux-how-to-whois-new-tlds/">Linux How To Whois New Tlds</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/07/30/linux-how-to-whois-new-tlds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux whois nuovi TLDs</title>
		<link>http://www.linux360.it/2014/07/30/linux-whois-tlds/</link>
		<comments>http://www.linux360.it/2014/07/30/linux-whois-tlds/#comments</comments>
		<pubDate>Wed, 30 Jul 2014 16:13:13 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Varie]]></category>
		<category><![CDATA[nic]]></category>
		<category><![CDATA[tld]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=1951</guid>
		<description><![CDATA[<p>Il mondo cambia, quindi cambiano anche i domini internet. Non solo le classiche estensioni (TLD) .com, .net, .it, .org etc. oggi il mondo di internet viaggia in base alle esigenze dei clienti, rendendo disponibili quasi ogni giorno nuovi TLD. Per gli amici &#8220;linuxiani&#8221; esiste un modo molto veloce per poter effettuare il whois, cioè conoscere ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/30/linux-whois-tlds/">Linux whois nuovi TLDs</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Il mondo cambia, quindi cambiano anche i domini internet.</p>
<p>Non solo le classiche estensioni (TLD) .com, .net, .it, .org etc. oggi il mondo di internet viaggia in base alle esigenze dei clienti, rendendo disponibili quasi ogni giorno nuovi TLD.</p>
<p>Per gli amici &#8220;linuxiani&#8221; esiste un modo molto veloce per poter effettuare il whois, cioè conoscere lo stato, di un dominio con TLD di nuova generazione!</p>
<p>Per prima cosa è necessario creare (se esiste, dovete solo accodare quanto di seguito) il file <strong><em>/etc/whois.conf</em></strong> in questo file inserite quanto di seguito:</p>
<div id="wpshdo_32" class="wp-synhighlighter-outer"><div id="wpshdt_32" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_32"></a><a id="wpshat_32" class="wp-synhighlighter-title" href="#codesyntax_32"  onClick="javascript:wpsh_toggleBlock(32)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_32" onClick="javascript:wpsh_code(32)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_32" onClick="javascript:wpsh_print(32)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_32" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;"><span class="co0">## </span>
<span class="co0"># WHOIS servers for new TLDs (http://www.iana.org/domains/root/db)</span>
<span class="co0">##</span>
&nbsp;
.academy$ whois.donuts.co
.actor$ whois.unitedtld.com
.agency$ whois.donuts.co
.bar$ whois.nic.bar
.bargains$ whois.donuts.co
.berlin$ whois.nic.berlin
.best$ whois.nic.best
.bid$ whois.nic.bid
.bike$ whois.donuts.co
.blue$ whois.afilias.net
.boutique$ whois.donuts.co
.build$ whois.nic.build
.builders$ whois.donuts.co
.buzz$ whois.nic.buzz
.cab$ whois.donuts.co
.camera$ whois.donuts.co
.camp$ whois.donuts.co
.cards$ whois.donuts.co
.careers$ whois.donuts.co
.catering$ whois.donuts.co
.center$ whois.donuts.co
.ceo$ whois.nic.ceo
.cheap$ whois.donuts.co
.christmas$ whois.uniregistry.net
.cleaning$ whois.donuts.co
.clothing$ whois.donuts.co
.club$ whois.nic.club
.codes$ whois.donuts.co
.coffee$ whois.donuts.co
.cologne$ whois-fe1.pdt.cologne.tango.knipp.de
.community$ whois.donuts.co
.company$ whois.donuts.co
.computer$ whois.donuts.co
.construction$ whois.donuts.co
.contractors$ whois.donuts.co
.cool$ whois.donuts.co
.cruises$ whois.donuts.co
.dance$ whois.unitedtld.com
.dating$ whois.donuts.co
.democrat$ whois.unitedtld.com
.diamonds$ whois.donuts.co
.directory$ whois.donuts.co
.domains$ whois.donuts.co
.education$ whois.donuts.co
.email$ whois.donuts.co
.enterprises$ whois.donuts.co
.equipment$ whois.donuts.co
.estate$ whois.donuts.co
.events$ whois.donuts.co
.expert$ whois.donuts.co
.exposed$ whois.donuts.co
.farm$ whois.donuts.co
.fish$ whois.donuts.co
.flights$ whois.donuts.co
.florist$ whois.donuts.co
.foundation$ whois.donuts.co
.futbol$ whois.unitedtld.com
.gallery$ whois.donuts.co
.gift$ whois.uniregistry.net
.glass$ whois.donuts.co
.graphics$ whois.donuts.co
.guitars$ whois.uniregistry.net
.guru$ whois.donuts.co
.holdings$ whois.donuts.co
.holiday$ whois.donuts.co
.house$ whois.donuts.co
.immobilien$ whois.unitedtld.com
.industries$ whois.donuts.co
.institute$ whois.donuts.co
.international$ whois.donuts.co
.jetzt$ whois.nic.jetzt
.jobs$ jobswhois.verisign-grs.com
.kaufen$ whois.unitedtld.com
.kim$ whois.afilias.net
.kitchen$ whois.donuts.co
.kiwi$ whois.dot-kiwi.com
.koeln$ whois-fe1.pdt.koeln.tango.knipp.de
.kred$ whois.nic.kred
.land$ whois.donuts.co
.lighting$ whois.donuts.co
.limo$ whois.donuts.co
.link$ whois.uniregistry.net
.london$ whois-lon.mm-registry.com
.luxury$ whois.nic.luxury
.management$ whois.donuts.co
.mango$ whois.mango.coreregistry.net
.marketing$ whois.donuts.co
.menu$ whois.nic.menu
.moda$ whois.unitedtld.com
.monash$ whois.nic.monash
.nagoya$ whois.gmoregistry.net
.ninja$ whois.unitedtld.com
.nyc$ whois.nic.nyc
.okinawa$ whois.gmoregistry.ne
.partners$ whois.donuts.co
.parts$ whois.donuts.co
.photo$ whois.uniregistry.net
.photography$ whois.donuts.co
.photos$ whois.donuts.co
.pics$ whois.uniregistry.net
.pink$ whois.afilias.net
.plumbing$ whois.donuts.co
.productions$ whois.donuts.co
.properties$ whois.donuts.co
.pub$ whois.unitedtld.com
.qpon$ whois.nic.qpon
.recipes$ whois.donuts.co
.red$ whois.nic.red
.rentals$ whois.donuts.co
.repair$ whois.donuts.co
.report$ whois.donuts.co
.reviews$ whois.unitedtld.com
.rich$ whois.afilias-srs.net
.ruhr$ whois.nic.ruhr
.sexy$ whois.uniregistry.net
.shiksha$ whois.nic.shiksha
.shoes$ whois.donuts.co
.singles$ whois.donuts.co
.social$ whois.unitedtld.com
.sohu$ whois.gtld.knet.cn
.solar$ whois.donuts.co
.solutions$ whois.donuts.co
.supplies$ whois.donuts.co
.supply$ whois.donuts.co
.support$ whois.donuts.co
.systems$ whois.donuts.co
.tattoo$ whois.uniregistry.net
.technology$ whois.donuts.co
.tienda$ whois.donuts.co
.tips$ whois.donuts.co
.today$ whois.donuts.co
.tokyo$ whois.nic.tokyo
.tools$ whois.donuts.co
.trade$ whois.nic.trade
.training$ whois.donuts.co
.uno$ whois.nic.uno
.vacations$ whois.donuts.co
.ventures$ whois.donuts.co
.viajes$ whois.donuts.co
.villas$ whois.donuts.co
.vision$ whois.donuts.co
.vote$ whois.afilias.net
.voting$ whois.nic.voting
.voto$ whois.afilias.net
.voyage$ whois.donuts.co
.wang$ whois.gtld.knet.cn
.watch$ whois.donuts.co
.webcam$ whois.nic.webcam
.wed$ whois.nic.wed
.wien$ whois.nic.wien
.wiki$ whois.nic.wiki
.works$ whois.donuts.co
.xn--3bst00m$ whois.gtld.knet.cn
.xn--3ds443g$ whois.afilias-srs.net
.xn--55qw42g$ whois.conac.cn
.xn--55qx5d$ whois.ngtld.cn
.xn--6frz82g$ whois.afilias.net
.xn--6qq986b3xl$ whois.gtld.knet.cn
.xn--80asehdb$ whois.online.rs.corenic.net
.xn--80aswg$ whois.site.rs.corenic.net
.xn--c1avg$ whois.publicinterestregistry.net
.xn--cg4bki$ whois.kr
.xn--d1acj3b$ whois.nic.xn--d1acj3b
.xn--fiq228c5hs$ whois.afilias-srs.net
.xn--fiq64b$ whois.gtld.knet.cn
.xn--i1b6b1a6a2e$ whois.publicinterestregistry.net
.xn--io0a7i$ whois.ngtld.cn
.xn--mgbab2bd$ whois.bazaar.coreregistry.net
.xn--ngbc5azd$ whois.nic.xn--ngbc5azd
.xn--nqv7f$ whois.publicinterestregistry.net
.xn--nqv7fs00ema$ whois.publicinterestregistry.net
.xn--q9jyb4c$ domain-registry-whois.l.google.com
.xn--rhqv96g$ whois.nic.xn--rhqv96g
.xn--unup4y$ whois.donuts.co
.xn--zfr164b$ whois.conac.cn
.xyz$ whois.nic.xyz
.zone$ whois.donuts.co</pre></div></div>
<p>Salvate ed uscite!</p>
<p>Et voilà!</p>
<p>Il gioco è fatto! D&#8217;ora in poi potrete controllare i nuovi TLD direttamente dal vostro terminale!</p>
<p>Enjoy!</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/30/linux-whois-tlds/">Linux whois nuovi TLDs</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/07/30/linux-whois-tlds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Master-Master Replication</title>
		<link>http://www.linux360.it/2014/07/28/mysql-master-master-replication/</link>
		<comments>http://www.linux360.it/2014/07/28/mysql-master-master-replication/#comments</comments>
		<pubDate>Mon, 28 Jul 2014 15:17:41 +0000</pubDate>
		<dc:creator><![CDATA[Paolo Daniele]]></dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Varie]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[master]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://www.paolodaniele.it/?p=1941</guid>
		<description><![CDATA[<p>Oggi voglio pubblicare un qualcosa di interessante che mi è capitato per lavoro. Ipotizziamo di avere 2 database MySQL in due zone geograficamente distanti tra loro. Questi database devono essere consistenti, cioè contenere sempre gli stessi dati, così nel caso di perdita di connessione o di blocco del database 1 tutte le connessioni verranno indirizzate ...</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/28/mysql-master-master-replication/">MySQL Master-Master Replication</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Oggi voglio pubblicare un qualcosa di interessante che mi è capitato per lavoro.</p>
<p>Ipotizziamo di avere 2 database MySQL in due zone geograficamente distanti tra loro.</p>
<p>Questi database devono essere consistenti, cioè contenere sempre gli stessi dati, così nel caso di perdita di connessione o di blocco del database 1 tutte le connessioni verranno indirizzate sul database 2 e viceversa.</p>
<p>Vi spiego meglio con una figura:</p>
<p><img class="alignnone  wp-image-1943" src="http://www.paolodaniele.it/wp-content/uploads/2014/07/mysql-active-active.jpg" alt="mysql-active-active" width="576" height="312" /></p>
<p>Abbiamo capito il problema, adesso vediamo come affrontarlo e trovare la soluzione.</p>
<p>In rete ho trovato molte &#8220;strade&#8221; più o meno simili, non è detto che la mia sia giusta, ma so che funziona perchè l&#8217;ho provata praticamente!</p>
<p>La soluzione che vi propongo è stata testata con mysql-server 5.5.37 su Debian 7.1 Wheezy a 64bit</p>
<p>Per prima cosa dobbiamo abilitare su entrambi i database il <strong>BINARY LOGGING </strong>che è un vero e proprio log delle operazioni che vengono effettuate su ogni database.</p>
<p>Modifichiamo il file di configurazione <em><strong>my.cnf</strong></em> come segue:</p>
<p>Database <span style="color: #ff0000;"><strong>MASTER-1</strong></span></p>
<div id="wpshdo_33" class="wp-synhighlighter-outer"><div id="wpshdt_33" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_33"></a><a id="wpshat_33" class="wp-synhighlighter-title" href="#codesyntax_33"  onClick="javascript:wpsh_toggleBlock(33)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_33" onClick="javascript:wpsh_code(33)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_33" onClick="javascript:wpsh_print(33)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_33" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">server_id           = <span class="nu0">1</span>
log_bin             = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-bin.log
log_bin_index       = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-bin.log.index
relay_log           = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-relay-bin
relay_log_index     = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-relay-bin.index
expire_logs_days    = <span class="nu0">10</span>
max_binlog_size     = 100M
log_slave_updates   = <span class="nu0">1</span>
auto-increment-increment = <span class="nu0">2</span>
auto-increment-offset = <span class="nu0">1</span>
binlog_do_db        = sharedb</pre></div></div>
<p>Database <strong>MASTER-2</strong></p>
<div id="wpshdo_34" class="wp-synhighlighter-outer"><div id="wpshdt_34" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_34"></a><a id="wpshat_34" class="wp-synhighlighter-title" href="#codesyntax_34"  onClick="javascript:wpsh_toggleBlock(34)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_34" onClick="javascript:wpsh_code(34)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_34" onClick="javascript:wpsh_print(34)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_34" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">server_id           = <span class="nu0">2</span>
log_bin             = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-bin.log
log_bin_index       = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-bin.log.index
relay_log           = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-relay-bin
relay_log_index     = <span class="sy0">/</span>var<span class="sy0">/</span>log<span class="sy0">/</span>mysql<span class="sy0">/</span>mysql-relay-bin.index
expire_logs_days    = <span class="nu0">10</span>
max_binlog_size     = 100M
log_slave_updates   = <span class="nu0">1</span>
auto-increment-increment = <span class="nu0">2</span>
auto-increment-offset = <span class="nu0">2</span>
binlog_do_db        = sharedb</pre></div></div>
<p>E&#8217; molto importante definire il parametro <em><strong>auto-increment-offset</strong></em> diverso tra i due database, questo serve per evitare che ci siano conflitti di indici nelle fasi di replicazione.</p>
<p>Prima di riavviare il servizio, procediamo con la creazione/import del database sharedb su entrambi i server (ATTENZIONE consiglio che i databasesiano uguali in questa fase)</p>
<p>Sempre su entrambi i server, da console:</p>
<div id="wpshdo_35" class="wp-synhighlighter-outer"><div id="wpshdt_35" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_35"></a><a id="wpshat_35" class="wp-synhighlighter-title" href="#codesyntax_35"  onClick="javascript:wpsh_toggleBlock(35)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_35" onClick="javascript:wpsh_code(35)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_35" onClick="javascript:wpsh_print(35)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_35" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;"><span class="kw1">CREATE</span> user <span class="st0">'replicante'</span>@<span class="st0">'%'</span> <span class="kw1">IDENTIFIED</span> <span class="kw1">BY</span> <span class="st0">'Wp4Suppl1c4nt462!'</span>;
<span class="kw1">GRANT</span> replication slave <span class="kw1">ON</span> <span class="sy0">*.*</span> <span class="kw1">TO</span> <span class="st0">'replicante'</span>@<span class="st0">'%'</span>;</pre></div></div>
<p>Riavviamo il servizio su entrambi i server.</p>
<p>&nbsp;</p>
<p>Operiamo adesso sul server <span style="color: #ff0000;"><strong>MASTER-1</strong></span></p>
<div id="wpshdo_36" class="wp-synhighlighter-outer"><div id="wpshdt_36" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_36"></a><a id="wpshat_36" class="wp-synhighlighter-title" href="#codesyntax_36"  onClick="javascript:wpsh_toggleBlock(36)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_36" onClick="javascript:wpsh_code(36)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_36" onClick="javascript:wpsh_print(36)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_36" class="wp-synhighlighter-inner" style="display: block;"><pre class="bash" style="font-family:monospace;">mysql <span class="re5">-u</span> root - p</pre></div></div>
<div id="wpshdo_37" class="wp-synhighlighter-outer"><div id="wpshdt_37" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_37"></a><a id="wpshat_37" class="wp-synhighlighter-title" href="#codesyntax_37"  onClick="javascript:wpsh_toggleBlock(37)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_37" onClick="javascript:wpsh_code(37)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_37" onClick="javascript:wpsh_print(37)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_37" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;"><span class="kw1">SHOW</span> master <span class="kw1">STATUS</span>;</pre></div></div>
<p>Appare una cosa del genere:</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| File                              | Position | Binlog_Do_DB | Binlog_Ignore_DB |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| mysql-bin.000001 |      106     |   sharedb               |                                       |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+</p>
<p>Passiamo su <strong>MASTER-2</strong></p>
<p>Da console sql:</p>
<div id="wpshdo_38" class="wp-synhighlighter-outer"><div id="wpshdt_38" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_38"></a><a id="wpshat_38" class="wp-synhighlighter-title" href="#codesyntax_38"  onClick="javascript:wpsh_toggleBlock(38)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_38" onClick="javascript:wpsh_code(38)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_38" onClick="javascript:wpsh_print(38)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_38" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;">slave stop;
<span class="kw1">CHANGE</span> MASTER <span class="kw1">TO</span> MASTER_HOST <span class="sy0">=</span> <span class="st0">'IP-MASTER-1'</span><span class="sy0">,</span> MASTER_USER <span class="sy0">=</span> <span class="st0">'replicante'</span><span class="sy0">,</span> MASTER_PASSWORD <span class="sy0">=</span> <span class="st0">'Wp4Suppl1c4nt462!'</span><span class="sy0">,</span> MASTER_LOG_FILE <span class="sy0">=</span> <span class="st0">'mysql-bin.000001'</span><span class="sy0">,</span> MASTER_LOG_POS <span class="sy0">=</span> <span class="nu0">106</span>;
slave start;
<span class="kw1">SHOW</span> master <span class="kw1">STATUS</span>;</pre></div></div>
<p>Apparirà quealcosa del genere:</p>
<p>+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| File                              | Position | Binlog_Do_DB | Binlog_Ignore_DB |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br />
| mysql-bin.000002 |     1060   |   sharedb              |                                       |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+</p>
<p>Torniamo su <span style="color: #ff0000;"><strong>MASTER-1</strong></span></p>
<p>Da console sql:</p>
<div id="wpshdo_39" class="wp-synhighlighter-outer"><div id="wpshdt_39" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_39"></a><a id="wpshat_39" class="wp-synhighlighter-title" href="#codesyntax_39"  onClick="javascript:wpsh_toggleBlock(39)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_39" onClick="javascript:wpsh_code(39)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_39" onClick="javascript:wpsh_print(39)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_39" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;">slave stop;
<span class="kw1">CHANGE</span> MASTER <span class="kw1">TO</span> MASTER_HOST <span class="sy0">=</span> <span class="st0">'IP-MASTER-2'</span><span class="sy0">,</span> MASTER_USER <span class="sy0">=</span> <span class="st0">'replicante'</span><span class="sy0">,</span> MASTER_PASSWORD <span class="sy0">=</span> <span class="st0">'Wp4Suppl1c4nt462!'</span><span class="sy0">,</span> MASTER_LOG_FILE <span class="sy0">=</span> <span class="st0">'mysql-bin.000002'</span><span class="sy0">,</span> MASTER_LOG_POS <span class="sy0">=</span> <span class="nu0">1060</span>;
slave start;</pre></div></div>
<p>Il gioco è fatto!</p>
<p>Proviamo a fare un update su uno dei due master e vedremo la replica in tempo (quasi reale!) sull&#8217;altro!</p>
<p>Per essere sicuri, da uno dei due server sempre da console fate un:</p>
<div id="wpshdo_40" class="wp-synhighlighter-outer"><div id="wpshdt_40" class="wp-synhighlighter-expanded"><table border="0" width="100%"><tr><td align="left" width="80%"><a name="#codesyntax_40"></a><a id="wpshat_40" class="wp-synhighlighter-title" href="#codesyntax_40"  onClick="javascript:wpsh_toggleBlock(40)" title="Click to show/hide code block">Source code</a></td><td align="right"><a href="#codesyntax_40" onClick="javascript:wpsh_code(40)" title="Show code only"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/code.png" /></a>&nbsp;<a href="#codesyntax_40" onClick="javascript:wpsh_print(40)" title="Print code"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/printer.png" /></a>&nbsp;<a href="http://www.linux360.it/wp-content/plugins/wp-synhighlight/About.html" target="_blank" title="Show plugin information"><img border="0" style="border: 0 none" src="http://www.linux360.it/wp-content/plugins/wp-synhighlight/themes/default/images/info.gif" /></a>&nbsp;</td></tr></table></div><div id="wpshdi_40" class="wp-synhighlighter-inner" style="display: block;"><pre class="sql" style="font-family:monospace;"><span class="kw1">SHOW</span> slave <span class="kw1">STATUS</span>;</pre></div></div>
<p>dovreste ottenere un qualcosa del genere:</p>
<p>&#8230;&#8230;&#8230;.Waiting for master to send event | IP-MASTER &#8230;&#8230;&#8230;&#8230;.</p>
<p>Enjoy!</p>
<p>&nbsp;</p>
<p>L'articolo <a rel="nofollow" href="http://www.linux360.it/2014/07/28/mysql-master-master-replication/">MySQL Master-Master Replication</a> sembra essere il primo su <a rel="nofollow" href="http://www.linux360.it">Linux 360° | Italia</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linux360.it/2014/07/28/mysql-master-master-replication/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
