<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    <title>&quot;A me funziona&quot; - Appunti IT</title>
    <link>http://havens.no-ip.org/prose/</link>
    <description>Don't feed the IT abusers</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.4.1 - http://www.s9y.org/</generator>
    <pubDate>Tue, 22 Sep 2009 13:50:58 GMT</pubDate>

    <image>
        <url>http://havens.no-ip.org/prose/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: &quot;A me funziona&quot; - Appunti IT - Don't feed the IT abusers</title>
        <link>http://havens.no-ip.org/prose/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>unoconv su CentOS headless</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/54-unoconv-su-CentOS-headless.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/54-unoconv-su-CentOS-headless.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Come installare un sistema di conversione file semplice e potente su CentOS, senza aver bisogno di X:&lt;br /&gt;
&lt;br /&gt;
1) Installare il repository &lt;a href=&quot;http://dag.wieers.com/rpm/FAQ.php#B2&quot;&gt;rpmforge&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
2) Eseguire il comando&lt;br /&gt;
&lt;pre&gt;yum install unoconv openoffice.org-headless openoffice.org-writer&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Problema:&lt;/em&gt; la versione di unoconv attualmente presente sui repository non supporta la modalita&#039; headless, dunque bisogna correggere lo script /usr/bin/unoconv, riga 377 rendendola:&lt;br /&gt;
&lt;pre&gt;oopid = os.spawnvp(os.P_NOWAIT, bin, [bin,
     &quot;-headless&quot;, &quot;-nofirststartwizard&quot;, &quot;-nologo&quot;, &quot;-nodefault&quot;,
     &quot;-accept=%s&quot; % op.connection])&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Trovano cosi&#039; comoda risposta tutte quelle query per &quot;odt to pdf&quot; eccetera.. &lt;img src=&quot;http://havens.no-ip.org/prose/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Tue, 22 Sep 2009 15:50:58 +0200</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/54-guid.html</guid>
    <category>centos odt pdf</category>

</item>
<item>
    <title>Installare Zope 2 su Ubuntu</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/36-Installare-Zope-2-su-Ubuntu.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/36-Installare-Zope-2-su-Ubuntu.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=36</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=36</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Per qualche strana ragione Goog e&#039; parco di spiegazioni in questo campo.. In particolare io cozzavo in questo problema:&lt;br /&gt;
&lt;pre&gt;
root@lothlorien:/var/log# /etc/init.d/zope2.10 start
 * Zope2.10: skipping Extensions (old/purged)
 * Zope2.10: skipping Products (old/purged)
 * Zope2.10: skipping bin (old/purged)
 * Zope2.10: skipping etc (old/purged)
 * Zope2.10: skipping import (old/purged)
 * Zope2.10: skipping lib (old/purged)
 * Zope2.10: skipping log (old/purged)
 * Zope2.10: skipping var (old/purged)
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
 Ad ogni modo:&lt;br /&gt;
&lt;pre&gt;
sudo apt-get install zope2.10
sudo /usr/lib/zope2.10/bin/mkzopeinstance.py
&lt;/pre&gt;&lt;br /&gt;
Nel questionario che apparira&#039; indicare come instance una directory all&#039;interno di &lt;em&gt;/var/lib/zope2.10/instance&lt;/em&gt;, ad esempio /var/lib/zope2.10/instance/test&lt;br /&gt;
&lt;br /&gt;
Infine si puo&#039; avviare Zope:&lt;br /&gt;
&lt;pre&gt;
sudo /etc/init.d/zope2.10 start
&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Sun, 31 May 2009 17:11:21 +0200</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/36-guid.html</guid>
    <category>ubuntu</category>
<category>zope</category>

</item>
<item>
    <title>Hylafax e &quot;425 Cannot build data connection: Connection refused&quot;</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/34-Hylafax-e-425-Cannot-build-data-connection-Connection-refused.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/34-Hylafax-e-425-Cannot-build-data-connection-Connection-refused.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=34</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=34</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Nel caso si tenti di spedire un fax tramite client Hylafax e ci si ritrovi davanti l&#039;errore in oggetto, vuol dire che c&#039;e&#039; qualcosa da sistemare nel firewall &lt;img src=&quot;http://havens.no-ip.org/prose/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;&lt;br /&gt;
