<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-453766186260219005</id><updated>2011-08-16T20:34:42.664+02:00</updated><category term='linux'/><category term='firefox'/><category term='hack'/><category term='filesystem'/><category term='mandriva'/><category term='heartbeat'/><category term='smb'/><category term='mac linux filesystem'/><category term='mac'/><category term='windows'/><category term='aix'/><category term='bash'/><category term='email mutt imap'/><category term='italiano'/><category term='linux acer mandriva'/><title type='text'>Palin's technical blog</title><subtitle type='html'>The casual blog posts where I put something weird I found in the technical fields (mostly system administration); links and basic points of discussion.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>23</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-3137189661467999765</id><published>2011-02-09T13:37:00.000+01:00</published><updated>2011-02-09T13:37:06.504+01:00</updated><title type='text'>Fixing click to focus problem on Gimp-X11 on MacOS X</title><content type='html'>If you try to use gimp on MacOS X, you'll find that all the clicks in the tool window needs to be repeated twice, once to select the window and once to select the tool.&lt;br /&gt;&lt;br /&gt;If you don't like this beaviour, I &lt;a href="http://boskabout.wordpress.com/2008/12/17/the-gimp-on-mac-os-x-need-for-double-click/"&gt;stealed from this site&lt;/a&gt; the solution:&lt;br /&gt;&lt;br /&gt;1. Open a terminal&lt;br /&gt;2. Write &lt;br /&gt;&lt;blockquote&gt;defaults write org.x.X11 wm_click_through -bool true&lt;/blockquote&gt;3. Restart X11 if you have it open&lt;br /&gt;4. Enjoy&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-3137189661467999765?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/3137189661467999765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2011/02/fixing-click-to-focus-problem-on-gimp.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3137189661467999765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3137189661467999765'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2011/02/fixing-click-to-focus-problem-on-gimp.html' title='Fixing click to focus problem on Gimp-X11 on MacOS X'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-4848606867257766920</id><published>2010-11-19T10:12:00.001+01:00</published><updated>2011-03-29T13:17:17.370+02:00</updated><title type='text'>Fix MSN certificate problem with Pidgin</title><content type='html'>To make a long story shot, grab the certificate (&lt;a href="http://webupd8.googlecode.com/files/omega.contacts.msn.com"&gt;here&lt;/a&gt;) and install under Pidgin.&lt;br /&gt;Screenshots &lt;a href="http://www.webupd8.org/2010/11/fix-pidgin-msn-omegacontactsmsncom.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Update&lt;/b&gt;: Of course the update to Pidgin has been issued and all. Just a reminder.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-4848606867257766920?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/4848606867257766920/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/11/fix-msn-certificate-problem-with-pidgin.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4848606867257766920'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4848606867257766920'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/11/fix-msn-certificate-problem-with-pidgin.html' title='Fix MSN certificate problem with Pidgin'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-6092916510693372753</id><published>2010-10-15T11:49:00.000+02:00</published><updated>2010-10-15T11:49:20.497+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystem'/><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='italiano'/><title type='text'>Come utilizzare Time Machine su share Samba (non supportato)</title><content type='html'>Eccomi con la versione italiana del mini-howto. È probabile che aggiunga degli screenshot non appena rimetto le mani sul MacBookPro.&lt;br /&gt;&lt;br /&gt;Ieri mi sono cimentato nel convincere TimeMachine a utilizzare una share di rete samba come disco di backup, dato che ho completato la configurazione del mio MSI Wind Box con dual Atom.&lt;br /&gt;&lt;br /&gt;Così, dopo un po' di prove, controprove, smanettamenti e ricerche su Google, ho trovato questo post sul forum di macrumors, che mi ha fatto risolvere tutti i problemi.&lt;br /&gt;&lt;br /&gt;ATTENZIONE: Questa modalità d'uso di TimeMachine non è supportata da Apple, quindi usatela a vostro rischio... eccetera.&lt;br /&gt;&lt;br /&gt;Richiede l'uso del terminale.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Questi sono i passi salienti, con le istruzioni e alcuni miei commenti:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;1. Rendere lo storage "compatibile" con TimeMachine.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Create un file vuoto nella radice dello storage, utilizzando da terminale il comando "touch .com.apple.timemachine.supported". Come farlo dipende da che tipo di accesso avete allo storage, potete farlo direttamente da linea di comando Linux, oppure montando la share ed eseguendo il comando da terminale su OSX. Notate che dato che il comando produce un file che inizia per "." il file stesso sarà nascosto sotto Linux e sotto OSX. Dipendentemente dalle configurazioni di Samba, sarà visibile o meno sotto Windows.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;2. Creare l'immagine disco sparsebundle che verrà usata per il backup&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Sul Mac, create un file sparsebundle che si chiami "Computername_macaddress.sparsebundle" (es. "Applecore_002500d1c6f0.sparsebundle") utilizzando l'Utility Disco. Il nome dell'immagine (non del file) si deve chiamare "Backup di Computername". La dimensione dovrebbe essere uguale alla massima dimensione supportata dalla share, personalmente consiglio di farla più piccola di qualche GB, oppure di dimensionarla sino al massimo spazio che volete che occupi il backup sulla condivisione. Impostate il tipo di filesystem uguale a quello utilizzato dal disco principale di OSX (solitamente MacOS Extended Case insensitive (Journaled)). Il formato dell'immagine dovrebbe essere "&lt;i&gt;sparse bundle disk image&lt;/i&gt;". Create poi il file &lt;b&gt;localmente&lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Se necessitate di conoscere il macaddress, ricordate che vi serve quello della scheda ethernet del mac, anche se i backup li farete via AirPort. Non so che mac address inserire nel caso del Mac Air. Di solito il modo può veloce per ottenere il mac address di en0 è quello di usare il comando "ifconfig -a" (attenzione perché detto comando vi da il mac separato da due punti, quindi non fate copia/incolla alla cieca).&lt;br /&gt;&lt;br /&gt;&lt;b&gt;. Rendere l'immagine compatibile con TimeMachine&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Montate l'immagine che avete appena creato in locale in Finder e posizionatevi nella sua radice usando il terminale (es. cd "/Volumes/Backup of Computername"). Lanciate il comando "touch .com.apple.timemachine.supported" &lt;br /&gt;&lt;br /&gt;&lt;b&gt;4. Espellere l'immagine disco&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Espellete l'immagine dal Finder, è il modo più semplice.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;5. Connettere la share in Finder, e copiarvi l'immagine disco&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Utilizzate "Connessione al server" nel Finder per aprire la connessione desiderata, e &lt;i&gt;salvate la password&lt;/i&gt;. Copiate l'immagine vuota locale appena creata sulla condivisione.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;6. Verificate i permessi dell'immagine copiata sul server.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Se utilizzate la share samba su linux, assicuratevi che il file caricato abbia i permessi corretti. Per un backup di test io lancerei un "chmod 666" sull'immagine appena trasferita, dando a tutti i permessi di lettura e scrittura.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;7. Utilizzate il disco su TimeMachine&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Utilizzate le Preferenze di TimeMachine per selezionare il disco di backup, se avete ancora la share aperta nel Finder, dovrebbe trovare tutto.&lt;br /&gt;Dopodiché, fate iniziare il backup. Buona fortuna :)&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Problematiche&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Se incontrate problemi, per prima cosa controllate e ricontrollate i permessi sulla share e sul filesystem sottostante, TimeMachine ha la brutta abitudine di creare dei file temporanei come root.&lt;br /&gt;&lt;br /&gt;Se l'immagine si corrompe (spesso durante le prove iniziali a causa dei permessi, dello spazio, ecc.) potete controllarla con l'Utility Disco. Se l'Utility Disco trova e recupera degli errori, potrebbe erroneamente modificare la dimensione "virtuale" dell'immagine. In questo caso, utilizzate Utility Disco per impostare una nuova dimensione sull'immagine, e attendete il completamento dell'operazione, altrimenti Utility Disco continuerà a mostrarvi il vecchio valore e non capirete nulla di ciò che sta succedendo.&lt;br /&gt;&lt;br /&gt;Come al solito, queste istruzioni sul mio Mac funzionano, sul vostro magari no... prendetele per quello che sono ;)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-6092916510693372753?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/6092916510693372753/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/10/come-utilizzare-time-machine-su-share.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6092916510693372753'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6092916510693372753'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/10/come-utilizzare-time-machine-su-share.html' title='Come utilizzare Time Machine su share Samba (non supportato)'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-3483186193346274849</id><published>2010-10-14T14:46:00.000+02:00</published><updated>2010-10-14T14:46:06.098+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac'/><category scheme='http://www.blogger.com/atom/ns#' term='smb'/><category scheme='http://www.blogger.com/atom/ns#' term='hack'/><title type='text'>Using (unsupported) SMB shares for Time Machine</title><content type='html'>Yesterday, after setting up my Samba NAS based on a dual-Atom MSI Wind Box, I fought against Time Machine, which refuses to use a shared folder as a backup disk.&lt;br /&gt;&lt;br /&gt;So after a long struggle, I found &lt;a href="http://forums.macrumors.com/showpost.php?p=8458193&amp;postcount=8"&gt;this forum post&lt;/a&gt; which make everything work.&lt;br /&gt;&lt;br /&gt;DISCLAIMER: this use of Time Machine will be unsupported by Apple, so use it at your own risk, warranty is void, and so on.&lt;br /&gt;&lt;br /&gt;Terminal access is required.&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;These are the basic steps, with comments on my own:&lt;br /&gt;&lt;br /&gt;1. &lt;b&gt;Make your storage "compatible" with Time Machine.&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Create an empty file in the &lt;b&gt;root&lt;/b&gt; of the storage, using "touch .com.apple.timemachine.supported". Note that by beginning with a dot, the file will be hidden in OSX and in linux, but not in windows.&lt;br /&gt;&lt;br /&gt;2. &lt;b&gt;Create the disk image that will be used for the backup&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;On your Mac, create a sparse bundle image called Computername_macaddress.sparsebundle (ie, Applecore_002500d1c6f0.sparsebundle) using Disk Utility. It should have a name of "Backup of Computername". The size should be the maximum size the sparsebundle can grow to on whatever linux filesystem it is going to live on. Set the filesystem type appropriately for your Mac "MacOS Extended Case in/Sensitive (Journaled)". Image format should be "sparse bundle disk image". Then create the file.&lt;br /&gt;&lt;br /&gt;If you need to know the macaddress, remember that you need the mac address of the ethernet port, even if you are going to backup via wireless. I don't know what to do on the macbook air. Usually the command "ifconfig -a" is enough to read the macaddress.&lt;br /&gt;&lt;br /&gt;3. &lt;b&gt;Make the disk image compatibile with Time Machine &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Mount the image you just created in the finder, cd into it in the terminal (it gets mounted on /Volumes/Backup of Computername) and issue the "touch .com.apple.timemachine.supported" command.&lt;br /&gt;&lt;br /&gt;4. &lt;b&gt;Unmount the image&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Ejecting it in the finder is the quickest option&lt;br /&gt;&lt;br /&gt;5. &lt;b&gt;Connect the share in the finder and copy the image there&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Use the "Connect to server" in the finder to open the share, and save the password. Then copy the empty image you created in the server.&lt;br /&gt;&lt;br /&gt;6. &lt;b&gt;Review the permissions of the copied image on the server&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you are using a samba share on linux, make sure the uploaded file have the right permissions. For a test I would issue a "chmod 666" on it.&lt;br /&gt;&lt;br /&gt;7. &lt;b&gt;Make Time Machine use the share&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;Open Time Machine preferences, and select a disk to to a backup. You should find the disk you connected earlier. Start a backup.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Troubleshooting&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;If you encounter issues, try to double check image and share permissions, Time Machine has a bad habit of creating files as the root user.&lt;br /&gt;&lt;br /&gt;If the image got corrupted, try to check it with the disk utility. If the disk utility finds any error and correct them, it may change the disk image size. If it's the case, simply set a new image size using disk utility itself and wait for the operation completion.&lt;br /&gt;&lt;br /&gt;As usual, this post instructions are at "works for me"(tm) status. :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-3483186193346274849?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/3483186193346274849/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/10/using-unsupported-smb-shares-for-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3483186193346274849'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3483186193346274849'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/10/using-unsupported-smb-shares-for-time.html' title='Using (unsupported) SMB shares for Time Machine'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-2049134048874330514</id><published>2010-09-21T09:51:00.002+02:00</published><updated>2010-09-21T10:15:46.926+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>About Mandriva</title><content type='html'>This post is about &lt;b&gt;my own opinion&lt;/b&gt; on the whole Mandriva issue.&lt;br /&gt;(for the Italian version, keep scrolling)&lt;p&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;The Fork&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;I think that putting up a forked project for the "community" edition of Mandriva (&lt;a href="http://mageia.org"&gt;Mageia&lt;/a&gt;) is good. This should become what Fedora is for Redhat, a community-driven distribution, high on Mandriva standards and willfull to embrace new technologies in Cooker.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;The Company&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;The company should leverage Mageia by producing a derived distribution from the stable version, including former One live editions, and selling powerpacks. From the solid base, they should expand and integrate the Enterprise Editions&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;The Community&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;Having both Mageia and Mandriva, the community should try to integrate both distribution to work with binary packages in the contrib, plf and mib repositories, so you should have binary compatibility in the stable Mageia version and in Mandriva. Projects like Codeina should go on and simply just work.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;The Future&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;We will see if the sinergy will work correctly as I hope. In the meantime, having a backup project like Mageia, will easy the transition for many users, including myself. For now, I'm postponing the migration to CentOS as it seemed so obvious to do it just a few days ago.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;h4&gt;Italian&lt;/h4&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Il fork&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;Credo che mettere in piedi un progetto fork per la comminity edition di Mandriva (&lt;a href="http://mageia.org"&gt;Mageia&lt;/a&gt;) è una buona cosa. Dovrebbe diventare ciò che Fedora è per Redhat, una distribuzione incentrata sulla comunità, che mantiene gli standard di Mandriva per quanto riguarda gli obiettivi e che non oppone resistenza all'introduzione di nuove tecnologie in Cooker.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;L'azienza&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;L'azienda dovrebbe utilizzare al meglio il materiale prodotto da Mageia, creando una distribuzione derivata dalla versione stabile di quest'ultima, compresa la versione live One e vendere la versione Powerpack. Dalla solida base della versione stabile, dovrebbe espandere e integrare la Enterprise Edition.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;La comunità&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;Avendo a disposizione Mageia e Mandriva, la comunità dovrebbe integrare gli sforzi per consentire a entrambe di lavorare con i pacchetti binari dei repository contrib, plf e mib; in modo da avere la compatibilità binaria tra la versione stabile di Mageia e Mandriva. I progetti come Codeina dovrebbero semplicemente funzionare, come prima.&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Il futuro&lt;/b&gt;&lt;/p&gt;&lt;br /&gt;Vedremo se le sinergie funzioneranno come mi aspetto. Nel frattempo, avere una seconda soluzione grazie a Megia, faciliterà il momento di transizione per molti utenti, incluso me. Per il momento, sto ritardando la migrazione a CentOS, che sembrava la cosa migliore da fare solo alcuni giorni fa.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-2049134048874330514?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/2049134048874330514/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/09/about-mandriva.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/2049134048874330514'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/2049134048874330514'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/09/about-mandriva.html' title='About Mandriva'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-1508921632058576692</id><published>2010-09-20T15:46:00.000+02:00</published><updated>2010-09-20T15:46:34.189+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><title type='text'>File versioning</title><content type='html'>I wrote a small script to do file-level backup/versioning of a single file or group of files as a whole, without resorting to anything beyond basic cp, tar and rm.&lt;br /&gt;&lt;br /&gt;Basically it works like this:&lt;br /&gt;&lt;br /&gt; &lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;$ versionbackup.sh -h&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;versionbackup.sh -h -v -b backups | -r retdays [-d dateargs] [-m middlechar] [-p prefixchar] &lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [-r retention] [-s suffixchar] [-t tarball] file ...&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -b numbaks&amp;nbsp;&amp;nbsp;&amp;nbsp; sets the number of backups to keep (copies retention)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -d dateformat a string to be passed verbatim to the date command. Beware!&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; in this case, if you omit time in a resolution high enough&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; you could end _overwriting_ files! Example, if you rotate&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the files hourly and don't specify an hour in the date string,&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; but only the day, you'll end up overwriting the same file 23&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; times a day... better not to use this option if you are not&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sure. Note than in this case, -m is ignored.&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -m middle&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sets the middle char&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -p prefix&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sets the prefix char&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -r daysago&amp;nbsp;&amp;nbsp;&amp;nbsp; keeps files newer than daysago days (time retention)&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -s suffix&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sets the suffix char&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -t tarball&amp;nbsp;&amp;nbsp;&amp;nbsp; creates a tarball of the input files and rotate this instead&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; for convenience, the tar is automatically .gz compressed&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp; -v&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; verbose, echo every operation, including option parsing&lt;/span&gt;&lt;br style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;" /&gt;&lt;span style="font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (useful to debug command-line options)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;It should work nicely on any variant of unix (tested on linux and MacOSX).&lt;br /&gt;&lt;br /&gt;I'll find some place to post the source and link it back here.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-1508921632058576692?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/1508921632058576692/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/09/file-versioning.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1508921632058576692'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1508921632058576692'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/09/file-versioning.html' title='File versioning'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-4181735639501095109</id><published>2010-08-23T09:16:00.000+02:00</published><updated>2010-08-23T09:16:27.961+02:00</updated><title type='text'>How to write accented (capital) letters on MACOSX</title><content type='html'>It's usually not a problem for me to input accented letters directly with a 1-key press. But I'm used to capitalized accented letters correctly at the beginning of phrases, since in gnome or kde you must simply hit CAPS-LOCK and the accented letter key to get something capitalized (eg. È which is third person present for the verb to be in Italian). But MacOS does not change the capitalization this way.&lt;br /&gt;&lt;br /&gt;So I had to watch out for alternatives: compositing keyboard. In Snow Leopard (at least) you can use ALT+8 or ALT+9 and the a vowel key to get respectively an acute or grave accent. Just before pressing the vowel key you'll get the accent alone underlined (as a prompt to press a letter key).&lt;br /&gt;&lt;br /&gt;In addition, you can user ALT+O to generate german umlauts (eg. ü) or ALT+N to generate tilded characters (eg. ñ).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-4181735639501095109?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/4181735639501095109/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/08/how-to-write-accented-capital-letters.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4181735639501095109'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4181735639501095109'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/08/how-to-write-accented-capital-letters.html' title='How to write accented (capital) letters on MACOSX'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-5217119314663269549</id><published>2010-08-11T17:00:00.000+02:00</published><updated>2010-08-11T17:00:25.650+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mac linux filesystem'/><title type='text'>Ext3 Under OSX</title><content type='html'>I recently got a replacement notebook, since my favourite MSI s271 presented quite a few disk errors on smart, and it's a while that this one has the usb nonfunctional. &lt;br /&gt;After looking for a new notebook, in the 12"-13" range, I found with some disappointment that those niceties come at a premium price, and most of the time they are built on cheaper consumer-level standards. &lt;br /&gt;So, after some research, I went for a refurbished MacBookPro, the newest model with a 13" screen.&lt;br /&gt;&lt;br /&gt;Now the challenge is, reading all those external disks (or internal slices/partitions) which are unfortunately ext3 formatted.&lt;br /&gt;&lt;br /&gt;I tried not to choose the straightforward path which leads to Paragon software, and instead go the MacFuse way. This post helps a lot and basically it's all you need: &lt;a href="http://forum.archosfans.com/viewtopic.php?f=47&amp;amp;p=220020"&gt;http://forum.archosfans.com/viewtopic.php?f=47&amp;amp;p=220020&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The modification to the script is really needed only if you require r/w, which is basically not advised from the authors of fuse-ext3, my tests say they are quite ok.&lt;br /&gt;&lt;br /&gt;Now I need a way to bypass the default users and permissions that macosx uses to be able to write/read the data both under linux and under osx without touching sudo or becoming root.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-5217119314663269549?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/5217119314663269549/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/08/ext3-under-osx.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/5217119314663269549'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/5217119314663269549'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/08/ext3-under-osx.html' title='Ext3 Under OSX'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-6144978341964376637</id><published>2010-07-22T12:47:00.007+02:00</published><updated>2010-07-23T13:04:39.424+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='email mutt imap'/><title type='text'>Mutt and Imap</title><content type='html'>Yesterday I was having problems using the corporate webmail (yes, the one with three letters in the acronym), and lacked the chance to use a full-featured mail user agent.&lt;br /&gt;&lt;br /&gt;So i remembered the old days :) when I used mutt and fetchmail to read my personal mail... and recalled mutt supported IMAP too. I started googling to find a tutorial and read a couple of nice pages (see below). In a pinch I was able to read imaps mailboxes in the console.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt; Here the very minimal stuff you need:&lt;br /&gt;&lt;pre&gt;set mail_check=60&lt;br /&gt;set timeout = 150&lt;br /&gt;set spoolfile=imaps://$DOM\\$USERNAME@$IMAP_SERVER/INBOX&lt;br /&gt;set folder=imaps://$DOM\\$USERNAME@$IMAP_SERVER/&lt;br /&gt;set postponed="=Drafts"&lt;br /&gt;set record="=Sent\ Items"&lt;br /&gt;mailboxes =INBOX =INBOX/Folder1 =INBOX/Folder2 =Sent\ Items =Drafts&lt;br /&gt;set header_cache="/home/$USER/tmp/mutt-cache"&lt;/pre&gt;Of course if you don't need to set a $DOM, you can skip it.&lt;br /&gt;&lt;br /&gt;If you need more fancy colours, here is an extract I user from the original sample.muttrc:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#&lt;br /&gt;# Color definitions&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;#color normal white default&lt;br /&gt;color hdrdefault red default&lt;br /&gt;color quoted brightblue default&lt;br /&gt;color signature red default&lt;br /&gt;color indicator brightyellow red&lt;br /&gt;color error brightred default&lt;br /&gt;color status yellow blue&lt;br /&gt;color tree magenta default      # the thread tree in the index menu&lt;br /&gt;color tilde magenta default&lt;br /&gt;color message brightcyan default&lt;br /&gt;color markers brightcyan default&lt;br /&gt;color attachment brightmagenta default&lt;br /&gt;color search default green      # how to hilite search patterns in the pager&lt;br /&gt;&lt;br /&gt;color header brightred default ^(From|Subject):&lt;br /&gt;color body magenta default "(ftp|http|https)://[^ ]+"   # point out URLs&lt;br /&gt;color body magenta default [-a-z_0-9.]+@[-a-z_0-9.]+    # e-mail addresses&lt;br /&gt;color underline brightgreen default&lt;/pre&gt;Here are the references I used to find IMAP information:&lt;br /&gt;&lt;br /&gt;Mutt wiki: &lt;a href="http://wiki.mutt.org/?MuttGuide/UseIMAP"&gt;http://wiki.mutt.org/?MuttGuide/UseIMAP&lt;/a&gt;&lt;br /&gt;Mutt documentation: &lt;a href="http://mutt.sourceforge.net/imap/"&gt;http://mutt.sourceforge.net/imap/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-6144978341964376637?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/6144978341964376637/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/07/mutt-and-imap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6144978341964376637'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6144978341964376637'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/07/mutt-and-imap.html' title='Mutt and Imap'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-8070001991755306711</id><published>2010-07-15T10:33:00.007+02:00</published><updated>2010-07-23T13:05:42.721+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux acer mandriva'/><title type='text'>Linux with no primary partitions left</title><content type='html'>I got a new company PC, an Acer Aspire 5372ZG, nothing to say about it, just yet another consumer notebook with a 15.6" 16/9 gloss display, very big and quite heavy, nice keyboard if you don't mind having the &lt;span style="font-family: courier new;"&gt;home&lt;/span&gt; and &lt;span style="font-family: courier new;"&gt;end&lt;/span&gt; key on the keypad only.&lt;br /&gt;&lt;br /&gt;The problem is, the 320GB HD is partitioned into three partitions, two of them are hidden. All are primary partitions. No primary partition left to install linux. So I did my homework and discovered that unlike the lilo of old, Grub is able to boot quite nicely from any filesystem it is compiled to support.&lt;br /&gt;&lt;a name='more'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;So, I created an extended partition and some logical ones with this schema:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Device Boot      Start         End      Blocks   Id  System          Mount      FS&lt;br /&gt;/dev/sda1               1        1567    12586896   27  Unknown                &lt;br /&gt;/dev/sda2   *        1568        1580      104422+   7  HPFS/NTFS&lt;br /&gt;/dev/sda3            1581        5757    33551752+   7  HPFS/NTFS&lt;br /&gt;/dev/sda4            5758       38913   266325570    5  Extended&lt;br /&gt;/dev/sda5            5758        5822      522081   83  Linux        /boot      Ext3&lt;br /&gt;/dev/sda6            5823        7910    16771828+  83  Linux        /          Ext4&lt;br /&gt;/dev/sda7            7911        8432     4192933+  82  Linux swap   swap       swap&lt;br /&gt;/dev/sda8            8433       38913   244838601   83  Linux        /mnt/data  Ext2&lt;/pre&gt;&lt;br /&gt;Of course the DATA partition is mounted under windows too, so I preferred not to have journals to reply in case of a linux unclean shutdown. It has an inode size of 128 too to be compatible with IFS tools.&lt;br /&gt;I could have partitioned the system more (by creating /home for instance) but I think this setup is reasonable enough.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-8070001991755306711?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/8070001991755306711/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2010/07/linux-with-no-primary-partitions-left.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/8070001991755306711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/8070001991755306711'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2010/07/linux-with-no-primary-partitions-left.html' title='Linux with no primary partitions left'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-7597419734117753011</id><published>2009-10-12T22:13:00.007+02:00</published><updated>2010-07-15T10:33:42.614+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><category scheme='http://www.blogger.com/atom/ns#' term='filesystem'/><category scheme='http://www.blogger.com/atom/ns#' term='windows'/><title type='text'>Ext2 under Windows</title><content type='html'>I finally had the definitive data loss on my (historical) FAT32 partition that I used to share between Linux, Windows and the odd other OS (sometimes FreeBSD, sometimes OpenSolaris). So I was looking for a way to share those data without the hassle of a yesterday filesystem. I was rather disappointed with the status of NTFS under linux, both native and under FUSE, not to speak about my mascotte ZFS.&lt;br /&gt;Finally, I found this Ext2 driver with finely works under Windows, reaching near NTFS native speed, so I adopted it on the pc I switch OSes more, currently the Asus EEEPC 1101HA (yes, I finally got one).&lt;br /&gt;The driver is nice, if you don't mind using your favourite ext3 filesystem in compatibility mode, which only means under Windows there's no journal, and you must bear the casual fsck when windows hangs, and the fact that you can't access your filesystem under windows if it has a dirty status on linux (the journal needs to be replayed). Of course you can simply make this filesystem a simple ext2 and get on with it.&lt;br /&gt;By the way, you find everything here: &lt;a href="http://www.fs-driver.org/"&gt;http://www.fs-driver.org/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt;: remember to create the ext2/ext3 filesystem with the option -I 128, which means an inode size of 128, most moder distribution set this value to 256 which is not compatible with these tools.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Update&lt;/span&gt;: It works under Windows 7 too with some quirks. The first is that the installation requires Windows Vista compatibility mode (not an issue for me). The second is that the drive letter utility seems not to stick with the configuration done upon reboot. I'll investigate this further.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-7597419734117753011?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/7597419734117753011/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/10/ext2-under-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/7597419734117753011'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/7597419734117753011'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/10/ext2-under-windows.html' title='Ext2 under Windows'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-5949985783841530260</id><published>2009-07-02T16:19:00.003+02:00</published><updated>2009-07-02T16:31:24.117+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='firefox'/><title type='text'>Firefox 3.5</title><content type='html'>As usual, I upgrade the pc I use at work before anything else: I use it for more time and I usually have to fix issues quickly. It's a Mandriva 2001 Spring, of course, and firefox has been installed in /opt using the tarball from the Mozilla Foundation.&lt;br /&gt;&lt;br /&gt;Apart of the usual addons that get disabled, everything seems fine. It seems pretty responsive too, in spite of the low specs of the machine (Intel P4 2GHz, 768 MB of Ram, slow ide disk). A couple of crashes hit the usability, but thery a mostly related with plugins, maybe they should be updated too.&lt;br /&gt;&lt;br /&gt;I don't use many of the new features, so I don't comment on them.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-5949985783841530260?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/5949985783841530260/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/07/firefox-35.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/5949985783841530260'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/5949985783841530260'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/07/firefox-35.html' title='Firefox 3.5'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-1679288837315354375</id><published>2009-06-25T08:45:00.002+02:00</published><updated>2009-06-25T08:50:22.302+02:00</updated><title type='text'>Resume sftp transfers</title><content type='html'>Of course there should be some way to resume transfers done via sftp.&lt;br /&gt;&lt;br /&gt;Technically the way presented &lt;a href="http://dodonov.net/blog/2009/06/23/how-to-resume-a-broken-scp-transfer/"&gt;here&lt;/a&gt; is not sftp compliant (uses curl or, better, rsync --inplace).&lt;br /&gt;&lt;br /&gt;But it's a way to start.&lt;br /&gt;&lt;br /&gt;Note that I don't know if sftp subsystem supports resuming natively...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-1679288837315354375?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/1679288837315354375/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/06/resume-sftp-transfers.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1679288837315354375'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1679288837315354375'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/06/resume-sftp-transfers.html' title='Resume sftp transfers'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-8302525430596400822</id><published>2009-06-23T11:34:00.005+02:00</published><updated>2009-06-25T08:45:28.775+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='heartbeat'/><category scheme='http://www.blogger.com/atom/ns#' term='linux'/><title type='text'>Heartbeat and two-nodes clusters</title><content type='html'>Heartbeat (from http://www.linux-ha.org/heartbeat/) is a nice software to manage linux high availability clusters. When you are in need to use a two-nodes cluster you want to prevent a situation known as "split-brain": when a node does not communicate with the other but neither two know which is the failing node.&lt;br /&gt;&lt;br /&gt;This can lead to having the cluster drop all the services or having both nodes with the services on (in case of shared storage, this &lt;span style="font-weight: bold;"&gt;will&lt;/span&gt; lead to corruption unless the filesystem is clustered and supports multiple writes from multiple nodes). To make a long story short, split-brain is bad.&lt;br /&gt;&lt;br /&gt;To counter this effect, you can use a ping host. Ping hosts are fake cluster members used by heartbeat to use the network connectivity as a mean to break ties in cluster node weight computations: if a node pings a ping host and the other doesn't, the hosts which pings is the winner. To make this configuration successful, you need an additional link between the nodes. This additional link could be serial or another ethernet.&lt;br /&gt;&lt;br /&gt;To use ping hosts, this is the bare minimum configuration:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ping 10.10.10.10                               # insert the ip of the ping host.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;respawn hacluster /usr/lib64/heartbeat/ipfail  # use /usr/lib on 32 bit hosts&lt;br /&gt;apiauth ipfail gid=haclient uid=hacluster      # this is for process security &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;But which ping host to chose? Use a reliable ping host; this can be the default gateway (if it's a router which has a very high uptime) or a local layer 3 switch. Don't use a server o a workstation!&lt;br /&gt;&lt;br /&gt;Use hearbeat reload to configure the ping host without stopping the cluster and lose resources.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-8302525430596400822?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/8302525430596400822/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/06/heatbeat-and-two-nodes-clustersr.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/8302525430596400822'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/8302525430596400822'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/06/heatbeat-and-two-nodes-clustersr.html' title='Heartbeat and two-nodes clusters'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-3840740871599325267</id><published>2009-06-12T08:49:00.002+02:00</published><updated>2009-06-12T08:53:59.585+02:00</updated><title type='text'>Linux first support for usb 3.0</title><content type='html'>The interesting news is that Linux could be the first mainstream OS to support Usb 3.0. Really, the support &lt;a href="http://sarah.thesharps.us/2009-06-09-13-30.cherry"&gt;is already there&lt;/a&gt; if you mind building your own kernel.&lt;br /&gt;&lt;br /&gt;The good news is that finally some female hacker comes to the surface. I felt rather fed of seeing Linus or Andrew Norton faces on articles (not minding Richard Stallman's). :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-3840740871599325267?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/3840740871599325267/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/06/linux-first-support-for-usb-30.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3840740871599325267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3840740871599325267'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/06/linux-first-support-for-usb-30.html' title='Linux first support for usb 3.0'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-3592377669814246092</id><published>2009-06-05T10:26:00.002+02:00</published><updated>2009-06-05T10:33:26.255+02:00</updated><title type='text'>Flashblock in Opera</title><content type='html'>I tried successfully the following operations to activate Flashblock in Opera (it worked with Opera 9.64 on Linux):&lt;br /&gt;&lt;br /&gt;1. Download this file http://lexi.ucoz.ru/userjs/FlashBlock.js and put it in a directory of your choice&lt;br /&gt;2. Go to Tools|Preferences|Advanced|Content|Javascript Options|User Javascript Files|Choose and choose the directory where you downloaded the javascript file.&lt;br /&gt;3. Try it ;)&lt;br /&gt;&lt;br /&gt;Note to Italian Opera users: you must use Strumenti|Preferenze (CTRL+F12)|Avanzate|Contenuti|Impostazioni per Javascript|Cartella dei file Javascript dell'utente|&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-3592377669814246092?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/3592377669814246092/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/06/flashblock-in-opera.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3592377669814246092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3592377669814246092'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/06/flashblock-in-opera.html' title='Flashblock in Opera'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-1314866683555289709</id><published>2009-05-29T09:03:00.003+02:00</published><updated>2009-05-29T09:10:22.139+02:00</updated><title type='text'>Comparison of Enterprise Unix OS</title><content type='html'>&lt;a href="http://www.ibm.com/developerworks/aix/library/au-aix61compare/?ca=dgr-lnxw06Compare-UNIX&amp;S_TACT=105AGX59&amp;S_CMP=grlnxw06"&gt;Here&lt;/a&gt;'s a nice feature-to-feature comparison and quick start of major Enterprise OS. IBM Aix, HPUX and Sun Solaris are covered.&lt;br /&gt;&lt;br /&gt;It's worth noting that only Sun Solaris is currently fully supported in x86 environment and AIX lacks any type of support for architectures different from POWER.&lt;br /&gt;&lt;br /&gt;The article comes from IBM so maybe is a bit biased.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-1314866683555289709?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/1314866683555289709/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/comparison-of-enterprise-unix-os.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1314866683555289709'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/1314866683555289709'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/comparison-of-enterprise-unix-os.html' title='Comparison of Enterprise Unix OS'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-7770371453098988039</id><published>2009-05-20T10:41:00.002+02:00</published><updated>2009-05-20T10:49:17.354+02:00</updated><title type='text'>Get a list of most populated tables in mysql</title><content type='html'>If you are a sysadmin and do not have a fellow mysql dba, you should learn some tricks to look for big tables or tables used very much.&lt;br /&gt;&lt;br /&gt;This query (and modified versions of it) accomplishes the task:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mysql&gt; SELECT table_name, table_schema, engine, table_rows, data_length FROM information_schema.tables where table_schema not in ('information_schema', 'mysql') order by table_rows desc limit 20;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;This searches for every table which is not part of 'information_schema' and 'mysql' (that is every user database).&lt;br /&gt;&lt;br /&gt;The result is similar to this one (names and schemas removed to protect the innocents ;))&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;+-----------------------+--------------+--------+------------+-------------+&lt;br /&gt;| table_name            | table_schema | engine | table_rows | data_length |&lt;br /&gt;+-----------------------+--------------+--------+------------+-------------+&lt;br /&gt;|                       |              | MyISAM |    2828398 |   162470312 | &lt;br /&gt;|                       |              | MyISAM |    1609232 |   131429376 |&lt;br /&gt;|                       |              | MyISAM |    1195717 |   218651496 |&lt;br /&gt;|                       |              | InnoDB |     574491 |    43581440 |&lt;br /&gt;|                       |              | MyISAM |     565128 |    10737432 |&lt;br /&gt;|                       |              | MyISAM |     480290 |    26981100 |&lt;br /&gt;|                       |              | MyISAM |     380521 |    22509908 |&lt;br /&gt;|                       |              | MyISAM |     280128 |     8536752 |&lt;br /&gt;|                       |              | MyISAM |     227324 |    18714388 |&lt;br /&gt;|                       |              | MyISAM |     210842 |    17857596 |&lt;br /&gt;|                       |              | InnoDB |     201526 |    45694976 |&lt;br /&gt;|                       |              | MyISAM |     177225 |    10055608 |&lt;br /&gt;|                       |              | InnoDB |     123960 |     5783552 |&lt;br /&gt;|                       |              | MyISAM |     119143 |     9524852 |&lt;br /&gt;|                       |              | MyISAM |      99960 |    10038104 |&lt;br /&gt;|                       |              | MyISAM |      97712 |     8010128 |&lt;br /&gt;|                       |              | InnoDB |      94167 |     8404992 |&lt;br /&gt;|                       |              | MyISAM |      93962 |    16401252 |&lt;br /&gt;|                       |              | MyISAM |      91817 |     1836340 |&lt;br /&gt;|                       |              | InnoDB |      84424 |     4734976 |&lt;br /&gt;+-----------------------+--------------+--------+------------+-------------+&lt;br /&gt;20 rows in set (0.18 sec)&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-7770371453098988039?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/7770371453098988039/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/get-list-of-most-populated-tables-in.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/7770371453098988039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/7770371453098988039'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/get-list-of-most-populated-tables-in.html' title='Get a list of most populated tables in mysql'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-2998631547589244761</id><published>2009-05-19T15:50:00.004+02:00</published><updated>2009-05-19T15:55:30.347+02:00</updated><title type='text'>Multipath and partitions on linux</title><content type='html'>If you have a multipath device, you can partition it. This can have many purposes, typically to use some space differently if you have a cluster and only a LUN to use as quorum disk and for data.&lt;br /&gt;&lt;br /&gt;Sometimes, you partition the multipath device with fdisk, but the device is "in use" by the kernel and partition devices (mpathXp1, mpathXp2 and so on) don't get created.&lt;br /&gt;&lt;br /&gt;Simply use kpartx to create those devices in "userspace":&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;root# kpartx -a /dev/mpath/mpath0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you are not sure, leave the -a to preview the results.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-2998631547589244761?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/2998631547589244761/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/multipath-and-partitions-on-linux.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/2998631547589244761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/2998631547589244761'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/multipath-and-partitions-on-linux.html' title='Multipath and partitions on linux'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-6524555773689711813</id><published>2009-05-19T13:01:00.007+02:00</published><updated>2009-05-19T13:41:38.421+02:00</updated><title type='text'>Unison on Windows</title><content type='html'>Since we are moving from one place to another (still in Rome), i needed to sinchronyze files between my current linux workstation and the notebook I was given. For me, the obvious tool is unison, and I went looking for instructions to make it work on windows, as on the notebook it's installed a windows-only VPN software.&lt;br /&gt;&lt;br /&gt;The process turned to be fairly complex, as usual due to dll/path hell which is the doom of windows machines when dealing with a no-installer software.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1. Getting Unison and prerequisites.&lt;/span&gt;&lt;br /&gt;&lt;a href="http://www.cis.upenn.edu/%7Ebcpierce/unison/download.html"&gt;The unison Homepage&lt;/a&gt; points &lt;a href="http://alan.petitepomme.net/unison/index.html"&gt;here&lt;/a&gt;: , where I downloaded the gtk-enabled &lt;a href="http://alan.petitepomme.net/unison/assets/Unison-2.27.57-Gtk.zip"&gt;windows executable&lt;/a&gt;.&lt;br /&gt;Unison needs the gtk library, the page suggests using those provided by &lt;a href="http://www.pidgin.im"&gt;Pidgin&lt;/a&gt;. I already had Pidgin installed, so I did nothing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. Putting Unison where it would find gtk dll&lt;/span&gt;&lt;br /&gt;The page also advise to append the gtk library directory to the %PATH% variable. I opted instead to move the Unison-2.27.57 Gtk+.exe executable in the GTK directory ("C:\Programmi\File comuni\GTK\2.0\bin" in my system). This is more straightforward and easier to do and lets me have more than one GTK installation if need arises. Note that you cannot register the dll to be automatically found (I don't know why, but a dialog tells me so when I use regsvr32 on libgtk-win32-2.0-0.dll.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;3. Getting ssh.exe plink wrapper&lt;/span&gt;&lt;br /&gt;From &lt;a href="%5Bhttp://www.wischik.com/lu/programmer/unison-ssh.html"&gt;this page&lt;/a&gt; [http://www.wischik.com/lu/programmer/unison-ssh.html] I downloaded the plink wrapper (I googled for unison windows ssh and it was the first hit). I put in the same folder that the unison executable. It has a bug and it does not work with a plain password (I planned to use a private key anyway)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;4. Generating private key to use with plink&lt;/span&gt;&lt;br /&gt;It's easy, use puttygen (you should have it if you installed putty with the standard &lt;a href="http://the.earth.li/%7Esgtatham/putty/latest/x86/putty-0.60-installer.exe"&gt;windows installer&lt;/a&gt;, otherwise &lt;a href="http://the.earth.li/%7Esgtatham/putty/latest/x86/puttygen.exe"&gt;grab it here&lt;/a&gt;). Note that the Putty links points to the most current version of Putty, but it may change, so peek at the &lt;a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html"&gt;download page&lt;/a&gt; for updates.&lt;br /&gt;As usual, generate a new key (I prefer to generate a fresh key for automated task, it's easier to revoke if it gets compromised as it does not have usually a passphrase) and publish the public key on the linux box which will act as a "unison server" in the authorized_keys file (usually ~/.ssh/authorized_keys, change the permissions to rw------- before doing anything else if you create a new file)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;5. Configuring the key in the unison profile&lt;/span&gt;&lt;br /&gt;Using the ssh plink wrapper, you need to modify the unison profile file. Create a new profile, select the local directory to configure, select the remote directory (using ssh), insert the host and &lt;span style="font-style: italic;"&gt;the user that you granted access&lt;/span&gt; by publishing the public key.&lt;br /&gt;Then locate the profile file (in C:\Documents and Settings\&lt;span style="font-style: italic;"&gt;&lt;username&gt;&lt;/span&gt;\.unison on my windows system) and add these lines:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sshcmd=ssh.exe&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sshargs=-i &lt;/span&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;path\to\privatekey_file_on_windows.ppk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;ignorecase=true&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;you can add also perms=0 since most of the times the permissions will be totally screwed from a unix fs to ntfs (god forbids using FAT32 nowadays!)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note&lt;/span&gt;: the path you specify with the sshargs option must not contain spaces.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;6. Run and test&lt;/span&gt;&lt;br /&gt;Now run Unison and verify that it detects differences in the files and that it makes good suggestions on which file is newer on which system.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Troubleshooting&lt;/span&gt;&lt;br /&gt;The only thing you can do wrong is the public key stuff, check with cmd, cd to the directory where you have copied ssh.exe and try ssh manually:&lt;br /&gt;&lt;br /&gt;C:\somedir&gt; ssh -l username -i &lt;span style="font-family: courier new;"&gt;&lt;/span&gt;&lt;span style="font-style: italic; font-family: courier new;"&gt;path\to\privatekey_file_on_windows.ppk &lt;/span&gt;hostname&lt;br /&gt;&lt;br /&gt;and see if you can login.&lt;br /&gt;Otherwise you screwed something up; check the authorized_keys name, permissions and position on the filesystem (and if it contains the right public key).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-6524555773689711813?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/6524555773689711813/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/unison-on-windows.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6524555773689711813'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6524555773689711813'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/unison-on-windows.html' title='Unison on Windows'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-6274004582223777130</id><published>2009-05-04T09:03:00.002+02:00</published><updated>2009-05-04T09:08:26.228+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><title type='text'>Updated Mandriva 2009 to spring</title><content type='html'>The update did complete successfully, but only after manual intervention.&lt;br /&gt;&lt;br /&gt;The update process looped on trying to install mplayer (mandriva version) while it conflicted with mplayer plf version. I had to remove the mplayer plf rpm manually from the console before the script went on.&lt;br /&gt;&lt;br /&gt;When the notebook rebooted for the new kernel, X did not start; but mandriva offered a text mode dialog to reconfigure (and test) it.&lt;br /&gt;&lt;br /&gt;I still have to see a linux distro upgrade flawlessly; but this time mandriva quite did it, if I did not tinker with plf, everything should go on in an acceptable way.&lt;br /&gt;&lt;br /&gt;So the vote on the update process is 7/10.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-6274004582223777130?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/6274004582223777130/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/updated-mandriva-2009-to-spring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6274004582223777130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/6274004582223777130'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/updated-mandriva-2009-to-spring.html' title='Updated Mandriva 2009 to spring'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-4103866171489113088</id><published>2009-05-03T21:50:00.003+02:00</published><updated>2009-05-04T09:02:52.233+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='mandriva'/><title type='text'>Upgrading  Mandriva 2009 to spring</title><content type='html'>Tonight I started the automatic (i.e. graphical) upgrade of my notebook to mandriva 2009.1 (a.k.a 2009 Spring)...&lt;br /&gt;&lt;br /&gt;More info to follow after upgrade.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-4103866171489113088?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/4103866171489113088/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/05/upgrading-mandriva-2009-to-spring.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4103866171489113088'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/4103866171489113088'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/05/upgrading-mandriva-2009-to-spring.html' title='Upgrading  Mandriva 2009 to spring'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-453766186260219005.post-3255477321227265042</id><published>2009-04-28T12:43:00.007+02:00</published><updated>2009-05-04T09:03:10.058+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='aix'/><title type='text'>AIX dynamic linking library</title><content type='html'>When updating libraries on AIX systems, you could get this message:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[...] Cannot open or remove a file containing a running program.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;even if you are updating a library file which is not in use.&lt;br /&gt;&lt;br /&gt;Apart of verifying that the file is not in use for real, you should cleanup the dynamic library linker cache, with the command:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&gt; slibclean&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;And try again...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/453766186260219005-3255477321227265042?l=palintech.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://palintech.blogspot.com/feeds/3255477321227265042/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://palintech.blogspot.com/2009/04/aix-dynamic-linking-library.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3255477321227265042'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/453766186260219005/posts/default/3255477321227265042'/><link rel='alternate' type='text/html' href='http://palintech.blogspot.com/2009/04/aix-dynamic-linking-library.html' title='AIX dynamic linking library'/><author><name>Palin</name><uri>http://www.blogger.com/profile/09354451945091583631</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
