<?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&#039;s Blog &#187; linux</title>
	<atom:link href="http://www.michelem.org/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michelem.org</link>
	<description>io, me e michele</description>
	<lastBuildDate>Mon, 30 Jan 2012 09:57:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Apache2 / Worker / Fcgid / PHP5 on Debian Linux</title>
		<link>http://www.michelem.org/2010/02/22/apache2-worker-fcgid-php5-on-debian-linux/</link>
		<comments>http://www.michelem.org/2010/02/22/apache2-worker-fcgid-php5-on-debian-linux/#comments</comments>
		<pubDate>Mon, 22 Feb 2010 13:56:39 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[fcgid]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[multi-thread]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[web]]></category>
		<category><![CDATA[worker]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=961</guid>
		<description><![CDATA[Quando il tuo web server non riescie piu&#8217; a gestire le numerose richieste che gli arrivano da tutto il mondo, e&#8217; ora di pensare di cambiare gestione di Apache2 per qualcosa che richieda meno risorse e risulti piu&#8217; performante. La soluzione di usare Apache in modalita&#8217; &#8220;worker&#8221; (multi-threaded) invece di quella tradizionale &#8220;prefork&#8221; e&#8217; il [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Quando il tuo web server non riescie piu&#8217; a gestire le numerose richieste che gli arrivano da tutto il mondo, e&#8217; ora di pensare di cambiare gestione di <strong>Apache2</strong> per qualcosa che richieda meno risorse e risulti piu&#8217; performante.</p>
<p>La soluzione di usare Apache in modalita&#8217; &#8220;<strong>worker</strong>&#8221; (multi-threaded) invece di quella tradizionale &#8220;prefork&#8221; e&#8217; il compromesso giusto per ottenere un ottimo web server.</p>
<p>il problema con il modulo &#8220;worker&#8221; e&#8217; che quest&#8217;ultimo non supporta il modulo nativo per Apache di PHP, per questo bisogna usare <strong>php5-cgi</strong> e <strong>fastcgi</strong> (fcgid).</p>
<p>Pochi semplici step vi aiuteranno a installare questa nuova modalita&#8217;.</p>
<p>iniziamo con installare i pacchetti giusti:</p>
<blockquote><p><code><br />
sudo apt-get install apache2-mpm-worker libapache2-mod-fcgid</code><br />
<code>sudo apt-get install php5-cgi php5-curl php5-gd php5-ldap php5-mysql php5-sqlite php5-xsl</code></p></blockquote>
<p>Ora disabilitiamo i vecchi moduli e abilitiamo i nuovi:</p>
<blockquote><p><code>sudo a2dismod php5</code></p>
<p><code>sudo a2enmod actions</code></p>
<p><code> </code><code>sudo a2enmod fcgid</code></p></blockquote>
<p>Non resta che dare le giuste direttive ad Apache, in apache2.conf:</p>
<blockquote><p><code>&lt;Directory /var/www&gt;<br />
AddHandler fcgid-script .php<br />
FCGIWrapper /usr/lib/cgi-bin/php5 .php<br />
&lt;/Directory&gt;</code></p></blockquote>
<p>E per ogni virtualhost dovrete aggiungere:</p>
<blockquote><p><code>Options +ExecCGI</code></p></blockquote>
<p>Ci sono diversi modi di configurare queste direttive potete trovarne altri ancora in giro per la rete <a href="http://www.google.com/search?hl=en&amp;source=hp&amp;q=apache2+fcgi+php5&amp;btnG=Google+Search&amp;aq=f&amp;oq=&amp;aqi=">cercando su Google</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2010/02/22/apache2-worker-fcgid-php5-on-debian-linux/feed/</wfw:commentRss>
		<slash:comments>11</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>9</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>8</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>3</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. [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>3</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>12</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>6</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>2</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 [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<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>
		<item>
		<title>Tomboy on Mac OS X</title>
		<link>http://www.michelem.org/2008/10/22/tomboy-on-mac-os-x/</link>
		<comments>http://www.michelem.org/2008/10/22/tomboy-on-mac-os-x/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 14:26:38 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[apple]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[notes]]></category>
		<category><![CDATA[office]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[tomboy]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=843</guid>
		<description><![CDATA[E luce fu :) Tomboy for Mac OS X]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>E luce fu :)</p>
<p><a href="http://automorphic.blogspot.com/2008/10/tomboy-preview-for-windows-and-mac.html"><img class="alignnone size-full wp-image-844" title="tomboy_on_mac" src="http://www.michelem.org/wp-content/uploads/2008/10/tomboy_on_mac.png" alt="" width="440" height="275" /></a></p>
<p><a href="http://automorphic.blogspot.com/2008/10/tomboy-preview-for-windows-and-mac.html">Tomboy for Mac OS X</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2008/10/22/tomboy-on-mac-os-x/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 1469/1727 objects using disk: basic

Served from: www.michelem.org @ 2012-02-10 12:48:13 -->