Hylafax utilizza un protocollo simil-FTP e pertanto non basta liberare la porta base (4599) ma ha bisogno anche di una porta dati, determinata dinamicamente durante la comunicazione. Pertanto bisogna indicare al kernel di usare il modulo &lt;strong&gt;ip_conntrack_ftp&lt;/strong&gt;, avendo cura di indicargli di sorvegliare la porta 4599 invece della 21 standard.&lt;br /&gt;
&lt;br /&gt;
Su CentOS (quindi presumibilmente anche su Fedora e RHEL) questo si realizza come segue:&lt;br /&gt;
- In &lt;em&gt;/etc/sysconfig/iptables-config&lt;/em&gt; aggiungere alla variabile IPTABLES_MODULES il modulo ip_conntrack_ftp, ad esempio:&lt;br /&gt;
&lt;pre&gt;IPTABLES_MODULES=&quot;ip_conntrack_ftp&quot;&lt;/pre&gt;&lt;br /&gt;
- Nel file &lt;em&gt;/etc/modprobe.conf&lt;/em&gt; aggiungere la direttiva&lt;br /&gt;
&lt;pre&gt;options ip_conntrack_ftp ports=4599&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Curiosamente, questa cosa io l&#039;ho dovuta fare sul client.. Misteri &lt;img src=&quot;http://havens.no-ip.org/prose/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt; 
    </content:encoded>

    <pubDate>Sat, 16 May 2009 11:51:12 +0200</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/34-guid.html</guid>
    <category>centos</category>
<category>fedora</category>
<category>hylafax</category>
<category>rhel</category>

</item>
<item>
    <title>wxPython multipli su Jaunty</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/32-wxPython-multipli-su-Jaunty.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/32-wxPython-multipli-su-Jaunty.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=32</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=32</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Nel caso in cui ci si ritrovi con un&#039;installazione di Jaunty avente piu&#039; di una versione di wxgtk installata, puo&#039; dare noia il fatto che il classico &quot;import wx&quot; da Python non importi direttamente la versione piu&#039; recente, bensi la piu&#039; antica..&lt;br /&gt;
