<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.shadoware.org/index.php/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Shadoware.Org</title>
  <link>http://www.shadoware.org/index.php/</link>
  <atom:link href="http://www.shadoware.org/index.php/feed/rss2" rel="self" type="application/rss+xml"/>
  <description>Moi, mes idées, mes logiciels ...</description>
  <language>fr</language>
  <pubDate>dim, 04 jan 2009 16:07:45 +0100</pubDate>
  <copyright>Ulrich VANDENHEKKE</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Email2Trac</title>
    <link>http://www.shadoware.org/index.php/post/2008/10/21/Email2Trac</link>
    <guid isPermaLink="false">urn:md5:5ec8ea26412295d7bc4b6d2846dff997</guid>
    <pubDate>mer, 22 oct 2008 09:00:00 +0200</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>article</category><category>bug</category><category>debian</category><category>dédié</category><category>mail</category><category>planet</category><category>trac</category>    
    <description>&lt;p&gt;&lt;em&gt;Email2Trac&lt;/em&gt; est un logiciel permettant de créer un ticket sous &lt;em&gt;Trac&lt;/em&gt; en envoyant un mail au système de suivi de ticket.&lt;/p&gt;


&lt;p&gt;L'intérêt d'envoyer un mail au système de suivi plutôt que de se connecter sur le site Internet pour faire ses rapports d'anomalie, est de faciliter l'accès à de nouvelles personnes.
En effet, il est parfois plus facile d'envoyer un mail avec son client mail préféré (en considérant que le logiciel est quasiment toujours ouvert, ce qui doit être le cas en entreprise) que d'ouvrir le navigateur pour envoyer une anomalie de temps en temps (ouvrir le site, se logger, remplir tous les champs, ...).&lt;/p&gt;


