<?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>Vita di un sys-admin &#187; Unix</title>
	<atom:link href="http://blog.angelofailla.com/category/informatica/unix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.angelofailla.com</link>
	<description>Storie, esperienze e pensieri da Dublino.</description>
	<lastBuildDate>Sun, 14 Aug 2011 22:11:12 +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>Lazyness</title>
		<link>http://blog.angelofailla.com/2009/03/13/lazyness/</link>
		<comments>http://blog.angelofailla.com/2009/03/13/lazyness/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 10:53:57 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[automazione]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=1351</guid>
		<description><![CDATA[C&#8217;e&#8217; stata una migrazione qualche notte fa per $GRANDECLIENTE. Fortunatamente io non vi ho fatto parte, se no avrei dovuto passare la notte in ufficio. Uno step previsto per la migrazione consisteva nel disattivare tutti i check nagios della vecchia release ceh girava su una 20ina di server. La CGI Nagios e&#8217; notoriamente uno schifo. [...]]]></description>
			<content:encoded><![CDATA[<p>C&#8217;e&#8217; stata una migrazione qualche notte fa per $GRANDECLIENTE. Fortunatamente io non vi ho fatto parte, se no avrei dovuto passare la notte in ufficio.</p>
<p>Uno step previsto per la migrazione consisteva nel disattivare tutti i check nagios della vecchia release ceh girava su una 20ina di server. La CGI Nagios e&#8217; notoriamente uno schifo. Non c&#8217;e&#8217; nessuna funzionalita&#8217; tipo &#8220;select all&#8221; -&gt; click. Cosi&#8217; quei geni si sono messi <strong>a cliccare come pazzi, spendendo UN&#8217;ORA.</strong></p>
<p><strong>Ora, per me tu puoi fare quello che vuoi, ma siccome non si sa mai che in un futuro prossimo io debba essere al posto loro, ho rimediato con l&#8217;ennesimo script.<br />
</strong></p>
<p>Fossi io avrei preferito spendere un&#8217;ora a scrivermi uno script che non mi avrebbe fatto perdere un&#8217;ora ogni volta che avessi dovuto fare una cosa del genere. E cosi&#8217; ho fatto ieri sera dopo cena, non avendo un cazzo di molto interessante da fare.</p>
<p>Lo script e&#8217; <a href="http://www.pallotron.net/software/nagios_extcmd.sh">qui.</a></p>
<pre>
/home/pallotron/bin/nagios_extcmd.sh <-n | -N | -p | -P | -C | -c> host service_description <cmdfile_path>
/home/pallotron/bin/nagios_extcmd.sh -h

-n disable notification
-N enable notification

-p disable passive check
-P enable passive check

-c disable check
-C enable check</pre>
<p>Lo script scrive qualcosa nella pipe che il daemon Nagios piazza nel file system.</p>
<p>Ho preso la lista dei comandi da <a href="http://www.nagios.org/developerinfo/externalcommands/commandlist.php">qui.</a></p>
<p>Avrete bisogno di editarlo e cambiare il path della pipe in base al vostro sistema. Poi sbizzarrirvi con un robe del tipo:</p>
<pre>for i in web01de web02de web03de web04de
do
   nagios_extcmd.sh -n $i "SC Apache"
   nagios_extcmd.sh -p $i "SC Apache"
   nagios_extcmd.sh -c $i "SC Apache"
done</pre>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=1351&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2009%2F03%2F13%2Flazyness%2F&amp;title=Lazyness" id="wpa2a_2"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2009/03/13/lazyness/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Io ti odio!</title>
		<link>http://blog.angelofailla.com/2009/02/14/io-ti-odio/</link>
		<comments>http://blog.angelofailla.com/2009/02/14/io-ti-odio/#comments</comments>
		<pubDate>Sat, 14 Feb 2009 11:19:39 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Irlanda]]></category>
		<category><![CDATA[Lamentazioni]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[odio]]></category>
		<category><![CDATA[oneliner]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[sed]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=1318</guid>
		<description><![CDATA[Caro collega, stavolta lo scrivo qui: ieri ti ho odiato, per l&#8217;ennesima volta! Quando il nostro collega DBA indiano e&#8217; venuto da me chiedendomi: «Angelo, come faccio ad inserire una stringa &#8220;NAME&#8221; su un file &#8220;tmp.log&#8221; da 1 GB tra la quarta e la quinta colonna con VI/VIM?» Tu hai sentito&#8230; ti sei voluto alzare&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>Caro collega,</p>
<p>stavolta lo scrivo qui: ieri ti ho <strong>odiato</strong>, per l&#8217;ennesima volta!</p>
<p>Quando il nostro collega DBA indiano e&#8217; venuto da me chiedendomi:</p>
<blockquote><p>«Angelo, come faccio ad inserire una stringa &#8220;NAME&#8221; su un file &#8220;tmp.log&#8221; da 1 GB tra la quarta e la quinta colonna con VI/VIM?»</p></blockquote>
<p><strong>Tu hai sentito&#8230; ti sei voluto alzare&#8230; con quell&#8217;aria da saccente&#8230; *dovevi* intrometterti&#8230; il tuo istinto da &#8220;nerdone-primo-della-classe-so-tutto-io&#8221; ti ha fatto venire alla mia scrivania mentre io scrivevo il one-liner perl necessario alla magia, consigliandomi di poterlo fare cosi&#8217; e coli&#8217;&#8230; con sed piuttosto che con awk, e blabla&#8230;</strong></p>
<p style="text-align: center;"><strong><a href="http://blog.angelofailla.com/wp-content/uploads/2009/02/nerd.jpg"><img class="size-full wp-image-1320 aligncenter" title="nerd" src="http://blog.angelofailla.com/wp-content/uploads/2009/02/nerd.jpg" alt="nerd" width="300" height="370" /></a><br />
</strong></p>
<p>Non e&#8217; stato sufficiente che ti dicessi di farti i cazzi tuoi&#8230; dovevi gareggiare&#8230; dovevi farti sputtanare&#8230; e dopo 2 minuti hai avuto anche la sfacciataggine di mandare una email al collega col subject &#8220;sed version&#8221;, scrivendo questa zozzeria:</p>
<pre>$ cat tmp.log | sed 's/^\(\W*\w\+\W\+\w\+\W\+\W*\w\+\)/\1 fff/g'</pre>
<p>Ma ti ho punito con la eleganza del Perl:</p>
<pre>$ perl -lpne 's/^((\w+\W+){3})/$1NAME /;' tmp.log</pre>
<p><strong>Sei old! OLD! Mettitelo in testa. Guarda quella linea, e&#8217; ILLEGGIBILE. Con tutte quelle sequenze di escape!<br />
</strong></p>
<p><strong>Peccato che il DBA abbia scelto il tuo sed. In questo mondo non c&#8217;e&#8217; giustizia.<br />
</strong></p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=1318&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2009%2F02%2F14%2Fio-ti-odio%2F&amp;title=Io%20ti%20odio%21" id="wpa2a_4"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2009/02/14/io-ti-odio/feed/</wfw:commentRss>
		<slash:comments>33</slash:comments>
		</item>
		<item>
		<title>Come ti estendo l&#8217;homebanking col Perl</title>
		<link>http://blog.angelofailla.com/2009/01/31/come-ti-estendo-lhomebanking-col-perl/</link>
		<comments>http://blog.angelofailla.com/2009/01/31/come-ti-estendo-lhomebanking-col-perl/#comments</comments>
		<pubDate>Sat, 31 Jan 2009 15:32:21 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[cpan]]></category>
		<category><![CDATA[moduli]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[www::mechanize]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=1296</guid>
		<description><![CDATA[Ireland, 1 year. Sono al giro di boa del primo anno. Non faro&#8217; il solito post commemorativo del tipo &#8220;questo giorno un anno fa ero all&#8217;aeroporto ignaro del futuro&#8221;. Forse lo faro&#8217; dopo. Accontentati di quello che avevo scritto un mese fa. Piuttosto festeggio con un bel rilascio su CPAN.org dei miei sforzi informatici delle [...]]]></description>
			<content:encoded><![CDATA[<p>Ireland, <strong>1 year.</strong></p>
<p><strong>Sono al giro di boa del primo anno.</strong> Non faro&#8217; il solito post commemorativo del tipo &#8220;questo giorno un anno fa ero all&#8217;aeroporto ignaro del futuro&#8221;. Forse lo faro&#8217; dopo. Accontentati di quello che avevo scritto <a href="2008/11/25/riflessioni-a-ruota-libera-senza-uno-scopo-particolare/">un mese fa.</a> Piuttosto festeggio con un bel rilascio su <a href="http://www.cpan.org">CPAN.org</a> dei miei sforzi informatici delle ultime 2 settimane, per provare quanto sia sensato il fumetto di <a href="http://xkcd.com/519/">xkcd.com</a> : cioe&#8217; che <strong>abbia piu&#8217; senso una settimana incasinando col <a href="http://it.wikipedia.org/wiki/Perl">Perl</a> che 900 ore di corso universitario o 400 ore di compiti a casa <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </strong></p>
<p><a href="http://xkcd.com/519/"><img class="alignnone size-full wp-image-1297" title="11th_grade" src="http://blog.angelofailla.com/wp-content/uploads/2009/01/11th_grade.png" alt="11th_grade" width="535" height="333" /></a></p>
<p>Cosi&#8217;, dopo 2 settimane di programmazione piu&#8217; o meno autistica, ho rilasciato una prima release usabile: il modulo si chiama <a href="http://search.cpan.org/~pallotron/Finance-Bank-IE-PermanentTSB/">Finance::Bank::IE::PermanentTSB</a>, e si aggiunge al namespace Finance::Bank, accanto ad altri moduli dello stesso tipo.</p>
<p>Il modulo permette di stampare da riga di comando il saldo di tutti i conti correnti bancari collegato all&#8217;homebanking di PermanentTSB.</p>
<pre>pallotron@terminus ~ $ ptsb -b
Parsing configuration file...

You need a passphrase to unlock the secret key for
user: "Angelo Failla &lt;afailla@newbay.com&gt;"
2048-bit ELG-E key, ID F83D3FCA, created 2008-02-18 (main key ID B68B318D)

gpg: encrypted with 2048-bit ELG-E key, ID F83D3FCA, created 2008-02-18
      "Angelo Failla &lt;afailla@newbay.com&gt;"

Connecting...

-----------------------------------------------------------
|       Account name | Acc. # |     Balance |   Available |
-----------------------------------------------------------
| Switch Current A/C |   0220 |      135.35 |      235.35 |
|          Visa Card |   2667 |     -419.66 |       80.34 |
-----------------------------------------------------------</pre>
<p>Ovviamente i dati dell&#8217;output sono taroccati <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Lo script e&#8217; anche in grado di stampare l&#8217;estratto conto basandosi su range temporale, regular expression (per matchare la description), e condizioni matematiche (tipo &lt;300, &gt;=2000, etc).</p>
<p>L&#8217;idea del modulo mi e&#8217; venuta dopo che ho scoperto <strong>la potenza di <a href="http://search.cpan.org/~petdance/WWW-Mechanize-1.54/lib/WWW/Mechanize.pm">WWW::Mechanize.</a></strong> E&#8217; un modulo Perl che permette di <strong>automatizzare l&#8217;interazione con un sito web</strong>: gestisce la navigazione attraverso pagine, i click, la gestione delle form, il fill out delle form, etc. C&#8217;e&#8217;<strong> qualche pazzo che l&#8217;ha usato per scriversi bot che tengono d&#8217;occhio aste di Ebay</strong> o che effettuano <strong>operazioni periodiche su Ogame</strong> (famoso gioco alla Warcraft, ma online; ci giocavo 2 anni fa, ma poi ne sono uscito pulito!).</p>
<p>Il miglior modo per imparare qualcosa quando programmi e&#8217; di solito scrivere qualcosa che ti serva veramente. Cosi&#8217; mi sono detto: <em>«devo scrivere qualcosa che mi serva veramente e nel frattempo mi possa servire per imparare il modulo e rispolverare altre cose del Perl».</em></p>
<p><strong>Noi sistemisti siamo pigri e non amiamo fare le stesse cose ripetutamente</strong>, e, dove possibile (quasi dovunque!), ci piace automatizzare <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
Se poi possiamo avere tool command line per fare le cose piu&#8217; disparate sicuramente non disdegniamo.</p>
<p>Il sito di PermanentTSB e&#8217; una chiavica, non fa grafici e istogrammi del conto, non salva/esporta gli estratti conto in file CSV, non tiene dati piu&#8217; vecchi di 6 mesi! Un invito a nozze per rimediare a cio&#8217; con WWW::Mechanize!</p>
<p>D&#8217;apprima ho iniziato scrivendo un modulo per familiarizare con le librerie, obiettivo: &#8220;inserire da command line, le ore lavorate nel sistema di time tracking aziendale&#8221;. Devo dire che lo script e&#8217; stato molto apprezzto a lavoro visto che per inserire anche un solo record nella interfaccia aziendale si devono cliccare milioni di volte, e il sistema non e&#8217; a prova di errore!</p>
<p>Queste due settimane mi sono servite a:</p>
<ul>
<li>rispolverare Perl;</li>
<li>imparare la programmazione dei package/moduli;</li>
<li>capire come funziona la comunita&#8217; CPAN;</li>
<li>imparare WWW::Mechanize;</li>
<li>imparare come funzionano le test unit in Perl usando <a href="http://search.cpan.org/~mschwern/Test-Simple/lib/Test/More.pm">Test::More</a> e <a href="http://search.cpan.org/~chromatic/Test-MockObject">Test::MockObject</a>;</li>
<li>imparare come funziona <a href="http://git-scm.com/">git</a>, il sistema di versioning creato da <a href="http://it.wikipedia.org/wiki/Linus_Torvalds">Linus Torvalds</a> usato dalla comunita&#8217; di sviluppo del <a href="http://it.wikipedia.org/wiki/Linux">Kernel Linux.</a> Veramente fico per velocita&#8217; e completezza di opzioni e feature. Meglio di subversion/cvs.</li>
</ul>
<p>In piu&#8217; e&#8217; servito a coprire anche un po&#8217; di spazi vuoti che ultimamente sto avendo a lavoro. <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>Alla prossima!</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=1296&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2009%2F01%2F31%2Fcome-ti-estendo-lhomebanking-col-perl%2F&amp;title=Come%20ti%20estendo%20l%26%238217%3Bhomebanking%20col%20Perl" id="wpa2a_6"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2009/01/31/come-ti-estendo-lhomebanking-col-perl/feed/</wfw:commentRss>
		<slash:comments>30</slash:comments>
		</item>
		<item>
		<title>Considerations about Sun Solaris 10.</title>
		<link>http://blog.angelofailla.com/2008/08/23/considerations-about-sun-solaris-10/</link>
		<comments>http://blog.angelofailla.com/2008/08/23/considerations-about-sun-solaris-10/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 09:54:05 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[smf]]></category>
		<category><![CDATA[solaris 10]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[zfs]]></category>
		<category><![CDATA[zone]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=1012&#038;langswitch_lang=en</guid>
		<description><![CDATA[In NewBay I&#8217;m currently working on a project which uses Sun Solaris 10 in a multi-tier architecture. I&#8217;ve already used before this system in Italy, so it isn&#8217;t new for me; in Italy I was responsible for creating Sun packages for projects made by my ex company in behalf of Nokia and Vodafone Italy. By [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.angelofailla.com/wp-content/uploads/2008/08/sol10logo.png"><img class="aligncenter size-full wp-image-1013" title="sol10logo" src="http://blog.angelofailla.com/wp-content/uploads/2008/08/sol10logo.png" alt="" width="343" height="179" /></a></p>
<p>In <a href="http://www.newbay.com">NewBay</a> I&#8217;m currently working on a project which uses Sun Solaris 10 in a multi-tier architecture. I&#8217;ve already used before this system in Italy, so it isn&#8217;t new for me; in Italy I was responsible for creating Sun packages for projects made by my ex company in behalf of Nokia and Vodafone Italy.</p>
<p>By the way, as I started working in Newbay, I was allocated to this project called <a href="http://www.myfaves.co.uk/">MyFaves</a> for <a href="http://en.wikipedia.org/wiki/T-mobile">T-Mobile International</a>. This is based exclusively on Solaris 10 (both x86 and sparc architecture).<br />
After a few months I&#8217;ve used, and I&#8217;ve became pretty confident, with most of the big new and historical features of Solaris 10 like the <a href="http://en.wikipedia.org/wiki/Service_Management_Facility">SMF</a>, the <a href="http://en.wikipedia.org/wiki/Service_Management_Facility">ZFS</a> file system, the Solaris <a href="http://en.wikipedia.org/wiki/Solaris_Zones">zone/containers.</a></p>
<p>So what do I think about it?</p>
<p>Well, I think the only stuff really good in Solaris are the 3 I&#8217;ve mentioned above. All the other things I&#8217;ve seen around the system are pretty crappy. When I started using SMF I was thinking: «oh man! this is ridiculous! I&#8217;ve to type <em>svcadm enable/disable svc:/blabla/blablala/myapp:default</em> every fucking time i need to start or stop a service! <em>/etc/init.d/service start/stop</em> is much more better!». Then I studied a lot this SMF, and I have to admit is brilliant! I really would like to have it in enterprises Linuxes like Red Hat, or even, let&#8217;s say, in Debian! <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>ZFS is brilliant as well! I know it&#8217;s now stable and ready for production on BSD systems like FreeBSD. I&#8217;m not really sure if the Linux ZFS implementation, which use the fuse subsystem, is ready for production as well&#8230;</p>
<p>Zones and containers&#8230; well&#8230; I think they&#8217;re cool. Maybe I&#8217;m wrong but I think they&#8217;ve copied the <a href="http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/jails.html">FreeBSD jails</a> and they&#8217;ve integrated it very nicely with the system, especially with the solaris resoure manager. So you can, for exapmle, decide the amount of memory, or the number of CPUs that can be used by a single process, user, or group, in each zone. Integration between ZFS and Zones is cool as well!</p>
<p>Despite all these stuff I have to say that <strong>I still don&#8217;t really like Solaris:</strong></p>
<ul>
<li>I don&#8217;t like to have the f***ing old style vi written by <a href="http://en.wikipedia.org/wiki/Bill_Joy">Bill Joy</a>.</li>
<li>I dont&#8217;t like to have defined <em>export EDITOR=ed</em> and <em>export PAGER=more</em> by default.</li>
<li>I don&#8217;t like the fucking ps command (but you have to use the one into <em>/usr/ucb/</em>).</li>
<li>I don&#8217;t like the fact that your default shell is an old style c-shell instead of <em>/bin/bash</em></li>
<li>I don&#8217;t like the fucking OLD cron daemon which is not able to read the GNU syntax (for something like <em>*/5</em> to schedule a job every 5 minutes you have to write &#8220;<em>05,10,15,20,25,30,35,40,45,50,55</em>&#8220;. So ridicolous!!!!!)</li>
<li>I don&#8217;t like the fact that you don&#8217;t have ANY messages while booting!</li>
<li>I don&#8217;t like the packaging system, is shit compared with APT/DPKG, or with the the BSD ports system.</li>
<li>I don&#8217;t like CDE and JavaDesktop (or should I say GNOME! <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> ).</li>
</ul>
<p>Why the fuck aren&#8217;t they using the GNU subsystem instead of their own CRAP? Are they using this only on OpenSolaris maybe?</p>
<p>Someone might say that this is because big companies (like banks for example) are still using OLD software which needs to use old crap to work. So they need old crap shell interpreter, and stuff like that. And they obviously like to have all the old crap by default installation&#8230;</p>
<p>Fuck them I say! This is ridicolous! <strong>They</strong> have to do the effort to adjust their our systems to work with the new OS&#8217;s. <strong>Not me! <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </strong></p>
<p>So this is what I think about Solaris 10. You can insult me now.</p>
<p>Cheers.<br />
Angelo</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=1012&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F08%2F23%2Fconsiderations-about-sun-solaris-10%2F&amp;title=Considerations%20about%20Sun%20Solaris%2010." id="wpa2a_8"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/08/23/considerations-about-sun-solaris-10/feed/</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>Impossibile sniffare sulla interfaccia di loopback in Solaris?</title>
		<link>http://blog.angelofailla.com/2008/08/12/impossibile-sniffare-sulla-interfaccia-di-loopback-in-solaris/</link>
		<comments>http://blog.angelofailla.com/2008/08/12/impossibile-sniffare-sulla-interfaccia-di-loopback-in-solaris/#comments</comments>
		<pubDate>Tue, 12 Aug 2008 18:01:36 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Esperienze]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lamentazioni]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[lamentazione]]></category>
		<category><![CDATA[merda]]></category>
		<category><![CDATA[sniff]]></category>
		<category><![CDATA[snoop]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sysadmin]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=984&#038;langswitch_lang=en</guid>
		<description><![CDATA[Salve, Oggi ho sclerato una giornata per fare il troubleshooting di una cosa su Solaris. Problemi di comunicazione random tra apache che fa reverse proxy verso un tomcat nella stessa Zona di Solaris con traffico passante sulla interfaccia di loopback. Pero&#8217;: root@solaris # ./tcpdump -n -i lo0 tcpdump: /dev/lo0: No such file or directory root@solaris [...]]]></description>
			<content:encoded><![CDATA[<p>Salve,</p>
<p>Oggi ho sclerato una giornata per fare il troubleshooting di una cosa su Solaris. Problemi di comunicazione random tra apache che fa reverse proxy verso un tomcat nella stessa Zona di Solaris con traffico passante sulla interfaccia di loopback. Pero&#8217;:</p>
<pre>root@solaris # ./tcpdump -n -i lo0
tcpdump: /dev/lo0: No such file or directory

root@solaris # snoop -d lo0
snoop: /dev/lo: No such file or directory</pre>
<p>Solaris. Sei proprio un sistema operativo di merda!</p>
<p>Leggete <a href="http://phildev.net/ipf/IPFsolaris.html#solaris12">http://phildev.net/ipf/IPFsolaris.html#solaris12</a>:</p>
<blockquote><p><strong># Why can&#8217;t I filter on the loopback interface, or virtual interfaces?</strong><br />
The loopback interface on Solaris is a <strong>&#8220;fake&#8221; interface.</strong> You cannot filter it, nor can you snoop it. This is for <strong>performance reasons</strong>. Virtual interfaces in Solaris are very similar, to filter on them, use the physical interface instead. </p></blockquote>
<p>Perfomance reasons! Ma andatevene affanculo va&#8217;!<br />
Alla fine sono riuscito a  sniffare in un altro modo invertendo il reverse proxy verso un tomcat di un altro nodo e sniffando sulla interfaccia reale&#8230; sono riuscito ad isolare il problema e a decidere chi dei due sia il colpevole (almeno credo) e domani ci lavoro.</p>
<p>Saluti.</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=984&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F08%2F12%2Fimpossibile-sniffare-sulla-interfaccia-di-loopback-in-solaris%2F&amp;title=Impossibile%20sniffare%20sulla%20interfaccia%20di%20loopback%20in%20Solaris%3F" id="wpa2a_10"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/08/12/impossibile-sniffare-sulla-interfaccia-di-loopback-in-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sysadmin day, oggi come un anno fa.</title>
		<link>http://blog.angelofailla.com/2008/07/25/sysadmin-day-oggi-come-un-anno-fa/</link>
		<comments>http://blog.angelofailla.com/2008/07/25/sysadmin-day-oggi-come-un-anno-fa/#comments</comments>
		<pubDate>Fri, 25 Jul 2008 12:33:03 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[apprezzamento]]></category>
		<category><![CDATA[sysadmin day]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=941&#038;langswitch_lang=en</guid>
		<description><![CDATA[Ecco, come un anno fa.]]></description>
			<content:encoded><![CDATA[<p>Ecco, come <a href="/2007/07/27/oggi-e-il-giorno-dei-sysadminoggi-e-il-giorno-dei-sysadmin/">un anno fa.</a></p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="350" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.youtube.com/v/udhd9fmOdCs" /><embed type="application/x-shockwave-flash" width="425" height="350" src="http://www.youtube.com/v/udhd9fmOdCs"></embed></object></p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=941&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F07%2F25%2Fsysadmin-day-oggi-come-un-anno-fa%2F&amp;title=Sysadmin%20day%2C%20oggi%20come%20un%20anno%20fa." id="wpa2a_12"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/07/25/sysadmin-day-oggi-come-un-anno-fa/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Monitoring SSL certificate expiration with Nagios</title>
		<link>http://blog.angelofailla.com/2008/07/17/monitoring-ssl-certificate-expiration-with-nagios/</link>
		<comments>http://blog.angelofailla.com/2008/07/17/monitoring-ssl-certificate-expiration-with-nagios/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 10:49:42 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[English posts]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programmazione]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[expiration]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[ssl]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=873</guid>
		<description><![CDATA[Hi Lads, This is a post for nerds so I&#8217;m writing it in English. If you don&#8217;t understand English or technical stuff please close this page I&#8217;m at work and I&#8217;ve just finished to write a Nagios script to monitor expiration date of a SSL certificate. I wanna share it with you. To have the [...]]]></description>
			<content:encoded><![CDATA[<p>Hi Lads,</p>
<p>This is a post for nerds so I&#8217;m writing it in English. If you don&#8217;t understand English or technical stuff please close this page <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /><br />
I&#8217;m at work and I&#8217;ve just finished to write a Nagios script to monitor expiration date of a SSL certificate.</p>
<p>I wanna share it with you.</p>
<p>To have the script working properly you just need to install OpenSSL and let the <span>openssl</span><br />
command be in your PATH environment.</p>
<p>This is the usage:</p>
<pre>
Usage:
check_ssl_cert.sh hostname port [warningdays]
</pre>
<p>Warning days default value is 30 days.</p>
<p>Some examples:</p>
<pre>[afailla@terminus ~]$  /usr/local/nagios/bin/check_ssl_cert.sh google.com 443
OK: Certificate is valid for 289 days expires on May  2 17:02:55 2009 GMT

[afailla@terminus ~]$  /usr/local/nagios/bin/check_ssl_cert.sh google.com 443 400
CRITICAL: Certificate will expire in 289 days on May  2 17:02:55 2009 GMT</pre>
<p>Download the script <a href="http://blog.angelofailla.com/wp-content/uploads/2008/07/check_ssl_cert.sh">here</a> and enjoy it.</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=873&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F07%2F17%2Fmonitoring-ssl-certificate-expiration-with-nagios%2F&amp;title=Monitoring%20SSL%20certificate%20expiration%20with%20Nagios" id="wpa2a_14"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/07/17/monitoring-ssl-certificate-expiration-with-nagios/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>And God saw that there were 0 errors.</title>
		<link>http://blog.angelofailla.com/2008/07/07/and-god-saw-that-there-were-0-errors/</link>
		<comments>http://blog.angelofailla.com/2008/07/07/and-god-saw-that-there-were-0-errors/#comments</comments>
		<pubDate>Mon, 07 Jul 2008 09:34:18 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Libero]]></category>
		<category><![CDATA[Tempo libero]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[console]]></category>
		<category><![CDATA[dio]]></category>
		<category><![CDATA[fun]]></category>
		<category><![CDATA[geek]]></category>
		<category><![CDATA[god]]></category>
		<category><![CDATA[Humor]]></category>
		<category><![CDATA[religione]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=853</guid>
		<description><![CDATA[Oggi sono capitato su questa pagina fighissima. Guardatelo fino alla fine perche&#8217; e&#8217; spettacolare. Specie la parte finale!!!!!]]></description>
			<content:encoded><![CDATA[<p>Oggi sono capitato su <a href="http://celobox.googlepages.com/god.html">questa pagina fighissima.</a><br />
Guardatelo fino alla fine perche&#8217; e&#8217; spettacolare. Specie la parte finale!!!!! <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<style>
.console {
	background: #000;
	color: #14FC03;	
	border: 1px solid #111;
        font-family: monospace;
        font-size: 10pt;
}
.console:hover {
        background: #000;
	color: #14FC03;	
	border: 1px solid #111;
        font-family: monospace;
        font-size: 10pt;
}
</style>
<input type="button" onclick="type_text()" value="Play" name="click"/>
<p><script language="Javascript"><!--
var tl=new Array(
"In the beginning there was the Computer.",
"Loading Universe Kernel....",
"And God said",
"_ LET THERE BE LIGHT!",
"login: GOD",
"password: OMNISCIENT",
"Password incorrect. Try again.",
"password: OMNIPOTENT",
"Password incorrect. Try again.",
"password: TECHNOCRAT",
"And God logged on at 00:00:01, day 1.",
"# LET THERE BE LIGHT!",
"Unrecognisable command. Try again.",
"# CREATE LIGHT",
"Done",
"# RUN HEAVEN AND EARTH",
"And God created Day and Night. And God saw that there were 0 errors.",
"And God logged off at 00:01:00, day 1.",
" ",
"And God logged on at 00:00:01, day 2.",
"# LET THERE BE FIRMAMENT IN THE MIDST OF WATER AND LIGHT",
"Unrecognisable command. Try again..",
"# CREATE FIRMAMENT",
"Done.",
"# RUN HEAVEN AND EARTH",
"And God divided the waters. And God saw that there were 0 errors.",
"And God logged off at 00:02:00, day 2.",
" ",
"And God logged on at 00:00:01, day 3.",
"# LET THE WATERS UNDER HEAVEN BE GATHERED TOGETHER UNTO ONE PLACE AND LET THE DRY LAND APPEAR",
"Too many characters in specification string. Try again.",
"# CREATE DRY_LAND",
"Done.",
"# RUN HEAVEN AND EARTH",
"# LET THE EARTH PRODUCE FRESH GROWTH, LET THERE BE ON THE EARTH PLANTS",
"Too many characters in specification string. Try again.",
"# CREATE PLANTS",
"# RUN HEAVEN AND EARTH",
"So it was; the Earth yielded fresh growth, plants bearing seed. And God saw that there were 0 errors.",
"And God logged off at 00:02:00, day 3.",
" ",
"And God logged on at 00:00:01, day 4.",
"# CREATE LIGHTS IN THE FIRMAMENT TO DIVIDE THE DAY FROM THE NIGHT",
"Unspecified type. Try again.",
"# CREATE SUN_MOON_STARS",
"Done",
"# RUN HEAVEN AND EARTH",
"These lights governed day and night and separated light from darkness. And God saw there were 0 errors.",
"And God logged off at 00:02:00, day 4.",
" ",
"And God logged on at 00:00:01, day 5.",
"# CREATE FISH",
"Done",
"# CREATE FOWL",
"Done",
"# RUN HEAVEN AND EARTH",
"And God created the great sea monsters and every living creature that creepeth wherewith the waters swarmed after its kind and every winged fowl after its kind. And God saw that there were 0 errors.",
"And God logged off at 00:02:00, day 5.",
" ",
"And God logged on at 00:00:01, day 6.",
"# CREATE CATTLE",
"Done",
"# CREATE CREEPY_THINGS",
"Done",
"# RUN HEAVEN AND EARTH",
"# NOW LET US MAKE MAN IN OUR IMAGE",
"Unspecified type. Try again.",
"# CREATE MAN",
"Done",
"# BE FRUITFUL AND MULTIPLY AND REPLENISH THE EARTH AND SUBDUE IT AND HAVE DOMINION OVER THE FISH OF THE SEA AND OVER THE FOWL OF THE AIR AND OVER EVERY LIVING THING THAT CREEPETH UPON THE EARTH",
"Too many command operands. Try again.",
"# RUN MULTIPLICATION",
"Execution terminated. 6 errors.",
"# INSERT BREATH",
"Done",
"# RUN MULTIPLICATION",
"Execution terminated. 5 errors.",
"# MOVE MAN TO GARDEN OF EDEN",
"File Garden of Eden does not exist.",
"# CREATE GARDEN.EDN",
"Done",
"# MOVE MAN TO GARDEN.EDN",
"Done",
"# RUN MULTIPLICATION",
"Execution terminated. 4 errors.",
"# COPY WOMAN FROM MAN",
"Done",
"# RUN MULTIPLICATION",
"Execution terminated. 3 errors.",
"# CREATE DESIRE",
"Done",
"# RUN MULTIPLICATION",
"Execution terminated. 2 errors.",
"# CREATE FREEWILL",
"Done",
"# RUN FREEWILL",
"And God saw man and woman being fruitful and multiplying in Garden.edn",
"Warning: No time limit set. 1 errors.",
"# UNDO DESIRE",
"Desire cannot be undone. File may be in use by Freewill.",
"# DELETE FREEWILL",
"Freewill cannot be deleted. it may be a hidden or system file or may be in use.",
"Enter replacement, cancel, or ask for help.",
"# HELP",
"Desire cannot be undone. File may be in use by Freewill.",
"Freewill cannot be deleted. it may be a hidden or system file or may be in use.",
"Try again, cancel or quit program.",
"Try again",
"Try again, cancel or quit program.",
"cancel",
"Try again, cancel or quit program.",
"quit",
"Try again, cancel or quit program.",
"# CREATE TREE_OF_KNOWLEDGE",
"And God saw man and woman being fruitful and multiplying in Garden.edn",
"Warning: No time limit set. 1 errors.",
"# CREATE GOOD, EVIL",
"Done",
"# ACTIVATE EVIL",
"And God saw he had created shame.",
"Warning system error. Missing or corrupt file: Man and Woman not in Garden.edn. 1 errors.",
"# SCAN GARDEN.EDN FOR MAN, WOMAN",
"Search failed.",
"# DELETE SHAME",
"Shame cannot be deleted. File may be in use by Freewill.",
"# DELETE FREEWILL",
"Freewill cannot be deleted. it may be a hidden or system file or may be in use.",
"Enter replacement, cancel, or ask for help.",
"# STOP",
"Unrecognizable command. Try again",
"# BREAK",
"# BREAK",
"# BREAK",
"ATTENTION ALL USERS *** ATTENTION ALL USERS COMPUTER GOING DOWN FOR REGULAR MAINTENANCE IN FIVE MINUTES. PLEASE LOG OFF.",
"# CREATE NEW WORLD",
"You have exceeded your allocated file space.",
"You must destroy old files before new ones can be created.",
"# DESTROY EARTH",
"Destroy earth: Please confirm.",
"COMPUTER DOWN *** COMPUTER DOWN.",
"SERVICES WILL RESUME day 8 AT 00:00:00",
"YOU MUST SIGN OFF NOW.",
"And God logged off at 23:59:59, day 6.",
" ",
"And God rested."
);
var speed=60;
var index=0; text_pos=0;
var str_length=tl[0].length;
var contents, row;
function type_text()
{
  contents='';
  row=Math.max(0,index-7);
  while(row<index)
    contents += tl[row++] + '\r\n';
  document.forms[0].elements[0].value = contents + tl[index].substring(0,text_pos) + "_";
  if(text_pos++==str_length)
  {
    text_pos=0;
    index++;
    if(index!=tl.length)
    {
      str_length=tl[index].length;
      setTimeout("type_text()",1500);
    }
  } else
    setTimeout("type_text()",speed);
}
// -->
</script></p>
<form>
<div align="center">
    <textarea class="console" rows="10" cols="80" wrap="soft"></textarea>
  </div>
</form>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=853&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F07%2F07%2Fand-god-saw-that-there-were-0-errors%2F&amp;title=And%20God%20saw%20that%20there%20were%200%20errors." id="wpa2a_16"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/07/07/and-god-saw-that-there-were-0-errors/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Inglisc, yakuake, dualhead e Gnome, etc etc</title>
		<link>http://blog.angelofailla.com/2008/07/02/inglisc-yakuake-dualhead-e-gnome-etc-etc/</link>
		<comments>http://blog.angelofailla.com/2008/07/02/inglisc-yakuake-dualhead-e-gnome-etc-etc/#comments</comments>
		<pubDate>Wed, 02 Jul 2008 22:26:06 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Irlanda]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[Software Libero]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[dual head]]></category>
		<category><![CDATA[dublino]]></category>
		<category><![CDATA[dyne]]></category>
		<category><![CDATA[english]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[xrandr]]></category>
		<category><![CDATA[yakuake]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=846</guid>
		<description><![CDATA[Dublin, Ireland, 6 months so far. Abbiamo tagliato il nastro dei 6 mesi. A lavoro tutto procede per il meglio. L&#8217;inglese ancora non e&#8217; cosi&#8217; fluent come vorrei ma migliora gradualmente. L&#8217;altro pomeriggio, mi pare sabato, mi ferma sul viale di casa il vecchieto vicino di casa, mi sbraita qualcosa in inglese con un accento [...]]]></description>
			<content:encoded><![CDATA[<p>Dublin, Ireland, 6 months so far.</p>
<p>Abbiamo tagliato il nastro dei 6 mesi. A lavoro tutto procede per il meglio. L&#8217;inglese ancora non e&#8217; cosi&#8217; fluent come vorrei ma migliora gradualmente. L&#8217;altro pomeriggio, mi pare sabato, mi ferma sul viale di casa il vecchieto vicino di casa, mi sbraita qualcosa in inglese con un accento assurdo (slang irlandese tipico specie della popolazione di terza eta&#8217;), inutile dire che <strong>ho fatto fatica a capirlo.</strong> Gli ho detto di scusarmi ma non riuscivo a capirlo, poverino, ha fatto una faccia come per dire: e che sono un troglodita? ahahah! BTW mi aveva chiesto solo dove andavo di bello. Gli dissi che andavo a prendere un paio di pinte con gli amici. Mi ha dato una pacca sulla spalla e se n&#8217;e&#8217; tornato a casa sua.</p>
<p>Il vicino e&#8217; un tipo molto cordiale alla quale piace scherzare da vecchio quale e&#8217;. Se ne esce con battute del tipo:</p>
<p>&lt;&lt;Sei in Irlanda ora! Devi camminare sul marciapiede!&gt;&gt; mentre cammino sul viale di casa in mezzo alla strada&#8230; in tipo tutto particolare <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Credo che il mio inglese a quest&#8217;ora sarebbe a livelli migliori se fossi completamente isolato dagli italiani, o se comunque avessi la possibilita&#8217; di parlare molto di piu&#8217; inglese durante il giorno.</p>
<p>Un fattore che gioca a mio svantaggio e&#8217; che vivo con gente che parla italiano.</p>
<p>Purtroppo solo l&#8217;ambiente lavorativo non basta secondo me, e&#8217; troppo tecnico. Ci vogliono situazioni di tutti i giorni. Pare che <a href="http://www.delirinotturni.net/">Barbara</a> abbia trovato una prof. che fa lezioni private one to one a domicilio. Mi fara&#8217; sapere e al limite la ingaggio. Il corso normale non basta per me. Mi ci vuole un face to face per fare conversation e qualche altra cosa di grammatica.</p>
<p>Ultimamente mi sto portando il portatile aziendale a lavoro per vari motivi, snobbando il portatile personale, uno dei piu&#8217; importanti e&#8217; che ha la tastiera uk/us che e&#8217; troppo comoda. Ultimamente switchando tra tastiera uk/us e tastiera italiana stavo cominciando a dare di matto.</p>
<p>In ufficio ho un monitor LCD da 19&#8243; pollici esterno e una tastiera esterna collegati al portatile, cio&#8217; mi consente di avere piu&#8217; spazio per lavorare, specie con molti terminali aperti contemporeanamente. Io uso Ubuntu su sto portatile, la ultima versione ha un buon supporto per il dualhead pero&#8217; c&#8217;e&#8217; qualcosa che con Gnome non va&#8217;. Quando si attiva la modalita&#8217; dual head i pannelli di gnome (gnome-panel) se ne vanno di default sullo schermo esterno (che e&#8217; quello piu&#8217; grande). Se volete risolvere questo problema fastidioso dovete trascinare <strong>ogni volta</strong> a mano i pannelli nel monitor del portatile. Non c&#8217;e&#8217; modo di dire di default dove questi si debbano aprire (almeno non attraverso la GUI ufficiale di Gnome).</p>
<p>Cosi&#8217; ecco come ho risolto con questi due alias di bash/zsh, da mettere in ~/.bashrc, o quello che fa al caso vostro:</p>
<p><code>dualhead='sudo xrandr --output VGA --auto --right-of LVDS &#038;&#038; gconftool --set /apps/panel/toplevels/top_panel_screen0/monitor --type integer 1 &#038;&#038; gconftool --set /apps/panel/toplevels/bottom_panel_screen0/monitor --type integer 1'</code></p>
<p><code>dualhead_off='sudo xrandr --output VGA --off'</code></p>
<p>Sostituite &#8220;&#8211;right-of&#8221; con la vostra posizione. Potete usare:</p>
<ul>
<li>&#8211;left-of</li>
<li>&#8211;above</li>
<li>&#8211;below</li>
</ul>
<p>E altri valori, a seconda della disposizione dei vostri monitor.</p>
<p>LVDS indica il monitor LCD del portatile. Se anziche&#8217; un cavo VGA utilizzate altre tecnologie come HDMI dovete sostiture VGA con non ricordo cosa. Maggiori informazioni leggendo man xrandr</p>
<p>Il primo alias attiva il dual head, il secondo lo disattiva. Il comando gconftool per mette, tra le altre cose, di settare proprieta&#8217; e valori del registro di gnome. Il registro puo&#8217; essere navigato con la gui gconf-editor. La proprieta&#8217; monitor accetta un intero che indica il monitor. Per conoscere i path nel vostro computer usate gconf-editor.</p>
<p>Altra cosa fica che ho scoperto e&#8217; <a href="http://extragear.kde.org/apps/yakuake/">Yakuake</a>. Un terminale a scomparsa (si arrotola/srotola con F12). Provatelo! <img src='http://blog.angelofailla.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>Alla prossima.</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=846&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F07%2F02%2Finglisc-yakuake-dualhead-e-gnome-etc-etc%2F&amp;title=Inglisc%2C%20yakuake%2C%20dualhead%20e%20Gnome%2C%20etc%20etc" id="wpa2a_18"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/07/02/inglisc-yakuake-dualhead-e-gnome-etc-etc/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Solaris Mirror Root MiniHowto</title>
		<link>http://blog.angelofailla.com/2008/06/28/solaris-mirror-root-minihowto/</link>
		<comments>http://blog.angelofailla.com/2008/06/28/solaris-mirror-root-minihowto/#comments</comments>
		<pubDate>Sat, 28 Jun 2008 14:04:48 +0000</pubDate>
		<dc:creator>pallotron</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Informatica]]></category>
		<category><![CDATA[Lavoro]]></category>
		<category><![CDATA[Tips and Tricks]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[dyne]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[metraid]]></category>
		<category><![CDATA[mirror]]></category>
		<category><![CDATA[raid]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[x86]]></category>

		<guid isPermaLink="false">http://blog.angelofailla.com/?p=842&#038;langswitch_lang=en</guid>
		<description><![CDATA[Benvenuti nella seconda puntata. Questo minihowto suppone che il vostro disco sia organizzato cosi&#8217;: c1d0s0 e&#8217; / c1d0s1 e&#8217; la partizione di swap c1d0s5 e&#8217; /var c1d0s6 e&#8217; /usr c1d0s7 verra&#8217; usato per ospitare metadb Entrare in modalita&#8217; single user: # init 1 Smontare tutti i possibili mount point. Usare il comando format sul secondo [...]]]></description>
			<content:encoded><![CDATA[<p>Benvenuti nella seconda puntata.</p>
<p>Questo minihowto suppone che il vostro disco sia organizzato cosi&#8217;:</p>
<ul>
<li>c1d0s0 e&#8217; /</li>
<li>c1d0s1 e&#8217; la partizione di swap</li>
<li>c1d0s5 e&#8217; /var</li>
<li>c1d0s6 e&#8217; /usr</li>
<li>c1d0s7 verra&#8217; usato per ospitare metadb</li>
</ul>
<p>Entrare in modalita&#8217; single user:</p>
<pre># init 1</pre>
<p>Smontare tutti i possibili mount point. Usare il comando <strong>format</strong> sul secondo disco c2d0, questo ci consentira&#8217; di usare <strong>fdisk</strong> per installare preventivamente le partizioni richieste da Solaris.</p>
<p>Copiare la tabella delle partizioni dal primo disco sul secondo:</p>
<pre># prtvtoc /dev/rdsk/c1d0s2 | fmthard -s - /dev/rdsk/c2d0s2</pre>
<p>Installare grub sul secondo disco:</p>
<p># installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c2d0s0</p>
<p>Creare 3 metadbs sullo slice 7 di ogni disco:</p>
<pre># metadb -af -c 3 /dev/dsk/c1d0s7 /dev/dsk/c2d0s7</pre>
<p>Creare i metadevice submirror associandoli ai dischi reali.</p>
<pre># metainit -f d11 1 1 c1d0s0
# metainit -f d12 1 1 c2d0s0</pre>
<p>Questo comando associa il submirror d11 al mirror d10:</p>
<pre># metainit d10 -m d11</pre>
<p>Si fa lo stesso con le altre slice:</p>
<pre># metainit -f d21 1 1 c1d0s1
# metainit -f d22 1 1 c2d0s1
# metainit d20 -m d21

# metainit -f d51 1 1 c1d0s5
# metainit -f d52 1 1 c2d0s5
# metainit d50 -m d51

# metainit -f d61 1 1 c1d0s6
# metainit -f d62 1 1 c2d0s6
# metainit d60 -m d61</pre>
<p>A questo punto lanciare metaroot per indicare quale metadisk e&#8217; quello che monta la partizione di root. Questo comando andra&#8217; a modificare alcuni file come /etc/system, /kernel/drv/md.conf ed anche /etc/vfstab (ma solo la partizione /):</p>
<pre># metaroot d10</pre>
<p>Controllare la situazione con il comando metastat:</p>
<pre># metastat</pre>
<p>Editare vfstab per farlo puntare ai raid devices sostituendo i vari device coi corrispondendi metadevice in /dev/md/:</p>
<pre># vi /etc/vfstab
#device         device          mount           FS      fsck    mount   mount
#to mount       to fsck         point           type    pass    at boot options
#
fd      -       /dev/fd fd      -       no      -
/proc   -       /proc   proc    -       no      -
/dev/md/dsk/d20 -       -       swap    -       no      -
/dev/md/dsk/d10 /dev/md/rdsk/d10        /       ufs     1       no      -
/dev/md/dsk/d60        /dev/md/rdsk/d60        /usr    ufs     1       no      -
/dev/md/dsk/d50 /dev/md/rdsk/d50        /var    ufs     1       no      -
/devices        -       /devices        devfs   -       no      -
ctfs    -       /system/contract        ctfs    -       no      -
objfs   -       /system/object  objfs   -       no      -
swap - /tmp tmpfs - yes size=512m
</pre>
<p>Usare il comando lockfs e rebootare:</p>
<pre># lockfs -fa
# init 6
</pre>
<p>Al reboot fare l&#8217;attach dei submirror del secondo disco:</p>
<pre># metattach d10 d12
# metattach d20 d22
# metattach d50 d52
# metattach d60 d62</pre>
<p>A questo punto il sync del disco secondario iniziera&#8217;. Per controlloare lo stato di avanzamento utilizzate questo comando:</p>
<pre># metastat | grep -i sync</pre>
<p>PS: il sync puo&#8217; durare diverse ore a seconda delle perfomance del vostro server e dello spazio.</p>
<img src="http://blog.angelofailla.com/?ak_action=api_record_view&id=842&type=feed" alt="" /><p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fblog.angelofailla.com%2F2008%2F06%2F28%2Fsolaris-mirror-root-minihowto%2F&amp;title=Solaris%20Mirror%20Root%20MiniHowto" id="wpa2a_20"><img src="http://blog.angelofailla.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://blog.angelofailla.com/2008/06/28/solaris-mirror-root-minihowto/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