&lt;br /&gt;
Il motivo di questo comportamento e&#039; che nella nuova Ubuntu viene installato in /usr/lib/python2.6/dist-packages un link simbolico .pth per ogni pacchetto wxgtk (&lt;em&gt;wx-[ver]-gtk2-unicode.pth&lt;/em&gt;), pertanto quando Python parte ed ispeziona questa directory, aggiunge a sys.path &lt;strong&gt;tutte&lt;/strong&gt; le versioni, e dunque in caso di &quot;import wx&quot;, carica la prima disponibile (dato che procede in ordine alfabetico.&lt;br /&gt;
Per confronto, nelle versioni precedenti di Ubuntu invece veniva creato solamente il link wx.pth, il quale tramite il sistema alternatives punta al wxPython preferito (solitamente il piu&#039; recente).&lt;br /&gt;
&lt;br /&gt;
Quindi se si vuole risolvere il problema a livello sistemistico (e non a livello di programma tramite wxversion) e&#039; sufficiente rimuovere o spostare tali file. 
    </content:encoded>

    <pubDate>Sun, 10 May 2009 23:28:49 +0200</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/32-guid.html</guid>
    <category>default version</category>
<category>jaunty</category>
<category>ubuntu</category>
<category>wxpython</category>

</item>
<item>
    <title>Server VNC su Xubuntu</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/22-Server-VNC-su-Xubuntu.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/22-Server-VNC-su-Xubuntu.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=22</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=22</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Quando tutto il resto non funziona (vino etc) meglio tornare al buon vecchio vncserver &lt;img src=&quot;http://havens.no-ip.org/prose/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;  &lt;br /&gt;
&lt;br /&gt;
Prima di tutto installare il pacchetto giusto:&lt;br /&gt;
&lt;pre&gt;sudo apt-get install vnc4server&lt;/pre&gt;&lt;br /&gt;
Dopodiche&#039; configurare la password da usare per l&#039;utente interessato:&lt;br /&gt;
&lt;pre&gt;vncpasswd&lt;/pre&gt;&lt;br /&gt;
Infine impostare l&#039;avvio automatico del server VNC aggiungendo a /etc/rc.local qualcosa tipo:&lt;br /&gt;
&lt;pre&gt;
OPTS=&quot;-geometry 1152x864&quot;
USER=joril
sudo -u $USER sh -c &quot;HOME=/home/$USER vnc4server :1 $OPTS&quot;
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;em&gt;Notare che questo tipo di configurazione porta ad un setup &quot;tipo RedHat&quot;, per cui NON si accede alla schermata presente sul monitor, bensi&#039; ad un desktop virtuale. Per un sistema simile a vino, usare x11vnc.&lt;/em&gt; 
    </content:encoded>

    <pubDate>Tue, 03 Mar 2009 10:04:05 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/22-guid.html</guid>
    
</item>
<item>
    <title>Segreti della Danimarca</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/10-Segreti-della-Danimarca.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/10-Segreti-della-Danimarca.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=10</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=10</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Consegno ai posteri il frutto di nuove estenuanti ricerche.&lt;br /&gt;
&lt;br /&gt;
Allorche&#039; le coincidenze della vita portino a cercare di fare il pairing di un dispositivo Bluetooth sotto XFCE, invece che perdere il senno cercando di convicere hcid.conf a collaborare, si puo&#039; semplicemente lasciare tutte le impostazioni di default e sfruttare l&#039;apposito wizard per Gnome:&lt;br /&gt;
&lt;pre&gt;bluetooth-wizard&lt;/pre&gt;&lt;br /&gt;
Se invece il computer non risultasse visibile da altri dispositivi Bluetooth, procedere senza indugi con un&lt;br /&gt;
&lt;pre&gt;hciconfig hci0 pscan&lt;/pre&gt; 
    </content:encoded>

    <pubDate>Sun, 14 Dec 2008 11:23:44 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/10-guid.html</guid>
    <category>bluetooth</category>
<category>bluetooth visibility</category>
<category>pairing</category>
<category>xfce</category>
<category>xubuntu</category>

</item>
<item>
    <title>RT*M</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/8-RTM.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/8-RTM.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=8</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=8</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    A volte la vita riserva sorprese che allargano i propri orizzonti in maniera imprevedibile, e questo scorcio della manpage di Midnight Commander ne e&#039; un chiaro esempio:&lt;br /&gt;
&lt;blockquote&gt;If you are running the Midnight Commander with the mouse  support,  you can  get the default mouse behavior (cutting and pasting text) by holding down the Shift key.&lt;br /&gt;
&lt;/blockquote&gt;&lt;br /&gt;
Se l&#039;avessi saputo prima, quante sessioni di vi avrei risparmiato.&lt;br /&gt;
&lt;br /&gt;
P.S. Ovviamente usare cutandpaste durante la programmazione e&#039; sempre &lt;strong&gt;male&lt;/strong&gt;. 
    </content:encoded>

    <pubDate>Sat, 06 Dec 2008 17:33:52 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/8-guid.html</guid>
    <category>cut and paste</category>
<category>mc</category>
<category>midnight commander</category>
<category>mouse</category>

</item>
<item>
    <title>Strani fardelli</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/7-Strani-fardelli.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/7-Strani-fardelli.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=7</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=7</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Vale la pena di ricordare che nell&#039;esigenza stringente di connettersi ad una VPN basata su OpenVPN, non servono interfacce grafiche sbrilluccicose!&lt;br /&gt;
Se sul client si ha Ubuntu, basta farsi dare il certificato-bundle PKCS#12, creare una configurazione tipo questa&lt;br /&gt;
&lt;pre&gt;tls-client
client
dev tun
proto udp
tun-mtu 1400
nobind
remote [nome_del_server] 1194
pkcs12 [nome_del_file_certificato]
cipher BF-CBC
comp-lzo
verb 3
ns-cert-type server
&lt;/pre&gt;&lt;br /&gt;
e mettere tutto in /etc/openvpn, avendo cura che la configurazione suddetta abbia estensione .conf.&lt;br /&gt;
&lt;br /&gt;
Dopodiche&#039;,&lt;br /&gt;
&lt;pre&gt;/etc/init.d/openvpn start&lt;/pre&gt;&lt;br /&gt;
e vuala&#039;&lt;br /&gt;
 
    </content:encoded>

    <pubDate>Thu, 27 Nov 2008 21:19:31 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/7-guid.html</guid>
    <category>openvpn</category>
<category>pkcs12</category>
<category>ubuntu</category>

</item>
<item>
    <title>Disconoscere un processo</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/6-Disconoscere-un-processo.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/6-Disconoscere-un-processo.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=6</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=6</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    L&#039;altro giorno mi sono ritrovato connesso via SSH ad un server, con una lunga operazione in corso, e l&#039;ora di cena che si avvicinava.&lt;br /&gt;
Ovviamente non potevo spegnere in allegrezza il mio portatile (tranciando cosi&#039; il processo) ed inoltre, essendo l&#039;operazione in corso gia&#039; da parecchio, non volevo interromperla per rifarla partire da capo sotto nohup.. D&#039;altronde mi pareva strano non ci fosse modo di &quot;nohuppare&quot; un processo gia&#039; attivo, dunque ho ovviamente chiesto a Google..&lt;br /&gt;
Risultato, &lt;strong&gt;disown -h %job&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
Esempio:&lt;br /&gt;
&lt;pre&gt;# Lanciamo un processo lungo
find . / &gt; dump
[CTRL+Z] per stoppare il job
# Indichiamo che il job non deve ricevere SIGHUP
disown -h %1
# Mandiamo il job in background
bg %1
# Ora di cena!
&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
Benedetta filosofia Unix.. 
    </content:encoded>

    <pubDate>Tue, 25 Nov 2008 23:46:48 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/6-guid.html</guid>
    <category>background</category>
<category>bg</category>
<category>disconnect</category>
<category>job</category>
<category>nohup</category>

</item>
<item>
    <title>Search engine optimization (?)</title>
    <link>http://havens.no-ip.org/prose/index.php?/archives/5-Search-engine-optimization.html</link>
            <category>Appunti IT</category>
    
    <comments>http://havens.no-ip.org/prose/index.php?/archives/5-Search-engine-optimization.html#comments</comments>
    <wfw:comment>http://havens.no-ip.org/prose/wfwcomment.php?cid=5</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://havens.no-ip.org/prose/rss.php?version=2.0&amp;type=comments&amp;cid=5</wfw:commentRss>
    

    <author>nospam@example.com (Joril)</author>
    <content:encoded>
    Qualche giorno fa stavo scrivendo uno script che doveva (tra l&#039;altro) creare un file con un certo contenuto.. Sapevo che sh ha un operatore che permette di includere direttamente in uno script il contenuto di un file, ma non ne ricordavo la sintassi, solo un vago &quot;ha un &lt;&lt;&quot;.. Di conseguenza, come per tutte le domande della vita, ho provato a cercare su Google ma &lt;strong&gt;ahime&#039;&lt;/strong&gt; non e&#039; possibile fare ricerche di stringhe costituite da soli simboli. Frugando dolorosamente nella mia memoria sono alfine riuscito a ricordare quale fosse il termine non-simbolico usato per quell&#039;operatore, e cioe&#039; &lt;a href=&quot;http://en.wikipedia.org/wiki/Heredoc&quot;&gt;Here-document&lt;/a&gt;.&lt;br /&gt;
Se mai un giorno Googlebot passera&#039; di qui, imparera&#039; cosa rispondere ad eventuali domande su &lt;strong&gt;&quot;doppio minore&quot;&lt;/strong&gt;... 
    </content:encoded>

    <pubDate>Sat, 22 Nov 2008 22:06:00 +0100</pubDate>
    <guid isPermaLink="false">http://havens.no-ip.org/prose/index.php?/archives/5-guid.html</guid>
    <category>doppio minore</category>
<category>heredoc</category>
<category>here-document</category>

</item>

</channel>
</rss>