&lt;p&gt;Ceci peut également être utilisé par un outil de rapport de bug, envoyant un mail automatique (avec confirmation de l'utilisateur) au crash dudit logiciel.&lt;/p&gt;    &lt;p&gt;Comme dit précédemment, &lt;em&gt;EMail2Trac&lt;/em&gt;&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/#pnote-611-1&quot; id=&quot;rev-pnote-611-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt; permet&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;d'ajouter un ticket en envoyant un mail, avec des fichiers attachés&lt;/li&gt;
&lt;li&gt;mettre à jour un ticket (en répondant au mail du ticket par exemple)&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;Installation&lt;/h3&gt;


&lt;p&gt;Pour installer &lt;em&gt;Email2Trac&lt;/em&gt;, il faut télécharger le &lt;a href=&quot;ftp://ftp.sara.nl/pub/outgoing/email2trac.tar.gz&quot;&gt;source&lt;/a&gt; et le décompresser dans un dossier temporaire (ou utilisateur).&lt;/p&gt;


&lt;h4&gt;Sans gestionnaire de paquet&lt;/h4&gt;


&lt;p&gt;Ensuite la compilation se fait à l'aide des habituelles &lt;code&gt;autotools&lt;/code&gt;&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;configure --&lt;span style=&quot;color: #007800;&quot;&gt;prefix=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;local&lt;/span&gt; --with-&lt;span style=&quot;color: #007800;&quot;&gt;mta_user=&lt;/span&gt;nobody --with-&lt;span style=&quot;color: #007800;&quot;&gt;trac_user=&lt;/span&gt;www-data
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt; 
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;/pre&gt;


&lt;h4&gt;Sous Debian&lt;/h4&gt;


&lt;p&gt;Après avoir installé les paquets &lt;code&gt;cdbs&lt;/code&gt; et &lt;code&gt;autotools-dev&lt;/code&gt;, vous pouvez exécuter les commandes suivante en &lt;em&gt;root&lt;/em&gt; (ou la première à l'aide de &lt;em&gt;fakeroot&lt;/em&gt;)&amp;nbsp;:&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;rules binary
dpkg -i ..&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;email2trac_&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt;version&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt;.deb&lt;/pre&gt;


&lt;p&gt;Pour le gestionnaire de paquets &lt;em&gt;RPM&lt;/em&gt; vous pouvez visiter la page &lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/en&quot;&gt;https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracInstallation&lt;/a&gt;&lt;/p&gt;


&lt;h3&gt;Configuration de l'application&lt;/h3&gt;


&lt;p&gt;La deuxième étape est l'édition du fichier &lt;code&gt;/etc/email2trac.conf&lt;/code&gt;. Dans ce fichier les informations à renseigner concerne la gestion du projet Trac&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/#pnote-611-2&quot; id=&quot;rev-pnote-611-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt; par &lt;em&gt;Email2Trac&lt;/em&gt;.&lt;/p&gt;

&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;color: #000066; font-weight:bold;&quot;&gt;&lt;span style=&quot;&quot;&gt;&amp;#91;&lt;/span&gt;DEFAULT&lt;span style=&quot;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
project: /www/site/trac/projet1
spam_level: &lt;span style=&quot;&quot;&gt;5&lt;/span&gt;
drop_spam: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
ticket_update: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
strip_signature: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000066; font-weight:bold;&quot;&gt;&lt;span style=&quot;&quot;&gt;&amp;#91;&lt;/span&gt;projet2&lt;span style=&quot;&quot;&gt;&amp;#93;&lt;/span&gt;&lt;/span&gt;
project: /www/site/trac/projet2
spam_level: &lt;span style=&quot;&quot;&gt;5&lt;/span&gt;
drop_spam: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
ticket_update: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
strip_signature: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Les différentes options dépendent de ce que vous souhaitez avoir. Les différentes possibilités sont à l'adresse &lt;a href=&quot;https://subtrac.sara.nl/oss/email2trac/wiki/Email2tracConfiguration&quot; hreflang=&quot;en&quot;&gt;suivante&lt;/a&gt;.&lt;/p&gt;


&lt;h4&gt;Spam&lt;/h4&gt;


&lt;p&gt;La gestion du SPAM se fait à l'aide des 3 lignes&amp;nbsp;:&lt;/p&gt;
&lt;pre class=&quot;ini&quot;&gt;spam_level: &lt;span style=&quot;&quot;&gt;5&lt;/span&gt;
drop_spam: &lt;span style=&quot;&quot;&gt;1&lt;/span&gt;
spam_header: X-Spam-Level&lt;/pre&gt;


&lt;p&gt;La ligne &lt;code&gt;spam_header&lt;/code&gt; étant à configurer suivant votre politique de gestion des spams (utilisation de &lt;em&gt;SpamAssassin&lt;/em&gt; ou d'un autre utilitaire).&lt;/p&gt;


&lt;h3&gt;Configuration de Postfix&lt;/h3&gt;


&lt;p&gt;Il faut maintenant configurer notre système de messagerie pour intégrer &lt;em&gt;Email2Trac&lt;/em&gt;. Nous allons détailler ici la mise en place de &lt;em&gt;Email2Trac&lt;/em&gt; sous &lt;em&gt;Postfix&lt;/em&gt;. Pour les autres serveurs mails vous pouvez visiter la page&amp;nbsp;: &lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/en&quot;&gt;http://subtrac.sara.nl/oss/email2trac/wiki/Email2tracMta&lt;/a&gt;&lt;/p&gt;


&lt;h4&gt;Aliases&lt;/h4&gt;


&lt;p&gt;La première méthode concerne la modification du fichier des &lt;em&gt;alias&lt;/em&gt; pour une configuration standard de &lt;em&gt;postfix&lt;/em&gt;.  Nous allons commencer par modifier le fichier &lt;code&gt;/etc/aliases&lt;/code&gt; en ajoutant la ligne suivante (pour le projet 1)&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
projet1: |&amp;quot;/usr/bin/run_email2trac&amp;quot;
&lt;/pre&gt;


&lt;p&gt;Il est également possible de préciser le projet sur lequel il faut travailler (projet définit dans &lt;code&gt;/etc/email2trac.conf&lt;/code&gt;)&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
projet2: |&amp;quot;/usr/bin/run_email2trac --project=projet2 --ticket_prefix=devel&amp;quot;
&lt;/pre&gt;


&lt;p&gt;Dans le fichier &lt;code&gt;/etc/postfix/main.cf&lt;/code&gt;, il faut avoir défini l'emplacement des alias de la manière suivante&amp;nbsp;:&lt;/p&gt;

&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;color: #000099;&quot;&gt;alias_maps &lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight:bold;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #660066;&quot;&gt; hash:/etc/aliases&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Les commandes suivantes permettent de mettre à jour le fichier des alias et demander à &lt;em&gt;Postfix&lt;/em&gt; de recharger la configuration&amp;nbsp;:&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;postaliases &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;aliases
postfix reload&lt;/pre&gt;


&lt;p&gt;Une fois ceci terminé, les mails envoyé à &lt;em&gt;projet1@domain.org&lt;/em&gt; et &lt;em&gt;projet2@domaine.org&lt;/em&gt; seront automatiquement redirigés vers &lt;em&gt;email2trac&lt;/em&gt; qui s'occupera de créer le ticket dans votre système de suivi.&lt;/p&gt;


&lt;h4&gt;Transport&lt;/h4&gt;


&lt;p&gt;Cette configuration concerne les personnes qui ont une configuration plus complexe de &lt;em&gt;postfix&lt;/em&gt; par exemple en gérant des domaines virtuels. Il est alors possible de définir une redirection des tickets pour un sous domaine.&lt;/p&gt;


&lt;p&gt;Nous avons donc créé le sous-domaine &lt;em&gt;tickets.domaine.org&lt;/em&gt; et voulons que les mails envoyés à &lt;em&gt;projet1@tickets.domaine.org&lt;/em&gt; est &lt;em&gt;projet2@tickets.domaine.org&lt;/em&gt; soient redirigés vers email2trac.&lt;/p&gt;


&lt;p&gt;Pour cela nous allons créer un fichier &lt;code&gt;/etc/postfix/transport&lt;/code&gt; avec les lignes ci-dessous&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
projet1@tickets.domaine.org      projet1:
projet2@tickets.domaine.org      projet2:
&lt;/pre&gt;


&lt;p&gt;Puis dans le fichier &lt;code&gt;/etc/postfix/main.cf&lt;/code&gt; nous allons définir que pour le sous domaine &lt;em&gt;tickets.domaine.org&lt;/em&gt;, il faut lire et utiliser le fichier des transports. (Attention il ne faut pas ajouter ce sous-domaine dans &lt;code&gt;mydestination&lt;/code&gt;.&lt;/p&gt;

&lt;pre class=&quot;ini&quot;&gt;&lt;span style=&quot;color: #000099;&quot;&gt;relay_domains &lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight:bold;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #660066;&quot;&gt; tickets.domaine.org&lt;/span&gt;
&lt;span style=&quot;color: #000099;&quot;&gt;transport_maps &lt;/span&gt;&lt;span style=&quot;color: #000066; font-weight:bold;&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;color: #660066;&quot;&gt; hash:/etc/postfix/transport&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;Ensuite, il nous faut définir dans le fichier &lt;code&gt;/etc/postfix/master.cf&lt;/code&gt; notre nouveau mode de transport. Il n'est pas obligé d'utiliser &lt;code&gt;run_email2trac&lt;/code&gt; qui fait un changement d'utilisateur, car dans le fichier &lt;code&gt;master.cf&lt;/code&gt; on peut directement définir l'utilisateur de destination.&lt;/p&gt;

&lt;pre&gt;
projet1      unix  -       n       n       -       -       pipe
  flags=FR user=www-data argv=/usr/bin/email2trac
  ${nexthop} ${user}
projet2      unix  -       n       n       -       -       pipe
  flags=FR user=www-data argv=/usr/bin/email2trac
  ${nexthop} ${user}
&lt;/pre&gt;


&lt;p&gt;Enfin il faut redémarrer &lt;em&gt;postfix&lt;/em&gt;&amp;nbsp;:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;postmap &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;postfix&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;transport
postfix reload&lt;/pre&gt;


&lt;p&gt;Et voilà vous pouvez envoyer vos mails à &lt;em&gt;projet1@tickets.shadoware.org&lt;/em&gt;.&lt;/p&gt;



&lt;h3&gt;Tester&lt;/h3&gt;


&lt;p&gt;Pour tester il est possible d'envoyer un mail, comme ceci&amp;nbsp;:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;mail projet1&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;tickets.shadoware.org &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt; ticket.txt&lt;/pre&gt;


&lt;p&gt;En cas de problème, vous pouvez vérifier que email2trac est bien configuré avec la commande&amp;nbsp;:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;email2trac --&lt;span style=&quot;color: #007800;&quot;&gt;project=&lt;/span&gt;projet1 &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;lt;&lt;/span&gt; ticket.txt&lt;/pre&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/#rev-pnote-611-1&quot; id=&quot;pnote-611-1&quot;&gt;1&lt;/a&gt;] &lt;a href=&quot;http://subtrac.sara.nl/oss/email2trac/wiki&quot; title=&quot;http://subtrac.sara.nl/oss/email2trac/wiki&quot;&gt;http://subtrac.sara.nl/oss/email2tr...&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/21/#rev-pnote-611-2&quot; id=&quot;pnote-611-2&quot;&gt;2&lt;/a&gt;] &lt;a href=&quot;http://trac.edgewall.org/&quot; title=&quot;http://trac.edgewall.org/&quot;&gt;http://trac.edgewall.org/&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/10/21/Email2Trac#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/10/21/Email2Trac#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/611</wfw:commentRss>
      </item>
    
  <item>
    <title>Nouvelles fonctionnalités de Qt Designer 4.5</title>
    <link>http://www.shadoware.org/index.php/post/2008/10/19/Nouvelles-fonctionnalites-de-Qt-Designer-45</link>
    <guid isPermaLink="false">urn:md5:70738bd05352d99baffe0f66326567aa</guid>
    <pubDate>dim, 19 oct 2008 19:24:00 +0200</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>nokia</category><category>planet</category><category>qt</category><category>trolltech</category>    
    <description>    &lt;p&gt;Sur &lt;em&gt;&lt;del&gt;Trolltech&lt;/del&gt;Nokia Labs Blogs&lt;/em&gt;, Friedelann Kleint nous présente aujourd'hui les nouvelles fonctionnalités de Qt Designer 4.5&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/19/#pnote-610-1&quot; id=&quot;rev-pnote-610-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;.&lt;/p&gt;


&lt;p&gt;Au menu, on peut trouver l'ajout de filtre sur l'éditeur de propriétés ainsi que sur l'inspecteur d'objet (Ce qui peut permettre de sélectionner un composant et d'en modifier les propriétés plus rapidement).&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.shadoware.org/public/billets/qt/qtdesigner4.5/objectinspector.png&quot; alt=&quot;objectinspector.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;objectinspector.png, oct 2008&quot; /&gt;&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.shadoware.org/public/billets/qt/qtdesigner4.5/propertyeditorfilter.png&quot; alt=&quot;propertyeditorfilter.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;propertyeditorfilter.png, oct 2008&quot; /&gt;&lt;/p&gt;


&lt;p&gt;L'arrangement de la boite à outil est également différent&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.shadoware.org/public/billets/qt/qtdesigner4.5/widgetbox_iconmode.png&quot; alt=&quot;widgetbox_iconmode.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;widgetbox_iconmode.png, oct 2008&quot; /&gt;&lt;/p&gt;


&lt;p&gt;De plus il est maintenant possible de&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Sélectionner l'objet ancêtre d'un &lt;em&gt;widget&lt;/em&gt; en sélectionnant &lt;em&gt;Select ancestors&lt;/em&gt; du menu contextuel.&lt;/li&gt;
&lt;li&gt;Changer le &lt;em&gt;Layout&lt;/em&gt; sans casser et reconstruire le &lt;em&gt;Layout&lt;/em&gt; de la feuille&lt;/li&gt;
&lt;li&gt;Ajouter facilement une nouvelle ligne au layout (L'action &lt;em&gt;Add form layout row&lt;/em&gt; ouvrant la boite de dialogue ci-dessous)&lt;/li&gt;
&lt;li&gt;Créer des Assistants (&lt;em&gt;Wizard&lt;/em&gt;) linéaires&lt;/li&gt;
&lt;li&gt;Désactiver la traduction de certaine chaîne.&lt;/li&gt;
&lt;li&gt;...&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;img src=&quot;http://www.shadoware.org/public/billets/qt/qtdesigner4.5/formlayout.png&quot; alt=&quot;formlayout.png&quot; style=&quot;display:block; margin:0 auto;&quot; title=&quot;formlayout.png, oct 2008&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Enfin, pour terminer, comme le dit Friedemann&amp;nbsp;:
&lt;q&gt;The general focus of the 4.5 release is on stability and performance.&lt;/q&gt;
Soit&amp;nbsp;: Le but principal de la version 4.5 est la stabilité et les performances.&lt;/p&gt;


&lt;p&gt;Pour plus de précision, je vous conseille d'aller voir la page d'origine et/ou de télécharger la &lt;em&gt;snapshot&lt;/em&gt;.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/10/19/#rev-pnote-610-1&quot; id=&quot;pnote-610-1&quot;&gt;1&lt;/a&gt;] Référence : &lt;a href=&quot;http://labs.trolltech.com/blogs/2008/10/16/new-features-of-qt-designer-45/&quot; title=&quot;http://labs.trolltech.com/blogs/2008/10/16/new-features-of-qt-designer-45/&quot;&gt;http://labs.trolltech.com/blogs/200...&lt;/a&gt;&lt;/p&gt;&lt;/div&gt;
</description>
    
          <enclosure url="http://www.shadoware.org/public/billets/qt/qtdesigner4.5/formlayout.png"
      length="12589" type="image/png" />
          <enclosure url="http://www.shadoware.org/public/billets/qt/qtdesigner4.5/widgetbox_iconmode.png"
      length="40180" type="image/png" />
          <enclosure url="http://www.shadoware.org/public/billets/qt/qtdesigner4.5/objectinspector.png"
      length="19868" type="image/png" />
          <enclosure url="http://www.shadoware.org/public/billets/qt/qtdesigner4.5/propertyeditorfilter.png"
      length="15094" type="image/png" />
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/10/19/Nouvelles-fonctionnalites-de-Qt-Designer-45#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/10/19/Nouvelles-fonctionnalites-de-Qt-Designer-45#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/610</wfw:commentRss>
      </item>
    
  <item>
    <title>QT 4.4.2 puis QT 4.4.3 sont sorties</title>
    <link>http://www.shadoware.org/index.php/post/2008/09/29/QT-442-puis-QT-443-est-sortie</link>
    <guid isPermaLink="false">urn:md5:d8ea4848af513b7f9e2ec06ccd707535</guid>
    <pubDate>lun, 06 oct 2008 17:02:00 +0200</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>nokia</category><category>planet</category><category>qt</category><category>trolltech</category>    
    <description>    &lt;p&gt;En une semaine sont sortie les versions 4.4.2 et 4.4.3 de &lt;em&gt;Qt&lt;/em&gt;.&lt;/p&gt;


&lt;p&gt;La version 4.4.2 corrige de nombreux bugs (dont des fuites mémoires sur la partie &lt;em&gt;XmlPatterns&lt;/em&gt;). Vous pouvez trouver la listes des changements &lt;a href=&quot;http://www.shadoware.org/public/billets/qt/changes-4.4.2&quot;&gt;attachée&lt;/a&gt; au billet, ou dans l'archive &lt;em&gt;Qt&lt;/em&gt; se trouvant sur le site &lt;em&gt;Trolltech&lt;/em&gt;.&lt;/p&gt;


&lt;p&gt;La version 4.4.3&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/29/#pnote-609-1&quot; id=&quot;rev-pnote-609-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt; modifie chaque entête de fichiers, les icônes, ... pour refléter l'achat de &lt;em&gt;Trolltech&lt;/em&gt; par &lt;em&gt;Nokia&lt;/em&gt;. Par la même occasion le site de &lt;em&gt;Trolltech&lt;/em&gt; a été complètement refait (&lt;a href=&quot;http://trolltech.com&quot; hreflang=&quot;en&quot;&gt;http://trolltech.com&lt;/a&gt;).&lt;/p&gt;


&lt;p&gt;Donc si vous avez la version 4.4.2, il n'est pas nécessaire de récupérer la 4.4.3 (sauf si vous souhaiter absolument la dernière version au nom de Nokia), par contre si vous êtes encore à la version 4.4.0 ou 4.4.1, il peut être intéressant d'installer la dernière version (suivant les fonctionnalités que vous utilisez).&lt;/p&gt;


&lt;p&gt;Enfin, la question, sans réponse, est, est-ce que le site de &lt;em&gt;Trolltech&lt;/em&gt; et de &lt;em&gt;Nokia&lt;/em&gt; vont fusionner ou vont-il rester séparer&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/29/#pnote-609-2&quot; id=&quot;rev-pnote-609-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt;&amp;nbsp;?&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/29/#rev-pnote-609-1&quot; id=&quot;pnote-609-1&quot;&gt;1&lt;/a&gt;] http://trolltech.com/about/news/qt-4.4.3-released&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/29/#rev-pnote-609-2&quot; id=&quot;pnote-609-2&quot;&gt;2&lt;/a&gt;] ce dernier est tout de même plus pratique, je trouve&lt;/p&gt;&lt;/div&gt;
</description>
    
          <enclosure url="http://www.shadoware.org/public/billets/qt/changes-4.4.3"
      length="1221" type="text/plain" />
          <enclosure url="http://www.shadoware.org/public/billets/qt/changes-4.4.2"
      length="19829" type="text/plain" />
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/09/29/QT-442-puis-QT-443-est-sortie#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/09/29/QT-442-puis-QT-443-est-sortie#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/609</wfw:commentRss>
      </item>
    
  <item>
    <title>Paquet Debian et Qt</title>
    <link>http://www.shadoware.org/index.php/post/2008/09/08/45-paquet-debian-et-qt</link>
    <guid isPermaLink="false">urn:md5:98bc4b24cff491d05aba301c4e3acd97</guid>
    <pubDate>lun, 08 sep 2008 20:45:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>debian</category><category>dépots</category><category>paquets</category><category>planet</category><category>qmake</category><category>qt</category><category>trolltech</category>    
    <description>&lt;p&gt;A titre personnel je fabrique quelques programmes en Qt. Comme j'utilise un système &lt;em&gt;Gnu/Debian&lt;/em&gt;, j'ai cherché à fabriquer des paquets pour mon système (plus pour le plaisir qu'autre chose, car la plus grande partie de mes utilisateurs sont sous &lt;em&gt;MS/Windows&lt;/em&gt;).&lt;/p&gt;


&lt;p&gt;Ce billet explique la création de paquet &lt;em&gt;Gnu/Debian&lt;/em&gt; pour des applications Qt 4 utilisant QMake&lt;/p&gt;    &lt;h3&gt;Installation des paquets&lt;/h3&gt;


&lt;p&gt;Pour la création des paquets pour des programmes utilisant &lt;code&gt;qmake&lt;/code&gt;, il faut &lt;code&gt;cdbs, dh_make, dpkg-buildpackage&lt;/code&gt;.&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;aptitude &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt; cdbs dh-&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;make&lt;/span&gt; fakeroot devscripts&lt;/pre&gt;


&lt;h3&gt;Création du paquet&lt;/h3&gt;


&lt;h4&gt;Préparation&lt;/h4&gt;


&lt;p&gt;Vous pouvez donc choisir un de vos programmes que vous voulez empaqueter. Pour cela vous allez commencer par nettoyer l'arborescence de votre projet pour retirer les fichiers de sauvegarde ainsi que les fichiers de construction (&lt;code&gt;*~ *.o&lt;/code&gt;, ...). Ce petit nettoyage va permettre d'avoir un paquet source &lt;em&gt;propre&lt;/em&gt;.&lt;/p&gt;


&lt;p&gt;Il faut que vous placiez les sources dans un dossier du nom de &lt;code&gt;&amp;lt;programme&amp;gt;-&amp;lt;version&amp;gt;&lt;/code&gt;.&lt;/p&gt;


&lt;p&gt;Voici un exemple de fichier projet&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
TARGET = qgenconfig
TEMPLATE = app

CONFIG += exceptions warn_on qt
QT += xml

HEADERS += src/loadconfigimpl.h \
   src/setupfile.h \
   src/configfile.h \
   src/p_configfile.h
SOURCES += src/loadconfigimpl.cpp \
   src/setupfile.cpp \
   src/main.cpp \
   src/configfile.cpp
FORMS = ui/loadconfig.ui

DESTDIR = bin
MOC_DIR = build
OBJECTS_DIR = build
UI_DIR = build
&lt;/pre&gt;


&lt;p&gt;Pour générer le &lt;code&gt;Makefile&lt;/code&gt;, vous pouvez faire comme d'habitude&amp;nbsp;:&lt;/p&gt;
&lt;pre class=&quot;bash&quot;&gt;qmake-qt4 qgenconfig.pro&lt;/pre&gt;


&lt;h4&gt;Création des scripts&lt;/h4&gt;


&lt;p&gt;Pour créer les paquets, il faut un ensemble de script dans le dossier &lt;code&gt;debian&lt;/code&gt;. Pour se faciliter la vie, il est possible de créer les scripts avec &lt;code&gt;dh_make&lt;/code&gt;.&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;DEBFULLNAME=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Ulrich Van Den Hekke&amp;quot;&lt;/span&gt; dh_make -e ulrich.vdh&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;@&lt;/span&gt;shadoware.org -n -s -c gpl&lt;/pre&gt;


&lt;p&gt;Voici la description de la liste des paramètres&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;code&gt;DEBFULLNAME&lt;/code&gt; indique le nom du mainteneur.&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-e&lt;/code&gt; Permet de préciser l'email (suivis de l'email).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-n&lt;/code&gt; Produit un paquet natif pour &lt;em&gt;Gnu/Debian&lt;/em&gt; (quand l'auteur fait ses paquets lui-même).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-s&lt;/code&gt; Indique que le paquet ne va contenir qu'un simple exécutable (si vous voulez faire plusieurs paquets, il suffit de ne pas mettre cette option).&lt;/li&gt;
&lt;li&gt;&lt;code&gt;-c&lt;/code&gt; Indique la licence d'utilisation (ici &lt;code&gt;gpl&lt;/code&gt;).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Vous pouvez ensuite supprimer les fichiers exemples (mais pas nécessairement si vous voulez les étudier).&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt;.ex  debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt;.EX  debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;docs  debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;dirs&lt;/span&gt;&lt;/pre&gt;


&lt;h5&gt;Paquet simple&lt;/h5&gt;


&lt;p&gt;Nous allons commencer par créer un paquet simple. Cela signifie qu'il n'y aura qu'un seul exécutable dans le paquet (pas de librairie, ...).&lt;/p&gt;


&lt;p&gt;Dans le fichier &lt;code&gt;control&lt;/code&gt;, il faut que vous renseignez les informations du paquet que vous allez créer.&lt;/p&gt;

&lt;pre&gt;
Source: qgenconfig
Section: devel
Priority: extra
Maintainer: Ulrich Van Den Hekke &amp;lt;ulrich.vdh@shadoware.org&amp;gt;
Build-Depends: debhelper (&amp;gt;= 7)
Standards-Version: 3.7.3
Homepage: http://projects.shadoware.org/qgenconfig

Package: qgenconfig
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Create a config class in Qt after loading a XML file.
 Load an XML description file of a settings object and create a class
 that can be used to load and save information in a QSettings class. To
 load information structure are used.
&lt;/pre&gt;


&lt;p&gt;Dans le paquet ci-dessus, on créait un paquet binaire et un paquet source. Les variables de dépendance (dans &lt;code&gt;Depends&lt;/code&gt;) sont remplacées automatiquement à la génération du paquet. La description est celle écrite dans &lt;code&gt;aptitude&lt;/code&gt;. La première ligne est la description courte, les suivantes (précédées d'un espace) sont la description longue.&lt;/p&gt;


&lt;p&gt;Ensuite on va remplacer le fichier &lt;code&gt;debian/rules&lt;/code&gt; en utilisant &lt;code&gt;cdbs&lt;/code&gt;&amp;nbsp;:&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/usr/bin/make -f&lt;/span&gt;
include &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;cdbs&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;rules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debhelper.mk
include &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;cdbs&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;class&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;qmake.mk
&lt;span style=&quot;color: #007800;&quot;&gt;QMAKE=&lt;/span&gt;qmake-qt4
&amp;nbsp;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;qgenconfig::
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;DEB_DESTDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;DEB_DESTDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;qgenconfig $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;DEB_DESTDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;/pre&gt;


&lt;p&gt;En premier lieu on définit les variables pour la compilation, puis ensuite on définit les opérations d'installations dans la cible &lt;code&gt;install/qgenconfig&lt;/code&gt;&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/08/#pnote-36-1&quot; id=&quot;rev-pnote-36-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;.
Dans les opérations, vous allez copier votre exécutable dans le dossier de génération de debian (dossier &lt;code&gt;debian/&amp;lt;cible&amp;gt;&lt;/code&gt;).&lt;/p&gt;


&lt;h5&gt;Paquet multiple&lt;/h5&gt;


&lt;p&gt;Créer plusieurs paquets à partir d'une même source avec &lt;code&gt;cdbs&lt;/code&gt; est assez simple. Il suffit de rajouter des cibles, correspondantes au fichier &lt;code&gt;control&lt;/code&gt;, dans le fichier &lt;code&gt;rules&lt;/code&gt; .&lt;/p&gt;


&lt;p&gt;Dans le fichier de &lt;code&gt;control&lt;/code&gt; on va avoir plusieurs paquets binaires pour un seul paquet source.&lt;/p&gt;

&lt;pre&gt;
Source: xinx
Section: devel
Priority: extra
Maintainer: Ulrich Van Den Hekke &amp;lt;xinx@shadoware.org&amp;gt;
Build-Depends: debhelper (&amp;gt;= 7)
Standards-Version: 3.7.3
Homepage: http://xinx.shadoware.org/

Package: xinx
Section: devel
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, xinx-scripts (&amp;gt;= 0.7.2.0)
Recommends: xinx-plugins-services, xinx-plugins-cvs, xinx-plugins-svn
Suggests: xinx-doc
Description: XSL/JS/HTML editor for Generix
 XINX is an editor of XSL stylesheet, JavaScript, Cascading Style Sheet.
 This editor is used with egx.

Package: xinx-doc
Section: doc
Architecture: all
Depends: xinx (&amp;gt;= 0.7.2.0)
Description: Documentation for xinx
 Technical Documentation of XINX
&lt;/pre&gt;


&lt;p&gt;Nous allons définir dans le fichier &lt;code&gt;rules&lt;/code&gt; les différentes cibles que nous avons dans le fichier &lt;code&gt;control&lt;/code&gt;&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/08/#pnote-36-2&quot; id=&quot;rev-pnote-36-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt;.&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/usr/bin/make -f&lt;/span&gt;
include &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;cdbs&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;rules&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debhelper.mk
include &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;cdbs&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;class&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;qmake.mk
&lt;span style=&quot;color: #007800;&quot;&gt;QMAKE=&lt;/span&gt;qmake-qt4 project.pro
&amp;nbsp;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx::
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinxprojectwizard&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinxprojectwizard $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;bin&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&amp;nbsp;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;lib&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -a $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;libxinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;libsharedxinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;lib&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -a $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;components&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;libxinxcmp&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;*&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;lib&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;install&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc::
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;mkdir&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cp&lt;/span&gt; -a $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/*&lt;/span&gt; $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
	&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;rm&lt;/span&gt; -rf $&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;CURDIR&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;debian&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;usr&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;share&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;xinx-doc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;html&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;.svn&lt;/pre&gt;


&lt;p&gt;Ici on génère deux paquets, le paquet binaire et la documentation.&lt;/p&gt;


&lt;h4&gt;Génération du paquet&lt;/h4&gt;


&lt;h5&gt;Mise à jour des informations du paquets&lt;/h5&gt;

&lt;ul&gt;
&lt;li&gt;Pour modifier le changelog sur la version courante&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;dch -a&lt;/pre&gt;
&lt;ul&gt;
&lt;li&gt;Pour créer une nouvelle version&lt;/li&gt;
&lt;/ul&gt;
&lt;pre&gt;dch -i&lt;/pre&gt;


&lt;h5&gt;Création du paquet&lt;/h5&gt;


&lt;pre&gt;dpkg-buildpackage -rfakeroot&lt;/pre&gt;


&lt;p&gt;L'application va signer le paquet s'il trouve la clé assignée à l'utilisateur.&lt;/p&gt;


&lt;h3&gt;Création d'un dépôt&lt;/h3&gt;


&lt;p&gt;Après avoir créé des paquets, il peut-être intéressant de créer un dépôt pour installer ces paquets. voici la marche à suivre pour créer le dépôt.&lt;/p&gt;


&lt;p&gt;Sur votre serveur internet (nous ne parlerons pas ici de la mise à disposition sur Internet), vous allez devoir créer un dossier contenant votre référentiel (exemple&amp;nbsp;: &lt;code&gt;/www/sites/apt&lt;/code&gt;).&lt;/p&gt;


&lt;h4&gt;Création de l'arborescence&lt;/h4&gt;


&lt;p&gt;Vous allez devoir créer une arborescence comme suite&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;dists
   +- main 
       |- binary-i386
       |- binary-amd64
       +- source&lt;/pre&gt;


&lt;p&gt;Parmi les fichiers générés vous allez devoir mettre le fichier &lt;code&gt;.deb&lt;/code&gt; dans le dossier binaire, et les fichiers &lt;code&gt;.changes&lt;/code&gt;, &lt;code&gt;.dsc&lt;/code&gt;, et &lt;code&gt;.tar.gz&lt;/code&gt; dans le dossier &lt;code&gt;source&lt;/code&gt;.&lt;/p&gt;


&lt;h4&gt;Création d'un fichier apt-ftparchive.conf&lt;/h4&gt;


&lt;p&gt;Nous allons commencer par créer un fichier &lt;code&gt;apt-ftparchive.conf&lt;/code&gt;  dans lequel nous allons définir les fichiers à créer.&lt;/p&gt;

&lt;pre&gt;
Dir {
	ArchiveDir &amp;quot;.&amp;quot;;
	CacheDir &amp;quot;.&amp;quot;;
};

Tree &amp;quot;dists/unstable&amp;quot; {
	Sections &amp;quot;main&amp;quot;;
	Architectures &amp;quot;amd64 source&amp;quot;;
};

BinDirectory &amp;quot;dists/unstable/main/binary-amd64&amp;quot; {
	Packages &amp;quot;dists/unstable/main/binary-amd64/Packages&amp;quot;;
	Contents &amp;quot;dists/unstable/Contents-amd64&amp;quot;;
	SrcPackages &amp;quot;dists/unstable/main/source/Sources&amp;quot;;
};
&lt;/pre&gt;


&lt;h4&gt;Création du fichier apt-unstable-release.conf&lt;/h4&gt;

&lt;pre&gt;
APT::FTPArchive::Release::Origin	&amp;quot;shadoware.org&amp;quot;;
APT::FTPArchive::Release::Label		&amp;quot;shadoware.org&amp;quot;;
APT::FTPArchive::Release::Suite		&amp;quot;unstable&amp;quot;;
APT::FTPArchive::Release::Codename	&amp;quot;unstable&amp;quot;;
APT::FTPArchive::Release::Architectures	&amp;quot;amd64 source&amp;quot;;
APT::FTPArchive::Release::Components	&amp;quot;main&amp;quot;;
APT::FTPArchive::Release::Description	&amp;quot;Paquets du site Shadoware.Org&amp;quot;;
&lt;/pre&gt;


&lt;h4&gt;Création du fichier update-archive.sh&lt;/h4&gt;


&lt;p&gt;Ce fichier est celui que l'on doit exécuter pour la génération du contenu de l'arborescence&amp;nbsp;:&lt;/p&gt;

&lt;pre class=&quot;bash&quot;&gt;apt-ftparchive generate apt-ftparchive.conf
apt-ftparchive -c apt-unstable-release.conf release dists&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;unstable &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; dists&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;unstable&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;Release&lt;/pre&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/08/#rev-pnote-36-1&quot; id=&quot;pnote-36-1&quot;&gt;1&lt;/a&gt;] D'autres cibles sont disponibles (cf la doc de &lt;code&gt;cdbs&lt;/code&gt;).&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2008/09/08/#rev-pnote-36-2&quot; id=&quot;pnote-36-2&quot;&gt;2&lt;/a&gt;] A cause d'un bogue, ou d'une mauvaise utilisation, la variable &lt;code&gt;$(DEB_DESTDIR)&lt;/code&gt; ne me ramenait pas la bonne valeur, je l'ai donc remplacée par &lt;code&gt;$(CURDIR)/debian&lt;/code&gt;.&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/09/08/45-paquet-debian-et-qt#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/09/08/45-paquet-debian-et-qt#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/36</wfw:commentRss>
      </item>
    
  <item>
    <title>Rien à dire</title>
    <link>http://www.shadoware.org/index.php/post/2008/03/04/44-rien-a-dire</link>
    <guid isPermaLink="false">urn:md5:0dae5f5abfb831a396c2e6c668aaf7ef</guid>
    <pubDate>mar, 04 mar 2008 22:06:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>blog</category><category>vie</category>    
    <description>    &lt;p&gt;Salut à tous,&lt;/p&gt;


&lt;p&gt;Un blog, ça sert à raconter sa vie, enfin c'est partout ce qu'on voit sur le net. Des gens qui mettent leurs photos de vacances (moi aussi j'ai une &lt;a href=&quot;http://blog.shadoware.org/index.php?gallery&quot; hreflang=&quot;fr&quot;&gt;galerie&lt;/a&gt; avec de belles photos), qui disent leurs petits malheurs (et dans le genre on peut trouver &lt;a href=&quot;http://www.viedemerde.fr&quot; hreflang=&quot;fr&quot;&gt;http://www.viedemerde.fr&lt;/a&gt;), qui racontent leurs petites occupations, ....&lt;/p&gt;


&lt;p&gt;Et d'autres personnes sont là pour les lire, comme quoi la vie de parfaits inconnus intéressent d'autres inconnus....&lt;/p&gt;


&lt;p&gt;Bon moi j'ai rien à dire, alors du coup mon blog n'est pas très rempli. J'y mets des tutoriels, des scripts faits rapidement, mais rien qui intéresse tout le monde. M'enfin faut pas croire c'est pas People Magazine ici non plus;&lt;/p&gt;


&lt;p&gt;Alors pour les personnes intéressées, voici un peu de croquant ;). Je suis célibataire, informaticien chevronné, et je suis quelqu'un de très gentil, doux, attentionné (enfin c'est ce que je crois).
Sinon j'habite dans le nord, comme dans le film &quot;Bienvenue chez les Ch'ti&quot; &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt; mais ne vous inquiétez pas il ne fait pas si froid que ça.&lt;/p&gt;


&lt;p&gt;Je recherche un appartement sur Lille pas trop cher donc si tu passes et que tu en vends un, ben envoie moi un mail ;).&lt;/p&gt;


&lt;p&gt;Enfin voilà, une vie bien passionnante et trépidante (enfin je n'ai rien raconté non plus).&lt;/p&gt;


&lt;p&gt;A+&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/03/04/44-rien-a-dire#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/03/04/44-rien-a-dire#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/35</wfw:commentRss>
      </item>
    
  <item>
    <title>Mises à jour Gnu/Debian récentes</title>
    <link>http://www.shadoware.org/index.php/post/2008/02/18/43-mise-a-jours-gnu-debian-recente</link>
    <guid isPermaLink="false">urn:md5:6cfd2b9ca21c9d701f11bb6feba499d9</guid>
    <pubDate>lun, 18 fév 2008 18:28:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>debian</category><category>planet</category><category>update</category>    
    <description>    &lt;p&gt;Bonjour,&lt;/p&gt;


&lt;p&gt;La distribution GNU/Debian propose une nouvelle mise à jour pour sa version etch. Les points importants que je remarque, sont&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;la correction de la faille sur le noyau Linux pour toutes les machines serveurs&amp;nbsp;: Veillez à bien mettre à jour votre noyau car même si vous ne proposez pas de compte aux utilisateurs, l'escalade de privilèges peut intervenir dans une faille de sécurité de votre site Internet (cf de l'injection de code).&lt;/li&gt;
&lt;li&gt;la mise à jour de KDE, qui désormais permet à Konqueror de charger le plugin flash non libre.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Bien sûr, cette mise à jour propose également d'autres corrections de Bug et mise à jour de sécurité, ainsi que la suppression de certains paquets (soit trop miné/buggé, soit propriétaire). On peut par ailleurs retrouver le plugin flash dans les backports&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/02/18/43-mise-a-jours-gnu-debian-recente#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/02/18/43-mise-a-jours-gnu-debian-recente#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/34</wfw:commentRss>
      </item>
    
  <item>
    <title>Mémo Qt</title>
    <link>http://www.shadoware.org/index.php/post/2008/01/21/42-qabstractitemmodel-qt</link>
    <guid isPermaLink="false">urn:md5:53141e35fc9be789b2dcf98bfbf07cb9</guid>
    <pubDate>lun, 21 jan 2008 20:06:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels</category>
        <category>cmake</category><category>model</category><category>planet</category><category>qt</category>    
    <description>&lt;p&gt;Ceci est un petit mémo pour me permettre de ne pas oublier quelques astuces lors de la programmation avec Qt. En parlant de cela, je me suis commandé le livre suivant&amp;nbsp;: &lt;a href=&quot;http://www.amazon.fr/GUI-Programming-Qt4-Jasmin-Blanchette/dp/0132354160/ref=sr_11_1?ie=UTF8&amp;amp;qid=1199972515&amp;amp;sr=11-1&quot; hreflang=&quot;en&quot;&gt;C++ GUI Programming with Qt4&lt;/a&gt;.&lt;/p&gt;    &lt;h3&gt;QAbstractItemModel&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Lors de l'insertion (avec beginInsertRows()), les éléments insérés ne doivent pas contenir de sous éléments (rowCount() == 0) sous peine de causer des plantages.&lt;/li&gt;
&lt;li&gt;Un model de donnée interne, pouvant être utilisé avec QAbstractItemModel pour afficher une arborescence et étant capable de se rafraîchir à la lecture d'un fichier, se trouve dans les fichiers &lt;a href=&quot;http://xinx.shadoware.org/browser/branches/v0.7.0/libxinx/filecontentstructure.cpp&quot; hreflang=&quot;fr&quot;&gt;filecontentstructure.cpp&lt;/a&gt; et &lt;a href=&quot;http://xinx.shadoware.org/browser/branches/v0.7.0/libxinx/filecontentstructure.h&quot; hreflang=&quot;fr&quot;&gt;filecontentstructure.h&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;CMake et Qt&lt;/h3&gt;


&lt;h4&gt;Compilation d'une librairie static&lt;/h4&gt;


&lt;pre&gt;add_definitions(-DQT_SHARED)
add_library(xinxplugins STATIC ${xinxplugins_SRCS} ${xinxplugins_MOC_SRCS})&lt;/pre&gt;


&lt;h4&gt;Compilation d'un plugin&lt;/h4&gt;


&lt;h5&gt;dynamique&lt;/h5&gt;


&lt;pre&gt;add_definitions(${QT_DEFINITIONS})
add_definitions(-DQT_PLUGIN)
add_definitions(-DQT_NO_DEBUG)
add_definitions(-DQT_SHARED)
add_library(webplugin SHARED ${webplugin_SRCS} ${webplugin_MOC_SRCS})&lt;/pre&gt;


&lt;h5&gt;static&lt;/h5&gt;


&lt;pre&gt;?&lt;/pre&gt;


&lt;h4&gt;Compilation de fichier RC pour Windows&lt;/h4&gt;


&lt;pre&gt;if(WIN32)
       add_custom_command( OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/xinx_ico.obj
               COMMAND windres.exe -I${CMAKE_CURRENT_SOURCE_DIR} -o ${CMAKE_CURRENT_BINARY_DIR}/xinx_ico.obj -i${CMAKE_CURRENT_SOURCE_DIR}/${xinx_RCS}
       )
       set(xinx_RESS ${CMAKE_CURRENT_BINARY_DIR}/xinx_ico.obj)
endif(WIN32)&lt;/pre&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/01/21/42-qabstractitemmodel-qt#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/01/21/42-qabstractitemmodel-qt#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/33</wfw:commentRss>
      </item>
    
  <item>
    <title>Coupure du site</title>
    <link>http://www.shadoware.org/index.php/post/2008/01/13/40-coupure-du-site</link>
    <guid isPermaLink="false">urn:md5:757b2f60adb598c08175a4cfeeab5fde</guid>
    <pubDate>dim, 13 jan 2008 14:14:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>dédié</category>    
    <description>    &lt;p&gt;Salutation à tous,&lt;/p&gt;


&lt;p&gt;Afin de mettre à jour 2-3 trucs sur mon serveur dédié, je couperai peut-être apache pendant quelques heures. Je pense faire ça la semaine prochaine (si j'oublie pas ;))&lt;/p&gt;


&lt;p&gt;Bye&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2008/01/13/40-coupure-du-site#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2008/01/13/40-coupure-du-site#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/31</wfw:commentRss>
      </item>
    
  <item>
    <title>Joyeux noël</title>
    <link>http://www.shadoware.org/index.php/post/2007/12/25/39-joyeux-noel</link>
    <guid isPermaLink="false">urn:md5:86cacd9fb3ef2de95b457ee5e9dd2af9</guid>
    <pubDate>mar, 25 déc 2007 18:53:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>General</category>
        <category>vie</category>    
    <description>    &lt;p&gt;Je vous souhaite à tous un &lt;em&gt;Joyeux noël&lt;/em&gt;.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/12/25/39-joyeux-noel#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/12/25/39-joyeux-noel#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/30</wfw:commentRss>
      </item>
    
  <item>
    <title>1 mois de lecture</title>
    <link>http://www.shadoware.org/index.php/post/2007/12/10/37-1-mois-de-lecture</link>
    <guid isPermaLink="false">urn:md5:d8a56a378ee58bd65c4bd5995027aa86</guid>
    <pubDate>lun, 10 déc 2007 16:53:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>harry potter</category><category>livre</category><category>vie</category>    
    <description>    &lt;p&gt;Après 1 mois de lecture, lecture passionnante des 7 Harry Potter (01 novembre -01 décembre), je viens de reprendre l'écriture de mon programme et l'utilisation quotidienne de mon PC.&lt;/p&gt;


&lt;p&gt;Tant qu'à parler d'Harry Potter, je vais vous raconter la fin ... alors voilà ... euh en fait non !! je n'ai pas envie, vous n'avez qu'à le lire.&lt;/p&gt;


&lt;p&gt;Donc là, j'ai repris un peu l'écriture de mon programme et me suis plongé dans les Thread (une histoire passionnante et mon PC double coeur). Sinon j'ai aussi été chez le coiffeur, mais tout le monde s'en fou ;). Et puis sinon je regarde une série (Supernatural), la saison 1. Pas mal, sachant que ça doit faire la seconde fois que je la regarde &lt;img src=&quot;/themes/shadoware/smilies/smile.png&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Bon sur ce je vous laisse, j'ai un programme à écrire &lt;img src=&quot;/themes/shadoware/smilies/smile.png&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/12/10/37-1-mois-de-lecture#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/12/10/37-1-mois-de-lecture#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/29</wfw:commentRss>
      </item>
    
  <item>
    <title>Baisse d'activité</title>
    <link>http://www.shadoware.org/index.php/post/2007/11/14/36-baisse-d-activite</link>
    <guid isPermaLink="false">urn:md5:4319539adc7972f0948d39600470fe86</guid>
    <pubDate>mer, 14 nov 2007 14:24:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>harry potter</category><category>vie</category>    
    <description>    &lt;p&gt;Salut à tous,&lt;/p&gt;


&lt;p&gt;J'ai ces temps-ci une légère baisse d'activité chez moi. En effet le soir, au lieu de programmer, ou de m'occuper de mon site Internet, ou d'écrire un article, installé tranquillement dans le fauteuil devant le bureau, je passe mes loisirs à lire l'histoire d'un certain Harry, qui fait des tours de magies pour épater ces copains. Du coup vous comprendrez que plus rien n'avance &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Harry Potter&amp;nbsp;: Ce que j'aime bien dans ces livres, c'est qu'ils sont faciles à lire (normal, ils sont destinés, à l'origine, à un publique jeune), de plus je trouve, mis à part le coté magique, la psychologie des personnages est très bien faite. On ressent alors la pression que le personnage ressent. Mais bon, après 4 livres et demi en quelques semaines, je commence à avoir la grosse tête, et je commence à lire, plus dans une optique de vouloir les terminer, que dans l'optique de lire pour le plaisir (même si c'est un plaisir de vouloir le terminer).&lt;/p&gt;


&lt;p&gt;Bref, J'avais déjà envie de les lire depuis un petit bout de temps, mais sans vraiment avoir le temps, mais ma soeur m'a passé un livre pour le lire, et depuis je ne sais plus m'arrêter, à partir du moment où le livre est devant moi, je lis.&lt;/p&gt;


&lt;p&gt;Mais bon, rassurez-vous (quoi!! vous n'étiez pas inquiet!) il va falloir que je prenne mon courage à demain (euh&amp;nbsp;! A deux mains) et que je termine mon article ( je dois le relire) et que je l'envoie. J'ai aussi beaucoup de travail à faire sur un logiciel perso en Qt4 (&lt;a href=&quot;http://xinx.shadoware.org&quot; hreflang=&quot;fr&quot;&gt;http://xinx.shadoware.org&lt;/a&gt;) qui me prend beaucoup de mon temps libre en temps ordinaire.&lt;/p&gt;


&lt;p&gt;Et cela m'énerve un peu que toutes ces autres choses n'avancent pas, mais en même temps, ça me change de ne plus être devant le super ordinateur ... &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt; qui lui prend alors quelques vacances.&lt;/p&gt;


&lt;p&gt;A la revoyure ...&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/11/14/36-baisse-d-activite#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/11/14/36-baisse-d-activite#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/28</wfw:commentRss>
      </item>
    
  <item>
    <title>Mon serveur dédié</title>
    <link>http://www.shadoware.org/index.php/post/2007/10/19/35-mon-serveur-dedie</link>
    <guid isPermaLink="false">urn:md5:4583726f0792375bede077d11c50a503</guid>
    <pubDate>ven, 19 oct 2007 19:58:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>dédié</category><category>vie</category>    
    <description>    &lt;p&gt;Bonjours à tous, vous qui me lisez (Enfin si vous me lisez! &lt;img src=&quot;/themes/shadoware/smilies/smile.png&quot; alt=&quot;:)&quot; class=&quot;smiley&quot; /&gt; j'ai pas des masses de commentaire).&lt;/p&gt;


&lt;p&gt;Voilà, je viens de terminer l'installation de mon serveur dédié. Bon il y a encore beaucoup de choses à faire pour que le serveur dédié soit parfaitement opérationnel. Je suis donc passé par l'installation&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Un serveur Apache 2 + SSL + PHP&lt;/li&gt;
&lt;li&gt;PostgreSQL pour la plupart des besoins en base de donnée.&lt;/li&gt;
&lt;li&gt;SubVersion pour mes besoins en projet&lt;/li&gt;
&lt;li&gt;Trac pour mes besoins en suivis de projet &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/li&gt;
&lt;li&gt;Quelques applis PHP&lt;/li&gt;
&lt;li&gt;Bind&lt;/li&gt;
&lt;li&gt;Postfix (en SMTP)&lt;/li&gt;
&lt;li&gt;IMAP/IMAP-SSL&lt;/li&gt;
&lt;li&gt;Un Webmail&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Que du bonheur&amp;nbsp;! L'installation n'est pas encore terminée. Il y a encore du travail, je vais par exemple voir pour la création d'une Mailing-List, voir à &lt;em&gt;envoyer&lt;/em&gt; mes vieux projets sous SubVersion,  ... J'écris également à l'heure actuelle un article contenant toutes les étapes d'installation, document que je publierai dans une revue. Mais comme je suis plutôt lent à écrire, il me faut beaucoup de temps avant de sortir un tel document ;). Par contre je vais voir à ce qu'il soit le plus complet possible et essayer de ne rien oublier. Tellement de choses à dire &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/10/19/35-mon-serveur-dedie#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/10/19/35-mon-serveur-dedie#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/27</wfw:commentRss>
      </item>
    
  <item>
    <title>Le retour du roi</title>
    <link>http://www.shadoware.org/index.php/post/2007/10/09/34-test</link>
    <guid isPermaLink="false">urn:md5:1a90e6896e3638ada525bf97d2c0bb38</guid>
    <pubDate>mar, 09 oct 2007 11:53:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>article</category><category>dédié</category>    
    <description>    &lt;p&gt;Et voilà j'ai encore déménagé. Vous allez pouvoir retrouver mon site à l'adresse suivante&amp;nbsp;: http://www.shadoware.org et mon blog à http://blog.shadoware.org.&lt;/p&gt;


&lt;p&gt;N'est-ce pas que c'est beau&amp;nbsp;?&lt;/p&gt;


&lt;p&gt;J'en profite pour vous informer que j'écris un article sur l'installation d'un serveur dédié. Le serveur dédié dont je me suis inspiré, c'est le mien, et ça tombe bien. Par contre l'article en question paraitra dans un Magazine Linux &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;
Je vous tiendrais informé.&lt;/p&gt;


&lt;p&gt;A bientôt.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/10/09/34-test#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/10/09/34-test#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/26</wfw:commentRss>
      </item>
    
  <item>
    <title>Déménagement</title>
    <link>http://www.shadoware.org/index.php/post/2007/09/09/33-demenagement</link>
    <guid isPermaLink="false">urn:md5:773ec6b1db35ffd146d308ca1c778fdb</guid>
    <pubDate>dim, 09 sep 2007 14:02:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>dédié</category><category>vie</category>    
    <description>    &lt;p&gt;Hello à tous,&lt;/p&gt;


&lt;p&gt;Je vais bientôt déménager, mais à défaut de trouver un appartement, ce sera un serveur dédié qui sera ma destination. J'y stockerai mon lit, mes placards et quelques couvertures (mouarf que je me marre !!!!).
J'ai un hébergement chez kimsufi, et je vais donc migrer un peu à la fois mon site vers ce serveur dédié. En attendant ce petit déménagement&amp;nbsp;: plus de poste de billet, ni de commentaire, pour éviter d'en perdre dans la foulée ;).&lt;/p&gt;


&lt;p&gt;A bientôt, ...
Ulrich&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/09/09/33-demenagement#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/09/09/33-demenagement#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/25</wfw:commentRss>
      </item>
    
  <item>
    <title>KMDAlert - Logiciel de surveillance de périphériques RAID</title>
    <link>http://www.shadoware.org/index.php/post/2007/08/17/32-kmdalert</link>
    <guid isPermaLink="false">urn:md5:43e570ed02135302a4986b203b2a5081</guid>
    <pubDate>ven, 17 aoû 2007 16:12:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>kmdalert</category><category>mdadm</category><category>planet</category><category>raid</category>    
    <description>&lt;p&gt;Bonjour à tous,&lt;/p&gt;


&lt;p&gt;Possédant chez moi des disques durs en RAID logiciel &lt;em&gt;Gnu/Linux&lt;/em&gt;, j'ai toujours ressenti le besoin d'avoir une application graphique minimale pour m'avertir des changements d'états du RAID. (Par exemple un disque dur est défectueux, le RAID est dégradé, le RAID est en reconstruction). Et, par exemple, dans le cas de la reconstruction être averti à la fin de la reconstruction.&lt;/p&gt;    &lt;p&gt;Bon c'est vrai que &lt;code&gt;mdadm&lt;/code&gt; permet d'être averti par mail de problème sur le périphérique RAID, mais ce n'est pas très graphique tout ça ;).&lt;/p&gt;


&lt;p&gt;J'ai donc cherché une telle application graphique (j'ai pensé à EVMS mais hélas ce n'est pas ce que je recherche). Ne trouvant rien de satisfaisant, j'ai décidé d'écrire ma propre application.&lt;/p&gt;


&lt;p&gt;Bien que cette application a été écrite dans mon cas particulier (un RAID 1) je me suis dit qu'elle devrait fonctionner pour les autres RAIDs et intéresser d'autres personnes. (&lt;ins&gt;ATTENTION&amp;nbsp;: Les icônes choisies sont moches, si un graphiste veut me proposer d'autres icônes, je reste ouvert aux propositions&lt;/ins&gt;)&lt;/p&gt;


&lt;p&gt;Pour fonctionner l'application lit le dossier &lt;code&gt;/sys/block&lt;/code&gt;, il faut donc que ce dernier soit monté. L'application a été testé sur un noyau 2.6.18.&lt;/p&gt;


&lt;p&gt;Je mets donc à votre disposition ce petit programme, écris en &lt;em&gt;C++&lt;/em&gt;. L'application a été écrite en utilisant des classes KDE mais peut sûrement fonctionner sous GNOME.&lt;/p&gt;


&lt;p&gt;Vous pouvez trouver le source du logiciel à ce &lt;a href=&quot;http://ulrich.vdh.free.fr/download/kmdalert-0.1.tar.gz&quot; hreflang=&quot;fr&quot;&gt;lien&lt;/a&gt; (&lt;a href=&quot;http://ulrich.vdh.free.fr/download/kmdalert-0.1.tar.gz.asc&quot; hreflang=&quot;fr&quot;&gt;signature&lt;/a&gt;).&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/08/17/32-kmdalert#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/08/17/32-kmdalert#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/24</wfw:commentRss>
      </item>
    
  <item>
    <title>Debian etch - Clé USB</title>
    <link>http://www.shadoware.org/index.php/post/2007/08/04/23-debian-etch-cle-usb</link>
    <guid isPermaLink="false">urn:md5:c6317ed8af5191d3802439e3c67d75d4</guid>
    <pubDate>sam, 04 aoû 2007 13:17:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>debian</category><category>live</category><category>planet</category><category>usb</category>    
    <description>&lt;p&gt;Il peut être parfois utile de se déplacer ici et là avec une distribution Linux &lt;em&gt;clé en main&lt;/em&gt; sans se trimbaler toujours avec un ordinateur portable ou un CD.&lt;/p&gt;


&lt;p&gt;La clé USB devient alors très utile atteignant aujourd'hui des tailles de l'ordre de 2G pour pas trop cher&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-22-1&quot; id=&quot;rev-pnote-22-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. De petite taille, elle peut être utilisée dans des endroits ayant des ordinateurs avec un système d'exploitation propriétaire (ou un autre système libre, ou même pas sans système) mais permettant de démarrer sur un périphérique externe (une clé USB par exemple).&lt;/p&gt;


&lt;p&gt;L'utilité peut-être variable&amp;nbsp;:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Surfer avec une plus grande tranquillité&lt;/li&gt;
&lt;li&gt;Utiliser ses logiciels favoris ( &lt;code&gt;Amarok&lt;/code&gt;, &lt;code&gt;KMyMoney&lt;/code&gt;, &lt;code&gt;KDevelop&lt;/code&gt;, ... )&lt;/li&gt;
&lt;li&gt;Utiliser une interface graphique, bien sûr, meilleure.&lt;/li&gt;
&lt;li&gt;Utiliser dans un système embarqué.&lt;/li&gt;
&lt;li&gt;Tester les ordinateurs portables dans les magasins&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;J'ai trouvé différents sites, tel que &lt;a href=&quot;http://www.breizh-ardente.fr/dotclear/index.php?2006/12/03/57-usbuntu-ou-comment-installer-ubuntu-sur-un-disque-clef-usb-en-mode-persistant&quot;&gt;Ubuntu en mode persistant&lt;/a&gt; permettant d'installer une distribution Ubuntu sur une clé USB ou un disque dur USB.
L'inconvénient de cette méthode est qu'il n'est pas possible d'installer uniquement ce que l'on souhaite partant obligatoirement d'une base LiveCD.&lt;/p&gt;


&lt;p&gt;Ensuite j'ai trouvé d'autres sites, tels que &lt;a href=&quot;http://feraga.com/node/25&quot;&gt;Howto Install a Debian GNU/Linux system onto a USB flash thumb drive&lt;/a&gt; et &lt;a href=&quot;http://www.debian-administration.org/articles/179&quot;&gt;Installing Debian onto USB flash media with everything encrypted.&lt;/a&gt; dont je me suis inspiré pour écrire ce tutoriel.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-22-1&quot; id=&quot;pnote-22-1&quot;&gt;1&lt;/a&gt;] J'ai par ailleurs acheté récemment une clé USB de 2Go à cet effet pour à peine 15 euros&lt;/p&gt;&lt;/div&gt;
    &lt;h3&gt;Préparation de la clé&lt;/h3&gt;


&lt;h4&gt;Modules&lt;/h4&gt;


&lt;p&gt;Afin de pouvoir accéder à la clé USB, il faut bien évidemment avoir chargé sur sa machine &lt;em&gt;Gnu/Linux&lt;/em&gt; les modules adéquates&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# modprobe ehci_hcd
# modprobe ohci_hcd 
# modprobe usbhid
# modprobe usb_storage&lt;/pre&gt;


&lt;h4&gt;Logiciels&lt;/h4&gt;


&lt;p&gt;Nous allons considérer que nous sommes sur un système à base de &lt;em&gt;Gnu/Debian&lt;/em&gt; (&lt;em&gt;Ubuntu&lt;/em&gt; devrait pouvoir faire l'affaire). Si vous avez un autre système, il vous faut trouver un moyen d'installer le programme &lt;code&gt;debootstrap&lt;/code&gt;&lt;/p&gt;


&lt;p&gt;Sur un système &lt;em&gt;Gnu/Debian&lt;/em&gt;, il vous suffit de taper la commande, si le programme n'est pas déjà installé&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# aptitude install debootstrap&lt;/pre&gt;


&lt;h3&gt;Installation du système de base&lt;/h3&gt;


&lt;h4&gt;Partitionnement de la clé USB&lt;/h4&gt;


&lt;p&gt;En premier lieu il faut effectuer le partitionnement de la clé USB. Selon sa taille et aussi de la quantité de logiciel que vous voulez installer il faudra prévoir plus ou moins de place.&lt;/p&gt;


&lt;p&gt;Pour le partitionnement vous pouvez utiliser votre utilitaire favori (&lt;code&gt;parted&lt;/code&gt;, &lt;code&gt;qtparted&lt;/code&gt;, &lt;code&gt;fdisk&lt;/code&gt;, &lt;code&gt;cfdisk&lt;/code&gt;, ...). Le partitionnement que j'ai effectué pour ma propre clé est le suivant&amp;nbsp;:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;50Mo pour la partition &lt;strong&gt;/boot&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;1,5Go pour la partition &lt;strong&gt;/&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;le reste pour la partition &lt;strong&gt;/home&lt;/strong&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;La partition &lt;strong&gt;/home&lt;/strong&gt; a été séparée afin de pouvoir mettre la partie &lt;strong&gt;/&lt;/strong&gt; de la clé USB en &lt;em&gt;lecture seule&lt;/em&gt; (étape que je n'ai pas encore effectuée).&lt;/p&gt;


&lt;pre&gt;Disk /dev/usb/k2g: 2024 MB, 2024275968 bytes
63 heads, 62 sectors/track, 1012 cylinders
Units = cylinders of 3906 * 512 = 1999872 bytes

       Device Boot      Start         End      Blocks   Id  System
/dev/sda1                   1          26       50747   83  Linux
/dev/sda2                  27         827     1564353   83  Linux
/dev/sda3                 828        1012      361305   83  Linux&lt;/pre&gt;


&lt;p&gt;Une fois les partitions créées vous pouvez les formater pour les utiliser.&lt;/p&gt;


&lt;pre&gt;# mke2fs /dev/sda1 -L live-boot
# mke2fs /dev/sda2 -L live-root
# mke2fs /dev/sda3 -L live-home
# mount /dev/sda2 /mnt
# mkdir /mnt/boot
# mkdir /mnt/home
# mount /dev/sda1 /mnt/boot
# mount /dev/sda3 /mnt/home&lt;/pre&gt;


&lt;h4&gt;Installation à l'aide de debootstrap&lt;/h4&gt;


&lt;p&gt;Une fois les partitions montées on peut installer le système &lt;em&gt;Gnu/Debian&lt;/em&gt; sur la clé USB en utilisant l'utilitaire &lt;code&gt;debootstrap&lt;/code&gt;&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# debootstrap --arch i386 etch /mnt/ ftp://ftp2.fr.debian.org/debian/
I: Retrieving Release
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Found additional base dependencies: libdb4.2 libgnutls12 libreadline5
   libsigc++-2.0-0c2a openbsd-inetd readline-common
I: Checking component main on http://ftp.debian.org/debian...
I: Retrieving adduser
...
I: Configuring gnupg...
I: Configuring sysklogd...
I: Configuring klogd...
I: Configuring netbase...
I: Configuring openbsd-inetd...
I: Base system installed successfully.&lt;/pre&gt;


&lt;h4&gt;Dans un Chroot&lt;/h4&gt;


&lt;p&gt;Les opérations suivantes sont à faire sur l'environnement de destination, il faut donc utiliser la commande &lt;code&gt;chroot&lt;/code&gt; pour s'y placer.&lt;/p&gt;


&lt;pre&gt;# chroot /mnt '/bin/bash -i'&lt;/pre&gt;


&lt;h4&gt;Noyaux&lt;/h4&gt;


&lt;p&gt;Une fois le système de base installé, il faut le configurer et y ajouter de quoi démarrer la clé USB.&lt;/p&gt;


&lt;h5&gt;Ajustement et systèmes de fichiers&amp;nbsp;: /etc/fstab&lt;/h5&gt;


&lt;p&gt;Cela dépend de votre configuration, et du partitionnement que vous avez fait. Si vous avez fait le même partitionnement que moi vous devriez avoir un &lt;strong&gt;fstab&lt;/strong&gt; ressemblant à celui là&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;#/etc/fstab: static file system informations.
#
LABEL=live-root    /           ext2    defaults,errors=remount-ro,noatime  0   1
LABEL=live-boot    /boot           ext2    defaults,noatime,ro         0   2
LABEL=live-home    /home           ext2    defaults,noatime            0   2
proc       /proc           proc    defaults                0   0
#tmpfs     /etc/network/run    tmpfs   defaults,noatime            0   0
tmpfs      /tmp            tmpfs   defaults,noatime            0   0
tmpfs      /var/lock       tmpfs   defaults,noatime            0   0
tmpfs      /var/log        tmpfs   defaults,noatime            0   0
tmpfs      /var/run        tmpfs   defaults,noatime            0   0
tmpfs      /var/tmp        tmpfs   defaults,noatime            0   0&lt;/pre&gt;


&lt;p&gt;J'utilise le label de la partition au lieu d'utiliser le &lt;em&gt;block device&lt;/em&gt;. L'utilisation du &lt;em&gt;block device&lt;/em&gt; peut gêner si la clé USB n'est pas toujours détectée dans le même ordre&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-22-1&quot; id=&quot;rev-pnote-22-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;.
Les dossiers temporaires sont tous reportés dans un système de fichier virtuel (en mémoire) à l'aide de &lt;code&gt;tmpfs&lt;/code&gt;.&lt;/p&gt;


&lt;p&gt;Une fois le fichier &lt;strong&gt;/etc/fstab&lt;/strong&gt; configuré, il ne reste plus qu'à monter les partitions. Pour monter les partitions un simple &lt;code&gt;mount -a&lt;/code&gt; le fait. Il est aussi possible de monter les partitions une à une.&lt;/p&gt;


&lt;p&gt;&lt;ins&gt;Il est possible que la commande suivante faite hors du chroot puisse résoudre certain problème si l'application utilise udev, ...&lt;/ins&gt;&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;mount --bind /dev/ /mnt/dev/&lt;/pre&gt;


&lt;h5&gt;Le réseau&amp;nbsp;: /etc/hostname /etc/hosts&lt;/h5&gt;


&lt;p&gt;Le fichier &lt;strong&gt;/etc/hosts&lt;/strong&gt; doit contenir une ligne indiquant l'adresse du &lt;em&gt;loopback&lt;/em&gt; et le nom de la machine. Ceci afin que &lt;em&gt;KDE&lt;/em&gt; par exemple puisse démarrer&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;127.0.0.1       localhost.localdomain   localhost  liveding&lt;/pre&gt;


&lt;p&gt;Dans le fichier &lt;strong&gt;/etc/hostname&lt;/strong&gt; il faut également mettre le nom de la machine.&lt;/p&gt;


&lt;h5&gt;Apt&amp;nbsp;: /etc/apt/sources.list&lt;/h5&gt;


&lt;p&gt;Le fichier &lt;strong&gt;sources.list&lt;/strong&gt; contient les lignes par défaut suivantes&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# etch
deb ftp://ftp2.fr.debian.org/debian/ etch main contrib non-free
deb-src ftp://ftp2.fr.debian.org/debian/ etch main contrib
deb http://security.debian.org/ etch/updates main
deb-src http://security.debian.org/ etch/updates main

# etch unofficial
deb http://ftp.debian-unofficial.org/debian etch main contrib non-free restricted&lt;/pre&gt;


&lt;p&gt;Ces lignes permettent de télécharger les paquets par défaut de &lt;em&gt;Gnu/Debian&lt;/em&gt; ainsi que les paquets de sécurité, et les paquets non officiels permettant d'activer certaine fonctionnalité.&lt;/p&gt;


&lt;h5&gt;Initrd&amp;nbsp;: /etc/kernel-img.conf&lt;/h5&gt;


&lt;p&gt;Dans le fichier &lt;strong&gt;/etc/kernel-img.conf&lt;/strong&gt; on enregistre les informations suivantes (afin que &lt;em&gt;Gnu/Debian&lt;/em&gt; crée un fichier &lt;code&gt;initrd&lt;/code&gt; lors de l'installation du noyau)&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;# Kernel Image management overrides
# See kernel-img.conf(5) for details
do_symlinks = Yes
do_initrd = yes&lt;/pre&gt;


&lt;p&gt;Le fichier &lt;code&gt;initrd&lt;/code&gt; permet de charger les modules nécessaires&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-22-2&quot; id=&quot;rev-pnote-22-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt; au démarrage de &lt;em&gt;Gnu/Linux&lt;/em&gt; sur une clé USB.&lt;/p&gt;


&lt;h5&gt;Installation de paquet&lt;/h5&gt;

&lt;pre&gt;
# aptitude install initrd-tools linux-image-2.6.16-1-686
# aptitude install grub
# aptitude install localepurge
# aptitude clean
# localepurge&lt;/pre&gt;


&lt;p&gt;On installe une image du noyau, ainsi que les outils pour générer l'image &lt;code&gt;initrd&lt;/code&gt;. On installe également &lt;code&gt;grub&lt;/code&gt; qui servira à démarrer sur la clé USB. Le paquet &lt;code&gt;localepurge&lt;/code&gt; permet quant à lui de nettoyer les locales qui prennent un peu trop de place sur la clé USB. Généralement je ne conserve que les locales françaises et anglaises.&lt;/p&gt;


&lt;p&gt;Il est aussi possible d'installer quelques paquets comme un serveur graphique, même voir &lt;em&gt;KDE&lt;/em&gt;, ou encore des outils d'administration. On peut aussi installer des outils qui pourront permettre de réparer une machine.&lt;/p&gt;


&lt;h5&gt;Quelques ajustements.&lt;/h5&gt;


&lt;p&gt;Afin de ne pas écrire trop souvent sur la clé USB, on remplace quelques fichiers.&lt;/p&gt;


&lt;pre&gt;rm -f /etc/blkid.tab*
ln -s /dev/null /etc/blkid.tab
rm -f /etc/mtab
ln -s /proc/mounts /etc/mtab&lt;/pre&gt;


&lt;h3&gt;Configuration de grub&lt;/h3&gt;


&lt;p&gt;Afin que la machine puisse démarrer il faut installer &lt;code&gt;grub&lt;/code&gt; sur le secteur de démarrage de la clé USB.
Pour cela, on peut quitter le &lt;code&gt;chroot&lt;/code&gt;. Pour installer &lt;code&gt;grub&lt;/code&gt; on peut utiliser &lt;code&gt;grub-install&lt;/code&gt;&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# grub-install &lt;del&gt;recheck &lt;/del&gt;root-directory=/mnt/ /dev/sda&lt;/pre&gt;


&lt;p&gt;Normalement cela devrait fonctionner &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt; mais il est possible, si cela ne marche pas d'essayer de l'installer à l'aide de la commande &lt;code&gt;grub&lt;/code&gt; directement (attention le &lt;em&gt;hd1&lt;/em&gt; est à adapter selon votre configuration)&amp;nbsp;:&lt;/p&gt;


&lt;pre&gt;# grub
grub&amp;gt; root (hd1,0)
grub&amp;gt; setup (hd1)&lt;/pre&gt;


&lt;p&gt;Il faut également renseigner le fichier &lt;strong&gt;/mnt/boot/grub/menu.lst&lt;/strong&gt;&lt;/p&gt;


&lt;pre&gt;# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not change this entry to 'saved' or your
# array will desync and will not let you boot your system.
default        0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        5

# Pretty colours
color cyan/blue white/blue

## password &lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/&amp;#039;--md5&amp;#039;&quot; title=&quot;&amp;#039;--md5&amp;#039;&quot;&gt;'--md5'&lt;/a&gt; passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
#      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root     (hd0,0)
# makeactive
# chainloader  +1
#
# title        Linux
# root     (hd0,1)
# kernel   /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=LABEL=live-root rootdelay=5 ro quiet

## default grub root device
## e.g. groot=(hd0,0)
# groot=(hd0,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=vga=791

## should update-grub lock old automagic boot options
## e.g. lockold=false
##      lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
##      altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
##      howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
##      memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## ## End Default Options ##

title      Debian GNU/Linux, kernel 2.6.18-4-686
root       (hd0,0)
kernel     /vmlinuz-2.6.18-4-686 root=LABEL=live-root rootdelay=5 ro quiet vga=791
initrd     /initrd.img-2.6.18-4-686
savedefault

title      Debian GNU/Linux, kernel 2.6.18-4-686 (single-user mode)
root       (hd0,0)
kernel     /vmlinuz-2.6.18-4-686 root=LABEL=live-root rootdelay=5 ro quiet single
initrd     /initrd.img-2.6.18-4-686
savedefault

### END DEBIAN AUTOMAGIC KERNELS LIST&lt;/pre&gt;


&lt;h3&gt;Ajout d'un utilisateur&lt;/h3&gt;


&lt;p&gt;Enfin il ne faut pas oublier d'installer un compte utilisateur&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-22-3&quot; id=&quot;rev-pnote-22-3&quot;&gt;3&lt;/a&gt;]&lt;/sup&gt;, ainsi que changer le mot de passe &lt;em&gt;root&lt;/em&gt; à l'aide des commandes&amp;nbsp;:&lt;/p&gt;

&lt;pre&gt;
# chroot /mnt
# passwd
# adduser toto&lt;/pre&gt;


&lt;h3&gt;Redémarrage et test&lt;/h3&gt;


&lt;p&gt;Il ne reste plus qu'à démonter toutes les partitions et redémarrer la machine.&lt;/p&gt;


&lt;pre&gt;# umount -a
# exit
# reboot&lt;/pre&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-22-1&quot; id=&quot;pnote-22-1&quot;&gt;1&lt;/a&gt;] Ce qui peut arriver quand on change de machine par exemple.&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-22-2&quot; id=&quot;pnote-22-2&quot;&gt;2&lt;/a&gt;] i.e les modules USB, ...&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-22-3&quot; id=&quot;pnote-22-3&quot;&gt;3&lt;/a&gt;] Il ne faudrait pas travailler en administrateur, hein !&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/08/04/23-debian-etch-cle-usb#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/08/04/23-debian-etch-cle-usb#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/22</wfw:commentRss>
      </item>
    
  <item>
    <title>De retour</title>
    <link>http://www.shadoware.org/index.php/post/2007/08/04/25-de-retour</link>
    <guid isPermaLink="false">urn:md5:f930020e8cded8b402f64cb4783501e2</guid>
    <pubDate>sam, 04 aoû 2007 10:45:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>dédié</category><category>kde</category><category>qt</category><category>raid</category><category>vie</category>    
    <description>&lt;p&gt;Salut tout le monde,&lt;/p&gt;


&lt;p&gt;Cela fait très longtemps que je n'ai pas écrit sur ce blog&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-1&quot; id=&quot;rev-pnote-23-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. Donc me voilà de retour à écrire quelques lignes.
Bon, je suis sûr que ma vie ne vous intéresse pas et que vous vous foutez de mon voyage à &lt;a href=&quot;http://ulrich.vdh.free.fr/blog/index.php?gallery/vie-courrante/la-rochelle&quot; hreflang=&quot;fr&quot;&gt;La Rochelle&lt;/a&gt; ou de celui que j'ai fait à &lt;a href=&quot;http://ulrich.vdh.free.fr/blog/index.php?gallery/vie-courrante/tours&quot; hreflang=&quot;fr&quot;&gt;Tours&lt;/a&gt;, mais je vais quand même vous en parler un peu.  Mais rien qu'un peu.&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-1&quot; id=&quot;pnote-23-1&quot;&gt;1&lt;/a&gt;] Et certaines personnes sont là pour me le faire constater &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;&lt;/div&gt;
    &lt;h3&gt;Les aléas du métier&lt;/h3&gt;


&lt;p&gt;Donc il y a environ 2 mois de cela, j'étais parti en clientel en Belgique. Bon, même si de par chez moi, la Belgique n'est pas loin, Bruxelles est quand même à 1 heure et demi de route. J'ai donc fait l'aller-retour presque tous les jours, et je n'ai pas trouvé beaucoup le temps d'écrire&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-1&quot; id=&quot;rev-pnote-23-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. Dur de rester éveillé avec 3 heures de voiture par jour, pendant plus d'un mois et demi .... Ce projet ne m'a, bien sûr, pas déplu, ayant appris pas mal de choses au cours de ce mois et demi, même si parfois il y avait un peu de pression dans la cocotte.
Ensuite après cela, je me suis retrouvé sur un autre projet&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-2&quot; id=&quot;rev-pnote-23-2&quot;&gt;2&lt;/a&gt;]&lt;/sup&gt;, qui me prenaient jusqu'ici un peu (euphémisme ...) de temps. Je suis d'ailleurs pour l'instant toujours sur ce projet, projet que j'apprécie également.&lt;/p&gt;


&lt;p&gt;Bref le soir, un peu crevé, je n'écris pas sur mon blog, et le week-end ....&lt;/p&gt;


&lt;h3&gt;Qt4&lt;/h3&gt;


&lt;p&gt;Depuis quelques temps je m'intéresse à &lt;a href=&quot;http://trolltech.com/products/qt&quot; hreflang=&quot;en&quot;&gt;Qt4&lt;/a&gt; de la société &lt;a href=&quot;http://trolltech.com/&quot; hreflang=&quot;en&quot;&gt;Trolltech&lt;/a&gt;. Qt est un toolkit graphique permettant le développement d'application multi-plateforme (pour ceux qui ne connaissent pas). Qt est le toolkit graphique utilisé par l'environnement &lt;a href=&quot;http://www.kde.org/&quot; hreflang=&quot;en&quot;&gt;KDE&lt;/a&gt; sous Gnu/Linux.&lt;/p&gt;


&lt;p&gt;Jusqu'ici KDE 3.5 utilisait la bibliothèque Qt3. Cette bibliothèque permettait le développement d'application libre&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-3&quot; id=&quot;rev-pnote-23-3&quot;&gt;3&lt;/a&gt;]&lt;/sup&gt; sous Linux, et devenait payante pour des développements d'applications Windows (libre ou non) ainsi que pour faire des applications commerciales (Linux ou non).&lt;/p&gt;


&lt;p&gt;La version 4 de Qt permet quant à elle la création d'application Windows et Linux sous licence libre&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-4&quot; id=&quot;rev-pnote-23-4&quot;&gt;4&lt;/a&gt;]&lt;/sup&gt; à l'aide d'une version Opensource de Qt. Par contre pour le développement d'application commercial, il faut toujours payer une licence à la société Trolltech. (Un prêté pour un rendu). Cette bibliothèque est la base du future KDE 4.&lt;/p&gt;


&lt;p&gt;J'ai donc décidé de m'intéresser à cette bibliothèque, et d'apprendre à l'utiliser. J'avais d'ailleurs écrit une application sous KDE 3 en utilisant l'ancienne version de Qt (programme dont je parle ici). Ce programme n'avance malheureusement pas beaucoup. Je n'en ai pas trop la motivation en ce moment&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-5&quot; id=&quot;rev-pnote-23-5&quot;&gt;5&lt;/a&gt;]&lt;/sup&gt;. J'espère ainsi, en apprenant à utiliser cette techno qu'est Qt4 de pouvoir écrire plus tard des applications pour le futur KDE4&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-6&quot; id=&quot;rev-pnote-23-6&quot;&gt;6&lt;/a&gt;]&lt;/sup&gt;&lt;/p&gt;


&lt;p&gt;Pour cela je me suis lancé dans l'écriture d'une application en Qt4. Cette application étant projet personnel, n'est diffusée qu'à un nombre restreint de personne, pour le moment. Ce programme en Qt4 essaie d'utiliser toute la puissance du toolkit graphique&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#pnote-23-7&quot; id=&quot;rev-pnote-23-7&quot;&gt;7&lt;/a&gt;]&lt;/sup&gt;. J'utilise les outils pour faire de la Complétion, pour faire de la coloration syntaxique, surveillance de la modification des fichiers, Thread, Processus, Model/View, .... Le but de l'application est un éditeur XSL et Javascript, un peu avancé. Je peux toujours vous montrer une petite capture d'écran, qui ne vous donne qu'un petit aperçu.&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.shadoware.org/blog/images/xinx/xinx1.png&quot; alt=&quot;Capture d&amp;#039;écran de XINX&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Mouais, pas très nette cette photo ....&lt;/p&gt;


&lt;p&gt;Je passe donc depuis quelques temps déjà quelques heures le soir, et quelques heures le Week-end à écrire cet éditeur de fichier XML et Javascript. J'y ai même écris un petit module WebServices (qui ne comprend pas tout, mais bon ...).  Bon celle-ci possède encore quelques malheureux bugs, mais à part cela elle est tout à fait fonctionnelle.&lt;/p&gt;


&lt;h3&gt;Projets&lt;/h3&gt;


&lt;h4&gt;C'est RAID&lt;/h4&gt;


&lt;p&gt;Comme j'en ai déjà parlé précédemment, j'ai monté mes disques durs sur un RAID 1. Lors de coupure de courant (ou après le plantage de Gnu/Linux lors du réveil d'une mise en veille), le RAID se reconstruit. La reconstruction du RAID prend un peu de temps (presque deux heures). Je n'ai pour l'instant trouvé aucune application graphique qui permettrait de voir que le système reconstruit son RAID, où il en est, .... . Pour l'instant je dois faire un &lt;code&gt;cat /proc/mdstat&lt;/code&gt; pour avoir toutes ces informations.&lt;/p&gt;


&lt;p&gt;J'ai donc bien envie d'écrire un petit outil graphique qui permettrait de voir cela rapidement (EVMS ne me convient pas).&lt;/p&gt;


&lt;p&gt;Enfin j'ai bien envie de faire marcher cette mise en veille, continuer un peu le programme que je nomme XINX.&lt;/p&gt;


&lt;h4&gt;Serveur dédié&lt;/h4&gt;


&lt;p&gt;Je réfléchis également à l'utilité d'avoir son propre serveur dédié. Je pense par exemple au billet suivant sur le site &lt;a href=&quot;http://linuxfr.org/comments/854857.html#854857&quot; hreflang=&quot;fr&quot;&gt;LinuxFR&lt;/a&gt; qui parle du serveur dédié http://www.kimsufi.com/&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hébergement site&lt;/li&gt;
&lt;li&gt;Stockage d'un Subversion pour mes différents projets&lt;/li&gt;
&lt;li&gt;Un serveur IMAP me permettant d'accéder à mes mails perso de n'importe où&lt;/li&gt;
&lt;li&gt;Backup crypté.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Quel est également l'utilité par rapport à un serveur tournant 24h/24 dans son chez soi&amp;nbsp;?&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-1&quot; id=&quot;pnote-23-1&quot;&gt;1&lt;/a&gt;] Bien que sans ça, je n'aurais pas forcément trouvé le temps non plus&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-2&quot; id=&quot;pnote-23-2&quot;&gt;2&lt;/a&gt;] qui me permet de changer un peu des habituels projets.&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-3&quot; id=&quot;pnote-23-3&quot;&gt;3&lt;/a&gt;] sous licence GPL&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-4&quot; id=&quot;pnote-23-4&quot;&gt;4&lt;/a&gt;] toujours GPL&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-5&quot; id=&quot;pnote-23-5&quot;&gt;5&lt;/a&gt;] surtout que je vois des applications tel que Clonzilla, Partimage, ... qui fonctionnent très bien, ils ne leur manquent plus qu'une bonne interface graphique &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt;&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-6&quot; id=&quot;pnote-23-6&quot;&gt;6&lt;/a&gt;] Même si je n'écris pas énormément d'application pour la communauté, j'ai toujours la profonde motivation de le faire. Il ne reste plus qu'à trouver le projet qui me motive suffisamment.&lt;/p&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/08/04/#rev-pnote-23-7&quot; id=&quot;pnote-23-7&quot;&gt;7&lt;/a&gt;] que je parle bien moi !!&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/08/04/25-de-retour#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/08/04/25-de-retour#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/23</wfw:commentRss>
      </item>
    
  <item>
    <title>Within Temptation</title>
    <link>http://www.shadoware.org/index.php/post/2007/03/18/22-within-templation</link>
    <guid isPermaLink="false">urn:md5:53a893cc78d4da27dd3bec182926b76b</guid>
    <pubDate>dim, 18 mar 2007 15:46:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>musique</category><category>vie</category><category>within temptation</category>    
    <description>    &lt;p&gt;Comme tout bon informaticien qui se doit, j'ai une vie de marginal et, comme il se doit j'écoute de la musique marginale. Quoi donc&amp;nbsp;? Du Métal&lt;sup&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/03/18/#pnote-21-1&quot; id=&quot;rev-pnote-21-1&quot;&gt;1&lt;/a&gt;]&lt;/sup&gt;. Bon Ok Within Temptation c'est pas vraiment du métal (moins hard, plus soft). Mais bon, j'ai découvert ce groupe en même temps que d'autres de nom tel que Rammstein, Apocalyptica, ...&lt;/p&gt;


&lt;p&gt;Je ne peux que conseiller l'album que j'écoute en boucle de nom Mother Earth.&lt;/p&gt;


&lt;p&gt;Bon tout ça pour dire que ce groupe passe au Zénith le 28 avril, et que je vais y être.
Je vais pouvoir passer une très bonne soirée et ceci avec de très bons amis (des comme on n'en fait plus!!).&lt;/p&gt;
&lt;div class=&quot;footnotes&quot;&gt;&lt;h4&gt;Notes&lt;/h4&gt;
&lt;p&gt;[&lt;a href=&quot;http://www.shadoware.org/index.php/post/2007/03/18/#rev-pnote-21-1&quot; id=&quot;pnote-21-1&quot;&gt;1&lt;/a&gt;] En quoi le métal est-ce marginal ? Le métal n'est pas pour moi si marginal que ça, mais il m'arrive souvent quand je dis que j'écoute du métal qu'on me regarde de travers .... En même temps ça n'a rien à voir avec Lorie ou autre sexe symbol &lt;img src=&quot;/themes/shadoware/smilies/wink.png&quot; alt=&quot;;)&quot; class=&quot;smiley&quot; /&gt; (juste parce qu'elles se mettent à moitié nue sur scène, hein!!) que les jeunes de maintenant écoutent.&lt;/p&gt;&lt;/div&gt;
</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2007/03/18/22-within-templation#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2007/03/18/22-within-templation#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/21</wfw:commentRss>
      </item>
    
  <item>
    <title>Captchas</title>
    <link>http://www.shadoware.org/index.php/post/2006/12/19/21-captchas</link>
    <guid isPermaLink="false">urn:md5:5cc94d6a194c2e36a1ce1721d99b582f</guid>
    <pubDate>mar, 19 déc 2006 13:55:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Ma Vie</category>
        <category>blog</category><category>captchas</category>    
    <description>    &lt;p&gt;Bonjour à tous,&lt;/p&gt;


&lt;p&gt;Ayant malheureusement plus de spam que de véritable commentaire sur ce site, j'ai installé un système de Captchas (désolé pour les personnes mal-voyantes). Un Captchas est un système permettant de faire le test de Turing (vérifier que la personne qui ajoute un commentaire est un être humain et non un robot).
Pour l'instant j'en avais marre de retrouver sur mon site et dans ma boite mail une série de commentaires pour du viagra, des casinos, ou je ne sais quoi d'autre.
Si jamais un jour ce site devient un véritable nid à commentaire, je chercherai un autre système s'il y a lieu. Mais je trouve le système actuel intéressant&amp;nbsp;:&lt;/p&gt;


&lt;p&gt;Celui-ci propose aléatoirement un raisonnement logique au format text ou une image, ...
Si le système vous empêche donc d'ajouter un commentaire, vous pouvez  rafraichir la page pour avoir un autre système.&lt;/p&gt;


&lt;p&gt;Si ce système vous gêne n'hésitez pas à m'envoyer un mail (ou ajouter un commentaire) pour me l'expliquer, ainsi que les raisons de votre gêne.&lt;/p&gt;</description>
    
    
    
          <comments>http://www.shadoware.org/index.php/post/2006/12/19/21-captchas#comment-form</comments>
      <wfw:comment>http://www.shadoware.org/index.php/post/2006/12/19/21-captchas#comment-form</wfw:comment>
      <wfw:commentRss>http://www.shadoware.org/index.php/feed/atom/comments/20</wfw:commentRss>
      </item>
    
  <item>
    <title>Sauvegarde automatique 0.9</title>
    <link>http://www.shadoware.org/index.php/post/2006/10/16/20-script-de-sauvegarde-automatique</link>
    <guid isPermaLink="false">urn:md5:035f32068eb22c5626453fd612ea6b00</guid>
    <pubDate>lun, 16 oct 2006 10:11:00 +0000</pubDate>
    <dc:creator>Ulrich VANDENHEKKE</dc:creator>
        <category>Logiciels libres</category>
        <category>backup</category><category>network</category><category>planet</category><category>script</category><category>usb</category>    
    <description>&lt;p&gt;Ce billet concerne une application, de mon cru, écrite en &lt;code&gt;bash&lt;/code&gt;.&lt;/p&gt;


&lt;p&gt;Elle utilise l'application &lt;code&gt;dar&lt;/code&gt; pour effectuer des sauvegardes et les copier sur un périphérique USB ou/et sur le réseau.
Tous les patchs, corrections, améliorations sont les bienvenues sur cette application maison.&lt;/p&gt;


&lt;p&gt;Pour fonctionner l'application se configure à l'aide d'un fichier du dossier &lt;code&gt;/etc&lt;/code&gt; qui permet de déterminer une liste de dossier à sauvegarder (&lt;code&gt;/etc/autobackup&lt;/code&gt;). Dans ce fichier, on y défini le dossier à sauvegarde, le dossier de destination, le nombre de sauvegarde incrémentale (ou dit d'une autre facon, au bout de combien fois faut-il créer une nouvelle sauvegarde compléte?).&lt;/p&gt;


&lt;p&gt;Il permet aussi de définir des points de copie où l'on place les différentes sauvegardes. (Ex: un périphérique USB, un dossier SSH).
Ces points sont, bien sûr, utilisés seulement s'ils existent. Le fichier est copié sur le périphérique USB, s'il est branché, sur la machine distante si elle est allumée, ....&lt;/p&gt;



&lt;p&gt;Il ne reste plus qu'à configurer ces petits scripts et les mettre dans un cron&lt;/p&gt;    &lt;h3&gt;Contenu exemple du fichier de configuration&lt;/h3&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# This config file make relation for backup&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Options&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_OPT=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-v -s 4613734400 -D -z9 -m 150&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_EXCLUDE_EXT=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-Z *.avi -Z *.bz2 -Z *.gif -Z *.gz -Z *.jpg -Z *.mov -Z *.mpg -Z *.pbm -Z *.pdf -Z *.png -Z *.pnm -Z *.Z -Z *.zip&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_EXCLUDE_PATH=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;-P phoenix/.bogofilter -P phoenix/.fonts -P phoenix/.kde/cache-maxiding -P phoenix/.kde/socket-maxiding -P phoenix/.kde/tmp-maxiding -P phoenix/.spamassassin -P phoenix/.thumbnails -P phoenix/.turboprint -P phoenix/.unison -P phoenix/.wesnoth -P phoenix/.widelands -P phoenix/.wine* -P phoenix/usr -P phoenix/virtuel -P .Trash-* -P phoenix/tmp&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Copy Backup&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;COPYTO=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;usbdrive network&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Copy to usb drive&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;usbdrive_type=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;usb&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;usbdrive_dev=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/dev/usb/disk1&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;usbdrive_mountpoint=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/media/disque/&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;usbdrive_pathname=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;backup/&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Copy to network&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;network_type=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;net&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;network_host=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;miniding&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;network_user=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;phoenix&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# no network_pass : use ssh key for backup&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;network_dir=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;/home/phoenix/backup&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Home&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;home_name=&lt;/span&gt;maxiding_home
&lt;span style=&quot;color: #007800;&quot;&gt;home_source=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;home_destination=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;gravure&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dar&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;home&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;home_inc_max=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Etc&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;etc_name=&lt;/span&gt;maxiding_etc
&lt;span style=&quot;color: #007800;&quot;&gt;etc_source=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;etc_destination=&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;gravure&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;dar&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;etc_inc_max=&lt;/span&gt;&lt;span style=&quot;color: #000000;&quot;&gt;10&lt;/span&gt;&lt;/pre&gt;


&lt;h3&gt;Sauvegarde automatique&lt;/h3&gt;

&lt;pre class=&quot;bash&quot;&gt;&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#!/bin/sh&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#############################################################################&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   Copyright (C) 2006 by Ulrich Van Den Hekke                            ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   ulrich.vdh@free.fr                                                    ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##                                                                         ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   This program is free software; you can redistribute it and/or modify  ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   it under the terms of the GNU General Public License as published by  ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   the Free Software Foundation; either version 2 of the License, or     ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   (at your option) any later version.                                   ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##                                                                         ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# /var &lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   This program is distributed in the hope that it will be useful,       ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   but WITHOUT ANY WARRANTY; without even the implied warranty of        ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   GNU General Public License for more details.                          ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##                                                                         ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   You should have received a copy of the GNU General Public License     ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   along with this program; if not, write to the                         ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   Free Software Foundation, Inc.,                                       ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;##   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             ##&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;#############################################################################&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; -e &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;autobackup &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt;
    . &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;etc&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;/&lt;/span&gt;autobackup
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;else&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Please configure the autobackup config file&amp;quot;&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$#&lt;/span&gt; -ne &lt;span style=&quot;color: #000000;&quot;&gt;1&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Please specify a project to backup&amp;quot;&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;2&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Define name of variable to use&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;var_name=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\$&lt;/span&gt;$1_name&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;var_source=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\$&lt;/span&gt;$1_source&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;var_destination=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\$&lt;/span&gt;$1_destination&amp;quot;&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;var_inc_max=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;&lt;span style=&quot;color: #000099; font-weight: bold;&quot;&gt;\$&lt;/span&gt;$1_inc_max&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Define content of variable for the project&lt;/span&gt;
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_SRC=&lt;/span&gt;`&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;eval&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$var_source&lt;/span&gt;`
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_DST=&lt;/span&gt;`&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;eval&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$var_destination&lt;/span&gt;`
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_NAME=&lt;/span&gt;`&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;eval&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$var_name&lt;/span&gt;`
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_INCREMENTAL_MAX=&lt;/span&gt;`&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;eval&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$var_inc_max&lt;/span&gt;`
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; -z &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;$BACKUP_NAME&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#93;&lt;/span&gt; ; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;then&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Project undefined&amp;quot;&lt;/span&gt;
  &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exit&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;3&lt;/span&gt;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;fi&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_BIN=&lt;/span&gt;dar
&lt;span style=&quot;color: #007800;&quot;&gt;DATE_BACKUP=&lt;/span&gt;`&lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;date&lt;/span&gt; +&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;Y&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;m&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;%&lt;/span&gt;d`
&lt;span style=&quot;color: #007800;&quot;&gt;BACKUP_ARCHIVE=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;${BACKUP_NAME}_${DATE_BACKUP}&amp;quot;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# From config file&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# COUNT_INCREMENTAL_BACKUP&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# LAST_BACKUP&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# LAST_COMPLETE_BACKUP&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# Some options&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -v verbose&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -c archive name&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -R root place&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -s slice size&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -p slice pause&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -D backup empty dir&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -z9 compression gzip level 9&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -m for minimal size&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -Z exclude from compression&lt;/span&gt;
&lt;span style=&quot;color: #808080; font-style: italic;&quot;&gt;# -P exclude file&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; start_backup&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Backup of $BACKUP_SRC in progress ...&amp;quot;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #007800;&quot;&gt;$BACKUP_BIN&lt;/span&gt; -c &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;BACKUP_DST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;BACKUP_ARCHIVE&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;&gt; -R &lt;span style=&quot;color: #007800;&quot;&gt;$BACKUP_SRC&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$BACKUP_OPT&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$BACKUP_EXCLUDE_EXT&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$BACKUP_EXCLUDE_PATH&lt;/span&gt; &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;&amp;gt;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;BACKUP_DST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;BACKUP_NAME&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;&gt;.log
&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;
&amp;nbsp;
&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;function&lt;/span&gt; load_backup_config&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#40;&lt;/span&gt;&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#41;&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;
    &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;echo&lt;/span&gt; -n &lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;Load config file ... &amp;quot;&lt;/span&gt;
&amp;nbsp;
    &lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;if&lt;/span&gt; &lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#91;&lt;/span&gt; -e &lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;/span&gt;BACKUP_DST&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#125;&lt;/span&gt;&lt;span style=&quot;color: #000000; font-weight: bold;&quot;&gt;|&lt;/span&gt;&gt;&lt;span style=&quot;color: #007800;&quot;&gt;$&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;&amp;#123;&lt;