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

<channel>
	<title>Werk &#187; mac</title>
	<atom:link href="http://werk.feub.net/category/mac/feed/" rel="self" type="application/rss+xml" />
	<link>http://werk.feub.net</link>
	<description>Pourquoi werk? Rholala ^.^</description>
	<lastBuildDate>Tue, 27 Jul 2010 10:58:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Mise à jour un peu douloureuse d&#8217;edoras en Fedora 11</title>
		<link>http://werk.feub.net/2009/06/18/mise-a-jour-un-peu-douloureuse-dedoras-en-fedora-11/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mise-a-jour-un-peu-douloureuse-dedoras-en-fedora-11</link>
		<comments>http://werk.feub.net/2009/06/18/mise-a-jour-un-peu-douloureuse-dedoras-en-fedora-11/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 10:08:14 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[3615 tavie]]></category>
		<category><![CDATA[iPhone]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[yum]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=160</guid>
		<description><![CDATA[Et passage à l'OS 3.0 dans la foulée]]></description>
			<content:encoded><![CDATA[<p><img src="http://werk.feub.net/medias/2010/03/fedora-logo_64.png" alt="" width="64" height="64" class="ico-float-left" />Petite anecdote pour commencer ce billet, il m&#8217;aura fallu toutes ces années pour me rendre compte que le nom de mon petit serveur domestique <a href="http://fr.wikipedia.org/wiki/Edoras">edoras</a> est à une lettre près (bon allez deux, mais l&#8217;autre est plutôt muette) <a href="http://www.fedora-fr.org/">Fedora</a>. Youpie!
</p>
<h4>Leonidas est dans la place</h4>
<p>
Après une tentative plutôt infructueuse par le biais de <a href="http://fedoraproject.org/wiki/Features/PreUpgrade">preupgrade</a> &#8211; tout se passait <em>bien</em>, mais après la demande de redémarrage, j&#8217;étais toujours sous F10 &#8211; j&#8217;ai décidé de télécharger le DVD de Leonidas, ne serait-ce que pour l&#8217;avoir, et de faire la mise-à-jour.
</p>
<p>
Celle-ci s&#8217;est bien passée, mais les problèmes ont débuté avec <a href="http://fr.wikipedia.org/wiki/Yellow_dog_Updater,_Modified">YUM</a> qui n&#8217;était plus là : <strong>no module named yum</strong> et un soucis de version du paquet rpm-python. J&#8217;ai vite vu que c&#8217;était toujours la version F10 du gestionnaire de paquets qui était présente, d&#8217;où le problème de dépendance relatif à python. J&#8217;ai donc installé le <a href="http://fr.wikipedia.org/wiki/RPM_Package_Manager">RPM</a> de YUM pour F11 et tout est rentré dans l&#8217;ordre. J&#8217;ai pu mettre à jour cette F11 <em>(pas vraiment)</em> fraîchement installée.
</p>
<p>
Le gros du soucis a été du côté du serveur <a href="http://fr.wikipedia.org/wiki/Dynamic_host_configuration_protocol">DHCP</a>, celui-ci ne voulant absolument pas démarrer. Les logs m&#8217;indiquaient qu&#8217;il fallait spécifier l&#8217;interface réseau utilisée dans le <em>dhcpd.conf</em> comme j&#8217;ai deux cartes réseaux. J&#8217;ai retourné la doc d&#8217;<a href="http://www.isc.org/">ISC</a> et les forums pendant une bonne heure et demi (je n&#8217;ose pas dire deux..) pour m&#8217;apercevoir que désormais le fichier de configuration se trouve sous <em>/etc/dhcp</em> et non plus directement sous <em>/etc</em>. L&#8217;adage &laquo;&nbsp;<em>Petite cause, grands effets</em>&nbsp;&raquo; est souvent de mise en informatique &#8211; genre pour les problèmes en séries &#8211; mais là c&#8217;était &laquo;&nbsp;<em>Grand effet, petite cause</em>&laquo;&nbsp;.
</p>
<h4>OS 3.0 pour iPhone</h4>
<p>
Le passage a F11 m&#8217;a permis la mise-à-jour de l&#8217;<a href="http://www.apple.com/fr/iphone/">iPhone</a> également. Petite étape en <a href="http://www.apple.com/fr/iphone/softwareupdate/">OS</a> officiel avant le <a href="http://fr.wikipedia.org/wiki/Jailbreak_(apple)">jailbreak</a> dès qu&#8217;il sera disponible.<br />
D&#8217;apparence aucun lien entre les deux sujets de ce billet si ce n&#8217;est que j&#8217;avais besoin d&#8217;edoras pour cette opération car ma bibliothèque <a href="http://www.apple.com/fr/itunes/overview/">iTunes</a> est sur un volume <a href="http://fr.wikipedia.org/wiki/Network_File_System">NFS</a> du serveur linux, donc pas d&#8217;iTunes, pas de mise-à-jour de l&#8217;iPhone.
</p>
<p>
Au menu des nouveautés en vrac donc : enfin le copier-coller-couper, dictaphone, MMS, mode paysage généralisé, Spotlight, synchro des notes, secouer l&#8217;appareil pour mélanger&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2009/06/18/mise-a-jour-un-peu-douloureuse-dedoras-en-fedora-11/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DIG par l&#8217;exemple</title>
		<link>http://werk.feub.net/2009/02/02/dig-par-lexemple/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=dig-par-lexemple</link>
		<comments>http://werk.feub.net/2009/02/02/dig-par-lexemple/#comments</comments>
		<pubDate>Mon, 02 Feb 2009 07:28:53 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=4</guid>
		<description><![CDATA[Interrogeons les serveurs DNS]]></description>
			<content:encoded><![CDATA[<p><a title="Wikipedia" href="http://fr.wikipedia.org/wiki/Dig_(programme_informatique)">dig</a> est un outil en ligne de commande d&#8217;interrogation de serveurs <a title="Wikipedia" href="http://fr.wikipedia.org/wiki/Domain_Name_System">DNS</a>. Il permet d&#8217;avoir des renseignements sur tout les types d&#8217;enregistrements (NS, A, CNAME, etc) et plus encore. Il n&#8217;est pas aisé de trouver des infos sur son fonctionnement et la page de manuel ne comporte aucun exemple. Voici quelques utilisations classiques, mais bien utiles.</p>
<h4>Utilisation</h4>
<p>L&#8217;utilisation de la commande dig est la suivante :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">dig <span style="color: #000000; font-weight: bold;">@</span>serveur nom <span style="color: #7a0874; font-weight: bold;">type</span></pre></div></div>

<p><strong>@serveur</strong> : le serveur DNS utilisé pour la requête. <strong>nom</strong> : le nom du serveur DNS à interroger. <strong>type</strong> : le type d&#8217;enregistrement à vérifier. Mais la forme la plus simple est l&#8217;appel de la commande suivi du nom d&#8217;hôte à vérifier :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ dig feub.net</pre></div></div>

<p>Qui retourne quelque chose comme :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">; <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; DiG 9.5.1-P1-RedHat-9.5.1-1.P1.fc10 <span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt; feub.net
<span style="color: #000000; font-weight: bold;">;;</span> global options:  printcmd
<span style="color: #000000; font-weight: bold;">;;</span> Got answer:
<span style="color: #000000; font-weight: bold;">;;</span> -<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;HEADER<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">&amp;</span>lt;- opcode: QUERY, status: NOERROR, <span style="color: #c20cb9; font-weight: bold;">id</span>: <span style="color: #000000;">10503</span>
<span style="color: #000000; font-weight: bold;">;;</span> flags: qr rd ra; QUERY: <span style="color: #000000;">1</span>, ANSWER: <span style="color: #000000;">1</span>, AUTHORITY: <span style="color: #000000;">2</span>, ADDITIONAL: <span style="color: #000000;">2</span>
<span style="color: #000000; font-weight: bold;">;;</span> QUESTION SECTION:
;feub.net.                      IN      A
<span style="color: #000000; font-weight: bold;">;;</span> ANSWER SECTION:
feub.net.               <span style="color: #000000;">75788</span>   IN      A       80.93.82.79
<span style="color: #000000; font-weight: bold;">;;</span> AUTHORITY SECTION:
feub.net.               <span style="color: #000000;">75788</span>   IN      NS      NS31B.HAISOFT.net.
feub.net.               <span style="color: #000000;">75788</span>   IN      NS      NS31A.HAISOFT.net.
<span style="color: #000000; font-weight: bold;">;;</span> ADDITIONAL SECTION:
NS31A.HAISOFT.net.      <span style="color: #000000;">47403</span>   IN      A       80.93.82.79
NS31B.HAISOFT.net.      <span style="color: #000000;">41905</span>   IN      A       80.93.82.217
<span style="color: #000000; font-weight: bold;">;;</span> Query <span style="color: #000000; font-weight: bold;">time</span>: <span style="color: #000000;">2</span> msec
<span style="color: #000000; font-weight: bold;">;;</span> SERVER: 192.168.75.1<span style="color: #666666; font-style: italic;">#53(192.168.75.1)</span>
<span style="color: #000000; font-weight: bold;">;;</span> WHEN: Mon Feb  <span style="color: #000000;">2</span> <span style="color: #000000;">10</span>:<span style="color: #000000;">58</span>:<span style="color: #000000;">33</span> <span style="color: #000000;">2009</span>
<span style="color: #000000; font-weight: bold;">;;</span> MSG SIZE  rcvd: <span style="color: #000000;">122</span></pre></div></div>

<p>Beaucoup d&#8217;informations sont retournées. Le première partie renseigne sur la version même de dig utilisée, suivi des options globales, dans cet exemple : <em>printcmd</em> qui peut ne pas être affiché en utilisant l&#8217;option <em>+nocmd</em> juste après le dig. La partie qui suit &#8211; <em>Got answer</em> &#8211; apporte des informations sur le serveur. Cette partie ne sera pas affichée en ajoutant l&#8217;option <em>+nocomments</em>, mais attention car elle supprime également les entêtes de sections.<br />
Arrive la section <em>QUESTION SECTION</em> qui comme son nom l&#8217;indique affiche la question que vous avez posé au serveur DNS. Dans la forme simplifiée utilisée ici, la recherche est par défaut faite sur les enregistrements A. En général, vous savez ce que vous avez demandé, donc pour neutraliser cette partie dans le résultat, utiliser l&#8217;option <em>+noquestion</em>.<br />
Pour terminer, la réponse est affichée dans la section <em>ANSWER SECTION</em>. L&#8217;IP de feub.net est 80.93.82.79. Même cette partie du résultat peut être neutralisée avec l&#8217;option <em>+noanswer</em> (mais je ne vois pas dans quel cas on demande quelque chose sans être intéressé par la réponse&#8230;).<br />
La section <em>AUTHORITY SECTION</em> renseigne sur les serveurs DNS autoritaires du domaine. Pour ne pas afficher cette section, c&#8217;est l&#8217;option <em>+noauthority</em>.<br />
La fin affiche la section <em>ADDITIONAL SECTION</em> qui donne les IP des serveurs DNS autoritaires utilisés pour la requête. On devine comment ne pas l&#8217;afficher : <em>+noadditional</em><br />
Et le résultat se termine par des statistiques sur la requête, que l&#8217;on désactive par l&#8217;option <em>+nostats</em>.</p>
<p><span id="more-4"></span></p>
<h4>Quelques exemples</h4>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Obtenir l'adresse du serveur hébergeant feub.net</span>
$ dig feub.net A +noall +answer
<span style="color: #666666; font-style: italic;"># Obtenir la liste des serveurs de messagerie de Google</span>
$ dig google.com MX +noall +answer
<span style="color: #666666; font-style: italic;"># Obtenir la liste des serveur DNS autoritaires pour Google</span>
$ dig google.com NS +noall +answer
<span style="color: #666666; font-style: italic;"># Obtenir toutes les informations demandées ci-dessus</span>
$ dig google.com ANY +noall +answer</pre></div></div>

<p>Pour avoir un résultat court :</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ dig google.com +short</pre></div></div>

<p>Beaucoup de possibilité avec toutes ces petites options.</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2009/02/02/dig-par-lexemple/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Apache : Protéger un répertoire web</title>
		<link>http://werk.feub.net/2008/12/05/apache-proteger-un-repertoire-web/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=apache-proteger-un-repertoire-web</link>
		<comments>http://werk.feub.net/2008/12/05/apache-proteger-un-repertoire-web/#comments</comments>
		<pubDate>Fri, 05 Dec 2008 08:43:17 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=10</guid>
		<description><![CDATA[Authentification HTTP]]></description>
			<content:encoded><![CDATA[<p>
Sujet vu des milliers de fois sur le web, l&#8217;<a href="http://fr.wikipedia.org/wiki/HTTP_Authentification" title="Wikipedia">authentification <em>basique</em> HTTP</a> est relativement simple à mettre en pratique pour qui connait un peu le serveur web Apache. Ce petit article me fait office de mémo, petite piqure de rappel, sous <a href="http://www.fedora-fr.org/" title="Fedora France">Fedora 10</a>.
</p>
<h4>Configuration d&#8217;Apache</h4>
<p>
Il faut s&#8217;assurer que le serveur web <a href="http://httpd.apache.org/" title="Apache">Apache</a> puisse utiliser les fichiers .htaccess. Pour ce faire, il faut lui ajouter la directive AllowOverride AuthConfig. Ceci peut se faire directement dans le httpd.conf, mais il est recommandé &#8211; et plus clair &#8211; de ne pas y toucher et d&#8217;ajouter ses propres fichiers de configurations sous <code>/etc/httpd/conf.d/</code>. Il est en effet plus simple d&#8217;avoir plusieurs fichiers bien nommés qu&#8217;un énorme qu&#8217;il serait fastidieux d&#8217;éditer. Dans mon cas, j&#8217;ai détaché les directives concernant <code>/var/www</code> du <code>httpd.conf</code> dans un fichier <code>fab_docroot.conf</code> sous <code>/etc/httpd/conf.d/</code> (petite entorse à ce qui est dit plus haut de ne pas toucher au fichier principal. Mais c&#8217;est pour la bonne cause ;} ). Attention, je ne fais ceci que parce que je n&#8217;héberge qu&#8217;un seul site qui est directement sous <code>/var/www</code>.
</p>
<p>
Voici donc la tête des directives en question pour accepter l&#8217;authentification par .htaccess :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">&gt;</span>
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig
Order allow,deny
Allow from all
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>
Sauvegarder le fichier et redémarrer Apache :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># service httpd restart</span></pre></div></div>

<p><span id="more-10"></span></p>
<h4>Créer un fichier .htpasswd</h4>
<p>
Ce dernier ce crée avec la commande &#8230;.. <code>htpasswd</code> (sans le point bien sur), facile ;} Celle-ci génére un fichier texte contenant le (ou plusieurs) nom d&#8217;utilisateur et un hash du mot de passe associé pour l&#8217;authentification HTTP.
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># htpasswd -c /chemin/vers/fichier/du/mot-de-passe fabien</span></pre></div></div>

<p>
L&#8217;option -c crée un nouveau fichier. Pour mettre à jour un mot de passe existant, il suffit de l&#8217;enlever.
</p>
<p>
Il est conseillé de créer ce fichier en dehors de la racine des documents Apache pour que seul celui-ci puisse y avoir accès et ainsi que personne (visiteur du site) puisse le voir.<br />
Il faut s&#8217;assurer également que l&#8217;utilisateur Apache puisse le lire pour que l&#8217;authentification fonctionne. Normalement avec Fedora, cet utilisateur s&#8217;appelle Apache, le vérifier comme suit :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># grep -e '^User' /etc/httpd/conf/httpd.conf</span>
User apache</pre></div></div>

<p>
Changer le propriétaire et les droits :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># chown apache:apache /chemin/vers/fichier/du/mot-de-passe</span>
<span style="color: #666666; font-style: italic;"># chmod 0660 /chemin/vers/fichier/du/mot-de-passe</span></pre></div></div>

<p>
L&#8217;utilisateur fabien est désormais ajouté. La dernière étape consiste à configurer le serveur web pour qu&#8217;il demande de s&#8217;authentifier pour un répertoire donné. Pour l&#8217;exemple, le répertoire protégé sera sous <code>/var/www/html/secured</code>.
</p>
<p>
Création du répertoire :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># mkdir /var/www/html/secured</span></pre></div></div>

<p>
Création du fichier .htaccess avec ces directives :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">AuthType Basic
AuthName <span style="color: #ff0000;">&quot;Zone sécurisée&quot;</span>
AuthUserFile <span style="color: #000000; font-weight: bold;">/</span>chemin<span style="color: #000000; font-weight: bold;">/</span>vers<span style="color: #000000; font-weight: bold;">/</span>fichier<span style="color: #000000; font-weight: bold;">/</span>du<span style="color: #000000; font-weight: bold;">/</span>mot-de-passe
Require user fabien</pre></div></div>

<h4>Tester la configuration</h4>
<p>
Il suffit de se rendre à l&#8217;URI sécurisée pour voir la boîte de dialogue de demande d&#8217;un utilisateur apparaître : http://www.mon-site.net/admin
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200812/authbox.png" width="511" height="145" class="photoTips" title="Firefox :: Demande d'authentification" /><br />
Demande d&#8217;authentification
</div>
<p>
En cas de problème, vérifier les log d&#8217;erreurs Apache :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># tail -f /var/log/httpd/error_log</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/12/05/apache-proteger-un-repertoire-web/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Partage de clavier et souris entre PC et Mac</title>
		<link>http://werk.feub.net/2008/10/28/partage-de-clavier-et-souris-entre-pc-et-mac/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=partage-de-clavier-et-souris-entre-pc-et-mac</link>
		<comments>http://werk.feub.net/2008/10/28/partage-de-clavier-et-souris-entre-pc-et-mac/#comments</comments>
		<pubDate>Tue, 28 Oct 2008 20:31:45 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[clavier]]></category>
		<category><![CDATA[matériel]]></category>
		<category><![CDATA[souris]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=12</guid>
		<description><![CDATA[Synergy : pont entre Fedora et OS X]]></description>
			<content:encoded><![CDATA[<p>
Cet article explique comment partager un unique clavier et souris entre deux (ou plus) machines, en l&#8217;occurrence entre mon serveur <a href="http://www.fedora-fr.org/" title="Fedora France">Fedora 9</a> et mon <a href="http://www.apple.com/fr/macmini/" title="Apple">Mac Mini</a>, et explique comment fixer un bug survenant avec OS 10.5 qui ne permet pas de faire tourner le serveur <a href="http://synergy2.sourceforge.net/" title="Synergy">Synergy</a> en daemon. Le Mac qui est ma station de travail sera le serveur Synergy alors que la Fed qui officie chez moi comme un serveur fera office de client Synergy. C&#8217;est compliqué hein ;P<br />
Pour la suite, le serveur Fedora s&#8217;appellera <em>edoras.argonath.local</em> et le Mac Mini <em>perlargir.argonath.local</em>.
</p>
<h4>Installations</h4>
<p>
L&#8217;installation sur la Fedora se fait très simplement avec yum :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># yum -y install synergy</span></pre></div></div>

<p>
Pour OS X, il faut <a href="http://sourceforge.net/project/showfiles.php?group_id=59275&#038;package_id=58013" title="SourceForge">télécharger</a> l&#8217;archive et la dé-targézéder où vous voulez. J&#8217;ai mis tout ce beau monde sous <em>/usr/share</em>.
</p>
<p><span id="more-12"></span></p>
<h4>Configuration</h4>
<p>
Synergy fonctionne en client-serveur, une machine va être dédiée comme serveur de clavier-souris, dans mon cas, il s&#8217;agit du Mac. La Fedora se contentera d&#8217;attendre pour se connecter au serveur Synergy et ainsi bénéficier des périphériques du Mac.<br />
Le principe de Synergy est assez simple et logique &#8211; et permet également de s&#8217;emmêler les pinceaux lorsque le nombre de machines augmente. Il suffit de dire où sont les machines en disant par exemple : edoras est à la droite de pelargir et pelargir est à la gauche d&#8217;edoras. A noter qu&#8217;il faut le dire explicitement dans les deux sens, sinon lorsque la souris sera sur l&#8217;écran de droite, elle ne le quitterait plus si on avait omis la configuration inverse.
</p>
<p>
Sur pelargir (le Mac), créer un fichier de configuration <em>synergy.conf</em> de cette forme :
</p>
<pre lang=bash">
section: screens
screen1:
screen2:
end
section: links
screen1:
right = screen2
screen2:
left = screen1
end
</pre>
<p>
Les noms d&#8217;hôtes sont utilisés (à la place des screen1 et screen2 de l&#8217;exemple ci-dessus). C&#8217;est important car Synergy fonctionne sur <a href="http://fr.wikipedia.org/wiki/TCP/IP" title="Wikipedia">TCP/IP</a>, il utilise donc le réseau pour connaître et atteindre les machines. Il est même préférable d&#8217;utiliser les <a href="http://fr.wikipedia.org/wiki/FQDN" title="Wikipedia">FQDN</a>.<br />
De l&#8217;exemple théorique du dessus découle mon fichier de configuration :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">section: screens
pelargir.argonath.local:
edoras.argonath.local:
end
section: links
pelargir.argonath.local:
right = edoras.argonath.local
edoras.argonath.local:
left = pelargir.argonath.local
end</pre></div></div>

<h4>Test</h4>
<p>
Il est temps de tester cette configuration. Pour cela, le programme serveur <em>synergys</em> va être lancé en mode <em>foreground</em> grâce à cette commande :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>synergy<span style="color: #000000; font-weight: bold;">/</span>synergys <span style="color: #660033;">-f</span> <span style="color: #660033;">--config</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>synergy<span style="color: #000000; font-weight: bold;">/</span>synergy.conf</pre></div></div>

<p>
Côté client sur <em>edoras</em>, lancer cette commande grâce à la commande cliente <em>synergyc</em> suivie du nom du serveur:
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ synergyc <span style="color: #660033;">-f</span> pelargir.argonath.local</pre></div></div>

<p>
Si aucun message d&#8217;erreur n&#8217;apparaît sur la console, essayez de passer la souris d&#8217;un écran à l&#8217;autre, cela devrait marcher et des messages de debug devraient apparaître sur la console suivant vos actions. Par défaut, le debug est assez bavard, chaque entrée/sortie de la souris est inscrit avec ses coordonnées.<br />
En cas de soucis, voir la section <a href="http://synergy2.sourceforge.net/trouble.html" title="Synergy">troubleshooting</a> du site de Synergy.
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200810/synergy-console.png" width="540" height="359" class="photoTips" title="Synergy :: synergys -f" /><br />
synergys en mode foreground avec un debug plutôt bavard sur l&#8217;activité
</div>
<p>
Si tout fonctionne, en situation normale, il suffirait de relancer les deux programmes sans l&#8217;option -f, ce qui ferait fonctionner synergy en daemon (en arrière-plan). Mais un bug avec OS 10.5 empêche le programme de tourner.
</p>
<h4>Contournement du bug d&#8217;OS 10.5</h4>
<p>
L&#8217;astuce consiste à démarrer <em>synergys</em> grâce au super-daemon <a href="http://developer.apple.com/macosx/launchd.html" title="Apple">launchd</a> avec l&#8217;option -f. Pour cela, il faut créer un fichier <em>net.sourceforge.synergy2.plist</em> sous <em>/Library/LaunchAgents/</em>, l&#8217;endroit où sont stockés tous les fichiers <a href="http://fr.wikipedia.org/wiki/Liste_de_propri%C3%A9t%C3%A9s" title="Wikipedia">plist</a> des daemons qui démarrent avec la machine ou <em>on-demand</em> :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">&amp;</span>lt;?xml <span style="color: #007800;">version</span>=<span style="color: #000000; font-weight: bold;">&amp;</span>quot;<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">&amp;</span>quot; <span style="color: #007800;">encoding</span>=<span style="color: #000000; font-weight: bold;">&amp;</span>quot;UTF-<span style="color: #000000;">8</span><span style="color: #000000; font-weight: bold;">&amp;</span>quot;?<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">!</span>DOCTYPE plist PUBLIC <span style="color: #000000; font-weight: bold;">&amp;</span>quot;-<span style="color: #000000; font-weight: bold;">//</span>Apple Computer<span style="color: #000000; font-weight: bold;">//</span>DTD PLIST <span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">//</span>EN<span style="color: #000000; font-weight: bold;">&amp;</span>quot; <span style="color: #000000; font-weight: bold;">&amp;</span>quot;http:<span style="color: #000000; font-weight: bold;">//</span>www.apple.com<span style="color: #000000; font-weight: bold;">/</span>DTDs<span style="color: #000000; font-weight: bold;">/</span>PropertyList-1.0.dtd<span style="color: #000000; font-weight: bold;">&amp;</span>quot;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;plist <span style="color: #007800;">version</span>=<span style="color: #000000; font-weight: bold;">&amp;</span>quot;<span style="color: #000000;">1.0</span><span style="color: #000000; font-weight: bold;">&amp;</span>quot;<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;dict<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;Label<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;net.sourceforge.synergy2<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;OnDemand<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;false<span style="color: #000000; font-weight: bold;">/&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;ProgramArguments<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;array<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>synergy<span style="color: #000000; font-weight: bold;">/</span>synergys<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;-f<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;-<span style="color: #000000;">1</span><span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;--config<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>synergy<span style="color: #000000; font-weight: bold;">/</span>synergy.conf<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;--debug<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;WARNING<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>array<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;RunAtLoad<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;true<span style="color: #000000; font-weight: bold;">/&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;ServiceDescription<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>key<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;Synergy Server<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>string<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>dict<span style="color: #000000; font-weight: bold;">&amp;</span>gt;
<span style="color: #000000; font-weight: bold;">&amp;</span>lt;<span style="color: #000000; font-weight: bold;">/</span>plist<span style="color: #000000; font-weight: bold;">&amp;</span>gt;</pre></div></div>

<p>
Ce fichier va lancer la commande <em>/usr/share/synergy/synergys -f -1 &#8211;config /usr/share/synergy/synergy.conf &#8211;debug WARNING</em>. -f indique bien qu&#8217;il est lancé en <em>foreground</em>. L&#8217;option -1 signifie que le programme n&#8217;est pas relancé en cas d&#8217;arrêt, sous OS X, c&#8217;est launchd qui va redémarrer le programme, donc mieux vaut mettre cette option. Quant au niveau de debug WARNING, c&#8217;est pour éviter d&#8217;avoir toutes les notifications lorsque la souris bouge.
</p>
<p>
On démarre le service grâce à la commande <em>launchctl</em> en chargeant ce service :
</p>
<pre lang=bash">
# launchctl load /Library/LaunchAgents/net.sourceforge.synergy2.plist
</pre>
<p>
Le serveur est lancé et le sera à chaque démarrage de <em>pelargir</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/10/28/partage-de-clavier-et-souris-entre-pc-et-mac/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Droits Unix : la notation octale</title>
		<link>http://werk.feub.net/2008/10/19/droits-unix-la-notation-octale/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=droits-unix-la-notation-octale</link>
		<comments>http://werk.feub.net/2008/10/19/droits-unix-la-notation-octale/#comments</comments>
		<pubDate>Sat, 18 Oct 2008 23:19:58 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[droits]]></category>
		<category><![CDATA[unix]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=14</guid>
		<description><![CDATA[Des chiffres et des lettres]]></description>
			<content:encoded><![CDATA[<p>
Petite piqure de rappel sur les bases des droits Unix suite à la demande de <a href="http://feub.net/werk/index.php/feubv9/comments/setuid_setgid_et_sticky_bit/" title="commentaire">San Antonio</a> pour le billet sur les <a href="http://feub.net/werk/index.php/feubv9/comments/setuid_setgid_et_sticky_bit/" title="setuid, setgid et sticky bit">droits spéciaux</a>. Plus précisément sur la représentation octale des droits.
</p>
<p>
Sur les systèmes Unix/Linux/BSD, les droits sur les fichiers sont définis pour le propriétaire, pour les utilisateurs appartenant au groupe et pour les autres utilisateurs. Ils sont représentés &#8211; par exemple lorsque l&#8217;on invoque la commande <em>ls -l</em> &#8211; par une suite de 3 lettres (r,w et x pour respectivement read/lire, write/écrire, execute/exécuter), mais peuvent être représentés par des chiffres, par exemple comme suit :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">r <span style="color: #c20cb9; font-weight: bold;">w</span> - r - - r - - est la même chose que <span style="color: #000000;">644</span></pre></div></div>

<p>
Il s&#8217;agit de la représentation octale. Pour être expliquée, il faut partir de la forme binaire des droits, suivant ce schéma :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">000 = <span style="color: #000000;">0</span>
001 = <span style="color: #000000;">1</span>
010 = <span style="color: #000000;">2</span>
011 = <span style="color: #000000;">3</span>
<span style="color: #000000;">100</span> = <span style="color: #000000;">4</span>
<span style="color: #000000;">101</span> = <span style="color: #000000;">5</span>
<span style="color: #000000;">110</span> = <span style="color: #000000;">6</span>
<span style="color: #000000;">111</span> = <span style="color: #000000;">7</span></pre></div></div>

<p>
On peut associer chaque triplet aux trois entités (propriétaire, groupe, autres) des droits, ainsi, un fichier ayant le droit du propriétaire en lecture et écriture (r w -) sera écrit 110, 1 pour le r, 1 pour le w et 0 pour le flag x qui n&#8217;est pas attribué. Le procédé est le même pour les deux autres triplets. Pour l&#8217;exemple complet, prenons : r w &#8211;  r &#8211; -  r &#8211; -, soit 110 100 100.<br />
Ensuite on part du principe que l&#8217;on ajoute les chiffres des valeurs binaires des triplets pour obtenir la valeur octale. En continuant sur l&#8217;exemple précédent : 110 en binaire vaut 6 en décimal, 100 vaut 4, ainsi nous avons 6 &#8211; 4 &#8211; 4, simplifié en 644. Notre fichier a les droits 644.
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">r <span style="color: #c20cb9; font-weight: bold;">w</span> -  r - -  r - - = <span style="color: #000000;">110</span> <span style="color: #000000;">100</span> <span style="color: #000000;">100</span> = <span style="color: #000000;">644</span>
r <span style="color: #c20cb9; font-weight: bold;">w</span> - r <span style="color: #c20cb9; font-weight: bold;">w</span> -  r - - = <span style="color: #000000;">100</span> <span style="color: #000000;">100</span> <span style="color: #000000;">100</span> = <span style="color: #000000;">664</span>
r - x r - x  r - x = <span style="color: #000000;">101</span> <span style="color: #000000;">101</span> <span style="color: #000000;">101</span> = <span style="color: #000000;">555</span>
r <span style="color: #c20cb9; font-weight: bold;">w</span> x  r - x r - - = <span style="color: #000000;">111</span> <span style="color: #000000;">101</span> 000 = <span style="color: #000000;">754</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/10/19/droits-unix-la-notation-octale/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Centraliser sa bibliothèque iTunes sur un LAN</title>
		<link>http://werk.feub.net/2008/10/15/centraliser-sa-bibliotheque-itunes-sur-un-lan/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=centraliser-sa-bibliotheque-itunes-sur-un-lan</link>
		<comments>http://werk.feub.net/2008/10/15/centraliser-sa-bibliotheque-itunes-sur-un-lan/#comments</comments>
		<pubDate>Wed, 15 Oct 2008 21:06:40 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[musique]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=15</guid>
		<description><![CDATA[Partager sa collection musicale entre plusieurs machines]]></description>
			<content:encoded><![CDATA[<p>
Lorsque l&#8217;on a plusieurs <a href="http://www.apple.com/fr/" title="Apple">Mac</a> et que l&#8217;on écoute beaucoup &#8211; ou pas beaucoup ;} &#8211; de musique, il est pratique et sympathique de centraliser les fichiers musicaux sur un serveur, un disque externe ou un <a href="http://fr.wikipedia.org/wiki/Network_attached_storage" title="Wikipedia">NAS</a>, afin de ne pas avoir de doublons (ou plus) des fichiers dans chaque <a href="http://www.apple.com/fr/itunes/download/" title="Apple">iTunes</a>. Ce dernier peut se décomposer en deux parties distinctes : les fichiers musicaux eux-même (mp3, aac) et l&#8217;index de la bibliothèque qui regroupe beaucoup d&#8217;informations comme les listes, les notes, le compteur d&#8217;écoute, etc. Cet article explique comment faire cette opération de partage et propose deux alternatives : partager un même index pour tous le monde ou garder un index séparé pour chaque Mac.
</p>
<h4>Avantages/inconvénients</h4>
<p>
Ces deux façons de faire ont chacune de bons et mauvais côtés. Partager l&#8217;index permet d&#8217;avoir l&#8217;exacte copie sur tous les iTunes. En fait, il est même faux de dire <em>copie</em> car ce ne sont pas plusieurs copies mais une unique copie, un endroit unique où tous les programmes pointent. L&#8217;avantage est que si j&#8217;ajoute le dernier Demis Roussos dans l&#8217;iTunes du Mac Mini, je le verrai également sur celui de l&#8217;iBook (et oui, toujours en vie le G4!). Même chose pour les listes, les notes, etc. Un seul index.<br />
Le côté moins carré est qu&#8217;à la base Apple n&#8217;a pas prévu ce genre d&#8217;utilisation (shame on them), donc il faut éviter au maximum d&#8217;avoir plusieurs iTunes accédant à la même bibliothèque ouverts en même temps. Il est en effet possible de corrompre l&#8217;index si plusieurs machines tentent d&#8217;écrire dans celui-ci en même temps.
</p>
<p>
Garder l&#8217;index sur chaque iTunes peut sembler être un désavantage en lisant ce qui est écrit plus haut. En effet, si j&#8217;ajoute mon Demis Roussos sur le Mac Mini, si je le veux sur l&#8217;iBook il faudra l&#8217;importer sur celui-ci également (le fichier mp3 ou aac lui-même sera unique lui). Mais cela peut-être un avantage, en particulier si plusieurs personnes utilisent les Mac. Je peux avoir ajouté <em>Rain and tears</em> dans ma bibliothèque avec une note de 5 étoiles, mon chat qui aime moins l&#8217;aura noté 2 étoiles seulement dans la sienne et ma blonde ne l&#8217;aura même pas ajouté à sa bibliothèque.
</p>
<p><span id="more-15"></span></p>
<h4>Mise en place</h4>
<p>
Tout d&#8217;abord, il faut réserver un endroit ou placer tout vos fichiers musicaux. En ce qui me concerne, ils sont sur mon serveur Fedora dans un répertoire <em>/music/iTunes/iTunes Music</em>, les Mac y accèdent par des montages <a href="http://fr.wikipedia.org/wiki/Network_File_System" title="Wikipedia">NFS</a>. Ce dossier a bien sur les droits qu&#8217;il faut pour que les différentes machines y accèdent.
</p>
<p>
Ensuite, tous se passe sur les Mac. Dans l&#8217;hypothèse d&#8217;une réorganisation de sa bibliothèque musicale, il faut repartir à zéro : démarrer iTunes en cliquant sur son icone du Dock tout en maintenant la touche OPT enfoncée. Cela amène la boîte de dialogue de choix de la bibliothèque iTunes ou de création d&#8217;une nouvelle bibliothèque. Pour la première hypothèse citée plus haut, il faut créer l&#8217;index dans un endroit accessible par tous. iTunes par défaut stocke son index sous <em>~/.Musique/iTunes</em>, donc nous allon garder ce modèle et le mettre sous <em>/backup/music/iTunes</em> (sur le serveur ou le disque externe bien sur). iTunes va démarrer. Dans le cas de la seconde alternative, l&#8217;index sera crée sur le Mac en question : par exemple dans son endroit par défaut sous <em>~/Musique</em>.
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200810/iTunes_select_lib.png" width="540" height="172" class="photoTips" title="iTunes :: Sélection de la bibliothèque" /><br />
Sélection de la bibliothèque
</div>
<p>
Ensuite, la dernière chose à faire est de dire à iTunes d&#8217;ajouter et d&#8217;organiser la musique au bon endroit, c&#8217;est-à-dire sous <em>/backup/music/iTunes/iTunes Music</em>, afin que lorsque l&#8217;on importe de nouveaux morçeaux, ils soient automatiquement placés sur le répertoire partagé.. Pour ce faire, il faut ouvrir les préférences d&#8217;iTunes et sous l&#8217;onglet <em>Avancé</em>, changer le chemin pour qu&#8217;il pointe sur le répertoire partagé. Tant qu&#8217;on y est coher les autres cases pour maintenir une bibliothèque bien ordonnées, comme sur la capture d&#8217;écran :
</p>
<div class="image deport">
<img src="http://feub.net/werk/images/uploads/200810/iTunes_prefs.png" width="640" height="554" class="photoTips" title="iTunes :: Préférences iTunes" /><br />
Préférences iTunes
</div>
<p>
Voilà, c&#8217;est tout. Il n&#8217;y a plus qu&#8217;à faire la même chose sur les autres Mac. Je n&#8217;ai pas de Windows à la maison, si quelqu&#8217;un peut me dire si cette solution fonctionne pour les iTunes Windows également, ce serait encore mieux ;}</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/10/15/centraliser-sa-bibliotheque-itunes-sur-un-lan/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Montages automatiques : version AppleScript</title>
		<link>http://werk.feub.net/2008/09/17/montages-automatiques-version-applescript/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=montages-automatiques-version-applescript</link>
		<comments>http://werk.feub.net/2008/09/17/montages-automatiques-version-applescript/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 14:13:28 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[applescript]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=19</guid>
		<description><![CDATA[Monter ses volumes distants au démarrage de la session]]></description>
			<content:encoded><![CDATA[<p>
Dans un <a href="http://feub.net/werk/index.php/feubv9/comments/montages_nfs_automatiques/" title="feub.net">article précédent</a>, il était question de monter des partages <a href="http://fr.wikipedia.org/wiki/Network_File_System" title="Wikipedia">NFS</a> automatiquement à l&#8217;aide de l&#8217;Utilitaire d&#8217;annuaire. Voici une méthode utilisant un script <a href="http://fr.wikipedia.org/wiki/AppleScript" title="Wikipedia">AppleScript</a> qui a le double avantage de monter les volumes sur le bureau (cela peut-être un désavantage suivant l&#8217;utilisation) et elle permet de monter d&#8217;autres types de partage, <a href="http://fr.wikipedia.org/wiki/Protocole_SMB" title="Wikipedia">Samba</a> par exemple.
</p>
<h4>Le script</h4>
<p>
Voici le script que j&#8217;utilise. J&#8217;ai toujours mes trois montages NFS et un SMB (pour un petit <a href="http://fr.wikipedia.org/wiki/Network_attached_storage" title="Wikipedia">NAS</a>) :
</p>

<div class="wp_syntax"><div class="code"><pre class="applescript" style="font-family:monospace;"><span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #0066ff;">run</span>
<span style="color: #ff0033; font-weight: bold;">tell</span> <span style="color: #0066ff;">application</span> <span style="color: #009900;">&quot;Finder&quot;</span>
<span style="color: #ff0033; font-weight: bold;">try</span>
mount volume <span style="color: #009900;">&quot;nfs://edoras/home/fabien&quot;</span>
<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Erreur de montage NFS de /home/fabien&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> ¬
<span style="color: #009900;">&quot;Vérifier que le serveur est disponible.&quot;</span> <span style="color: #0066ff;">buttons</span>  default button <span style="color: #000000;">1</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
<span style="color: #ff0033; font-weight: bold;">try</span>
mount volume <span style="color: #009900;">&quot;nfs://edoras/data1&quot;</span>
<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Erreur de montage NFS de /data1&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> ¬
<span style="color: #009900;">&quot;Vérifier que le serveur est disponible.&quot;</span> <span style="color: #0066ff;">buttons</span>  default button <span style="color: #000000;">1</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
<span style="color: #ff0033; font-weight: bold;">try</span>
mount volume <span style="color: #009900;">&quot;nfs://edoras/backup&quot;</span>
<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Erreur de montage NFS de /backup&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> ¬
<span style="color: #009900;">&quot;Vérifier que le serveur est disponible.&quot;</span> <span style="color: #0066ff;">buttons</span>  default button <span style="color: #000000;">1</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
<span style="color: #ff0033; font-weight: bold;">try</span>
mount volume <span style="color: #009900;">&quot;smb://rohan&quot;</span>
<span style="color: #ff0033; font-weight: bold;">on</span> <span style="color: #ff0033; font-weight: bold;">error</span>
<span style="color: #0066ff;">display dialog</span> <span style="color: #009900;">&quot;Erreur de montage SMB de /rohan&quot;</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> <span style="color: #ff0033; font-weight: bold;">return</span> <span style="color: #000000;">&amp;</span> ¬
<span style="color: #009900;">&quot;Vérifier que le NAS est disponible.&quot;</span> <span style="color: #0066ff;">buttons</span>  default button <span style="color: #000000;">1</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">try</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #ff0033; font-weight: bold;">tell</span>
<span style="color: #ff0033; font-weight: bold;">end</span> <span style="color: #0066ff;">run</span></pre></div></div>

<p><span id="more-19"></span></p>
<h4>Mise en oeuvre</h4>
<p>
Je dois avouer que c&#8217;est mon premier AppleScript, je suis loin de m&#8217;y connaître en la matière ;}<br />
Pour créer un script il faut naturellement utiliser l&#8217;<em>Editeur de scripts</em> d&#8217;<a href="http://www.apple.com/fr/" title="Apple">Apple</a> situé dans <em>Applications</em> puis <em>AppleScript</em>.
</p>
<p>
Le fonctionnement d&#8217;AppleScript est un peu déroutant au départ. Lors de la saisie du texte, celui-ci se colorise en pourpre (couleurs par défaut) et il est homogène, pas de réelle colorisation syntaxique donc. Ensuite, il faut <em>compiler</em> ce script &#8211; à l&#8217;aide du bouton du même nom), ce qui a pour effet de vérifier les éventuelles erreurs et de retourner un texte colorisé avec mis en forme pour une meilleure lisibilité. Ensuite, lors de l&#8217;édition du script, les nouvelles parties restent en pourpre sans mise en forme jusqu&#8217;à la prochaine compilation, ceci permettant de rapidement voir ce qui vient d&#8217;être nouvellement édité/ajouté.
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/AS-raw.png" width="451" height="374" class="photoTips" title="AppleScript brut :: Mac OS X" /><br />
Script brut
</div>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/AS-compiled.png" width="451" height="374" class="photoTips" title="AppleScript compilé :: Mac OS X" /><br />
Script compilé
</div>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/AS-compiled-edited.png" width="451" height="374" class="photoTips" title="AppleScript édité :: Mac OS X" /><br />
Script édité
</div>
<p>
Ensuite, vient l&#8217;enregistrement. Un AppleScript tel quel (extension .scpt) doit être invoqué au sein d&#8217;un programme, s&#8217;il est lancé par exemple depuis le <em>Finder</em>, il est simplement ouvert par l&#8217;<em>Editeur de script</em> :
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/AS-save-as-script.png" width="434" height="279" class="photoTips" title="Enregistrer comme script :: Mac OS X" /><br />
Enregistrement comme script
</div>
<p>
Attention à la case à cocher <em>Exécutable uniquement</em>, cela aura pour effet de compiler le script en un fichier exécutable seulement, il ne sera plus possible de l&#8217;éditer. Il faut être sur de son coup ou en garder une copie éditable.<br />
Pour le script de montage de volumes réseau, il faut qu&#8217;il soit autonome, que le script soit exécuté (et non édité) lorsqu&#8217;il est lancé. Il faut donc l&#8217;enregistrer comme application (extension .app) :
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/AS-save-as-app.png" width="434" height="279" class="photoTips" title="Enregistrer comme application :: Mac OS X" /><br />
Enregistrer comme application
</div>
<p>
Une fois le fichier application enregistré, le mettre dans un coin &#8211; personnellement mes scripts sont sous <em>bin/</em> dans mon home &#8211; et aller dans les <em>Préférences > Comptes</em>, cliquer sur le compte, puis onglet <em>Ouverture</em> et ajouter le script à l&#8217;ouverture de session.
</p>
<div class="image deport">
<img src="http://feub.net/werk/images/uploads/200809/AS-comptes.png" width="640" height="511" class="photoTips" title="Lancer le script à l'ouverture de session :: Mac OS X" /><br />
Lancer le script à l&#8217;ouverture de session
</div>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/09/17/montages-automatiques-version-applescript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Montages NFS automatiques</title>
		<link>http://werk.feub.net/2008/09/16/montages-nfs-automatiques/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=montages-nfs-automatiques</link>
		<comments>http://werk.feub.net/2008/09/16/montages-nfs-automatiques/#comments</comments>
		<pubDate>Tue, 16 Sep 2008 13:50:18 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[nfs]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=20</guid>
		<description><![CDATA[Avec l'Utilitaire d'Annuaire]]></description>
			<content:encoded><![CDATA[<p>
Possédant des Macs sous <a href="http://www.apple.com/fr/macosx/" title="Apple">Leopard</a> avec un serveur Linux (<a href="http://www.fedora-fr.org/" title="Fedora France">Fedora</a>), il est tout naturel que j&#8217;utilise des montages NFS pour avoir accès à mes fichiers facilement sur le serveur. La méthode la plus rapide est de se servir de la fonction <em>Aller</em> puis <em>Se connecter au serveur&#8230;</em> du Finder :
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/NFS-Connexion-au-serveur.png" class="photoTips" title="Se connecter au serveur... :: Mac OS X" /><br />
Se connecter au serveur&#8230;
</div>
<p>
Cela fonctionne très bien, mais les montages ne sont pas automatiques, à chaque redémarrage, il faut refaire la manipulation depuis le Finder.<br />
Ceci peut aisément être rendu automatique grâce à l&#8217;<em>Utilitaire d&#8217;annuaire</em> de Leopard.
</p>
<p><span id="more-20"></span></p>
<h4>Utilitaire d&#8217;annuaire</h4>
<p>
Sous <em>Applications</em> > <em>Utilitaires</em>, démarrer l&#8217;<em>Utilitaire d&#8217;annuaire</em>. Puis se rendre dans la partie <em>Points de montages</em> (1). Pour ajouter un partage, il faut cliquer sur le petit plus en bas à gauche (2) après avoir entrer le mot de passe root :
</p>
<div class="image deport">
<img src="http://feub.net/werk/images/uploads/200809/NFS-UA_montage.png" width="640" height="492" class="photoTips" title="Points de montages NFS :: Mac OS X" /><br />
Points de montages NFS dans l&#8217;Utilitaire d&#8217;annuaire
</div>
<p>
Voici la configuration à appliquer pour mon exemple avec un serveur ayant comme nom d&#8217;hôte <em>edoras</em> (ce peut être une adresse IP) et plusieurs partages NFS : <em>/home/fabien</em>, <em>/data1</em> et <em>/backup</em> :
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/NFS-UA_setting.png" width="540" height="320" class="photoTips" title="Configuration NFS :: Mac OS X" /><br />
Configuration NFS dans l&#8217;Utilitaire d&#8217;annuaire
</div>
<p>
Quelques explications sur les options. -P doit être présent si le serveur NFS requière une connexion cliente sur les ports privilégiés (inférieurs à 1024).<br />
Après avoir cliqué sur le bouton <em>Vérifier</em> puis validé, le point de montage est ajouté. Faire la même chose pour les éventuels autres partages.
</p>
<div class="image">
<img src="http://feub.net/werk/images/uploads/200809/NFS-UA_setting_ok.png" width="540" height="159" class="photoTips" title="Vérification de la connexion au serveur :: Mac OS X" /><br />
Vérification de la connexion au serveur
</div>
<div class="image deport">
<img src="http://feub.net/werk/images/uploads/200809/NFS-annuaire-full.png" width="640" height="496" class="photoTips" title="Utilitaire d'annuaire final :: Mac OS X" /><br />
Utilitaire d&#8217;annuaire final
</div>
<h4>Ajout des liens sur le bureau</h4>
<p>
Les volumes sont désormais montés. De cette manière, les volumes ne sont plus visibles directement sur le bureau comme avec un montage <em>manuel</em>, pour un accès plus convivial, le plus simple est donc de créer des liens symboliques des répertoires de montage sur le bureau. Dans mon cas :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>edoras-fabien ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>edoras-fabien
$ <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>edoras-data1 ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>edoras-data1
$ <span style="color: #c20cb9; font-weight: bold;">ln</span> <span style="color: #660033;">-s</span> <span style="color: #000000; font-weight: bold;">/</span>Volumes<span style="color: #000000; font-weight: bold;">/</span>edoras-backup ~<span style="color: #000000; font-weight: bold;">/</span>Desktop<span style="color: #000000; font-weight: bold;">/</span>edoras-backup</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/09/16/montages-nfs-automatiques/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ajouter un répertoire WebDAV</title>
		<link>http://werk.feub.net/2008/09/01/ajouter-un-repertoire-webdav/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=ajouter-un-repertoire-webdav</link>
		<comments>http://werk.feub.net/2008/09/01/ajouter-un-repertoire-webdav/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 05:50:46 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[httpd]]></category>
		<category><![CDATA[ical]]></category>
		<category><![CDATA[webdav]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=22</guid>
		<description><![CDATA[Accéder à un répertoire web partagé]]></description>
			<content:encoded><![CDATA[<p>
WebDAV est une extension du protocole <a href="http://fr.wikipedia.org/wiki/HTTP" title="HTTP">HTTP</a> permettant la gestion de fichiers et dossiers au travers du web aussi bien en lecture qu&#8217;en écriture (généralement un dossier sur un serveur web n&#8217;est accessible qu&#8217;en lecture). WebDAV sait gérer les droits et les permissions sur les fichiers. Cela en fait un réel système de fichiers distant permettant le partage entre différents utilisateurs.
</p>
<p>
L&#8217;objectif est d&#8217;ajouter <a href="http://fr.wikipedia.org/wiki/Webdav" title="WebDAV">WebDAV</a> à un serveur web <a href="http://fr.wikipedia.org/wiki/Apache_HTTP_Server" title="Apache">Apache</a> existant. Ce court howto est basé sur une une Fedora 9, mais s&#8217;agissant principalement de la configuration d&#8217;Apache, il reste général. Le partage s&#8217;appelera <em>idisk</em> est sera accessible par <strong>https://www.mon-domaine.net/idisk/</strong>. Le SSL a été vu dans cet <a href="http://www.feub.net/joomla/gnulinux/32-activer-ssl-dans-apache" title="feub.net">article</a>, pour ne pas l&#8217;utiliser, il suffit d&#8217;enlever les lignes en rapport dans la suite de cet article.
</p>
<p><span id="more-22"></span></p>
<p>
Les implémentations récentes d&#8217;Apache comprennent le module WebDAV installé et activé. Si ce n&#8217;est pas le cas, ajouter simplement le module <em>mod_dav</em>. Ensuite, ce n&#8217;est que de la configuration d&#8217;Apache.<br />
Le plus simple étant d&#8217;ajouter un fichier de configuration spécifique dans <em>/etc/httpd/conf.d/</em>, je le nommerai <em>webdav.conf</em>, mais ce nom est totalement libre (sous Fedora) pourvu qu&#8217;il se termine par <em>.conf</em> :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Alias <span style="color: #000000; font-weight: bold;">/</span>idisk    <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>idisk<span style="color: #000000; font-weight: bold;">/</span>html
<span style="color: #000000; font-weight: bold;">&lt;</span>Directory <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>idisk<span style="color: #000000; font-weight: bold;">/</span>html<span style="color: #000000; font-weight: bold;">/&gt;</span>
Options Indexes
Dav On
SSLRequireSSL
AuthType Basic
AuthName <span style="color: #ff0000;">&quot;Mon iDisk&quot;</span>
AuthUserFile <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>.htpasswd
<span style="color: #000000; font-weight: bold;">&lt;</span>LimitExcept GET HEAD OPTIONS<span style="color: #000000; font-weight: bold;">&gt;</span>
Order allow,deny
Allow from all
Require valid-user
<span style="color: #000000; font-weight: bold;">&lt;/</span>LimitExcept<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>Directory<span style="color: #000000; font-weight: bold;">&gt;</span></pre></div></div>

<p>
Les utilisateurs autorisés seront tous ceux présents dans le fichier .htpasswd qu&#8217;il faut créer :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># htpasswd -cb /var/www/.htpasswd utilisateur motdepasse</span></pre></div></div>

<p>
Attention l&#8217;option <em>-c</em> crée le fichier, s&#8217;il existait déjà, l&#8217;ancien sera remplacé. Enlever cette option pour simplement ajouter un utilisateur valide.
</p>
<p>
Redémarrer HTTPd :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># /etc/init.d/httpd restart</span></pre></div></div>

<p>
Ajouter le partage sous OS X avec <em>Se connecter au serveur&#8230;</em> et Windows dans <em>Ajout d&#8217;un Favori réseau</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/09/01/ajouter-un-repertoire-webdav/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>clavicogyre ver 1.5</title>
		<link>http://werk.feub.net/2008/08/01/clavicogyre-ver-1-5/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=clavicogyre-ver-1-5</link>
		<comments>http://werk.feub.net/2008/08/01/clavicogyre-ver-1-5/#comments</comments>
		<pubDate>Fri, 01 Aug 2008 06:09:33 +0000</pubDate>
		<dc:creator>Fabien</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[sauvegar]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://werk.feub.net/?p=30</guid>
		<description><![CDATA[Amélioration de mon petit bash de sauvegarde]]></description>
			<content:encoded><![CDATA[<p>
Je publie le petit script de backup maison que j&#8217;utilise depuis plusieurs années. Simple, à base de <a href="http://fr.wikipedia.org/wiki/Rsync" title="Wikipedia">rsync</a> au travers d&#8217;<a href="http://fr.wikipedia.org/wiki/SSH" title="SSHWikipedia">SSH</a>, il propose un petit menu pour ne sauvegarder que certaines partie de votre home (Images, Documents, Musique, etc), et possède l&#8217;option &#8211;delete de rsync facultative :
</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#!/bin/bash</span>
&nbsp;
<span style="color: #666666; font-style: italic;">#======================================================================</span>
<span style="color: #666666; font-style: italic;"># CLAVICOGYRE - Script de backup</span>
<span style="color: #666666; font-style: italic;">#======================================================================</span>
<span style="color: #666666; font-style: italic;"># by fabien a. [fabien@feub.net]</span>
<span style="color: #666666; font-style: italic;"># http://feub.net/</span>
<span style="color: #666666; font-style: italic;">#======================================================================</span>
<span style="color: #666666; font-style: italic;"># This program is free software; you can redistribute it and/or</span>
<span style="color: #666666; font-style: italic;"># modify it under the terms of the GNU General Public License</span>
<span style="color: #666666; font-style: italic;"># as published by the Free Software Foundation; either version 2</span>
<span style="color: #666666; font-style: italic;"># of the License, or (at your option) any later version.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># This program is distributed in the hope that it will be useful,</span>
<span style="color: #666666; font-style: italic;"># but WITHOUT ANY WARRANTY; without even the implied warranty of</span>
<span style="color: #666666; font-style: italic;"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</span>
<span style="color: #666666; font-style: italic;"># GNU General Public License for more details.</span>
<span style="color: #666666; font-style: italic;">#</span>
<span style="color: #666666; font-style: italic;"># You should have received a copy of the GNU General Public License</span>
<span style="color: #666666; font-style: italic;"># along with this program; if not, </span>
<span style="color: #666666; font-style: italic;">#  - write to the Free Software</span>
<span style="color: #666666; font-style: italic;">#		Foundation, Inc.,</span>
<span style="color: #666666; font-style: italic;">#		51 Franklin Street,</span>
<span style="color: #666666; font-style: italic;">#		Fifth Floor,</span>
<span style="color: #666666; font-style: italic;">#		Boston, MA  02110-1301</span>
<span style="color: #666666; font-style: italic;">#		USA.</span>
<span style="color: #666666; font-style: italic;">#		- See http://www.gnu.org/licenses/gpl.html</span>
<span style="color: #666666; font-style: italic;">#======================================================================</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Numero de version</span>
<span style="color: #007800;">VERSION</span>=<span style="color: #ff0000;">&quot;ver 1.5.02 (01/08/2008)&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Chemin vers le serveur</span>
<span style="color: #007800;">SSHPATH</span>=<span style="color: #ff0000;">&quot;utilisateur@serveur:&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Chemins</span>
<span style="color: #007800;">PHOTOS_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/lightroom/&quot;</span>
<span style="color: #007800;">PHOTOS_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Images/Photos&quot;</span>
<span style="color: #007800;">PICTURES_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Pictures/&quot;</span>
<span style="color: #007800;">PICTURES_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Images&quot;</span>
<span style="color: #007800;">DOCS_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Documents/&quot;</span>
<span style="color: #007800;">DOCS_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Documents&quot;</span>
<span style="color: #007800;">MUSIC_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Music/iTunes/iTunes Music/&quot;</span>
<span style="color: #007800;">MUSIC_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/backup/Musique&quot;</span>
<span style="color: #007800;">WWW_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/www/&quot;</span>
<span style="color: #007800;">WWW_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/www&quot;</span>
<span style="color: #007800;">DEV_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Dev/&quot;</span>
<span style="color: #007800;">DEV_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Dev&quot;</span>
<span style="color: #007800;">BIN_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/bin/&quot;</span>
<span style="color: #007800;">BIN_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Backup/bin&quot;</span>
<span style="color: #007800;">RESSOURCES_SOURCE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Resources/&quot;</span>
<span style="color: #007800;">RESSOURCES_CIBLE</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$SSHPATH</span>/home/fabien/Resources&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Date d'execution du script</span>
<span style="color: #007800;">JOUR</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span>+<span style="color: #000000; font-weight: bold;">%</span>d<span style="color: #7a0874; font-weight: bold;">&#41;</span> 	<span style="color: #666666; font-style: italic;">## + %d permet d'extraire le jour</span>
<span style="color: #007800;">MOIS</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span>+<span style="color: #000000; font-weight: bold;">%</span>m<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #666666; font-style: italic;">## +%m permet d'extraire le mois</span>
<span style="color: #007800;">ANNEE</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span>+<span style="color: #000000; font-weight: bold;">%</span>Y<span style="color: #7a0874; font-weight: bold;">&#41;</span> 	<span style="color: #666666; font-style: italic;">## +%y permet d'extraire l'annee</span>
<span style="color: #007800;">HEURE</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span>+<span style="color: #000000; font-weight: bold;">%</span>H<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #666666; font-style: italic;">## +%H permet d'extraire l'heure</span>
<span style="color: #007800;">MINUTES</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #c20cb9; font-weight: bold;">date</span>+<span style="color: #000000; font-weight: bold;">%</span>M<span style="color: #7a0874; font-weight: bold;">&#41;</span>	<span style="color: #666666; font-style: italic;">## +%M permet d'extraire les minutes</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Envoi du log par email</span>
<span style="color: #666666; font-style: italic;">#MAIL_DEST=&quot;adresse@email.net&quot;</span>
<span style="color: #666666; font-style: italic;">#MAIL_SUJET=&quot;[Backup] du $ANNEE-$MOIS-$JOUR a $HEUR:$MINUTES&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Rapport</span>
<span style="color: #007800;">RAPPORT</span>=<span style="color: #ff0000;">&quot;<span style="color: #007800;">$HOME</span>/Desktop/<span style="color: #007800;">$ANNEE</span><span style="color: #007800;">$MOIS</span><span style="color: #007800;">$JOUR</span>-clavicogyre-backup.log&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Les options sont :</span>
<span style="color: #666666; font-style: italic;"># v : verbose</span>
<span style="color: #666666; font-style: italic;"># r : rursif</span>
<span style="color: #666666; font-style: italic;"># u : update seulement</span>
<span style="color: #666666; font-style: italic;"># p : prerve les permissions</span>
<span style="color: #666666; font-style: italic;"># a : copie en tant qu'archive</span>
<span style="color: #666666; font-style: italic;"># t : prerve la date</span>
<span style="color: #666666; font-style: italic;"># --delete : supprime ce qui a ete supprime (copie stricte)</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Fonctions</span>
backup<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
&nbsp;
	<span style="color: #007800;">SOURCE</span>=<span style="color: #ff0000;">&quot;$1&quot;</span>
	<span style="color: #007800;">CIBLE</span>=<span style="color: #ff0000;">&quot;$2&quot;</span>
&nbsp;
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Backup <span style="color: #007800;">$SOURCE</span> ....&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> Backup <span style="color: #c20cb9; font-weight: bold;">du</span> dossier <span style="color: #800000;">${1}</span> <span style="color: #c20cb9; font-weight: bold;">du</span> <span style="color: #007800;">$JOUR</span><span style="color: #ff0000;">'/'</span><span style="color: #007800;">$MOIS</span> \
              a <span style="color: #007800;">$HEURE</span><span style="color: #ff0000;">'h'</span><span style="color: #007800;">$MINUTES</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
&nbsp;
	<span style="color: #666666; font-style: italic;"># Si option delete</span>
	<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;$3&quot;</span> = <span style="color: #ff0000;">&quot;DEL&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
	<span style="color: #000000; font-weight: bold;">then</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;L'option --delete est activee, etes-vous sur? (O/[n])&quot;</span>
		<span style="color: #c20cb9; font-weight: bold;">read</span> ACTDEL
&nbsp;
		<span style="color: #000000; font-weight: bold;">if</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$ACTDEL</span>&quot;</span> = <span style="color: #ff0000;">&quot;O&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#93;</span>
		<span style="color: #000000; font-weight: bold;">then</span>
			<span style="color: #007800;">OPTDEL</span>=<span style="color: #ff0000;">&quot;--delete&quot;</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Option --delete ON&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
		<span style="color: #000000; font-weight: bold;">else</span>
			<span style="color: #007800;">OPTDEL</span>=<span style="color: #ff0000;">&quot;&quot;</span>
			<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Option --delete OFF&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
		<span style="color: #000000; font-weight: bold;">fi</span>
	<span style="color: #000000; font-weight: bold;">else</span>
		<span style="color: #007800;">OPTDEL</span>=<span style="color: #ff0000;">&quot;&quot;</span>
		<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;option --delete OFF&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
	<span style="color: #000000; font-weight: bold;">fi</span>	
&nbsp;
	<span style="color: #666666; font-style: italic;"># rsync</span>
	rsync <span style="color: #660033;">-vrupatz</span> <span style="color: #660033;">--exclude-from</span>=<span style="color: #007800;">$HOME</span><span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>rsync_exclude.txt \
               <span style="color: #007800;">$OPTDEL</span> <span style="color: #660033;">-e</span> <span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${SOURCE}</span>&quot;</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">${CIBLE}</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #660033;">-a</span> <span style="color: #007800;">$RAPPORT</span> <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span>
&nbsp;
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;&quot;</span> <span style="color: #000000; font-weight: bold;">&gt;&gt;</span> <span style="color: #007800;">$RAPPORT</span>
&nbsp;
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Fin du backup.&quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Un fichier de log se trouve ici : &quot;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$RAPPORT</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># On efface l'ecran</span>
<span style="color: #c20cb9; font-weight: bold;">clear</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;CLAVICOGYRE : SCRIPT DE BACKUP - <span style="color: #007800;">$VERSION</span>&quot;</span>
&nbsp;
<span style="color: #666666; font-style: italic;"># Demande du repertoire a sauvegarder</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Repertoire a sauvegarder : &quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 1) Photos (Lightroom)&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 2) Pictures&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 3) Documents&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 4) Music&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 5) www&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 6) Dev&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 7) bin&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;=== 8) Resources&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;L'ajout de 'strict' ajoutera l'option --delete de rsync &quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;et effectuera ainsi une copie conforme.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;ATTENTION : a utiliser avec parcimonie, les fichiers&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;supprimes seront supprimes sur la sauvergarde egalement.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Exemple : 2 strict&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;fera une copie stricte du dossier Documents.&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;----------------------------------&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #660033;">-n</span> <span style="color: #ff0000;">&quot;---&gt; choix : &quot;</span>
<span style="color: #c20cb9; font-weight: bold;">read</span> REP
tput <span style="color: #c20cb9; font-weight: bold;">clear</span>
&nbsp;
<span style="color: #000000; font-weight: bold;">case</span> <span style="color: #ff0000;">&quot;<span style="color: #007800;">$REP</span>&quot;</span> <span style="color: #000000; font-weight: bold;">in</span>
<span style="color: #ff0000;">&quot;1&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$PHOTOS_SOURCE</span> <span style="color: #007800;">$PHOTOS_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;1 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$PHOTOS_SOURCE</span> <span style="color: #007800;">$PHOTOS_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;2&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$PICTURES_SOURCE</span> <span style="color: #007800;">$PICTURES_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;2 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$PICTURES_SOURCE</span> <span style="color: #007800;">$PICTURES_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;3&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$DOCS_SOURCE</span> <span style="color: #007800;">$DOCS_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;3 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$DOCS_SOURCE</span> <span style="color: #007800;">$DOCS_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;4&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$MUSIC_SOURCE</span> <span style="color: #007800;">$MUSIC_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;4 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$MUSIC_SOURCE</span> <span style="color: #007800;">$MUSIC_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;5&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$WWW_SOURCE</span> <span style="color: #007800;">$WWW_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;5 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$WWW_SOURCE</span> <span style="color: #007800;">$WWW_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;6&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$DEV_SOURCE</span> <span style="color: #007800;">$DEV_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;6 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$DEV_SOURCE</span> <span style="color: #007800;">$DEV_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;7&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$BIN_SOURCE</span> <span style="color: #007800;">$BIN_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;7 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$BIN_SOURCE</span> <span style="color: #007800;">$BIN_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;8&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$RESSOURCES_SOURCE</span> <span style="color: #007800;">$RESSOURCES_CIBLE</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #ff0000;">&quot;8 strict&quot;</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	backup <span style="color: #007800;">$RESSOURCES_SOURCE</span> <span style="color: #007800;">$RESSOURCES_CIBLE</span> <span style="color: #ff0000;">&quot;DEL&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">*</span> <span style="color: #7a0874; font-weight: bold;">&#41;</span>
	<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Aucun choix valide. Termine.&quot;</span><span style="color: #000000; font-weight: bold;">;;</span>
<span style="color: #000000; font-weight: bold;">esac</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Fin du script.&quot;</span></pre></div></div>

<p>
<a href="http://werk.feub.net/medias/2008/08/clavicogyre.sh" title="Télécharger clavicogyre.sh">Télécharger clavicogyre.sh</a>
</p>
<p>
Note : les anti-slash \ ne sont pas à taper, ils indiquent que j&#8217;ai coupé les lignes pour que ça ne dépasse pas du cadre. Il s&#8217;agit d&#8217;une seule et même ligne.
</p>
<p>
Note 2 : Oui <a href="http://www.sebweb.org/goldorak/armes.htm" title="clavicogyre">clavicogyre</a> est une arme de <a href="http://fr.wikipedia.org/wiki/Goldorak" title="Wikipedia">Goldorak</a> ;}</p>
]]></content:encoded>
			<wfw:commentRss>http://werk.feub.net/2008/08/01/clavicogyre-ver-1-5/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
