<?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>Michele's Blog</title>
	<atom:link href="http://www.michelem.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michelem.org</link>
	<description>io, me e michele</description>
	<lastBuildDate>Wed, 27 May 2009 08:27:26 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Ehiweb migliore ADSL italiana NO Telecom &#8211; qualità e prezzi contenuti</title>
		<link>http://www.michelem.org/2009/05/27/ehiweb-migliore-adsl-italiana-no-telecom-qualita-e-prezzi-contenuti/</link>
		<comments>http://www.michelem.org/2009/05/27/ehiweb-migliore-adsl-italiana-no-telecom-qualita-e-prezzi-contenuti/#comments</comments>
		<pubDate>Wed, 27 May 2009 08:27:26 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[ancona]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[shopping]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[adsl]]></category>
		<category><![CDATA[ehiweb]]></category>
		<category><![CDATA[faxonline]]></category>
		<category><![CDATA[hosting]]></category>
		<category><![CDATA[marche]]></category>
		<category><![CDATA[provider]]></category>
		<category><![CDATA[sms]]></category>
		<category><![CDATA[telecom]]></category>
		<category><![CDATA[voip]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=919</guid>
		<description><![CDATA[In risposta al post che scrissi tempo fa, quando stavo abbandonando finalmente il canone Telecom per ottenere una nuova ADSL casalinga capace di sopperire agli innumerevoli problemi riscontrati con tutti gli altri operatori, e&#8217; giunto il momento di tirare le somme.
Dopo quasi un anno di convivenza con i servizi offerti da Ehiweb, devo dire che [...]]]></description>
			<content:encoded><![CDATA[<p>In risposta al post che scrissi tempo fa, quando stavo <a href="http://www.michelem.org/2008/07/07/goodbye-telecom/">abbandonando finalmente il canone Telecom per ottenere una nuova ADSL</a> casalinga capace di sopperire agli innumerevoli problemi riscontrati con tutti gli altri operatori, e&#8217; giunto il momento di tirare le somme.</p>
<p>Dopo quasi un anno di convivenza con i servizi offerti da <a href="http://befree.ehiweb.it"><strong>Ehiweb</strong></a>, devo dire che non mi sono mai trovato cosi&#8217; bene come ora, non ho mai avuto un minimo down, la linea e&#8217; perfetta sia in traffico dati che in <a href="http://befree.ehiweb.it/telefoniavoip/"><strong>VOIP</strong></a> e i costi praticamente gli stessi di mamma Telecom (se non piu&#8217; bassi) ma con il vantaggio che sulle linee non ci sono intasamenti dovuti al rapporto linea/utente a cui <a href="http://befree.ehiweb.it"><strong>Ehiweb</strong></a> presta particolare attenzione. E&#8217; la <a href="http://befree.ehiweb.it">migliore ADSL</a> in assoluto? Probabilmente e&#8217; la migliore che abbia mai avuto/usato e sicuramente quella con piu&#8217; punti a favore sia come servizi offerti che come professionalita&#8217; e comunicazione cliente/fornitore.</p>
<p>Nello specifico, abitando ad <a href="http://www.michelem.org/category/ancona/"><strong>Ancona</strong></a>, ho saputo che il rapporto linea/utenti e&#8217; stato aumentato negli ultimi mesi e ora in questa zona e dintorni le linee sono praticamente sempre scariche e i valori si avvicinano sempre ai picchi massimi dei 7 Mbps offerti dal servizio, dubito che un&#8217;Alice arrivi a valori del genere, ma magari qualcuno potra&#8217; smentirmi&#8230;.</p>
<p>Inoltre ho trovato che il supporto tecnico, qualora vi servisse, e&#8217; di una qualita&#8217; mai vista prima sia come tempi di risposta che come professionalita&#8217; nel risolvere qualunque disservizio o problema riscontrato.<br />
Il mio consiglio e&#8217; quello di provare, anche grazie al fatto che ormai per legge ogni provider e&#8217; tenuto a trasferire i clienti che lo richiedessero in tempi brevissimi, io a settembre dello scorso anno , quando cambiai da Telecoma a <a href="http://befree.ehiweb.it/adsl/offerta_geo_adsl.php">Ehiweb</a>, non riscontrai piu&#8217; di un minuto di down, ne alcun tecnico per casa, basto&#8217; solo riavviare il router perche&#8217; ottennesse le informazioni del nuovo provider. Provare per credere.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/05/27/ehiweb-migliore-adsl-italiana-no-telecom-qualita-e-prezzi-contenuti/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bbPress database integration on Wordpress</title>
		<link>http://www.michelem.org/2009/05/09/bbpress-database-integration-on-wordpress/</link>
		<comments>http://www.michelem.org/2009/05/09/bbpress-database-integration-on-wordpress/#comments</comments>
		<pubDate>Sat, 09 May 2009 11:27:41 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[blog]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=901</guid>
		<description><![CDATA[Integrare i dati di un forum bbPress in Wordpress e&#8217; estremamente semplice, soprattutto se il database e&#8217; lo stesso e cambia solo il prefix delle tabelle. Quindi se avete un blog Wordpress con associato un forum bbPress bastera&#8217; creare delle corrette query nel template di Wordpress per ottenere i dati del forum collegato.
Per esempio, per [...]]]></description>
			<content:encoded><![CDATA[<p>Integrare i dati di un <strong>forum <a href="http://bbpress.org/">bbPress</a></strong> in Wordpress e&#8217; estremamente semplice, soprattutto se il <strong>database</strong> e&#8217; lo stesso e cambia solo il prefix delle tabelle. Quindi se avete un blog <strong>Wordpress</strong> con associato un forum bbPress bastera&#8217; creare delle corrette <strong>query</strong> nel template di Wordpress per ottenere i <strong>dati</strong> del forum collegato.</p>
<p><strong>Per esempio, per ottenere la lista dei forums disponibli potete usare qualcosa come questo:</strong></p>
<pre class="brush: php">
&lt;h2&gt;Support Forums&lt;/h2&gt;
&lt;ul&gt;
&lt;?php
$bb_forums = $wpdb-&gt;get_results(
&quot;SELECT * FROM bb_forums ORDER BY topics DESC&quot;
);

foreach ($bb_forums as $bb_forum) {

print &quot;&lt;li&gt;&lt;a href=\&quot;/&quot;.$bb_forum-&gt;slug.&quot;\&quot;
title=\&quot;&quot;.$bb_forum-&gt;forum_name.&quot;\&quot;&gt;
&quot;.$bb_forum-&gt;forum_name.&quot;
&lt;/a&gt;&quot;.$bb_forum-&gt;forum_desc.&quot;&lt;/li&gt;&quot;;

}
?&gt;
&lt;/ul&gt;
</pre>
<p><strong>Oppure per visualizzare la lista degli ultimi 5 topic aggiornati:</strong></p>
<pre class="brush: php">
&lt;h2&gt;Latest Forum&#039;s Topics&lt;/h2&gt;
&lt;ul&gt;
&lt;?php
$bb_topics = $wpdb-&gt;get_results(
&quot;SELECT * FROM bb_topics ORDER BY topic_start_time DESC LIMIT 5&quot;);
$bb_posts = array();

foreach($bb_topics as $bb_topic){

$bb_first_post = $wpdb-&gt;get_results(
&quot;SELECT post_text FROM bb_posts
WHERE post_position = &#039;1&#039;
AND topic_id = $bb_topic-&gt;topic_id&quot;, ARRAY_A);

$bb_post-&gt;post_date = $bb_topic-&gt;topic_start_time;
$bb_post-&gt;post_title = $bb_topic-&gt;topic_title;
$bb_post-&gt;post_name = &quot;forums/topic/&quot;.$bb_topic-&gt;topic_slug;
$bb_post-&gt;comment_count = $bb_topic-&gt;topic_posts;

print &quot;&lt;li&gt;&lt;a href=\&quot;/&quot;.$bb_post-&gt;post_name.&quot;\&quot;
title=\&quot;&quot;.$bb_post-&gt;post_title.&quot;\&quot;&gt;&quot;.$bb_post-&gt;post_title.&quot;&lt;/a&gt;
&lt;br /&gt;&lt;a href=\&quot;/&quot;.$bb_post-&gt;post_name.&quot;\&quot;
title=\&quot;&quot;.$bb_post-&gt;post_title.&quot;\&quot; &gt;
&quot;.$bb_post-&gt;comment_count.&quot; comments&lt;/a&gt;
- &quot;.$bb_post-&gt;post_date.&quot;&lt;/li&gt;&quot;;

};
?&gt;
&lt;/ul&gt;
</pre>
<p>Potete vedere un esempio pratico nel sito di WassUp, il <strong><a href="http://www.wpwp.org">plugin Wordpress per le statistiche</a></strong> che sviluppo e mantengo da tempo.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/05/09/bbpress-database-integration-on-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Import/Synchronizing your imap email into Gmail with imapsync</title>
		<link>http://www.michelem.org/2009/03/13/importsynchronizing-your-imap-email-into-gmail-with-imapsync/</link>
		<comments>http://www.michelem.org/2009/03/13/importsynchronizing-your-imap-email-into-gmail-with-imapsync/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 08:54:49 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[imap]]></category>
		<category><![CDATA[import]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=889</guid>
		<description><![CDATA[- Installare &#8220;imapsync&#8221; (su Debian/Ubuntu &#8220;apt-get install imapsync&#8221;)
- Procedere alla sincronizzazione con il seguente comando:

imapsync --host1 my_mail_server --port1 143 \
--user1 changeme@yourdomain --password1 mypassword \
--host2 imap.gmail.com --port2 993 \
--user2 changeme@gmail.com --password2 mypassword \
--syncinternaldates --ssl2 --noauthmd5 --split1 100 --split2 100

- Se volete sincronizzare solo specifiche direcotry Imap bastera&#8217; aggiungere l&#8217;opzione "--folder yourfolder"
- Se volete prima provare senza [...]]]></description>
			<content:encoded><![CDATA[<p>- Installare &#8220;imapsync&#8221; (su Debian/Ubuntu &#8220;apt-get install imapsync&#8221;)</p>
<p>- Procedere alla sincronizzazione con il seguente comando:</p>
<pre class="brush: bash">
imapsync --host1 my_mail_server --port1 143 \
--user1 changeme@yourdomain --password1 mypassword \
--host2 imap.gmail.com --port2 993 \
--user2 changeme@gmail.com --password2 mypassword \
--syncinternaldates --ssl2 --noauthmd5 --split1 100 --split2 100
</pre>
<p>- Se volete sincronizzare solo specifiche direcotry Imap bastera&#8217; aggiungere l&#8217;opzione <code>"--folder yourfolder"</code></p>
<p>- Se volete prima provare senza che nulla venga toccato aggiungete l&#8217;opzione <code>"--dry"</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/03/13/importsynchronizing-your-imap-email-into-gmail-with-imapsync/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Increase VirtualBox disk size / Resizing vdi disk</title>
		<link>http://www.michelem.org/2009/03/11/increase-virtualbox-disk-size-resizing-vdi-disk/</link>
		<comments>http://www.michelem.org/2009/03/11/increase-virtualbox-disk-size-resizing-vdi-disk/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 16:23:31 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[parted]]></category>
		<category><![CDATA[tools]]></category>
		<category><![CDATA[vdi]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[virtualbox]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=884</guid>
		<description><![CDATA[Scenario:
VirtualBox installato su macchina Linux, un virtuale Windows XP con disco da 4 GB che non basta piu&#8217;.
Come faccio ad aumentare lo spazio del disco virtuale senza perdere tutto?
- Creo un nuovo disco virtuale su VirtualBox piu&#8217; grande del precedente (non serve sia con dimensione fissa, dinamico andra&#8217; benissimo)
- Collego il nuovo disco virtuale alla [...]]]></description>
			<content:encoded><![CDATA[<p>Scenario:<br />
VirtualBox installato su macchina Linux, un virtuale Windows XP con disco da 4 GB che non basta piu&#8217;.<br />
Come faccio ad aumentare lo spazio del disco virtuale senza perdere tutto?</p>
<p>- Creo un nuovo disco virtuale su VirtualBox piu&#8217; grande del precedente (non serve sia con dimensione fissa, dinamico andra&#8217; benissimo)</p>
<p>- Collego il <strong>nuovo disco virtuale</strong> alla macchina Windows XP in modo che lo veda anche lei</p>
<p>- Scarico una qualunque ISO Live di un sistema Linux, l&#8217;importante e&#8217; che abbia <strong>gparted</strong> (o parted se vi basta la console)</p>
<p>- Avvio la macchina virtuale Windows XP con il <strong>CD collegato alla ISO Live Linux</strong> appena scaricata</p>
<p>- una volta su Linux faccio partire <strong>X</strong> ed apro gparted</p>
<p>- Seleziono il disco (solitamente targato come &#8220;sda&#8221;) primario di Windows e clicclo su &#8220;<strong>Copia</strong>&#8220;</p>
<p>- Seleziono il disco secondario, appena creato da VirtualBox, e clicco su &#8220;<strong>Incolla</strong>&#8220;</p>
<p>- Clicclo &#8220;Applica&#8221; e ora bastera&#8217; attendere che tutti i dati del disco A vengano copiati sul disco B</p>
<p>- Al termine dell&#8217;operazione seleziono il disco B e attivo il flag &#8220;Bootable&#8221;</p>
<p>- Spengo la macchina virtuale</p>
<p>- Scollego il cd dalla ISO Live</p>
<p>- dico a VirtualBox di usare il disco B come disco master primario</p>
<p>- Ed ecco partire il vecchio Windows XP ma su un disco molto piu&#8217; grande</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/03/11/increase-virtualbox-disk-size-resizing-vdi-disk/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Groundwork/Nagios &amp; NSCAFE Plugin: How to work with passive checks</title>
		<link>http://www.michelem.org/2009/02/13/groundworknagios-nscafe-plugin-how-to-work-with-passive-checks/</link>
		<comments>http://www.michelem.org/2009/02/13/groundworknagios-nscafe-plugin-how-to-work-with-passive-checks/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 10:52:30 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[about michele]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[work]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[groundwork]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=879</guid>
		<description><![CDATA[Scaricate e seguite le istruzioni del pacchetto nscafe_1.0.tar, in linea di massima dovreste riuscire a disabilitare nsca e abilitare nscafe, ricordatevi di sostituire le righe nel file /usr/local/groundwork/ctlscript.sh per fare questo.
Ora il punto fondamentale per attivare i passive check tra un Nagios che fa il polling di una rete e un Nagios master che amministra [...]]]></description>
			<content:encoded><![CDATA[<p>Scaricate e seguite le istruzioni del pacchetto<strong> <a href="http://nagiosexchange.altinity.org/nagiosexchange/NSCAFE_-_a_forwarding_version_of_NSCA/nscafe_1.0.tar">nscafe_1.0.tar</a></strong>, in linea di massima dovreste riuscire a disabilitare nsca e abilitare nscafe, ricordatevi di sostituire le righe nel file /usr/local/groundwork/ctlscript.sh per fare questo.</p>
<p>Ora il punto fondamentale per attivare i <strong>passive check</strong> tra un Nagios che fa il polling di una rete e un Nagios master che amministra il tutto sta nel far dialogare questi due (o piu&#8217;) server.<br />
Una volta messo in piedi il demone di nscafe il tutto sta nel configurare Nagios ad hoc. Per configurare nscafe riporto sotto le conf sia per un polling server che per un master:</p>
<p><strong>Polling server</strong> (inoltra i check al master):</p>
<blockquote><p><code>debug=0<br />
forward=1<br />
nagios=1<br />
listener_port=5668<br />
allowed_hosts=*<br />
client_inactivity_timeout=10<br />
nagios_command_file=/usr/local/groundwork/nagios/var/spool/nagios.cmd<br />
forward_host=&lt;IPADDRESS_MASTER_SERVER&gt;<br />
forward_port=5668<br />
forward_queue_directory=/usr/local/groundwork/nscafe<br />
forward_purge_queue_on_entry=1</code></p></blockquote>
<p><strong>Master server</strong> (riceve i check da altri polling server)</p>
<blockquote><p><code>debug=0<br />
forward=0<br />
nagios=1<br />
listener_port=5668<br />
allowed_hosts=*<br />
client_inactivity_timeout=10<br />
nagios_command_file=/usr/local/groundwork/nagios/var/spool/nagios.cmd</code></p></blockquote>
<p>L&#8217;ultima cosa da fare e&#8217; configurare Nagios sul polling server perche&#8217; mandi i messaggi di controllo, in pratica c&#8217;e&#8217; da modificare un paio di righe del nagios.cfg e creare un paio di nuovi comandi.</p>
<p>Prima di tutto create i due nuovi comandi per l&#8217;inoltro degli host e dei servizi:</p>
<p>Su Groudwork: <strong>Configuration-&gt;Commands-&gt;New</strong></p>
<blockquote><p><strong>Host</strong>:</p>
<p><code>Command name: <em>process-host-perfdata-nscafe </em><br />
Type: <em>Other</em><br />
Command: <em>/usr/local/groundwork/nscafe/script/nscafe_perfdata_handler.pl<br />
HOST "$HOSTNAME$" "$LASTHOSTCHECK$" "$HOSTSTATE$" "$HOSTOUTPUT$" "$HOSTPERFDATA$"</em></code></p></blockquote>
<blockquote><p><strong>Service</strong>:</p>
<p><code>Command name:<em> process-service-perfdata-nscafe </em><br />
Type: <em>Other</em><br />
Command: <em>/usr/local/groundwork/nscafe/script/nscafe_perfdata_handler.pl<br />
SERVICE "$HOSTNAME$" "$SERVICEDESC$" "$LASTSERVICECHECK$" "$SERVICESTATE$"<br />
"$SERVICEOUTPUT$" "$SERVICEPERFDATA$"</em></code></p></blockquote>
<p>Ora associamo questi due nuovi comandi alla configurazione generale di Nagios.</p>
<p>Su Groundwork: <strong>Configuration-&gt;Control-&gt;Nagios main configuration</strong>:</p>
<blockquote><p>Host perfdata command: <em>Selezionate &#8220;process-host-perfdata-nscafe&#8221;</em></p>
<p>Service perfdata command: <em>Selezionate &#8220;process-service-perfdata-nscafe&#8221;</em></p></blockquote>
<p>Ricordatevi di dare il commit.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/02/13/groundworknagios-nscafe-plugin-how-to-work-with-passive-checks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Screen rotation on ATI Radeon card with xrandr</title>
		<link>http://www.michelem.org/2009/01/19/screen-rotation-on-ati-radeon-card-with-xrandr/</link>
		<comments>http://www.michelem.org/2009/01/19/screen-rotation-on-ati-radeon-card-with-xrandr/#comments</comments>
		<pubDate>Mon, 19 Jan 2009 11:41:13 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ati]]></category>
		<category><![CDATA[card]]></category>
		<category><![CDATA[graphic]]></category>
		<category><![CDATA[radeon]]></category>
		<category><![CDATA[rotation]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[xrandr]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=874</guid>
		<description><![CDATA[Prima di tutto e&#8217; indispensabile installare gli ultimi driver ATI disponibili (al momento il file si chiama ati-driver-installer-8-12-x86.x86_64.run).
Installati i driver, va lanciato l&#8217;inserimento dei moduli nel kernel:
modprobe fglrx
Infine va abilitato il support a RandR per poter modificare al volo il layout dello schermo, cosi&#8217; come la sua rotazione e molte altre cose.
aticonfig --set-pcs-str="DDX,EnableRandr12,TRUE"
A questo punto [...]]]></description>
			<content:encoded><![CDATA[<p>Prima di tutto e&#8217; indispensabile installare gli ultimi driver <strong>ATI</strong> disponibili (al momento il file si chiama <strong>ati-driver-installer-8-12-x86.x86_64.run</strong>).</p>
<p>Installati i driver, va lanciato l&#8217;inserimento dei moduli nel kernel:</p>
<blockquote><p><code>modprobe fglrx</code></p></blockquote>
<p>Infine va abilitato il support a <strong>RandR</strong> per poter modificare al volo il layout dello schermo, cosi&#8217; come la sua rotazione e molte altre cose.</p>
<blockquote><p><code>aticonfig --set-pcs-str="DDX,EnableRandr12,TRUE"</code></p></blockquote>
<p>A questo punto saremo pronti per effettuare tutte le modifiche che vogliamo. Assicuratevi che X sia partito e da un terminale lanciamo una query con xrandr:</p>
<blockquote><p><code>xrandr -q -d :0</code></p></blockquote>
<p>L&#8217;output sara&#8217; qualcosa di simile a questo:</p>
<blockquote><p>Screen 0: minimum 320 x 200, current 640 x 480, maximum 1600 x 1600<br />
LCD connected 640&#215;480+0+0 (normal left inverted right x axis y axis) 400mm x 300mm<br />
640&#215;480        60.0*+<br />
640&#215;400        60.0<br />
512&#215;384        60.0<br />
400&#215;300        60.0<br />
320&#215;240        60.0<br />
320&#215;200        60.0<br />
DFP_EXTTMDS disconnected (normal left inverted right x axis y axis)<br />
CRT1 connected 640&#215;480+0+0 (normal left inverted right x axis y axis) 0mm x 0mm<br />
1600&#215;1200      60.0 +<br />
1400&#215;1050      60.0<br />
1280&#215;1024      60.0     47.0     43.0<br />
1440&#215;900       59.9<br />
1280&#215;960       60.0<br />
1152&#215;864       60.0     47.0     43.0<br />
1280&#215;768       59.9<br />
1280&#215;720       60.0<br />
1024&#215;768       60.0     60.0     43.5<br />
800&#215;600        60.3     60.3     56.2     47.0<br />
720&#215;480        60.0<br />
640&#215;480        60.0*<br />
640&#215;400        59.9<br />
512&#215;384        60.0<br />
400&#215;300        60.7<br />
320&#215;240        60.0<br />
320&#215;200        60.1</p></blockquote>
<p>Noterete subito le varie opzioni possibili, per effettuare qualche cambiamento al volo bastera&#8217; interagire con il comando xrandr, se per esempio vorremo <strong>ruotare lo schermo di 90°</strong> bastera&#8217; lanciare il seguente comando:</p>
<blockquote><p><code>xrandr  --output CRT1 --rotate left -d :0</code></p></blockquote>
<p>E il gioco e&#8217; fatto :) Per approfondire consiglio la lettura del wiki <a href="http://www.thinkwiki.org/wiki/Xorg_RandR_1.2">Xorg RandR 1.2</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/01/19/screen-rotation-on-ati-radeon-card-with-xrandr/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to resize a disk partition on a Xen Guest Linux host</title>
		<link>http://www.michelem.org/2009/01/16/how-to-resize-a-disk-partition-on-a-xen-guest-linux-host/</link>
		<comments>http://www.michelem.org/2009/01/16/how-to-resize-a-disk-partition-on-a-xen-guest-linux-host/#comments</comments>
		<pubDate>Fri, 16 Jan 2009 10:07:55 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[dom0]]></category>
		<category><![CDATA[guest]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[virtual]]></category>
		<category><![CDATA[vm]]></category>
		<category><![CDATA[xen]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=869</guid>
		<description><![CDATA[Alcuni semplici step per allargare una partizione Linux di un sistema operativo ospitato su Xen:
1) Spegnere la VM guest
2) Dal Dom0 eseguire: xe vdi-resize uuid=13575f55-e55d-7f49-f22d-62427cb8fa22 disk-size=5500MiB
3) Start VM
4) Nella VM: fdisk /dev/xvda
Command (m for help): d
Partition number (1-4): 2
Command (m for help): p
Disk /dev/xvda: 5767 MB, 5767168000 bytes
255 heads, 63 sectors/track, 701 cylinders
Units = cylinders [...]]]></description>
			<content:encoded><![CDATA[<p>Alcuni semplici step per allargare una partizione <strong>Linux</strong> di un sistema operativo ospitato su <strong>Xen</strong>:</p>
<p>1) Spegnere la VM guest</p>
<p>2) Dal Dom0 eseguire: <strong><em>xe vdi-resize uuid=13575f55-e55d-7f49-f22d-62427cb8fa22 disk-size=5500MiB</em></strong></p>
<p>3) Start VM</p>
<p>4) Nella VM: <strong><em>fdisk /dev/xvda</em></strong><br />
Command (m for help): <strong><em>d</em></strong><br />
Partition number (1-4): <strong><em>2</em></strong><br />
Command (m for help): <strong><em>p</em></strong><br />
Disk /dev/xvda: 5767 MB, 5767168000 bytes<br />
255 heads, 63 sectors/track, 701 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Device Boot      Start         End      Blocks   Id  System<br />
/dev/xvda1   *           1          13      104391   83  Linux<br />
Command (m for help): <strong><em>n</em></strong><br />
Command action<br />
e   extended<br />
p   primary partition (1-4)<br />
<strong><em>p</em></strong><br />
Partition number (1-4): <strong><em>2</em></strong><br />
First cylinder (14-701, default 14):<br />
Using default value 14<br />
Last cylinder or +size or +sizeM or +sizeK (14-701, default 701):<br />
Using default value 701<br />
Command (m for help): <strong><em>t</em></strong><br />
Partition number (1-4): <strong><em>2</em></strong><br />
Hex code (type L to list codes): <strong><em>8e</em></strong><br />
Changed system type of partition 2 to 8e (Linux LVM)<br />
Command (m for help): <strong><em>w</em></strong><br />
The partition table has been altered!<br />
Calling ioctl() to re-read partition table.<br />
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.<br />
The kernel still uses the old table.<br />
The new table will be used at the next reboot.<br />
Syncing disks.</p>
<p>5) <strong><em>reboot</em></strong></p>
<p>6) Dalla VM: <strong><em>pvresize -v /dev/xvda2</em></strong><br />
Using physical volume(s) on command line<br />
Archiving volume group &#8220;VolGroup00&#8243; metadata (seqno 5).<br />
Resizing physical volume /dev/xvda2 from 115 to 168 extents.<br />
Resizing volume &#8220;/dev/xvda2&#8243; to 11052336 sectors.<br />
Updating physical volume &#8220;/dev/xvda2&#8243;<br />
Creating volume group backup &#8220;/etc/lvm/backup/VolGroup00&#8243; (seqno 6).<br />
Physical volume &#8220;/dev/xvda2&#8243; changed<br />
1 physical volume(s) resized / 0 physical volume(s) not resized</p>
<p>7) <strong><em>lvextend -l +100%FREE /dev/VolGr</em><em>oup00/LogVol</em><em>00 </em></strong><br />
Extending logical volume LogVol00 to 5.25 GB<br />
Logical volume LogVol00 successfully resized<br />
resize2fs /dev/VolGroup00/LogVol00<br />
resize2fs 1.39 (29-May-2006)<br />
Filesystem at /dev/VolGroup00/LogVol00 is mounted on /; on-line resizing required<br />
Performing an on-line resize of /dev/VolGroup00/LogVol00 to 1376256 (4k) blocks.<br />
The filesystem on /dev/VolGroup00/LogVol00 is now 1376256 blocks long.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/01/16/how-to-resize-a-disk-partition-on-a-xen-guest-linux-host/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Xen Server how to connect ISO image for host installation</title>
		<link>http://www.michelem.org/2009/01/14/xen-server-how-to-connect-iso-image-for-host-installation/</link>
		<comments>http://www.michelem.org/2009/01/14/xen-server-how-to-connect-iso-image-for-host-installation/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 10:36:55 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[about michele]]></category>
		<category><![CDATA[books]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[image]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[xen]]></category>
		<category><![CDATA[xenserver]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=860</guid>
		<description><![CDATA[Questa me la segno una volta per tutte, ecco i passi da seguire per ottenere una libreria remota o locale di immagini ISO utilizzabili per l&#8217;installazione dei vari host:
Configurare l&#8217;export NFS:
echo "/var/opt/xen/iso_import *(rw,no_root_squash,sync)" &#62; /etc/exports
Avviare i demoni NFS:
service nfs start
service portmap start
Configurare i demoni NFS per partire automaticamente:
chkconfig --level 345 nfs on
chkconfig --level 345 portmap [...]]]></description>
			<content:encoded><![CDATA[<p>Questa me la segno una volta per tutte, ecco i passi da seguire per ottenere una libreria remota o locale di immagini ISO utilizzabili per l&#8217;installazione dei vari host:</p>
<p>Configurare l&#8217;export NFS:</p>
<blockquote><p><code>echo "/var/opt/xen/iso_import *(rw,no_root_squash,sync)" &gt; /etc/exports</code></p></blockquote>
<p>Avviare i demoni NFS:</p>
<blockquote><p><code>service nfs start</code><code><br />
service portmap start</code></p></blockquote>
<p>Configurare i demoni NFS per partire automaticamente:</p>
<blockquote><p><code>chkconfig --level 345 nfs on</code><br />
<code>chkconfig --level 345 portmap on</code></p></blockquote>
<p>Montare il repository in modo che sia disponibile come &#8220;DVD drive&#8221;:</p>
<blockquote><p><code>xe-mount-iso-sr 127.0.0.1:/var/opt/xen/iso_import</code></p></blockquote>
<p>Links:</p>
<ul>
<li><a href="http://wingloon.com/2008/09/30/setup-nfs-shares-for-citrix-xenserver-and-vmware-esxi/">Setup NFS Shares for Citrix XenServer and VMware ESXi</a></li>
<li><a id="iso_windows-where_to_put_it" href="http://docs.xensource.com/XenServer/4.1.0/1.0/en_gb/guest.html#iso_windows-where_to_put_it">Making the ISO available to XenServer Hosts</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/01/14/xen-server-how-to-connect-iso-image-for-host-installation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Slax la distro live portabile e altamente configurabile</title>
		<link>http://www.michelem.org/2009/01/13/slax-la-distro-live-portabile-e-altamente-configurabile/</link>
		<comments>http://www.michelem.org/2009/01/13/slax-la-distro-live-portabile-e-altamente-configurabile/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 15:14:42 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[cd]]></category>
		<category><![CDATA[dom]]></category>
		<category><![CDATA[ext3]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[hdd]]></category>
		<category><![CDATA[iso]]></category>
		<category><![CDATA[lcd]]></category>
		<category><![CDATA[live]]></category>
		<category><![CDATA[pico]]></category>
		<category><![CDATA[slackware]]></category>
		<category><![CDATA[slax]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[xfs]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=855</guid>
		<description><![CDATA[Slax e&#8217; una distribuzione Linux basata  su Slackware 12 che riesce a partire da qualsiasi supporto bootabile in appena 190MB.
E&#8217; un&#8217;ottima distribuzione sopratutto per chi sta cercando qualcosa di facilmente personalizzabile e semplice da usare. Io in particolare la sto usando per un progetto lavorativo che mi vede impegnato nella creazione e configurazione di un [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.slax.org/"><strong>Slax</strong></a> e&#8217; una distribuzione <a href="tag/linux">Linux</a> basata  su Slackware 12 che riesce a partire da qualsiasi supporto bootabile in appena 190MB.</p>
<p>E&#8217; un&#8217;ottima distribuzione sopratutto per chi sta cercando qualcosa di facilmente personalizzabile e semplice da usare. Io in particolare la sto usando per un progetto lavorativo che mi vede impegnato nella creazione e configurazione di un sistema Linux ad-hoc che giri su un ridottissimo hardware collegato a schermi LCD giganti.<br />
Un po&#8217; quello che vedete in giro per i centri commerciali o negli Autogrill, avete presente quegli enormi LCD che visualizzano le informazioni sul traffico, il meteo e le ultime notizie in tempo reale? Ecco il mio progetto e&#8217; qualcosa di molto simile.</p>
<p>Ho deciso di basarlo su Slax perche&#8217; l&#8217;ho trovata piacevolmente adatta a tale lavoro. Slax e&#8217; <strong>modulare</strong>, si puo&#8217; decidere quali moduli farle caricare per ottenere sistemi piu&#8217; o meno complessi ma la cosa veramente entusiasmante e&#8217; la facilita&#8217; con la quale si puo&#8217; estendere, clonare e riusare praticamente ovunque dai supporti meno convenzionali come le <strong>DOM</strong> a 44 pin (Disk On Module) alle piu&#8217; comuni chiavette <strong>USB</strong> fino ai classici <strong>HDD</strong> (sata/ide), e tutto sempre con la stessa <strong>immagine ISO</strong> senza cambiare una virgola. Anche l&#8217;hardware sul quale farla girare non dovra&#8217; avere alcun particolare requisito, di default ho provato che parte piuttosto bene su diversi tipi di schede madri e cpu oltre a supportare una vastissima quantita&#8217; di device piu&#8217;o meno conosciuti senza l&#8217;aggiunta o la scocciatura della compilazione di driver esterni o peggio kernel interi.</p>
<p>Slax impressiona per la sua enorme <strong>compatibilita</strong>&#8216;, attualmente la sto configurando su sistemi <a href="http://en.wikipedia.org/wiki/Pico-ITX"><strong>Pico-ITX</strong></a>, hardware ridotto al minimo nelle dimensioni ma non certo nelle prestazioni, se poi pensate che senza toccare nulla schede wireless, webcam, audio e quant&#8217;altro funzionano &#8220;al volo&#8221;, beh lo stupore e&#8217; d&#8217;obbligo.</p>
<p>Il caricamento di Slax su un qualsiasi supporto storage e&#8217; alquanto semplice, una volta scaricata e decompressa si presentano due directory: <strong>boot</strong> e <strong>slax</strong>.</p>
<p>La directory boot e&#8217; quella che contiene <strong>bootloader</strong> e <strong>kernel</strong> mentre la directory slax e&#8217; quella che contiene moduli aggiuntivi, il sistema vero e proprio e una directory &#8220;<strong>changes</strong>&#8221; nella quale vengono scritte tutte le modifiche che mano a mano vengono apportate al sistema una volta lanciato.</p>
<p>Quando la vostra distribuzione vi sembra matura e stabile bastera&#8217; semplicemente montare la partizione contenente Slax e lanciare lo script per la creazione automatica dell&#8217;immagine ISO, a quel punto potrete ri-distribuirla ovunque con pochi e semplici passi.</p>
<p>Lo sviluppatore consiglia, inizialmente, di formattare il vostro supporto in FAT32, copiare le directory boot e slax al suo interno e lanciare lo script che carica il bootloader nell&#8217;MBR del supporto.<br />
Io dopo averci lavorato per parecchie settimane posso dire che la partizione FAT32 si corrompe molto facilmente (soprattutto se usata su chiavette USB) e dopo svariati usi del sistema prima o poi si dovra&#8217; per forza ricrearlo da zero (partendo dalla ISO creata come backup).<br />
Molto scomodo e poco usabile, per questo da poco ho deciso di passare a una partizione <strong>EXT3</strong> anche per il supporto principale, da quel momento tutto il sistema e&#8217; diventato molto piu&#8217; stabile (ma si puo&#8217; usare anche un filesystem <strong>XFS</strong> volendo)</p>
<p>Insomma Slax e&#8217; qualcosa che mancava nel panorama delle distribuzioni Linux e permette anche al sistemista junior di crearsi la sua personalissima distribuzione senza doversi sforzare troppo nell&#8217;intento di mettere tutti i pezzi al loro posto, per quello ci pensa Slax, voi dovrete solo apportare le vostre, spesso banali, modifiche, e il gioco e&#8217; fatto.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2009/01/13/slax-la-distro-live-portabile-e-altamente-configurabile/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>OpenVPN Client &amp; Server Configuration HOWTO</title>
		<link>http://www.michelem.org/2008/11/14/openvpn-client-server-configuration-howto/</link>
		<comments>http://www.michelem.org/2008/11/14/openvpn-client-server-configuration-howto/#comments</comments>
		<pubDate>Fri, 14 Nov 2008 11:49:29 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[macosx]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openvpn]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=850</guid>
		<description><![CDATA[Giusto per non scordarmele di nuovo e visto che le usero&#8217; molto spesso d&#8217;ora in avanti, ecco alcuni step per configurare un client e un server Linux ma anche Mac OS X per parlarsi in VPN con OpenVPN.
Installazione certificati
. ./vars
./clean-all
./build-ca
Copiare i file ca.* su entrambi i computer (client/server)
Creazione certificati client/server
. ./vars
./build-key-server &#60;common-name-server&#62;
./build-dh
./build-key &#60;common-name-client&#62;
Copiare i file [...]]]></description>
			<content:encoded><![CDATA[<p>Giusto per non scordarmele di nuovo e visto che le usero&#8217; molto spesso d&#8217;ora in avanti, ecco alcuni step per configurare un client e un server <a href="/tag/linux"><strong>Linux</strong></a> ma anche <a href="/tag/macosx"><strong>Mac OS X</strong></a> per parlarsi in <strong>VPN</strong> con <a href="http://openvpn.org">OpenVPN</a>.</p>
<p>Installazione certificati</p>
<blockquote><p><code>. ./vars<br />
./clean-all<br />
./build-ca</code></p></blockquote>
<p>Copiare i file ca.* su entrambi i computer (client/server)</p>
<p>Creazione certificati client/server</p>
<blockquote><p><code>. ./vars<br />
./build-key-server &lt;common-name-server&gt;<br />
./build-dh<br />
./build-key &lt;common-name-client&gt;</code></p></blockquote>
<p>Copiare i file &lt;common-name-client&gt;.* sul computer client</p>
<p>Configurazione Server</p>
<blockquote><p><code>port 1194<br />
proto udp<br />
dev tun<br />
ca ca.crt<br />
cert server.crt<br />
dh dh1024.pem<br />
#Subnet for the VPN, this computer will get the first ip (10.10.100.1)<br />
server 10.10.100.0 255.255.255.0<br />
ifconfig-pool-persist ipp.txt<br />
keepalive 10 120<br />
persist-key<br />
persist-tun<br />
status openvpn-status.log<br />
verb 3</code></p></blockquote>
<p>Configurazione Client</p>
<blockquote><p><code>client<br />
dev tun<br />
proto udp<br />
# This is the remote ip address and port of the VPN Server<br />
remote 1.2.3.4 1194<br />
resolv-retry infinite<br />
nobind<br />
persist-key<br />
persist-tun<br />
ca ca.crt<br />
cert client1.crt<br />
key client1.key<br />
verb 3</code></p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2008/11/14/openvpn-client-server-configuration-howto/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
