<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>gablog &#187; linux</title>
	<atom:link href="http://gabo.homelinux.com/en/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://gabo.homelinux.com</link>
	<description>Fino ad ora ho avuto un sito brutto. Ora ho un blog.</description>
	<lastBuildDate>Fri, 13 Nov 2009 14:29:27 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>(Italiano) email autenticate in plain auth via telnet</title>
		<link>http://gabo.homelinux.com/en/2009/11/email-autenticate-in-plain-auth-via-telnet/</link>
		<comments>http://gabo.homelinux.com/en/2009/11/email-autenticate-in-plain-auth-via-telnet/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 14:28:07 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[sysadmin]]></category>
		<category><![CDATA[plain auth]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[sasl]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=519</guid>
		<description><![CDATA[Sorry, this entry is only available in Italiano.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://gabo.homelinux.com/category/linux/feed/">Italiano</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/11/email-autenticate-in-plain-auth-via-telnet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Italiano) Filtrare i messaggi in uscita con thunderbird</title>
		<link>http://gabo.homelinux.com/en/2009/06/filtrare-i-messaggi-in-uscita-con-thunderbird/</link>
		<comments>http://gabo.homelinux.com/en/2009/06/filtrare-i-messaggi-in-uscita-con-thunderbird/#comments</comments>
		<pubDate>Mon, 29 Jun 2009 18:10:48 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[filtri]]></category>
		<category><![CDATA[thunderbird]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=415</guid>
		<description><![CDATA[Sorry, this entry is only available in Italiano.
]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://gabo.homelinux.com/category/linux/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/06/filtrare-i-messaggi-in-uscita-con-thunderbird/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading etch to lenny</title>
		<link>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/</link>
		<comments>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/#comments</comments>
		<pubDate>Wed, 11 Mar 2009 19:10:06 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[etch]]></category>
		<category><![CDATA[lenny]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=148</guid>
		<description><![CDATA[On febrary 14th the Debian distribution 5.0 (lenny) passed from testing to stable, so I need to upgrade. Probably I will do it also on production server in office, but now I start whith my home server, since it's my first dist-upgrade.
Backup
First of all a complete backup:


rsync -vrpoglHDIt --delete --progress \
--exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/var/run \
--exclude=/var/lock [...]]]></description>
			<content:encoded><![CDATA[On febrary 14th the Debian distribution 5.0 (lenny) passed from testing to stable, so I need to upgrade. Probably I will do it also on production server in office, but now I start whith my home server, since it's my first <strong>dist-upgrade.</strong>
<h3>Backup</h3>
First of all a complete backup:

<pre class="brush: bash;">
rsync -vrpoglHDIt --delete --progress \
--exclude=/proc --exclude=/sys --exclude=/tmp --exclude=/var/run \
--exclude=/var/lock --exclude=/var/tmp --exclude=/var/backups \
--exclude=/var/cache --exclude=/var/tmp \
--exclude=/mnt/multimedia --exclude=/mnt/mp3 \
/ /mnt/multimedia/backup
</pre>It's also possible to use a <em>not_rsync</em> file, but I prefer this way. For future synchronization the only difference is the missing I parameter of rsync. Here what states the man page:
<pre>-I, --ignore-times          don't skip files that match size and time
    --size-only             skip files that match in size
    --modify-window=NUM     compare mod-times with reduced accuracy</pre>
In this way new synchronization will be more precise. Now a cronjob can be useful.
<h3>Upgrade</h3>
I'm now ready for the upgrade. I suggest a reading of <a href="http://debian.org/releases/stable/i386/release-notes/ch-upgrading.html">relase-notes </a> on debian.org site.

I modity /etc/apt/sources.list just to point on lenny repository:

<pre class="brush: bash;">
deb http://ftp.it.debian.org/debian/ lenny main
deb-src http://ftp.it.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main
deb-src http://security.debian.org/ lenny/updates main
</pre>The next command starts session logging, just in case something goes wrong:

<pre class="brush: bash;">
script -t 2&gt;~/upgrade-lenny.time -a ~/upgrade-lenny.script
</pre>Packet list update

<pre class="brush: bash;">
aptitude update
</pre>app and aptitude upgrade, plus some dependencies

<pre class="brush: bash;">
apt-get install apt
</pre>Now I've got the first difference from relases-note, the previous command remove/upgrade/install a lot of packet. Asking in forums and mailinglists I noted that it happened to other people, so I go forward, crossing finger <img src='http://gabo.homelinux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  
I have to re-install aptitude through apt-get, since the last command removed it. After that I need an update

<pre class="brush: bash;">
aptitude install aptitude
</pre>Again a lot of packet removed, upgraded and installed.

<pre class="brush: bash;">
aptitude search &quot;?false&quot;
</pre>A minimal system upgrade:

<pre class="brush: bash;">
aptitude upgrade
</pre>And now the real upgrade. I don't need to upgrade X, so it's sufficient the following:

<pre class="brush: bash;">
aptitude dist-upgrade
</pre>At the end I tell lilo that it have to boot with the new 2.6.26-1 kernel

<pre class="brush: bash;">
lilo -v
</pre>After a deep reading of possible problem I proceed with the reboot:

<pre class="brush: bash;">
reboot
</pre>Here you are my new lenny-box <img src='http://gabo.homelinux.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 

<pre class="brush: bash;">
g4b0@debian:~$ more /etc/debian_version
5.0
g4b0@debian:~$ uname -a
Linux debian 2.6.26-1-686 #1 SMP Sat Jan 10 18:29:31 UTC 2009 i686 GNU/Linux
g4b0@debian:~$
</pre>All information in this post is provided "as is" without warranty of any kind, use it at your own risk. Happy linuxing!

]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/03/aggiornamento-etch-lenny/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>(Italiano) Gmail backup</title>
		<link>http://gabo.homelinux.com/en/2009/03/gmail-backup/</link>
		<comments>http://gabo.homelinux.com/en/2009/03/gmail-backup/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 07:01:46 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[Gmail]]></category>
		<category><![CDATA[python]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=170</guid>
		<description><![CDATA[Utilizzare una mail gratuita non da alcuna garanzia di continuità/affidabilità/professionalità del servizio, e tantomeno garantisce un backup.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://gabo.homelinux.com/category/linux/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/03/gmail-backup/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>(Italiano) Statistiche di sistema</title>
		<link>http://gabo.homelinux.com/en/2009/03/statistiche-di-sistema/</link>
		<comments>http://gabo.homelinux.com/en/2009/03/statistiche-di-sistema/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 15:32:38 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mrtg]]></category>
		<category><![CDATA[rrdtool]]></category>
		<category><![CDATA[statistiche]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=181</guid>
		<description><![CDATA[Sorry, this entry is only available in Italiano.
]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://gabo.homelinux.com/category/linux/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/03/statistiche-di-sistema/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>(Italiano) La cazzata del giorno</title>
		<link>http://gabo.homelinux.com/en/2009/03/la-cazzata-del-giorno/</link>
		<comments>http://gabo.homelinux.com/en/2009/03/la-cazzata-del-giorno/#comments</comments>
		<pubDate>Thu, 05 Mar 2009 14:55:57 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[allegati]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[gnu]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=162</guid>
		<description><![CDATA[Inviare allegati Office nelle proprie email è maleducazione.]]></description>
			<content:encoded><![CDATA[<p>Sorry, this entry is only available in <a href="http://gabo.homelinux.com/category/linux/feed/">Italiano</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/03/la-cazzata-del-giorno/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recursive regular experession substitution</title>
		<link>http://gabo.homelinux.com/en/2009/02/sostituzione-ricorsiva-di-regular-expression/</link>
		<comments>http://gabo.homelinux.com/en/2009/02/sostituzione-ricorsiva-di-regular-expression/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 10:38:48 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[regexp]]></category>
		<category><![CDATA[ricorsione]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=67</guid>
		<description><![CDATA[Script che sostituisce _ricorsivamente_ tutte le occorrenze della regexp passata come primo parametro con la regexp passata come secondo parametro, a partire dalla dir attuale o da quella specificata come terzo parametro]]></description>
			<content:encoded><![CDATA[<p>I found the following script very useful a lot of time. It can recursively substitute regexp passed as first argument whith the second one. The core of the script is the chstr_ric function:</p>

<pre class="brush: bash;">
function chstr_ric () {

  echo -e &quot;Num par: $#\n$0\n$1\n$2\n$3\n&quot;

# se non è specificata la dir di partenza parto da quella attuale
  if [ -z &quot;$3&quot; ]; then
    DIR=$PWD
  else
    DIR=$3
  fi

# Entro nella dir
  echo -e &quot;directory root: $DIR\n&quot;
  cd $DIR

  for FILE in * ; do
    if [ -d $FILE ] ; then
      echo -e &quot;\n*************\nEntro dentro a: $DIR/$FILE\n*************&quot;
# Se è una dir ci entro dentro e chiamo la ricorsione
      cd $FILE
      chstr_ric &quot;$1&quot; &quot;$2&quot; &quot;$FILE&quot;
      echo -e &quot;\n*************\nEsco da a: $DIR/$FILE\n*************&quot;
# finita la ricorsione risalgo nell albero delle directory
      cd ..
    else
      echo -e &quot;\tProcesso il file: $FILE&quot;
# se è un file attuo la sostituzione
      sed -e &quot;s/$1/$2/g&quot; $FILE &gt; $FILE.newsed
      mv -f $FILE.newsed $FILE
    fi
  done
}
</pre>

<p>It checks the third parameter, and if it's present it's considered like the starting directory. If not, actual directory is set as the root. After that is scans all the files and:
<ul>
	<li>If it finds a file it starts the substitution using sed and a temporary file</li>
	<li>If it finds a directory, then it calls himself recursively using the third parameter</li>
</ul>
The script is downloadable <a title="subst.sh" href="/download/subst.sh">here</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/02/sostituzione-ricorsiva-di-regular-expression/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find</title>
		<link>http://gabo.homelinux.com/en/2009/02/find/</link>
		<comments>http://gabo.homelinux.com/en/2009/02/find/#comments</comments>
		<pubDate>Thu, 26 Feb 2009 08:31:49 +0000</pubDate>
		<dc:creator>gabo</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[shell]]></category>

		<guid isPermaLink="false">http://gabo.homelinux.com/?p=35</guid>
		<description><![CDATA[Just a little reminder for that useful linux command!
Find recursively all files with the same extension


find /home/gabo -name &#34;*.txt&#34;


Find all files containg a string


find /home/gabo &#124; xargs grep -i &#34;frase da cercare&#34;


Delete recursively all file matching the -name option


find /home/gabo -name '*~' -exec rm -f {} \;
]]></description>
			<content:encoded><![CDATA[<p>Just a little reminder for that useful linux command!</p>
<p>Find recursively all files with the same extension</p>

<pre class="brush: bash;">
find /home/gabo -name &quot;*.txt&quot;
</pre>

<p>Find all files containg a string</p>

<pre class="brush: bash;">
find /home/gabo | xargs grep -i &quot;frase da cercare&quot;
</pre>

<p>Delete recursively all file matching the -name option</p>

<pre class="brush: bash;">
find /home/gabo -name '*~' -exec rm -f {} \;
</pre>]]></content:encoded>
			<wfw:commentRss>http://gabo.homelinux.com/en/2009/02/find/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
