<?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>Etienne Lachance</title>
	<atom:link href="http://etiennelachance.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://etiennelachance.com</link>
	<description></description>
	<lastBuildDate>Mon, 22 Feb 2010 16:58:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Asterisk 1.6 : Installation, compilation et configuration du CDR via MySQL</title>
		<link>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/</link>
		<comments>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 20:54:53 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[cdr]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pbx]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=86</guid>
		<description><![CDATA[Introduction
Pour continuer la série d&#8217;article sur asterisk, celuis-ci vous expliquera comment compiler et installer les modules complémentaire (addons) d&#8217;asterisk.  Ainsi comment configurer le CDR (Call Detail Record, registre des appels en français).  Bonne lecture.
Veuiller prendre note que les versions spécifier dans cet artricle sont les derniers versions stables disponible lors de la création de celui-ci.

Description
Les [...]]]></description>
			<content:encoded><![CDATA[<h2 id="Pré-requis">Introduction</h2>
<p>Pour continuer la série d&#8217;article sur asterisk, celuis-ci vous expliquera comment compiler et installer les modules complémentaire (addons) d&#8217;asterisk.  Ainsi comment configurer le CDR (<em>Call Detail Record</em>, registre des appels en français).  Bonne lecture.<br />
Veuiller prendre note que les versions spécifier dans cet artricle sont les derniers versions stables disponible lors de la création de celui-ci.</p>
<h2 id="Pré-requis"><span id="more-86"></span></h2>
<h2>Description</h2>
<p>Les modules complémentaire d&#8217;asterisk comprend ceci :</p>
<ul>
<li>Applications
<ul>
<li>app_addon_sql_mysql (Interface pour MySQL)</li>
<li>app_saycountpl (gadget selon moi)</li>
</ul>
</li>
<li>Call Detail Recording
<ul>
<li>cdr_addon_mysql (pour enregistrer le registre des appels dans MySQL, le but de l&#8217;article)</li>
</ul>
</li>
<li>Channel Drivers
<ul>
<li>chan_mobile (Pilote pour les périphérique Bluetooth)</li>
<li>chan_ooh323 (<a href="http://www.obj-sys.com/open/html/index.shtml" target="_blank">Objective Open H.323</a>)</li>
</ul>
</li>
<li>Format Interpreters
<ul>
<li>format_mp3 (ça le dit, supporter le format MP3)</li>
</ul>
</li>
<li>Ressource Modules
<ul>
<li>res_config_mysql (pour la configuration en temps réel )</li>
</ul>
</li>
</ul>
<h2 id="Pré-requis">Pré-requis</h2>
<p>Avoir installé une Debian de Base, <a title="Asterisk" href="/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/">Asterisk</a> et MySQL serveur</p>
<p>Paquets à installer :</p>
<blockquote>
<pre># apt-get install build-essential libncurses-dev libmysqlclient15-dev</pre>
</blockquote>
<p>Télécharger les modules complémentaires d&#8217;asterisk :</p>
<blockquote>
<pre># wget <a href="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-addons-1.6.1.2-rc1.tar.gz">http://downloads.asterisk.org/pub/telephony/asterisk/releases\
/asterisk-addons-1.6.1.2-rc1.tar.gz</a></pre>
</blockquote>
<h2 id="Compilation">Compilation</h2>
<blockquote>
<pre># tar -zcf asterisk-addons-1.6.1.2-rc1.tar.gz &amp;&amp; cd asterisk-addons-1.6.1.2-rc1
# ./configure --host=i486-linux-gnu --build=i486-linux-gnu \
  --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info</pre>
</blockquote>
<p>Les options au script <strong>./configure</strong>, sont des variables pour le standard Debian.<br />
La commande <strong>make menuconfig</strong> est optionnel, utiliser la si vous voulez personaliser les modules d’asterisk</p>
<blockquote>
<pre># make menuconfig
# make
# make install
# make samples</pre>
</blockquote>
<p>La commande <strong>make samples</strong> va créer des fichiers de configuration de base dans le répertoire <em>/etc/asterisk</em></p>
<h2 id="Pré-requis">Configuration</h2>
<h3>Serveur MySQL</h3>
<p>Veuiller créer une table dans MySQL, voici le template :</p>
<blockquote>
<pre>CREATE TABLE IF NOT EXISTS `cdr` (
`calldate` datetime NOT NULL default '0000-00-00 00:00:00',
`clid` varchar(80) NOT NULL default '',
`src` varchar(80) NOT NULL default '',
`dst` varchar(80) NOT NULL default '',
`dcontext` varchar(80) NOT NULL default '',
`channel` varchar(80) NOT NULL default '',
`dstchannel` varchar(80) NOT NULL default '',
`lastapp` varchar(80) NOT NULL default '',
`lastdata` varchar(80) NOT NULL default '',
`duration` int(11) NOT NULL default '0',
`billsec` int(11) NOT NULL default '0',
`disposition` varchar(45) NOT NULL default '',
`amaflags` int(11) NOT NULL default '0',
`accountcode` varchar(20) NOT NULL default '',
`userfield` varchar(255) NOT NULL default '',
KEY `calldate` (`calldate`),
KEY `dst` (`dst`),
KEY `calldate_2` (`calldate`),
KEY `dst_2` (`dst`),
KEY `accountcode` (`accountcode`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;</pre>
</blockquote>
<h3>/etc/asterisk/cdr_mysql.conf</h3>
<blockquote>
<pre>[global] 
hostname=<em>l'adresse de votre serveur MySQL
</em>dbname=<em>nom_de_la_base_de_donnée</em>
table=<em>nom_de_la_table</em>
password=<em>le_mot_de_passe</em>
user=<em>nom_de_l'usager</em>
port=3306
;sock=/tmp/mysql.sock</pre>
</blockquote>
<h2>Finalement</h2>
<p>Redémarrer Asterisk et le tout devrait fonctionner.  Si vous avez des questions, laisser moi un commentaire.</p>
<h2>Référence</h2>
<ul>
<li><a href="http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql">http://www.voip-info.org/wiki/view/Asterisk+cdr+mysql</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/asterisk-cdr-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Compilation et Installation d&#8217;Asterisk 1.6.1.9 sous debian lenny</title>
		<link>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/</link>
		<comments>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 19:02:39 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[asterisk]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[pbx]]></category>
		<category><![CDATA[VoIP]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=62</guid>
		<description><![CDATA[Introduction
Ceci est le premier post d&#8217;une série sur l&#8217;installation et la configuration du PBX open source Asterisk. Vive l&#8217;open source !!  =)
Dans ce tutoriel je vais démontre comment installer Asterisk 1.6.1.9 (version stable de la branche 1.6 lors de la création de ce post).
Pré-requis
Avoir installé une Debian de Base
Paquet à installer :

# apt-get install build-essential libncurses-dev

Télécharger [...]]]></description>
			<content:encoded><![CDATA[<h2 id="Pré-requis">Introduction</h2>
<p>Ceci est le premier post d&#8217;une série sur l&#8217;installation et la configuration du PBX open source Asterisk. Vive l&#8217;open source !!  =)<br />
Dans ce tutoriel je vais démontre comment installer Asterisk 1.6.1.9 (version stable de la branche 1.6 lors de la création de ce post).</p>
<h2 id="Pré-requis">Pré-requis</h2>
<p>Avoir installé une Debian de Base</p>
<p>Paquet à installer :</p>
<blockquote>
<pre># apt-get install build-essential libncurses-dev</pre>
</blockquote>
<p>Télécharger asterisk :</p>
<blockquote>
<pre># wget <a href="http://downloads.asterisk.org/pub/telephony/asterisk/releases/asterisk-1.6.1.9.tar.gz">http://downloads.asterisk.org/pub/telephony/asterisk/\
releases/asterisk-1.6.1.9.tar.gz</a></pre>
</blockquote>
<h2 id="Compilation"><span id="more-62"></span>Configuration et compilation</h2>
<blockquote>
<pre># ./configure --host=i486-linux-gnu --build=i486-linux-gnu \
--prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info</pre>
</blockquote>
<p>Les options au script <strong>./configure</strong>, sont des variables pour le standard Debian.<br />
La commande <strong>make menuconfig</strong> est optionnel, utiliser la si vous voulez personaliser les modules d&#8217;asterisk</p>
<blockquote>
<pre># make menuconfig
# make
# make install
# make samples</pre>
</blockquote>
<p>La commande <strong>make samples</strong> va créer des fichiers de configuration de base dans le répertoire <em>/etc/asterisk</em></p>
<h2 id="Pré-requis">Référence</h2>
<ul>
<li>Fichier README fournie avec l&#8217;archive d&#8217;asterisk</li>
<li><a href="http://www.asterisk.org/">http://www.asterisk.org/</a></li>
<li><a href="http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/rules">http://svn.debian.org/wsvn/pkg-voip/asterisk/trunk/debian/rules</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/compilation-et-installation-dasterisk-1-6-1-9-sous-debian-lenny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment générer un fichier XML valide à partir de PHP &#8211; version echo</title>
		<link>http://etiennelachance.com/2009/11/comment-generer-un-fichier-xml-valide-a-partir-de-php-version-echo/</link>
		<comments>http://etiennelachance.com/2009/11/comment-generer-un-fichier-xml-valide-a-partir-de-php-version-echo/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 14:09:19 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[xml]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=73</guid>
		<description><![CDATA[Introduction
Prenons par exemple que vous générez le tableau suivant, à partir d&#8217;un code PHP, et que vous voulez générer un fichier XML à partir des même données.

My CD Collection



Title
Artist


Empire Burlesque
Bob Dylan


Hide your heart
Bonnie Tyler


Greatest Hits
Dolly Parton


Still got the blues
Gary Moore




Modification du code
Voici un exemple de code source :


&#60;?php
// prendre note que le tableau(array) $catalog doit [...]]]></description>
			<content:encoded><![CDATA[<h2>Introduction</h2>
<p>Prenons par exemple que vous générez le tableau suivant, à partir d&#8217;un code PHP, et que vous voulez générer un fichier XML à partir des même données.</p>
<blockquote>
<h2>My CD Collection</h2>
<table border="1">
<tbody>
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<tr>
<td>Empire Burlesque</td>
<td>Bob Dylan</td>
</tr>
<tr>
<td>Hide your heart</td>
<td>Bonnie Tyler</td>
</tr>
<tr>
<td>Greatest Hits</td>
<td>Dolly Parton</td>
</tr>
<tr>
<td>Still got the blues</td>
<td>Gary Moore</td>
</tr>
</tbody>
</table>
</blockquote>
<h2>Modification du code</h2>
<p>Voici un exemple de code source :</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// prendre note que le tableau(array) $catalog doit exister</span>
<span style="color: #666666; font-style: italic;">// il peut être généré par programmation ou bien par une base de donnée</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
&nbsp;
&lt;html&gt;
&lt;body&gt;
&lt;h2&gt;My CD Collection&lt;/h2&gt;
&lt;table border=&quot;1&quot;&gt;
	&lt;tr bgcolor=&quot;#9acd32&quot;&gt;
		&lt;th&gt;Title&lt;/th&gt;
		&lt;th&gt;Artist&lt;/th&gt;
	&lt;/tr&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$catalog</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$cd</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;tr&gt;&lt;td&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$cd</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/td&gt;&lt;td&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$cd</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'artist'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/td&gt;&lt;/tr&gt;<span style="color: #000000; font-weight: bold;">&lt;?</span>
		<span style="color: #009900;">&#125;</span>
	<span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/table&gt;
&lt;/body&gt;
&lt;/html&gt;</pre></div></div>

</blockquote>
<p>Maintenant modifions le code source pour générer un fichier XML :</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span>
<span style="color: #666666; font-style: italic;">// prendre note que le tableau(array) $catalog doit exister</span>
<span style="color: #666666; font-style: italic;">// il peut être généré par programmation ou bien par une base de donnée</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span>
header (&quot;Content-Type:text/xml&quot;);			// spécifie à php d'envoyer l'en-tête XML
echo '<span style="color: #000000; font-weight: bold;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ISO-8859-1&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>';	// voir plus bas
&lt;catalog&gt;
	<span style="color: #000000; font-weight: bold;">&lt;?php</span>
		<span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$catalog</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$cd</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
		<span style="color: #000000; font-weight: bold;">?&gt;</span>
	&lt;cd&gt;
		&lt;title&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$cd</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'title'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/title&gt;
		&lt;artist&gt;<span style="color: #000000; font-weight: bold;">&lt;?=</span><span style="color: #000088;">$cd</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'artist'</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span><span style="color: #000000; font-weight: bold;">?&gt;</span>&lt;/artist&gt;
	&lt;/cd&gt;
		<span style="color: #000000; font-weight: bold;">&lt;?</span> <span style="color: #009900;">&#125;</span> <span style="color: #000000; font-weight: bold;">?&gt;</span>
&lt;/catalog&gt;</pre></div></div>

</blockquote>
<p>Faire attention à ligne <strong>echo &#8216;<?xml version="1.0" encoding="ISO-8859-1"?>&#8216;; </strong><br />
Ne pas utiliser la syntax :</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;?php</span> <span style="color: #666666; font-style: italic;">// code</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>xml version<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;1.0&quot;</span> encoding<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;ISO-9959-1&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span><span style="color: #000000; font-weight: bold;">&lt;?</span>
<span style="color: #666666; font-style: italic;">// code suite</span>
<span style="color: #000000; font-weight: bold;">?&gt;</span></pre></div></div>

</blockquote>
<p>Parce que cela va générer une erreur PHP.</p>
<h2>Résultat</h2>
<p>Voici finalement la résultante du script :</p>
<blockquote>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt;?<span style="color: #000066;">xmlversion</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;ISO-8859-1&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;catalog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Empire Burlesque<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bob Dylan<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Hide your heart<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Bonnie Tyler<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
 	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Greatest Hits<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Dolly Parton<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Still got the blues<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/title<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
		<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>Gary Moore<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/artist<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/cd<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/catalog<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

</blockquote>
<h2>Référence</h2>
<ul>
<li><a href="http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&amp;xsltfile=cdcatalog">http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&amp;xsltfile=cdcatalog</a></li>
<li><a href="http://www.php.net/manual/en/simplexml.examples-basic.php">http://www.php.net/manual/en/simplexml.examples-basic.php</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/comment-generer-un-fichier-xml-valide-a-partir-de-php-version-echo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mise en page d&#8217;un fichier XML avec XSLT</title>
		<link>http://etiennelachance.com/2009/11/mise-en-page-dun-fichier-xml-avec-xslt/</link>
		<comments>http://etiennelachance.com/2009/11/mise-en-page-dun-fichier-xml-avec-xslt/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 13:11:24 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[stylesheet]]></category>
		<category><![CDATA[xml]]></category>
		<category><![CDATA[xsl]]></category>
		<category><![CDATA[xslt]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=67</guid>
		<description><![CDATA[Introduction
Comme vous savez XML est un language de structuration de données et non de présentation.  Ainsi XSL (eXtensible StyleSheet Language) est un language recommandé par le W3C pour effectuer la représentation des donnée d&#8217;un document XML.
XML est un language permettant de définir des feuille de style pour les document XML, au même titre que les [...]]]></description>
			<content:encoded><![CDATA[<h2 id="Introduction">Introduction</h2>
<p>Comme vous savez XML est un language de structuration de données et non de présentation.  Ainsi XSL (<em>eXtensible StyleSheet Language</em>) est un language recommandé par le W3C pour effectuer la représentation des donnée d&#8217;un document XML.</p>
<p>XML est un language permettant de définir des feuille de style pour les document XML, au même titre que les CSS (<em>Cascading StyleSheets</em>) pour le language HTML.  XSL est compatible avec les CSS.</p>
<p>Toutefois, contrairement aux CSS, XSL permet aussi de retraiter un document XML afin d&#8217;en modifier totalement sa structure, ce qui permet à partir d&#8217;un document XML d&#8217;être capable de générer d&#8217;autres types de documents (PostScript, HTML, Tex, RTF, &#8230;) ou bien un fichier XML de structure différente.</p>
<p>Ainsi la structuration des données (définie par XML) et leur représentation (définie par un langage tel que XSL) sont séparées. Cela signifie qu&#8217;il est possible à partir d&#8217;un document XML de créer des documents utilisant différentes représentations (HTML pour créer des pages web, WML pour les mobiles WAP, &#8230;).</p>
<h2 id="Configurationduserveur">XSLT</h2>
<p>XSLT ou <em>eXtensible Stylesheet Transformation</em> permet de transformer la structure des éléments XML.</p>
<p align="justify">Un document XML peut être représenté comme une structure arborescente. Ainsi XSLT permet de transformer les documents XML à l&#8217;aide de feuilles de style contenant des règles appelées <strong>template rules</strong> (ou <em>règles de gabarit</em> en français).</p>
<p align="justify">Le processeur XSLT (composant logiciel chargé de la transformation) crée un structure logique arborescente (on parle d&#8217;<strong>arbre source</strong>) à partir du document XML et lui fait subir des transformations selon les <em>template rules</em> contenues dans la feuille XSL pour produire un <strong>arbre résultat</strong> représentant, par exemple, la structure d&#8217;un document HTML. Les composants de l&#8217;arbre résultat sont appelés <em>objets de flux</em>.</p>
<p align="justify">Chaque <em>template rule</em> définit des traitements à effectuer sur un élément (noeud ou feuille) de l&#8217;arbre source. On appelle &#8220;<strong>patterns</strong>&#8221; (en français <em>motifs</em>, parfois &#8220;<em>éléments cibles</em>&#8220;) les éléments de l&#8217;arbre source.</p>
<p align="center"><img src="http://static.commentcamarche.net/www.commentcamarche.net/pictures/xml-images-template.gif" alt="template rules et patterns" /></p>
<p align="justify">L&#8217;arbre source peut être entièrement remodelé et filtré ainsi qu&#8217;ajouter du contenu à l&#8217;arbre résultat, si bien que l&#8217;arbre résultat peut être radicalement différent de l&#8217;arbre source.</p>
<h2 id="Configurationduserveur">Structure d&#8217;un document XSL</h2>
<p>Un document XSL étant un document XML, il commence obligatoirement par la balise suivante :</p>
<blockquote>
<pre> &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</pre>
</blockquote>
<p>D&#8217;autre part, toute feuille de style XSL est comprise entre les balises <em>&lt;xsl:stylesheet &#8230;&gt;</em> et <em>&lt;/xsl:stylesheet&gt;</em>.  La balise <em>xsl:stylesheet</em> encapsule des balises <em>xsl:template</em> définissant les transformations à faire subir à certains éléments du document XML.</p>
<blockquote>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;</pre>
<pre>&lt;xsl:stylesheet version="1.0" xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>"&gt;
	&lt;xsl:template ... &gt;
		&lt;!-- traitements à effectuer --&gt;
	&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;</pre>
</blockquote>
<h2 id="Configurationduserveur">Association d&#8217;une feuille XSL à un document XML</h2>
<p>Une feuille de style XSL (enregistré dans un fichier dont l&#8217;extension est <em>.xsl</em>) peut être liée à un document XML (de telle manière à ce que le document XML utilise la feuille XSL) en insérant la balise suivante au début du document XML :</p>
<blockquote>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;?xml-stylesheet href="fichier.xsl" type="text/xsl"?&gt;</pre>
</blockquote>
<h2>Exemple de transformation</h2>
<p align="justify">Les template rules sont des balises XSL permettant de définir des opérations à réaliser sur certains éléments du document XML utilisant la page XSL, c&#8217;est-à-dire généralement de transformer un tag XML en un tag HTML (généralement plusieurs).</p>
<p align="justify">Voici un exemple simple de transformation via XSLT :</p>
<p align="justify">Le fichier XML source (<em>data.xml</em>):</p>
<blockquote>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;?xml-stylesheet href="template.xsl" type="text/xsl"?&gt;</pre>
<pre>&lt;catalog&gt;
 &lt;cd&gt;
  &lt;title&gt;Empire Burlesque&lt;/title&gt;
  &lt;artist&gt;Bob Dylan&lt;/artist&gt;
  &lt;country&gt;USA&lt;/country&gt;
  &lt;company&gt;Columbia&lt;/company&gt;
  &lt;price&gt;10.90&lt;/price&gt;
  &lt;year&gt;1985&lt;/year&gt;
 &lt;/cd&gt;
 &lt;cd&gt;
  &lt;title&gt;Hide your heart&lt;/title&gt;
  &lt;artist&gt;Bonnie Tyler&lt;/artist&gt;
  &lt;country&gt;UK&lt;/country&gt;
  &lt;company&gt;CBS Records&lt;/company&gt;
  &lt;price&gt;9.90&lt;/price&gt;
  &lt;year&gt;1988&lt;/year&gt;
 &lt;/cd&gt;
 &lt;cd&gt;
  &lt;title&gt;Greatest Hits&lt;/title&gt;
  &lt;artist&gt;Dolly Parton&lt;/artist&gt;
  &lt;country&gt;USA&lt;/country&gt;
  &lt;company&gt;RCA&lt;/company&gt;
  &lt;price&gt;9.90&lt;/price&gt;
  &lt;year&gt;1982&lt;/year&gt;
 &lt;/cd&gt;
 &lt;cd&gt;
  &lt;title&gt;Still got the blues&lt;/title&gt;
  &lt;artist&gt;Gary Moore&lt;/artist&gt;
  &lt;country&gt;UK&lt;/country&gt;
  &lt;company&gt;Virgin records&lt;/company&gt;
  &lt;price&gt;10.20&lt;/price&gt;
  &lt;year&gt;1990&lt;/year&gt;
 &lt;/cd&gt;
&lt;catalog&gt;</pre>
</blockquote>
<p>Le fichier XSL (<em>template.xsl</em>):</p>
<blockquote>
<pre>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
&lt;xsl:stylesheet version="1.0" xmlns:xsl="<a href="http://www.w3.org/1999/XSL/Transform">http://www.w3.org/1999/XSL/Transform</a>"&gt;</pre>
<pre>&lt;xsl:template match="/"&gt;
  &lt;html&gt;
  &lt;body&gt;
  &lt;h2&gt;My CD Collection&lt;/h2&gt;
    &lt;table border="1"&gt;
      &lt;tr bgcolor="#9acd32"&gt;
        &lt;th&gt;Title&lt;/th&gt;
        &lt;th&gt;Artist&lt;/th&gt;
      &lt;/tr&gt;
      &lt;xsl:for-each select="catalog/cd"&gt;
      &lt;tr&gt;
        &lt;td&gt;&lt;xsl:value-of select="title"/&gt;&lt;/td&gt;
        &lt;td&gt;&lt;xsl:value-of select="artist"/&gt;&lt;/td&gt;
      &lt;/tr&gt;
      &lt;/xsl:for-each&gt;
    &lt;/table&gt;
  &lt;/body&gt;
  &lt;/html&gt;
&lt;/xsl:template&gt;
&lt;/xsl:stylesheet&gt;</pre>
</blockquote>
<p>Voici la représentation de la résultante:</p>
<h2>My CD Collection</h2>
<table border="1">
<tbody>
<tr bgcolor="#9acd32">
<th>Title</th>
<th>Artist</th>
</tr>
<tr>
<td>Empire Burlesque</td>
<td>Bob Dylan</td>
</tr>
<tr>
<td>Hide your heart</td>
<td>Bonnie Tyler</td>
</tr>
<tr>
<td>Greatest Hits</td>
<td>Dolly Parton</td>
</tr>
<tr>
<td>Still got the blues</td>
<td>Gary Moore</td>
</tr>
</tbody>
</table>
<h2>Références</h2>
<ul>
<li>
<div><a href="http://www.w3schools.com/xsl/">http://www.w3schools.com/xsl/</a></div>
</li>
<li>
<div><a href="http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&amp;xsltfile=cdcatalog">http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&amp;xsltfile=cdcatalog</a></div>
</li>
<li>
<div><a href="http://www.commentcamarche.net/contents/xml/xmlxsl.php3">http://www.commentcamarche.net/contents/xml/xmlxsl.php3</a></div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/mise-en-page-dun-fichier-xml-avec-xslt/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Musique pour le changement</title>
		<link>http://etiennelachance.com/2009/11/musique-pour-le-changement/</link>
		<comments>http://etiennelachance.com/2009/11/musique-pour-le-changement/#comments</comments>
		<pubDate>Sat, 07 Nov 2009 06:17:11 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=56</guid>
		<description><![CDATA[
Un seul commentaire, excellent!
Source : Playing for change
]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="480" height="295" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/fgWFxFg7-GU&amp;hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="480" height="295" src="http://www.youtube.com/v/fgWFxFg7-GU&amp;hl=en&amp;fs=1" allowfullscreen="true" allowscriptaccess="always"></embed></object></p>
<p>Un seul commentaire, excellent!</p>
<p>Source : <a title="Playing for change" href="http://playingforchange.com" target="_blank">Playing for change</a></p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/11/musique-pour-le-changement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurer un serveur DHCP sous Debian</title>
		<link>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/</link>
		<comments>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/#comments</comments>
		<pubDate>Wed, 14 Oct 2009 17:28:37 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=50</guid>
		<description><![CDATA[Ce mémo a été écrit et testé pour Debian, mais il est possible de l’adapter facilement à d’autres distributions.
Pré-requis
Avoir installé une Debian de Base
Installation et Configuration du serveur DHCP
Paquet à installer :

# aptitude install dhcp3-server

Remarque : Par défaut le serveur DHCP n&#8217;écoutera pas sur aucune interface. Pour assigner une interface, modifier le fichier « /etc/default/dhcp3-server [...]]]></description>
			<content:encoded><![CDATA[<p>Ce mémo a été écrit et testé pour Debian, mais il est possible de l’adapter facilement à d’autres distributions.</p>
<h2 id="Pré-requis">Pré-requis</h2>
<p>Avoir installé une Debian de Base</p>
<p>Installation et Configuration du serveur DHCP</p>
<p>Paquet à installer :</p>
<blockquote>
<pre># aptitude install dhcp3-server</pre>
</blockquote>
<p>Remarque : Par défaut le serveur DHCP n&#8217;écoutera pas sur aucune interface. Pour assigner une interface, modifier le fichier « /etc/default/dhcp3-server »</p>
<h2 id="Configurationduserveur">Configuration du serveur</h2>
<p>Éditer le fichier « /etc/default/dhcp3-server » pour spécifier l&#8217;interface/les interfaces a utliser pour le serveur</p>
<blockquote>
<pre> INTERFACE="eth0"</pre>
</blockquote>
<p>Le fichier de configuration du serveur dhcp est</p>
<blockquote>
<pre>/etc/dhcp3/dhcpd.conf</pre>
</blockquote>
<p>Je conseille pour commencer de faire une copie de sauvegarde de ce fichier. Ensuite, vous pouvez effacer ou commenter les lignes existantes et ajouter les lignes suivantes :</p>
<blockquote>
<pre>  authoritative;
  option domain-name "example.com";
  option domain-name-servers 192.168.0.1, 4.2.2.1;
  option routers 192.168.0.1;
  default-lease-time 3600;

  subnet 192.168.0.0 netmask 255.255.255.0 {
     range 192.168.0.200 192.168.0.250;
  }</pre>
</blockquote>
<h3 id="Lesoptions">Les options</h3>
<ul>
<li><strong>authoritative</strong> : Permet d’indiquer que le serveur DHCP sera responsable de la zone concernée</li>
<li><strong>option domain-name :</strong> Spécifie le nom du domaine local</li>
<li><strong>option domain-name-servers : </strong>Spécifie les adresses des serveur DNS</li>
<li><strong>option routers</strong> : Spécifie l&#8217;adresse du &#8220;default gateway&#8221;</li>
</ul>
<h4 id="CommentavoirdesIPfixesavecunserveurDHCP">Comment avoir des IP fixes avec un serveur DHCP</h4>
<p>Pour cela, il faut ajouter dans le fichier « /etc/dhcp3/dhcpd.conf », de nouvelles lignes.</p>
<p>L’exemple suivant permet de fixer une adresse IP en fonction de son adresse MAC :</p>
<blockquote>
<pre> host INFO-TG  {
   hardware ethernet 00:05:5d:f5:08:02;
   fixed-address 192.168.0.11;
 }</pre>
</blockquote>
<h2 id="Redémarrageetlogs">Redémarrage et logs</h2>
<p>Une fois la configuration terminée, il faut démarrer ou redémarrer le démon pour prendre en compte les modifications :</p>
<blockquote>
<pre># /etc/init.d/dhcp3-server restart</pre>
</blockquote>
<p>Si le démarrage retourne une erreur, il faut penser à consulter les logs :</p>
<blockquote>
<pre># tail -f /var/log/syslog</pre>
</blockquote>
<p>Le fichier suivant donne la liste des adresses IP délivrées par le serveur. Pour chaque adresse IP l’on retrouve : son adresse mac, le nom de l’ordinateur, la date de début et de fin du bail :</p>
<blockquote>
<pre>/var/lib/dhcp3/dhclient.leases</pre>
</blockquote>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/configurer-un-serveur-dhcp-sous-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connexion automatique avec SSH</title>
		<link>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/</link>
		<comments>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:58:55 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[auth]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=38</guid>
		<description><![CDATA[Mise en situation
Si vous tentez de vous connecter automatiquement entre un ordinateur A vers l&#8217;ordianteur B, soit pour avoir accès a un terminal ou vous voulez automatiser une tâche.
Comment procéder

Identifier vous sur l&#8217;ordinateur A (client) pour créé une pair de clef d&#8217;authentification (ne pas spécifier de &#8220;passphrase&#8221;)

utilisateur@ordinateurA:~&#62; ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Mise en situation</strong></p>
<p>Si vous tentez de vous connecter automatiquement entre un ordinateur A vers l&#8217;ordianteur B, soit pour avoir accès a un terminal ou vous voulez automatiser une tâche.</p>
<p><strong>Comment procéder</strong></p>
<ol>
<li>Identifier vous sur l&#8217;ordinateur A (client) pour créé une pair de clef d&#8217;authentification (ne pas spécifier de &#8220;passphrase&#8221;)<br />
<blockquote>
<pre>utilisateur@ordinateurA:~&gt; ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/utilisateur/.ssh/id_rsa):
Created directory '/home/utilisateur/.ssh'.
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/utilisateur/.ssh/id_rsa.
Your public key has been saved in /home/utilisateur/.ssh/id_rsa.pub.
The key fingerprint is:
3e:4f:05:79:3a:9f:96:7c:3b:ad:e9:58:37:bc:37:e4 utilisateur@ordinateurA</pre>
</blockquote>
</li>
<li>Maintenant utiliser <tt>ssh</tt> ou autre logiciel de console pour créé le répertoire <tt>~/.ssh</tt> pour l&#8217;utilisateur que vous voulez sur l&#8217;ordinateur B. (Prenez note que le répertoire peut déjà exister):<br />
<blockquote>
<pre>utilisateur@ordinateurA:~&gt; ssh utilisateur@ordinateurB mkdir -p .ssh
utilisateur@ordianteurB's password:</pre>
</blockquote>
</li>
<li>Finalement, ajouter la clef public, créé auparavant, dans le fichier <tt>~/.ssh/authorized_keys</tt> dans l&#8217;ordinateur B et entrer le mot de passe une dernière fois:<br />
<blockquote>
<pre>utilisateur@ordinateurA:~&gt; cat .ssh/id_rsa.pub | ssh utilisateur@ordinateurB 'cat &gt;&gt; .ssh/authorized_keys'
utilisateur@ordinateurB's password:</pre>
</blockquote>
</li>
<li>Maintenant, vous pouvez vous connecter sur l&#8217;ordinateur B depuis l&#8217;ordinateur A sans spécifier de mot de passe:<br />
<blockquote>
<pre>utilisateur@ordinateurA:~&gt; ssh utilisateur@ordinateurB
utilisateur@ordinateurB:~&gt;</pre>
</blockquote>
</li>
</ol>
<p><strong>Prendre note</strong> que dépendamment de votre version de SSH vous aurez peut-être besoin des changements suivant :</p>
<ul>
<li>Insérer la clef public dans le fichier <tt>.ssh/authorized_keys2</tt></li>
<li>Changer les permissions du répertoire <tt>.ssh</tt> pour <tt>600</tt></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/connexion-automatique-avec-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comment encrypter des fichiers sous Linux avec openssl</title>
		<link>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/</link>
		<comments>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/#comments</comments>
		<pubDate>Sat, 10 Oct 2009 21:45:57 +0000</pubDate>
		<dc:creator>estheban</dc:creator>
				<category><![CDATA[Tutoriel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openssl]]></category>
		<category><![CDATA[securité]]></category>

		<guid isPermaLink="false">http://etiennelachance.com/?p=19</guid>
		<description><![CDATA[Note: C&#8217;est étapes s&#8217;applique à tout fichiers ou dossiers.
Une petite récapitulation sur la compression et l&#8217;extraction des fichier tar.gz (ou tgz). Pour compresser un dossier intituler backup :
# tar -zcf backup.tar.gz backup
Cette commande compresse le répertoire backup dans un fichier backup.tar.gz. Pour décompresser, utiliser la commande suivante :
# tar -zxf backup.tar.gz
Maintenant la partie amusante. Regardons [...]]]></description>
			<content:encoded><![CDATA[<p><em>Note:</em> C&#8217;est étapes s&#8217;applique à tout fichiers ou dossiers.</p>
<p>Une petite récapitulation sur la compression et l&#8217;extraction des fichier <strong>tar.gz</strong> (ou <strong>tgz</strong>). Pour compresser un dossier intituler <strong>backup</strong> :</p>
<p>#<strong> tar -zcf backup.tar.gz backup</strong></p>
<p>Cette commande compresse le répertoire <strong>backup</strong> dans un fichier <strong>backup.tar.gz</strong>. Pour décompresser, utiliser la commande suivante :</p>
<p>#<strong> tar -zxf backup.tar.gz</strong></p>
<p>Maintenant la partie amusante. Regardons comment nous pouvons ajouter une encryption de base.  Pour compresser le répertoire <strong>backup</strong> avec l&#8217;encryption, exécuter :</p>
<p># <strong>tar -zcf – backup | openssl des3 -salt -k votremotdepasse | dd of=backup.des3</strong></p>
<p>Remplacer <strong>votremotdepasse</strong> par un de vos mot de passe.  Cette commande génére un fichier nommé <strong>backup.des3</strong>. Ce fichier peut être décompresser uniquement avec votre mot de passe.</p>
<p>Pour extraire votre archive encrypter, utiliser la commande suivante :</p>
<p># <strong>dd if= backup.des3 | openssl des3 -d -k votremotdepasse | tar zxf -</strong></p>
<p>Veuiller prendre note que le &#8220;-&#8221; à la fin, n&#8217;est pas une erreur de typo, mais bien nécessaire à la commande pour fonctionner.  Remplacer <strong>votremotdepasse</strong> par le mot de passe utiliser pour encrypter le fichier.</p>
]]></content:encoded>
			<wfw:commentRss>http://etiennelachance.com/2009/10/comment-encrypter-des-fichiers-sous-linux-avec-openssl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
