<?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>EquinoxeFR &#187; Linux &raquo; EquinoxeFR</title>
	<atom:link href="http://www.equinoxefr.org/categorie/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.equinoxefr.org</link>
	<description>DIY Lab</description>
	<lastBuildDate>Sun, 05 Feb 2012 21:33:11 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Speed your life, Linux &amp; SSD</title>
		<link>http://www.equinoxefr.org/post/2012/02/05/speed-your-life-linux-ssd/</link>
		<comments>http://www.equinoxefr.org/post/2012/02/05/speed-your-life-linux-ssd/#comments</comments>
		<pubDate>Sun, 05 Feb 2012 10:29:54 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[optimisation]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[solid state drive]]></category>
		<category><![CDATA[SSD]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1439</guid>
		<description><![CDATA[Je viens de monter un SSD à la place de mon ancien disque classique sur mon macbook vieux de 3 ans. Voici un bref retour d&#8217;expérience. Afin d&#8217;avoir quelques chiffres, avant d&#8217;installer le SSD, j&#8217;ai installé bonnie++ qui est un logiciel de benchmark de disque. Pour le lancer, voici une commande permettant de prendre en &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/02/05/speed-your-life-linux-ssd/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Je viens de monter un SSD à la place de mon ancien disque classique sur mon macbook vieux de 3 ans. Voici un bref retour d&#8217;expérience.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/corsair-force-3.jpg" rel="lightbox[1439]"><img class="aligncenter size-large wp-image-1442" title="corsair-force-3" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/corsair-force-3-1024x807.jpg" alt="" width="590" height="464" /></a></p>
<p>Afin d&#8217;avoir quelques chiffres, avant d&#8217;installer le SSD, j&#8217;ai installé <a href="http://www.coker.com.au/bonnie++/" target="_blank">bonnie++</a> qui est un logiciel de benchmark de disque.</p>
<p>Pour le lancer, voici une commande permettant de prendre en compte facilement la quantité de RAM disponible sur votre PC  ( je ne sais plus trop d&#8217;où elle vient, merci à son auteur en tout cas <img src='http://www.equinoxefr.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> bonnie++ <span style="color: #660033;">-n</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-u</span> <span style="color: #000000;">0</span> <span style="color: #660033;">-r</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">free</span> <span style="color: #660033;">-m</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">'Mem:'</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{print $2}'</span><span style="color: #000000; font-weight: bold;">`</span> <span style="color: #660033;">-s</span> $<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;scale=0;<span style="color: #780078;">`free -m | grep 'Mem:' | awk '{print $2}'`</span>*2&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> -l<span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #660033;">-f</span> <span style="color: #660033;">-b</span> <span style="color: #660033;">-d</span> <span style="color: #000000; font-weight: bold;">/</span>home</pre></div></div>

<p>Cette commande nous donne un résultat brut assez peu lisible.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">Using uid:0, gid:0.
Writing intelligently...done
Rewriting...done
Reading intelligently...done
start 'em...done...done...done...
Version 1.03e       ------Sequential Output------ --Sequential Input- --Random-
                    -Per Chr- --Block-- -Rewrite- -Per Chr- --Block-- --Seeks--
Machine        Size K/sec %CP K/sec %CP K/sec %CP K/sec %CP K/sec %CP  /sec %CP
EquinoxeFR    7366M           40652   5 18250   2           61482   4  70.7   0
EquinoxeFR,7366M,,,40652,5,18250,2,,,61482,4,70.7,0,,,,,,,,,,,,,</pre></div></div>

<p>Heureusement, bonnie++ est fourni avec des scripts permettant de mettre en forme les données.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;EquinoxeFR,7366M,,,40652,5,18250,2,,,61482,4,70.7,0,,,,,,,,,,,,,&quot;</span> <span style="color: #000000; font-weight: bold;">|</span>  bon_csv2html <span style="color: #000000; font-weight: bold;">&amp;</span>gt; bonnie_results.html</pre></div></div>

<p>Ce qui nous donne un tableau HTML de ce type.<br />
<a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/001_Sélection.png" rel="lightbox[1439]"><img class="aligncenter size-large wp-image-1449" title="bonnie result 1" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/001_Sélection-1024x158.png" alt="" width="590" height="91" /></a></p>
<p>Maintenant que nous avons les chiffres de notre disque classique, nous pouvons installer le SSD. Afin de faciliter la migration des données, j&#8217;ai monté le SSD dans le portable et placé l&#8217;ancien DD dans un boitier USB. La copie des partitions existantes a été faite à l&#8217;aide de <a href="http://clonezilla.org/" target="_blank">Clonezilla</a> lancé depuis le LiveCD &laquo;&nbsp;<a href="http://partedmagic.com/doku.php?id=start" target="_blank">parted magic</a>&laquo;&nbsp;.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/desktop.png" rel="lightbox[1439]"><img class="aligncenter size-full wp-image-1451" title="Parted Magic" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/desktop.png" alt="" width="800" height="600" /></a></p>
<p>Voilà, les données sont copiés, nous redémarrons la machine en à peine 10 sec !!! ( de grub à l&#8217;invite de login GDM )</p>
<p>Visiblement le gain de performance est bien là et le silence est absolu, pas une pièce en mouvement, quel plaisir.</p>
<p>Afin d&#8217;améliorer encore l&#8217;utilisation du SSD, voici quelques optimisations:</p>
<p>Tout d&#8217;abord, changeons le &laquo;&nbsp;I/O Scheduler&nbsp;&raquo; qui est contre productif en mode &laquo;&nbsp;cfq&nbsp;&raquo; avec un disque SSD. Dans /boot/grub/menu.lst, il faut placer elevator=deadline dans les paramètres du kernel.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;"># (0) Arch Linux
title  Arch Linux
root   (hd0,0)
kernel /boot/vmlinuz-linux root=/dev/sda1 elevator=deadline ro quiet vga=773
initrd /boot/initramfs-linux.img</pre></div></div>

<p>Ce qui après un redémarrage nous donne</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[pierre@EquinoxeFR ~]$ cat /sys/block/sda/queue/scheduler
noop [deadline] cfq
[pierre@EquinoxeFR ~]$</pre></div></div>

<p>Ensuite, réglons quelques paramètres pour le montage de nos partitions:</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">[pierre@EquinoxeFR ~]$ cat /etc/fstab
#
# /etc/fstab: static file system information
#
#
devpts /dev/pts devpts defaults 0 0
shm /dev/shm tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 noatime,discard,data=writeback,errors=remount-ro 0 1
/dev/sda2 swap swap defaults 0 0
/dev/sda3 /home ext4 noatime,discard,data=writeback,errors=remount-ro 0 1</pre></div></div>

<ul>
<li>noatime: désactive la mise à jour de l&#8217;heure d&#8217;accès aux fichiers. Ca n&#8217;a que peu d&#8217;intérêt et ça use le SSD inutilement.</li>
<li>discard: active le TRIM pour préserver au maximum la durée de vie du SSD</li>
<li> data=writeback: journalise uniquement les métadatas avec EXT4. Attention il faut faire un<em><strong> tune2fs -o journal_data_writeback /dev/sda1</strong></em> depuis un CD bootable sur la partition root sous peine de ne pas pouvoir redémarrer&#8230;</li>
</ul>
<p>&nbsp;</p>
<p>Voilà, après ces quelques optimisations, nous avons un système très réactif ( le jour et la nuit <img src='http://www.equinoxefr.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  même si je suis un peu étonné que les chiffres ne soit pas plus parlants. J&#8217;ai un SSD SATA III alors que mon portable ne supporte que le SATA II mais qui peut le plus, peut le moins&#8230; Ceci dit, j&#8217;ai quand même l&#8217;impression d&#8217;avoir des résultats en dessous de ce que l&#8217;on peut trouver sur le net. Peut-être que ça vient du contrôleur du macbook&#8230; sur OSX, beaucoup ont des problèmes de &laquo;&nbsp;link speed&nbsp;&raquo; sur le bus SATA avec de nombreux SSD.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/002_Sélection.png" rel="lightbox[1439]"><img class="aligncenter size-large wp-image-1460" title="Bonnie result 2" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/002_Sélection-1024x158.png" alt="" width="590" height="91" /></a></p>
<p>&nbsp;</p>
<p>Update 5/02:</p>
<p>Les résultats avec le scheduleur sur noop</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/004_Sélection.png" rel="lightbox[1439]"><img class="aligncenter size-large wp-image-1468" title="bonnie results 4" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/004_Sélection-1024x156.png" alt="" width="590" height="89" /></a></p>
<p>nouveaux résultats avec AHCI Mode = SATA</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/005_Sélection.png" rel="lightbox[1439]"><img class="aligncenter size-large wp-image-1470" title="Bonnie results 5" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/005_Sélection-1024x156.png" alt="" width="590" height="89" /></a></p>
<p>J&#8217;ai mis à jour <a href="https://wiki.archlinux.org/index.php/Solid_State_Drives#Special_considerations_for_Mac_computers" target="_blank">ArchWiki</a> pour l&#8217;activition du mode SATA sur un macbook 5.1</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/02/05/speed-your-life-linux-ssd/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>rp_filter et maux de tête</title>
		<link>http://www.equinoxefr.org/post/2012/02/02/rp_filter-et-maux-de-tete/</link>
		<comments>http://www.equinoxefr.org/post/2012/02/02/rp_filter-et-maux-de-tete/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 17:00:23 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[6]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[redhat]]></category>
		<category><![CDATA[réseau]]></category>
		<category><![CDATA[reverse path filtering]]></category>
		<category><![CDATA[routage]]></category>
		<category><![CDATA[rp_filter]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1431</guid>
		<description><![CDATA[Je viens de passer un certain temps à régler un problème avec une machine fraîchement migrée de CENTOS 5.7 à CENTOS 6.2 J&#8217;ai une machine dans un réseau A qui tente de contacter mon serveur qui dispose d&#8217;une interface (1) dans le réseau A et une interface (2) dans le réseau B. Plusieurs cas de &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/02/02/rp_filter-et-maux-de-tete/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Je viens de passer un certain temps à régler un problème avec une machine fraîchement migrée de CENTOS 5.7 à CENTOS 6.2</p>
<p>J&#8217;ai une machine dans un réseau A qui tente de contacter mon serveur qui dispose d&#8217;une interface (1) dans le réseau A et une interface (2) dans le réseau B.</p>
<p>Plusieurs cas de figure:</p>
<ul>
<li>La machine ping l&#8217;adresse de l&#8217;interface (1) du serveur. C&#8217;est sur le même réseau, tout va bien.</li>
</ul>
<ul>
<li>La machine ping l&#8217;adresse de l&#8217;interface (2) du serveur. Ce n&#8217;est pas le même réseau, le routeur joue son rôle, le paquet ICMP arrive bien sur l&#8217;interface (2) comme l&#8217;atteste tcmdump, mais il n&#8217;y a jamais de ECHO REPLY&#8230; WTF ?!?</li>
</ul>
<p>&nbsp;</p>
<p>Ce cas de figure marchait parfaitement avec CENTOS 5.x. C&#8217;était sans compter l&#8217;arrivée du noyau 2.6.31 qui a modifié le fonctionnement du <strong>&laquo;&nbsp;Reverse path filtering&nbsp;&raquo;</strong></p>
<p>Extrait Release notes Redhat 6x:</p>
<address>A change in the 2.6.31 Linux kernel made the <em><code>net.ipv4.conf.default.rp_filter = 1</code></em> more strict in the I/O that is accepted. Consequently, in Red Hat Enterprise Linux 6, if there are multiple interfaces on the same subnet and I/O is sent to the one that is not the default route, the I/O will be dropped. Note that this applies to iSCSI iface binding when multiple interfaces are on the same subnet. To work around this, set the <em><code>net.ipv4.conf.default.rp_filter</code></em> parameter in <code>/etc/sysctl.conf</code> to 0 or 2, and reboot the machine.</address>
<p>Quand la machine contacte le serveur sur l&#8217;interface (2), le serveur voit un paquet provenant du réseau A, il ne va pas comme avec CENTOS 5 (en vert) répondre par la même interface en routant le paquet mais va tenter de répondre avec l&#8217;interface (1) (en rouge sur le schéma) qui est sur le réseau A. Or, c&#8217;est la qu&#8217;intervient le rp_filter qui va détruire la paquet !<a href="http://www.equinoxefr.org/wp-content/uploads/2012/02/schema.png" rel="lightbox[1431]"><img class="aligncenter size-full wp-image-1433" title="schema" src="http://www.equinoxefr.org/wp-content/uploads/2012/02/schema.png" alt="" width="920" height="487" /></a></p>
<p>Pour se sortir de cette situation il suffit d&#8217;éditer <em><strong>/etc/sysctl.conf</strong></em>  et de changer <strong><strong>net.ipv4.conf.default.rp_filter = 1</strong></strong> pour <strong><strong>net.ipv4.conf.default.rp_filter = 2</strong></strong> ou éventuellement <strong><strong><strong><strong>net.ipv4.conf.default.rp_filter = 0</strong></strong></strong></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/02/02/rp_filter-et-maux-de-tete/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flux de création de fichiers GCODE avec des outils libres</title>
		<link>http://www.equinoxefr.org/post/2012/01/21/flux-de-creation-de-fichiers-gcode-avec-des-outils-libres/</link>
		<comments>http://www.equinoxefr.org/post/2012/01/21/flux-de-creation-de-fichiers-gcode-avec-des-outils-libres/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 16:12:00 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Do it]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[emc2]]></category>
		<category><![CDATA[fraiseuse numérique]]></category>
		<category><![CDATA[heekscad]]></category>
		<category><![CDATA[heekscnc]]></category>
		<category><![CDATA[inkscape]]></category>
		<category><![CDATA[librecad]]></category>
		<category><![CDATA[pcb2gcode]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[tutoriel]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1409</guid>
		<description><![CDATA[Après le petit tutoriel de ce matin, voici un post qui résume le &#171;&#160;flux de production&#160;&#187; de mes fichiers GCODE. La base Tout commence par l&#8217;objet indipensable à la prise de mesure: le pied à coulisse. Les matériaux Une fois l&#8217;objet à créer correctement dimensionné, il faut trouver le matériau dans lequel on va le &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/01/21/flux-de-creation-de-fichiers-gcode-avec-des-outils-libres/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Après le petit<a href="http://www.youtube.com/watch?v=URIYXkn2twY" target="_blank"> tutoriel de ce matin</a>, voici un post qui résume le &laquo;&nbsp;flux de production&nbsp;&raquo; de mes fichiers GCODE.</p>
<ul>
<li><strong><span style="font-size: large;">La base</span></strong></li>
</ul>
<p>Tout commence par l&#8217;objet indipensable à la prise de mesure: le pied à coulisse.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8805.jpg" rel="lightbox[1409]"><img class="aligncenter size-large wp-image-1410" title="Pied à coulisse" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8805-1024x549.jpg" alt="" width="590" height="316" /></a></p>
<ul>
<li><strong><span style="font-size: large;">Les matériaux</span></strong></li>
</ul>
<p>Une fois l&#8217;objet à créer correctement dimensionné, il faut trouver le matériau dans lequel on va le créer. J&#8217;utilise principalement des bois et plastiques, les métaux étant (à par pour de la gravure) trop difficiles à fraiser avec mon matériel (il manque un refroidissement liquide ou un moteur de broche avec une faible vitesse et un gros couple).</p>
<ul>
<li>Pour le bois, je prends en général du <a href="http://fr.wikipedia.org/wiki/Medium_Density_Fibreboard" target="_blank">MDF</a> ou du contreplaqué qui peuvent faire entre 3 et 15 mm.</li>
</ul>
<ul>
<li>Pour le plastique j&#8217;utilise beaucoup le <a href="http://fr.wikipedia.org/wiki/Polychlorure_de_vinyle" target="_blank">PVC</a> qui a un bon rapport qualité / prix ainsi que du <a href="http://fr.wikipedia.org/wiki/Poly%C3%A9thyl%C3%A8ne_haute_densit%C3%A9" target="_blank">PEHD</a> ( c&#8217;est ce qui est utilisé pour les plaques à découper dans votre cuisine <img src='http://www.equinoxefr.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' />   ou encore du <a href="http://fr.wikipedia.org/wiki/DELRIN" target="_blank">DELRIN</a> (qui est excellent mais cher)</li>
</ul>
<p>Le choix du matériau est fait, maintenant les logiciels ! Ne soyez pas effrayés, il y en a un certain nombre mais chacun est très performant dans son domaine.</p>
<ul>
<li><strong><span style="font-size: large;">Les logiciels de CAO</span></strong></li>
</ul>
<p>Pour dessiner des pièces à usiner, celui que j&#8217;utilise le plus, c&#8217;est <a href="http://librecad.org" target="_blank">LibreCAD</a>. C&#8217;est un fork libre du projet <a href="http://www.qcad.org/" target="_blank">QCAD</a>. Avec un peu d&#8217;habitude, vous dessinerez en quelques minutes des pièces relativement complexes en 2D. Vous pouvez commencer par regarder le tutoriel d&#8217;<a href="http://www.linux-france.org/article/appli/infographie/qcad.htm" target="_blank">Andre PASCUAL</a>, il parle de QCAD mais c&#8217;est la même chose, à part les icones qui changent, le principe est identique et le tutoriel est excellent.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/029_LibreCAD-...rre-Documents-CAD-CNC-taquet_bateau-essai2.dxf_.png" rel="lightbox[1409]"><img class="aligncenter size-full wp-image-1420" title="LibreCAD" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/029_LibreCAD-...rre-Documents-CAD-CNC-taquet_bateau-essai2.dxf_.png" alt="" width="853" height="774" /></a></p>
<p>&nbsp;</p>
<p>Quand il s&#8217;agit de graver des dessins ou du texte, rien de vaut <a href="http://inkscape.org" target="_blank">inkscape</a> qui n&#8217;est plus à présenter. Il est préférable lorsque vous utilisez inkscape pour créer des fichiers DXF, nécessaires dans la suite du flux de production, d&#8217;enregistrer avec le greffon <a href="http://www.bobcookdev.com/inkscape/inkscape-dxf.html" target="_blank">&laquo;&nbsp;Better DXF Output&nbsp;&raquo;</a>. Pour certains dessins contenant des courbes de bezier ( splines ), je suis obligé d&#8217;ouvrir les DXF de LibreCAD avec Inkscape puis de les réenregistrer pour qu&#8217;il convertisse tout en polyline. Sinon, j&#8217;ai des plantages lors de la génération du GCODE avec HeeksCNC. Un bug qui sera surement corrigé par les développeurs, mais en attendant&#8230;</p>
<p>Dans un autre cadre très particulier, celui de la création de circuits imprimés, j&#8217;utilise <a href="http://www.elektronique.fr/logiciels/kicad.php" target="_blank">KiCAD</a>, un concurrent du très connu EagleCAD. Avec ce logiciel, je génère des fichiers <a href="http://fr.wikipedia.org/wiki/Gerber_%28format_de_fichier%29" target="_blank">GERBER</a> qui seront ensuite convertis en GCODE.</p>
<ul>
<li><strong><span style="font-size: large;">Les logiciels de création du GCODE</span></strong></li>
</ul>
<p>Ici, seulement deux logiciels sont utilisés:</p>
<p>HeeksCAD / HeeksCNC vont permettre de transformer le fichier DXF 2D en un fichier permettant de piloter la machine CNC. On renseigne au logiciel le diamètre de l&#8217;outil, son positionnement par rapport à la pièce, la vitesse d&#8217;avance&#8230; Bien qu&#8217;assez jeune, ce logiciel donne de très bon résultats.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/030_heekscad-home-pierre-Documents-CAD-CNC-taquet_bateau-taquet.heeks_.png" rel="lightbox[1409]"><img class="aligncenter size-full wp-image-1423" title="HeeksCAD" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/030_heekscad-home-pierre-Documents-CAD-CNC-taquet_bateau-taquet.heeks_.png" alt="" width="908" height="592" /></a></p>
<p>&nbsp;</p>
<p>En dehors des DXF, il y a les fichiers GERBER de Kicad. Là j&#8217;utilise <a href="http://sourceforge.net/apps/mediawiki/pcb2gcode/index.php?title=Main_Page" target="_blank">pcb2gcode</a> qui est un logiciel en ligne de commande.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/outp0_original_back.png" rel="lightbox[1409]"><img class="aligncenter size-large wp-image-1422" title="pcb2gcode" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/outp0_original_back-1024x489.png" alt="" width="590" height="281" /></a></p>
<p>&nbsp;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pcb2gcode <span style="color: #660033;">--metric</span> <span style="color: #660033;">--zsafe</span> <span style="color: #000000;">2</span> <span style="color: #660033;">--zwork</span> -<span style="color: #000000;">0.06</span> <span style="color: #660033;">--offset</span> <span style="color: #000000;">0.2</span> <span style="color: #660033;">--zchange</span> <span style="color: #000000;">25</span> <span style="color: #660033;">--mill-feed</span> <span style="color: #000000;">100</span> <span style="color: #660033;">--mill-speed</span> <span style="color: #000000;">5000</span> <span style="color: #660033;">--back</span> <span style="color: #007800;">$back</span></pre></div></div>

<ul>
<li><span style="font-size: large;"><strong> Pilotage de la CNC</strong></span></li>
</ul>
<p>Ici, un seul choix et non des moindres: EMC (<a href="http://www.linuxcnc.org/" target="_blank">LinuxCNC</a>). Il prend en entrée les fichiers gcode et pilote la machine au travers d&#8217;un support temps réel du noyau linux. Il est préférable d&#8217;ailleurs de lui dédier une ancienne machine.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/screen_thumb.png" rel="lightbox[1409]"><img class="aligncenter size-full wp-image-1425" title="EMC" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/screen_thumb.png" alt="" width="350" height="250" /></a></p>
<p>Et voilà après 2 heures de travail une manette de coinceur pour un voilier. L&#8217;originale en rouge est fendue, la nouvelle en DELRIN est très solide <img src='http://www.equinoxefr.org/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  et identique à l&#8217;originale (les économies de plastique en moins), elle parait plus épaisse mais ce n&#8217;est qu&#8217;un effet d&#8217;optique sur la photo.</p>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8804.jpg" rel="lightbox[1409]"><img class="aligncenter size-large wp-image-1426" title="Taquet" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8804-1024x1024.jpg" alt="" width="590" height="590" /></a></p>
<p>&nbsp;</p>
<p style="text-align: center;"><span style="font-size: large;">Diagramme du flux de production</span></p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/diagramme_CNC.png" rel="lightbox[1409]"><img class="aligncenter size-large wp-image-1413" title="diagramme_CNC" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/diagramme_CNC-1024x724.png" alt="" width="590" height="417" /></a></p>
<p>&nbsp;</p>
<p>Si vous connaissez, utilisez d&#8217;autres outils, mettez les en commentaire c&#8217;est toujours intéressant !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/01/21/flux-de-creation-de-fichiers-gcode-avec-des-outils-libres/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Compilation de RPM et erreur &#171;&#160;*** ERROR: No build ID note found&#160;&#187;</title>
		<link>http://www.equinoxefr.org/post/2012/01/04/compilation-de-rpm-et-erreur-error-no-build-id-note-found/</link>
		<comments>http://www.equinoxefr.org/post/2012/01/04/compilation-de-rpm-et-erreur-error-no-build-id-note-found/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 10:25:25 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[centos]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[rpmbuild]]></category>
		<category><![CDATA[spec]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1364</guid>
		<description><![CDATA[Si vous avez des erreurs &#171;&#160;*** ERROR: No build ID note found&#160;&#187; lors de la construction de paquets RPM ( J&#8217;utilise ici une Centos 6.2 x64 ) ça vient du script find-debuginfo.sh + /usr/bin/install -d /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install + /bin/cp -R ./FILES ./Makefile.PL ./apps ./bin ./doc ./etc ./installer ./lib ./man ./resources ./vmware-install.pl ./yes /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install + /usr/lib/rpm/find-debuginfo.sh --strict-build-id &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/01/04/compilation-de-rpm-et-erreur-error-no-build-id-note-found/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Si vous avez des erreurs &laquo;&nbsp;<em>*** ERROR: No build ID note found</em>&nbsp;&raquo; lors de la construction de paquets RPM ( J&#8217;utilise ici une Centos 6.2 x64 ) ça vient du script <strong>find-debuginfo.sh</strong></p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">+ /usr/bin/install -d /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install
+ /bin/cp -R ./FILES ./Makefile.PL ./apps ./bin ./doc ./etc ./installer ./lib ./man ./resources ./vmware-install.pl ./yes /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install
+ /usr/lib/rpm/find-debuginfo.sh --strict-build-id /home/build/rpm/BUILD/vmware-vsphere-sdk-4.0.0.161974
*** ERROR: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/XML-LibXML-1.63/lib/auto/XML/LibXML/LibXML.so
erreur: Mauvais status de sortie pour /home/build/rpm/tmp/rpm-tmp.3M3FWw (%install)
    Mauvais status de sortie pour /home/build/rpm/tmp/rpm-tmp.3M3FWw (%install)
Exécution_de(%prep): /bin/sh -e /home/build/rpm/tmp/rpm-tmp.ilG9fL</pre></div></div>

<p>Vous pouvez passer outre en ajoutant la directive</p>
<p><strong><code>%undefine _missing_build_ids_terminate_build</code></strong></p>
<p><strong><code></code></strong> au début de votre fichier SPEC. Voici un extrait de mon fichier:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">%</span>undefine _missing_build_ids_terminate_build
Name:           vmware-vsphere-sdk
Version:        4.0.0.161974
Release:        <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">%</span><span style="color: #7a0874; font-weight: bold;">&#123;</span>?dist<span style="color: #7a0874; font-weight: bold;">&#125;</span>
Summary:       Vmware SDK <span style="color: #000000; font-weight: bold;">for</span> Perl</pre></div></div>

<p>L&#8217;erreur précédente devient qu&#8217;un simple Warning sans incidence.</p>

<div class="wp_syntax"><div class="code"><pre class="text" style="font-family:monospace;">+ /usr/bin/install -d /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install
+ /bin/cp -R ./FILES ./Makefile.PL ./apps ./bin ./doc ./etc ./installer ./lib ./man ./resources ./vmware-install.pl ./yes /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install
+ /usr/lib/rpm/find-debuginfo.sh /home/build/rpm/BUILD/vmware-vsphere-sdk-4.0.0.161974
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/XML-LibXML-1.63/lib/auto/XML/LibXML/LibXML.so
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/Compress-Raw-Zlib-2.005/lib/auto/Compress/Raw/Zlib/Zlib.so
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/Data-Dumper-2.121/lib/auto/Data/Dumper/Dumper.so
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/UUID-0.03/lib/auto/UUID/UUID.so
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/bin/libcrypto.so.0.9.8
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/bin/libssl.so.0.9.8
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/Class-MethodMaker-2.10/lib/auto/Class/MethodMaker/MethodMaker.so
*** WARNING: No build ID note found in /home/build/rpm/BUILDROOT/vmware-vsphere-sdk-4.0.0.161974-2.el6.x86_64/usr/local/vmware-sdk-install/lib/XML-LibXML-Common-0.13/lib/auto/XML/LibXML/Common/Common.so</pre></div></div>

<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/01/04/compilation-de-rpm-et-erreur-error-no-build-id-note-found/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Agent d&#8217;inventaire OCS-NG et clients légers</title>
		<link>http://www.equinoxefr.org/post/2011/12/27/agent-dinventaire-ocs-ng-et-clients-legers/</link>
		<comments>http://www.equinoxefr.org/post/2011/12/27/agent-dinventaire-ocs-ng-et-clients-legers/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 11:07:14 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[agent]]></category>
		<category><![CDATA[Embarqué]]></category>
		<category><![CDATA[inventaire]]></category>
		<category><![CDATA[ocs-ng]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[t5tux]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1354</guid>
		<description><![CDATA[Depuis quelques années nous utilisons des clients légers HP pour lesquels nous avons développé une image sous linux (t5tux). Cette drôle d&#8217;idée présente de nombreux avantages: On ne dépend de personne pour les mises à jour des client ( RDP, Citrix et autres&#8230; ). Cette image a été faite quand HP ne proposait pas linux &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2011/12/27/agent-dinventaire-ocs-ng-et-clients-legers/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/12/t5.jpg" rel="lightbox[1354]"><img class="aligncenter size-full wp-image-1355" title="t5" src="http://www.equinoxefr.org/wp-content/uploads/2011/12/t5.jpg" alt="" width="220" height="220" /></a></p>
<p>Depuis quelques années nous utilisons des clients légers HP pour lesquels nous avons développé une image sous linux (<a href="http://linuxfr.org/news/naissance-de-t5tux">t5tux</a>). Cette drôle d&#8217;idée présente de nombreux avantages:</p>
<ul>
<li>On ne dépend de personne pour les mises à jour des client ( RDP, Citrix et autres&#8230; ).</li>
<li>Cette image a été faite quand HP ne proposait pas linux sur ses clients légers.</li>
<li>La même image fonctionne sur plusieurs générations de clients.</li>
<li>La config est téléchargée en TFTP.</li>
<li>L&#8217;image se met à jour toute seule avec PXE.</li>
<li>On apprend plein de choses&#8230;</li>
</ul>
<p>Bref&#8230; l&#8217;histoire continue avec un nouveau problème: inventorier ces postes avec <a href="http://www.ocsinventory-ng.org/en/" target="_blank">OCS-NG</a>.</p>
<p>OCS dispose d&#8217;un agent d&#8217;inventaire pour linux mais celui-ci est assez lourd. De plus, il dispose d&#8217;un grand nombre de fonctionnalités inutiles dans notre cas. Nous souhaitons un minimum d&#8217;infos: numéro de série, model, ip, mac&#8230;</p>
<p>La communication entre l&#8217;agent et le serveur se fait avec un fichier XML compressé ou non avec ZLIB et transmis dans une reqûete de type POST. Pourquoi ne pas générer un XML minimaliste et l&#8217;envoyer nous même ?</p>
<p>Un simple script bash, épaulé de quelques utilitaires: dmidecode, busybox, wget fera l&#8217;affaire.</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
<span style="color: #666666; font-style: italic;">#! /bin/sh</span>
&nbsp;
<span style="color: #007800;">model</span>=<span style="color: #000000; font-weight: bold;">`/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>dmidecode <span style="color: #660033;">-s</span> system-product-name<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">type</span>=<span style="color: #000000; font-weight: bold;">`/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>dmidecode <span style="color: #660033;">-s</span> baseboard-product-name<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">bytes</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">free</span> <span style="color: #660033;">-k</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Mem <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $2 }'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">memory</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$bytes</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">bytes</span>=<span style="color: #000000; font-weight: bold;">`</span>fdisk <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Disk <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> da <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f2</span> -d, <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">awk</span> <span style="color: #ff0000;">'{ print $1 }'</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">disk</span>=$<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #007800;">$bytes</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">1024</span><span style="color: #7a0874; font-weight: bold;">&#41;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">serial</span>=<span style="color: #000000; font-weight: bold;">`/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>dmidecode <span style="color: #660033;">-s</span> system-serial-number<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">hwaddr</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> HWaddr <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s/.*HWaddr \(.*\)/\1/&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">ip</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #ff0000;">&quot;inet addr&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sed</span> <span style="color: #ff0000;">&quot;s/.*addr:\(.*\) B.*/\1/&quot;</span><span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">tag</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">hostname</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">cut</span> <span style="color: #660033;">-f1</span> -d-<span style="color: #000000; font-weight: bold;">`</span>
<span style="color: #007800;">hostname</span>=<span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">hostname</span><span style="color: #000000; font-weight: bold;">`</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Model: <span style="color: #007800;">$model</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Ram: <span style="color: #007800;">$memory</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Disk: <span style="color: #007800;">$disk</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Serial: <span style="color: #007800;">$serial</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;Mac: <span style="color: #007800;">$hwaddr</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;ip: <span style="color: #007800;">$ip</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;tag: <span style="color: #007800;">$tag</span>&quot;</span>
<span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #ff0000;">&quot;hostname: <span style="color: #007800;">$hostname</span>&quot;</span>
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">&lt;&lt;</span> EOF <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>inventory.xml
<span style="color: #000000; font-weight: bold;">&lt;</span>?xml <span style="color: #007800;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #007800;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span>?<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;</span>REQUEST<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>CONTENT<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>ACCOUNTINFO<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>KEYNAME<span style="color: #000000; font-weight: bold;">&gt;</span>TAG<span style="color: #000000; font-weight: bold;">&lt;/</span>KEYNAME<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>KEYVALUE<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$tag</span><span style="color: #000000; font-weight: bold;">&lt;/</span>KEYVALUE<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>ACCOUNTINFO<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>BIOS<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>ASSETTAG<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$serial</span><span style="color: #000000; font-weight: bold;">&lt;/</span>ASSETTAG<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>BMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>Hewlett-Packard<span style="color: #000000; font-weight: bold;">&lt;/</span>BMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>MMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>Hewlett-Packard<span style="color: #000000; font-weight: bold;">&lt;/</span>MMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>MSN<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$serial</span><span style="color: #000000; font-weight: bold;">&lt;/</span>MSN<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>SMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>Hewlett-Packard<span style="color: #000000; font-weight: bold;">&lt;/</span>SMANUFACTURER<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>SMODEL<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$model</span> - <span style="color: #007800;">$type</span><span style="color: #000000; font-weight: bold;">&lt;/</span>SMODEL<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>SSN<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$serial</span><span style="color: #000000; font-weight: bold;">&lt;/</span>SSN<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>BIOS<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>HARDWARE<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>CHECKSUM<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #000000;">131071</span><span style="color: #000000; font-weight: bold;">&lt;/</span>CHECKSUM<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>MEMORY<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$memory</span><span style="color: #000000; font-weight: bold;">&lt;/</span>MEMORY<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>NAME<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$hostname</span><span style="color: #000000; font-weight: bold;">&lt;/</span>NAME<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>OSCOMMENTS<span style="color: #000000; font-weight: bold;">&gt;</span>T5TUX<span style="color: #000000; font-weight: bold;">&lt;/</span>OSCOMMENTS<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>OSNAME<span style="color: #000000; font-weight: bold;">&gt;</span>t5tux<span style="color: #000000; font-weight: bold;">&lt;/</span>OSNAME<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>VMSYSTEM<span style="color: #000000; font-weight: bold;">&gt;</span>Physical<span style="color: #000000; font-weight: bold;">&lt;/</span>VMSYSTEM<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>HARDWARE<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>NETWORKS<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>DESCRIPTION<span style="color: #000000; font-weight: bold;">&gt;</span>eth0<span style="color: #000000; font-weight: bold;">&lt;/</span>DESCRIPTION<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>IPADDRESS<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$ip</span><span style="color: #000000; font-weight: bold;">&lt;/</span>IPADDRESS<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>MACADDR<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$hwaddr</span><span style="color: #000000; font-weight: bold;">&lt;/</span>MACADDR<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>TYPE<span style="color: #000000; font-weight: bold;">&gt;</span>Ethernet<span style="color: #000000; font-weight: bold;">&lt;/</span>TYPE<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>NETWORKS<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;</span>STORAGES<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>DESCRIPTION<span style="color: #000000; font-weight: bold;">&gt;</span>FLASH<span style="color: #000000; font-weight: bold;">&lt;/</span>DESCRIPTION<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>DISKSIZE<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$disk</span><span style="color: #000000; font-weight: bold;">&lt;/</span>DISKSIZE<span style="color: #000000; font-weight: bold;">&gt;</span>
      <span style="color: #000000; font-weight: bold;">&lt;</span>TYPE<span style="color: #000000; font-weight: bold;">&gt;</span>disk<span style="color: #000000; font-weight: bold;">&lt;/</span>TYPE<span style="color: #000000; font-weight: bold;">&gt;</span>
    <span style="color: #000000; font-weight: bold;">&lt;/</span>STORAGES<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;/</span>CONTENT<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>DEVICEID<span style="color: #000000; font-weight: bold;">&gt;</span><span style="color: #007800;">$hostname</span>-<span style="color: #000000;">9999</span>-01-01-01-01-01<span style="color: #000000; font-weight: bold;">&lt;/</span>DEVICEID<span style="color: #000000; font-weight: bold;">&gt;</span>
  <span style="color: #000000; font-weight: bold;">&lt;</span>QUERY<span style="color: #000000; font-weight: bold;">&gt;</span>INVENTORY<span style="color: #000000; font-weight: bold;">&lt;/</span>QUERY<span style="color: #000000; font-weight: bold;">&gt;</span>
<span style="color: #000000; font-weight: bold;">&lt;/</span>REQUEST<span style="color: #000000; font-weight: bold;">&gt;</span>
&nbsp;
EOF
&nbsp;
<span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">--post-file</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>inventory.xml http:<span style="color: #000000; font-weight: bold;">//</span>ocs-ng.xxxx.fr<span style="color: #000000; font-weight: bold;">/</span>ocsinventory</pre></td></tr></table></div>

<p>Quelques astuces:</p>
<ul>
<li>wget avec un &laquo;&nbsp;&#8211;post-file monfichier&nbsp;&raquo; ou curl avec un &laquo;&nbsp;&#8211;binary-data @monfichier&nbsp;&raquo; permettent de poster des données.</li>
<li>le CHECKSUM à 131071 indique que toutes les données sont modifiées. J&#8217;ai trouvé cette info sur un forum mais pas dans la doc officielle.</li>
<li>Le client léger est en lecture seule du coup le DEVICEID ne peut être stocké. La date servant à sa génération est falsifiée: &laquo;&nbsp;9999-01-01-01-01-01&#8243;</li>
</ul>
<p>Très simple et pas forcément très élégant mais ça marche très bien !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/12/27/agent-dinventaire-ocs-ng-et-clients-legers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archlinux, udev et les mots clefs.</title>
		<link>http://www.equinoxefr.org/post/2011/11/30/archlinux-udev-et-les-mots-clefs/</link>
		<comments>http://www.equinoxefr.org/post/2011/11/30/archlinux-udev-et-les-mots-clefs/#comments</comments>
		<pubDate>Wed, 30 Nov 2011 17:59:26 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[ATTRS]]></category>
		<category><![CDATA[mise à jour]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[SYSFS]]></category>
		<category><![CDATA[udev]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1333</guid>
		<description><![CDATA[Dans les dernières versions d&#8217;UDEV, le mot clef SYSFS n&#8217;est plus supporté. Si vous utilisez des règles udev personnalisées, vous aurez ce message d&#8217;erreur dans la console et les logs: udevd[257]: unknown key 'SYSFS{idVendor}' in /etc/udev/rules.d/51-garmin.rules Allez dans /etc/udev/rules.d et lancez un petit coup de sed: sed -i -e s/SYSFS/ATTR/g *.rules &#160;]]></description>
			<content:encoded><![CDATA[<p>Dans les dernières versions d&#8217;UDEV, le mot clef SYSFS n&#8217;est plus supporté. Si vous utilisez des règles udev personnalisées, vous aurez ce message d&#8217;erreur dans la console et les logs:</p>
<pre>udevd[257]: unknown key 'SYSFS{idVendor}'
in /etc/udev/rules.d/51-garmin.rules</pre>
<p>Allez dans /etc/udev/rules.d et lancez un petit coup de sed:</p>
<pre>sed -i -e s/SYSFS/ATTR/g *.rules</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/11/30/archlinux-udev-et-les-mots-clefs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Archlinux, openssh et erreur X protocol error: BadAccess (attempt to access private resource denied)</title>
		<link>http://www.equinoxefr.org/post/2011/11/10/archlinux-openssh-et-erreur-x-protocol-error-badaccess-attempt-to-access-private-resource-denied/</link>
		<comments>http://www.equinoxefr.org/post/2011/11/10/archlinux-openssh-et-erreur-x-protocol-error-badaccess-attempt-to-access-private-resource-denied/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 17:37:09 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[X11]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1325</guid>
		<description><![CDATA[Si vous avez comme moi des erreurs Lorsque vous utilisez le forwarding X11 avec ssh sous Archlinux, il faut: soit utiliser la commande ssh -Y pour autoriser le &#171;&#160;trusted forwarding&#171;&#160; soit placer la directive &#171;&#160;ForwardX11Trusted yes&#160;&#187; dans le fichier /etc/ssh/ssh_config &#160; &#160;]]></description>
			<content:encoded><![CDATA[<p>Si vous avez comme moi des erreurs</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/11/S%C3%A9lection_012.png" rel="lightbox[1325]"><img class="aligncenter size-full wp-image-1330" title="X protocol error: BadAccess (attempt to access private resource denied)" src="http://www.equinoxefr.org/wp-content/uploads/2011/11/S%C3%A9lection_012.png" alt="X protocol error: BadAccess (attempt to access private resource denied)" width="667" height="18" /></a></p>
<p>Lorsque vous utilisez le forwarding X11 avec ssh sous Archlinux, il faut:</p>
<ul>
<li>soit utiliser la commande<strong> ssh -Y</strong> pour autoriser le &laquo;&nbsp;<em>trusted forwarding</em>&laquo;&nbsp;</li>
<li>soit placer la directive &laquo;&nbsp;<strong>ForwardX11Trusted yes</strong>&nbsp;&raquo; dans le fichier <strong>/etc/ssh/ssh_config</strong></li>
</ul>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/11/10/archlinux-openssh-et-erreur-x-protocol-error-badaccess-attempt-to-access-private-resource-denied/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gnome shell gèle lors des recherches depuis le &#171;&#160;dash&#160;&#187;</title>
		<link>http://www.equinoxefr.org/post/2011/11/04/gnome-shell-gele-lors-des-recherches-depuis-le-dash/</link>
		<comments>http://www.equinoxefr.org/post/2011/11/04/gnome-shell-gele-lors-des-recherches-depuis-le-dash/#comments</comments>
		<pubDate>Fri, 04 Nov 2011 17:35:49 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome-shell]]></category>
		<category><![CDATA[thème]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1311</guid>
		<description><![CDATA[Depuis quelques jours, gnome-shell gèle lorsque j&#8217;utilise les recherches depuis le dash. La session n&#8217;est pas complètement plantée, c&#8217;est juste l&#8217;interface de gnome qui ne répond plus dès qu&#8217;une ou deux lettres sont tapées dans le champ de recherche. &#160; Il s&#8217;avère que la solution provisoire à ce problème est d&#8217;utiliser le thème par défaut &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2011/11/04/gnome-shell-gele-lors-des-recherches-depuis-le-dash/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Depuis quelques jours, gnome-shell gèle lorsque j&#8217;utilise les recherches depuis le dash. La session n&#8217;est pas complètement plantée, c&#8217;est juste l&#8217;interface de gnome qui ne répond plus dès qu&#8217;une ou deux lettres sont tapées dans le champ de recherche.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/11/gnome-shell.png" rel="lightbox[1311]"><img class="aligncenter size-full wp-image-1313" title="gnome-shell" src="http://www.equinoxefr.org/wp-content/uploads/2011/11/gnome-shell.png" alt="" width="432" height="328" /></a></p>
<p>&nbsp;</p>
<p>Il s&#8217;avère que la solution provisoire à ce problème est d&#8217;utiliser le thème par défaut de gnome et non un autre. Je ne sais pas pourquoi, mais en attendant, c&#8217;est mieux que rien pour pouvoir utiliser cette fonction qui avec l&#8217;habitude devient vite indispensable.</p>
<p>J&#8217;utilise gnome 3.2 avec Archlinux mais au vu des discussions dans les forums, plusieurs distributions sont concernées.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/11/04/gnome-shell-gele-lors-des-recherches-depuis-le-dash/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>[METEO] Fichiers GRIB sous Linux avec ZyGrib</title>
		<link>http://www.equinoxefr.org/post/2011/07/25/meteo-fichiers-grib-sous-linux-avec-zygrib/</link>
		<comments>http://www.equinoxefr.org/post/2011/07/25/meteo-fichiers-grib-sous-linux-avec-zygrib/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 16:46:31 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[grib]]></category>
		<category><![CDATA[meteo]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[zygrib]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1209</guid>
		<description><![CDATA[Les fichiers GRIB sont des fichiers contenant des données météo librement téléchargeable (GRIB (GRIdded Binary) is a mathematically concise data format commonly used in meteorology to store historical and forecast weather data. Source wikipedia). Ils sont souvent utilisés pour la navigation. Certains sites web comme Windguru permettent de visualiser ces données en ligne. Mais il peut s&#8217;avérer utile de disposer &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2011/07/25/meteo-fichiers-grib-sous-linux-avec-zygrib/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Les fichiers GRIB sont des fichiers contenant des données météo librement téléchargeable (GRIB (GRIdded Binary) is a mathematically concise data format commonly used in <a title="Meteorology" href="http://en.wikipedia.org/wiki/Meteorology">meteorology</a> to store historical and <a title="Weather forecast" href="http://en.wikipedia.org/wiki/Weather_forecast">forecast</a> weather data.<span style="font-size: xx-small;"><em> Source wikipedia</em></span>). Ils sont souvent utilisés pour la navigation. Certains sites web comme <a href="http://www.windguru.cz/fr/" target="_blank">Windguru</a> permettent de visualiser ces données en ligne. Mais il peut s&#8217;avérer utile de disposer d&#8217;un logiciel permettant de télécharger et d&#8217;utiliser ces données hors ligne. Il existe <a href="http://www.zygrib.org/" target="_blank">ZyGrib</a> disponible pour Linux, Windows et MacOS.</p>
<p>L&#8217;installation est simple:</p>
<ul>
<li>Pour Archlinux:<em> yaourt -S zygrib zygrib-maps</em> (Avec les dépots AUR activés)</li>
<li>Pour Ubuntu / Debian: Les paquets sont disponibles <a href="http://www.zygrib.org/index.php?page=download" target="_blank">ici</a></li>
</ul>
<p><span>Des cartes plus détaillées sont disponibles sur le site de zygrib.</span></p>
<div>Lors de son lancement, le logiciel affiche un fond de carte. Vous pouvez alors vous déplacer/zoomer vers la zone qui vous intéresse.</div>
<div><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/001_zyGrib-5.0.2.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1216" title="001_zyGrib-5.0.2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/001_zyGrib-5.0.2-1024x619.png" alt="" width="590" height="356" /></a>Sélectionnez à l&#8217;aide de la souris la zone pour laquelle vous souhaitez télécharger les données météo.</div>
<div><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/002_zyGrib-5.0.2.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1217" title="002_zyGrib-5.0.2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/002_zyGrib-5.0.2-1024x619.png" alt="" width="590" height="356" /></a>Cliquez ensuite sur l&#8217;icône représentant une &laquo;&nbsp;terre&nbsp;&raquo;. Une boite de dialogue permettant d&#8217;affiner les données à télécharger va s&#8217;ouvrir.</div>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/003_Téléchargement-GRIB.png" rel="lightbox[1209]"><img class="aligncenter size-full wp-image-1219" title="003_Téléchargement - GRIB" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/003_Téléchargement-GRIB.png" alt="" width="568" height="483" /></a>Réglez les différents paramètres comme vous le souhaitez. Pensez aussi à changer la durée des prévisions, qui peut aller de 1 à 8 jours.</p>
<p>Pour ceux qui le souhaitent, des informations sur les vagues sont aussi disponibles dans le dernier onglet.</p>
<div><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/004_Téléchargement-GRIB.png" rel="lightbox[1209]"><img class="aligncenter size-full wp-image-1221" title="004_Téléchargement - GRIB" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/004_Téléchargement-GRIB.png" alt="" width="568" height="483" /></a></div>
<p>Lancez le téléchargement et patientez quelques instants. Vous avez ensuite une magnifique carte des données météo. Vous pouvez afficher les informations précises concernant une zone à l&#8217;aide de la souris.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/006_zyGrib-5.0.2-20110725_142742_.grb_.bz2_.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1223" title="006_zyGrib-5.0.2 - 20110725_142742_.grb.bz2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/006_zyGrib-5.0.2-20110725_142742_.grb_.bz2_-1024x619.png" alt="" width="590" height="356" /></a>Un clic droit sur une zone de la carte permet d&#8217;afficher les prévisions sous forme de tableau, ce qui est très utile.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/007_-44°3624N-001°2530W.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1224" title="007_ 44°36'24&quot;N  001°25'30&quot;W" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/007_-44°3624N-001°2530W-1024x487.png" alt="" width="590" height="280" /></a>Le menu &laquo;&nbsp;<strong>Données</strong>&nbsp;&raquo; permet d&#8217;afficher différentes données sur la carte.</p>
<ul>
<li>La couverture nuageuse</li>
</ul>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/008_zyGrib-5.0.2-20110725_143124_.grb_.bz2_.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1225" title="008_zyGrib-5.0.2 - 20110725_143124_.grb.bz2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/008_zyGrib-5.0.2-20110725_143124_.grb_.bz2_-1024x619.png" alt="" width="590" height="356" /></a></p>
<ul>
<li>Les précipitations</li>
</ul>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/009_zyGrib-5.0.2-20110725_143124_.grb_.bz2_.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1226" title="009_zyGrib-5.0.2 - 20110725_143124_.grb.bz2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/009_zyGrib-5.0.2-20110725_143124_.grb_.bz2_-1024x619.png" alt="" width="590" height="356" /></a></p>
<ul>
<li>Le vent</li>
</ul>
<div><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/010_zyGrib-5.0.2-20110725_143124_.grb_.bz2_.png" rel="lightbox[1209]"><img class="aligncenter size-large wp-image-1227" title="010_zyGrib-5.0.2 - 20110725_143124_.grb.bz2" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/010_zyGrib-5.0.2-20110725_143124_.grb_.bz2_-1024x619.png" alt="" width="590" height="356" /></a></div>
<p>Comble du raffinement, on peut afficher les données météo de la période sous forme d&#8217;animation. Cette animation peut même être exportée sous forme de série d&#8217;images. Vous pourrez alors les convertir en video avec ffmpeg.</p>
<pre>ffmpeg -r 3 -i test_%03d.jpg -b 2000k -r 25 -vcodec mpeg4 -sameq test.mp4</pre>
<p>Ce qui donne ceci: <a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/test.mp4">test</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/07/25/meteo-fichiers-grib-sous-linux-avec-zygrib/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://www.equinoxefr.org/wp-content/uploads/2011/07/test.mp4" length="7463594" type="video/mp4" />
		</item>
		<item>
		<title>Créez des &#171;&#160;routes&#160;&#187; pour GPS Garmin avec Viking sous Linux</title>
		<link>http://www.equinoxefr.org/post/2011/07/25/gerer-votre-gps-garmin-sous-linux-avec-viking/</link>
		<comments>http://www.equinoxefr.org/post/2011/07/25/gerer-votre-gps-garmin-sous-linux-avec-viking/#comments</comments>
		<pubDate>Mon, 25 Jul 2011 11:57:46 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[garmin]]></category>
		<category><![CDATA[gps]]></category>
		<category><![CDATA[gpsbabel]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[viking]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1181</guid>
		<description><![CDATA[Sous linux, la véritable trousse à outil du GPS c&#8217;est l&#8217;excellent gpsbabel. Il permet de transférer, transformer, filtrer toutes sortes de données provenant de nos GPS. Par contre, pour préparer un trajet et créer une route ou pour visualiser ses données sur une carte &#171;&#160;hors ligne&#160;&#187; ce n&#8217;est pas le bon outil. C&#8217;est là qu&#8217;intervient &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2011/07/25/gerer-votre-gps-garmin-sous-linux-avec-viking/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Sous linux, la véritable trousse à outil du GPS c&#8217;est l&#8217;excellent <a href="http://www.gpsbabel.org/" target="_blank">gpsbabel</a>. Il permet de transférer, transformer, filtrer toutes sortes de données provenant de nos GPS. Par contre, pour préparer un trajet et créer une route ou pour visualiser ses données sur une carte &laquo;&nbsp;hors ligne&nbsp;&raquo; ce n&#8217;est pas le bon outil. C&#8217;est là qu&#8217;intervient <a href="http://sourceforge.net/apps/mediawiki/viking/index.php?title=Main_Page" target="_blank">Viking</a>, il permet d&#8217;afficher les informations provenant de votre GPS sur des fonds de carte <a href="http://www.openstreetmap.org/" target="_blank">openstreetmap</a> et surtout de préparer vos trajets en planifiant des routes.</p>
<p>Ces 2 logiciels sont fournis avec de nombreuses distribution. L&#8217;installation se résume à:</p>
<ul>
<li>pour Archlinux: <span style="background-color: #ffffff;"><em>yaourt -S viking gpsbabel</em></span></li>
<li>pour Ubuntu:<span style="background-color: #ffffff;"><em> apt-get install <em>viking gpsbabel</em></em></span></li>
<li>pour Fedora:<span style="background-color: #ffffff;"><em><em> yum -y install <em>viking gpsbabel</em></em></em></span></li>
</ul>
<p><span style="font-size: x-small;"><em><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_001.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1186" title="SansTitre - Viking_001" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_001.png" alt="" width="1002" height="774" /></a></em></span>Viking est très simple d&#8217;emploi, son usage essentiel se résume à l&#8217;import / export de données GPS et à l&#8217;ajout de calques représentant des fonds cartographiques.</p>
<p>Une fois le logiciel lancé, ajoutons un fond de carte avec le menu <strong>&laquo;&nbsp;Nouveau calque &laquo;&nbsp;Map&nbsp;&raquo;"</strong><br />
<a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_003.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1190" title="SansTitre - Viking_003" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_003.png" alt="" width="1002" height="774" /></a>Le logiciel propose différents fonds de cartes, la plupart basés sur les données openstreetmap. Nous choisirons ici le type de carte par défaut et nous demanderons le<strong> &laquo;&nbsp;téléchargement automatique&nbsp;&raquo;</strong> des cartes.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/Propriétés-du-calque_004.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1192" title="Propriétés du calque_004" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/Propriétés-du-calque_004.png" alt="" width="413" height="231" /></a></p>
<p>Nous avons maintenant une carte à l&#8217;écran. Pour la manipuler, on peut utiliser la <strong>routette de la souris</strong> pour zoomer et les touches<strong> CTRL + Flèches</strong> pour se déplacer sur la carte. Des outils de recherche de lieux sont aussi disponibles dans le menu <strong>&laquo;&nbsp;Vue&nbsp;&raquo;</strong> / <strong>&laquo;&nbsp;Aller à la position&nbsp;&raquo;</strong>.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_005.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1195" title="SansTitre - Viking_005" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_005.png" alt="" width="1002" height="774" /></a>Nous allons maintenant ajouter une couche avec les données GPS. Pour cela allez dans le menu <strong>&laquo;&nbsp;Nouveau calque &laquo;&nbsp;GPS&nbsp;&raquo;"</strong>.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_006.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1196" title="SansTitre - Viking_006" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_006.png" alt="" width="1002" height="774" /></a></p>
<p>Sélectionnez alors votre marque de GPS (ici Garmin) avec le protocole de communication (ici USB:).</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/Propriétés-du-calque_007.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1197" title="Propriétés du calque_007" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/Propriétés-du-calque_007.png" alt="" width="413" height="310" /></a>Dans la liste des calques sur la gauche, sélectionnez la couche<strong> &laquo;&nbsp;traces&nbsp;&raquo;</strong>. Vous avez alors 2 icônes pour dessiner des traces sur le fond de carte.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_008.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1198" title="SansTitre - Viking_008" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_008.png" alt="" width="1002" height="774" /></a>Utilisez l<strong>&#8216;icone verte </strong>ou<strong> orange</strong>, peu importe, pour commencer votre trace. Donnez un nom à la route que vous souhaitez charger dans votre GPS.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/Ajouter-une-trace_009.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1199" title="Ajouter une trace_009" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/Ajouter-une-trace_009.png" alt="" width="192" height="104" /></a></p>
<p>A chaque changement de direction important, cliquez avec le<strong> bouton gauche</strong> sur la carte pour tracer votre route. Un<strong> clic droit</strong> efface le dernier point de la trace.</p>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_010.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1201" title="SansTitre - Viking_010" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_010.png" alt="" width="1002" height="774" /></a>Une fois votre trajet défini, vous pouvez exporter cette trace au format GPX.</p>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_011.png" rel="lightbox[1181]"><img class="aligncenter size-full wp-image-1202" title="SansTitre - Viking_011" src="http://www.equinoxefr.org/wp-content/uploads/2011/07/SansTitre-Viking_011.png" alt="" width="1002" height="774" /></a></p>
<p>Maintenant que notre trace est exportée, nous avons un fichier GPX compatible avec notre GPS. Nous aurions pu l&#8217;exporter vers le GPS directement depuis Viking mais le fichier est au format &laquo;&nbsp;trace&nbsp;&raquo; et non &laquo;&nbsp;route&nbsp;&raquo;, notre GPS ne gérera donc pas le routage ! C&#8217;est là que le génialissime gpsbabel est utile. Nous allons appliquer un filtre au fichier GPX qui va transformer la trace en route et l&#8217;envoyer directement au GPS.</p>
<p>&nbsp;</p>
<pre>gpsbabel -w -r -t -i gpx -f test.gpx -x transform,rte=trk \</pre>
<pre>-x simplify,count=500 -o garmin -F usb:</pre>
<p>&laquo;&nbsp;count=500&#8243; permet de &laquo;&nbsp;simplifier&nbsp;&raquo; la route en limitant le nombre de points pour les traces très longues.</p>
<p>&nbsp;</p>
<p>Si jamais vous trouviez les cartes d&#8217;openstreetmap incomplètes, rien ne vous empêche de <a href="http://wiki.openstreetmap.org/wiki/FR:Beginners_Guide_1.3" target="_blank">participer au projet</a> en les complétant !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/07/25/gerer-votre-gps-garmin-sous-linux-avec-viking/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>

