<?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; EquinoxeFR</title>
	<atom:link href="http://www.equinoxefr.org/post/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.equinoxefr.org</link>
	<description>DIY Lab</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:39:55 +0000</lastBuildDate>
	<language>fr</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<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>1</slash:comments>
		</item>
		<item>
		<title>Petit tutoriel vidéo pour utiliser LibreCAD, HeeksCAD et HeeksCNC</title>
		<link>http://www.equinoxefr.org/post/2012/01/21/petit-tutoriel-video-pour-utiliser-librecad-heekscad-et-heekscnc/</link>
		<comments>http://www.equinoxefr.org/post/2012/01/21/petit-tutoriel-video-pour-utiliser-librecad-heekscad-et-heekscnc/#comments</comments>
		<pubDate>Sat, 21 Jan 2012 11:03:37 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Do it]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[fraiseuse]]></category>
		<category><![CDATA[gcode]]></category>
		<category><![CDATA[heekscad]]></category>
		<category><![CDATA[heekscnc]]></category>
		<category><![CDATA[librecad]]></category>
		<category><![CDATA[tutoriel]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1404</guid>
		<description><![CDATA[Un tout petit tutoriel pour apprendre à créer des fichiers GCODE en 5 minutes avec LibreCAD, HeeksCAD et HeeksCNC. A voir en 720p / FullScreen sur Youtube.]]></description>
			<content:encoded><![CDATA[<p>Un tout petit tutoriel pour apprendre à créer des fichiers GCODE en 5 minutes avec LibreCAD, HeeksCAD et HeeksCNC.</p>
<p>A voir en 720p / FullScreen sur Youtube.</p>
<p><object width="500" height="400"><param name="movie" value="http://www.youtube.com/v/URIYXkn2twY&amp;rel=0"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/URIYXkn2twY&amp;rel=0" type="application/x-shockwave-flash" wmode="transparent" width="500" height="400"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/01/21/petit-tutoriel-video-pour-utiliser-librecad-heekscad-et-heekscnc/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Quand la fraiseuse se met à jour &#8211; Episode 3</title>
		<link>http://www.equinoxefr.org/post/2012/01/15/quand-la-fraiseuse-se-met-a-jour-episode-3/</link>
		<comments>http://www.equinoxefr.org/post/2012/01/15/quand-la-fraiseuse-se-met-a-jour-episode-3/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 10:41:33 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Do it]]></category>
		<category><![CDATA[capteurs]]></category>
		<category><![CDATA[CNC]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[endstop]]></category>
		<category><![CDATA[fin de course]]></category>
		<category><![CDATA[heekscad]]></category>
		<category><![CDATA[librecad]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1387</guid>
		<description><![CDATA[Il y a encore quelques détails comme la fixation des capteurs de fin de course de l&#8217;axe des X qui ne vont pas. Les capteurs actuels ( de simples inter de fin de courses ) ont été collés à la cyano pour faire vite. Il est maintenant temps de régler ça et de mettre en &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/01/15/quand-la-fraiseuse-se-met-a-jour-episode-3/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Il y a encore quelques détails comme la fixation des capteurs de fin de course de l&#8217;axe des X qui ne vont pas. Les capteurs actuels ( de simples inter de fin de courses ) ont été collés à la cyano pour faire vite. Il est maintenant temps de régler ça et de mettre en place une solution plus propre.</p>
<p>J&#8217;ai utilisé du PVC noir de 3mm pour fraiser des petits supports pour les nouveaux interrupteurs.</p>
<p>Un petit tour dans <a href="http://librecad.org/cms/home.html" target="_blank">LibreCad</a> permet de dessiner rapidement le support.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/023_Sélection.png" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1388" title="LibreCAD" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/023_Sélection.png" alt="" width="585" height="463" /></a></p>
<p>Ensuite c&#8217;est au tour de <a href="http://heeks.net/" target="_blank">heekscad</a> pour générer le GCODE. Découpe de 3mm en 3 passes avec une fraise au carbure 1 dent ( <a href="http://www.cncfraises.fr/fraises-carbures-1-dent/79-fc1d317.html" target="_blank">CncFraise</a> )</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/024_Sélection.png" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1389" title="HeeksCAD" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/024_Sélection.png" alt="" width="860" height="551" /></a></p>
<p>Après quelques minutes, voilà le résultat prêt à être installé.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8785.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1390" title="Prêt à l'emploi" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8785.jpg" alt="" width="720" height="480" /></a></p>
<p>L&#8217;interrupteur en place sur le bloc Z.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8786.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1391" title="En place" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8786.jpg" alt="" width="320" height="480" /></a></p>
<p>Le tout est connecté avec un cable récupéré sur une souris d&#8217;ordinateur.</p>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8792.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1392" title="Cablé" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8792.jpg" alt="" width="320" height="480" /></a></p>
<p>En face de l&#8217;interrupteur, j&#8217;ai placé une petite butée.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8793.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1393" title="Butée" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8793.jpg" alt="" width="320" height="480" /></a></p>
<p>L&#8217;interrupteur en face de sa butée.</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8794.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1394" title="Inter et butée" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8794.jpg" alt="" width="320" height="480" /></a></p>
<p>&nbsp;</p>
<p>Et pour finir, la tête de la fraiseuse est maintenant équipée d&#8217;une ventilation pour chasser les copeaux et d&#8217;une LED pour bien éclairer la surface.</p>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8800.jpg" rel="lightbox[1387]"><img class="aligncenter size-full wp-image-1395" title="Fraiseuse" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/IMG_8800.jpg" alt="" width="720" height="480" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/01/15/quand-la-fraiseuse-se-met-a-jour-episode-3/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Archlinux: J&#8217;ai cassé mon kernel !</title>
		<link>http://www.equinoxefr.org/post/2012/01/05/archlinux-jai-casse-mon-kernel/</link>
		<comments>http://www.equinoxefr.org/post/2012/01/05/archlinux-jai-casse-mon-kernel/#comments</comments>
		<pubDate>Thu, 05 Jan 2012 17:00:53 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Non classé]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet-Libre]]></category>
		<category><![CDATA[réparer]]></category>
		<category><![CDATA[rescue]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1378</guid>
		<description><![CDATA[A la suite d&#8217;une fausse manip lors d&#8217;une mise à jour, mon PC ne démarre plus avec archlinux. Après expertise, il s&#8217;avère que l&#8217;installation du paquet de mise à jour du noyau n&#8217;est pas allée à son terme. Le noyau ( Vmlinuz ) est à jour mais le initrd lui est trop ancien. Pour s&#8217;en &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2012/01/05/archlinux-jai-casse-mon-kernel/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.equinoxefr.org/wp-content/uploads/2012/01/archlinux-logo.png" rel="lightbox[1378]"><img class="aligncenter size-full wp-image-1381" title="archlinux-logo" src="http://www.equinoxefr.org/wp-content/uploads/2012/01/archlinux-logo.png" alt="" width="600" height="199" /></a></p>
<p>A la suite d&#8217;une fausse manip lors d&#8217;une mise à jour, mon PC ne démarre plus avec archlinux. Après expertise, il s&#8217;avère que l&#8217;installation du paquet de mise à jour du noyau n&#8217;est pas allée à son terme. Le noyau ( Vmlinuz ) est à jour mais le initrd lui est trop ancien.</p>
<p>Pour s&#8217;en sortir, rien de très compliqué:</p>
<p>Démarrer l&#8217;installable d&#8217;Archlinux sur un CD ou une clef USB.</p>
<p>Réglez votre clavier correctement avec la commande <em>km</em>, c&#8217;est plus facile ensuite <img src='http://www.equinoxefr.org/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>Montez votre partition root</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>recup
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1 <span style="color: #000000; font-weight: bold;">/</span>recup</pre></div></div>

<p>Mettez à jour le mtab de la partition root</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #660033;">-v</span> rootfs <span style="color: #000000; font-weight: bold;">/</span>proc<span style="color: #000000; font-weight: bold;">/</span>mounts <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>recup<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mtab</pre></div></div>

<p>Montez ensuite les filesystem spéciaux</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> <span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #000000; font-weight: bold;">/</span>proc <span style="color: #000000; font-weight: bold;">/</span>recup<span style="color: #000000; font-weight: bold;">/</span>proc
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> <span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #000000; font-weight: bold;">/</span>dev <span style="color: #000000; font-weight: bold;">/</span>recup<span style="color: #000000; font-weight: bold;">/</span>dev
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-o</span> <span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #000000; font-weight: bold;">/</span>sys <span style="color: #000000; font-weight: bold;">/</span>recup<span style="color: #000000; font-weight: bold;">/</span>sys</pre></div></div>

<p>Un petit chroot</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">chroot</span> <span style="color: #000000; font-weight: bold;">/</span>recup
<span style="color: #c20cb9; font-weight: bold;">mount</span> <span style="color: #660033;">-a</span></pre></div></div>

<p>Vous pouvez retrouver les derniers paquets installés dans <em>/var/cache/pacman/pkg/</em> et en réinstaller un avec <em>pacman -U XXX.pkg.tar.gz</em>, pour moi se sera <em>linux-3.1.7-1-x86_64.pkg.tar.xz</em></p>
<p>Bingo ! Un redémarrage plus tard, tout refonctionne. J&#8217;ai trouvé après coup une doc similaire ici <a href="http://wiki.archlinux.fr/Install_chroot" target="_blank">http://wiki.archlinux.fr/Install_chroot</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2012/01/05/archlinux-jai-casse-mon-kernel/feed/</wfw:commentRss>
		<slash:comments>1</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>Batterie générique pour caméra Drift HD170 stealth</title>
		<link>http://www.equinoxefr.org/post/2011/11/05/batterie-generique-pour-camera-drift-hd170-stealth/</link>
		<comments>http://www.equinoxefr.org/post/2011/11/05/batterie-generique-pour-camera-drift-hd170-stealth/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 13:30:08 +0000</pubDate>
		<dc:creator>EquinoxeFR</dc:creator>
				<category><![CDATA[Divers]]></category>
		<category><![CDATA[caméra]]></category>
		<category><![CDATA[drift innovation]]></category>
		<category><![CDATA[hd170 stealth]]></category>
		<category><![CDATA[NP-120]]></category>
		<category><![CDATA[NP-60]]></category>

		<guid isPermaLink="false">http://www.equinoxefr.org/?p=1317</guid>
		<description><![CDATA[Les caméras Drift HD170 stealth sont livrées avec des batteries d&#8217;une capacité de 1100 mAh. Le compartiment batterie dispose d&#8217;un cache amovible pour pouvoir accueillir une batterie plus grosse d&#8217;une capacité de 1700 mAh. Il est difficile de se procurer les batteries additionnelles en dehors d&#8217;une commande sur internet. Il faut cependant savoir que ces batteries sont d&#8217;une &#8230; </p><p><a class="more-link block-button" href="http://www.equinoxefr.org/post/2011/11/05/batterie-generique-pour-camera-drift-hd170-stealth/">Lire la Suite &#187;</a>]]></description>
			<content:encoded><![CDATA[<p>Les caméras<a href="http://driftinnovation.com/" target="_blank"> Drift HD170 stealth</a> sont livrées avec des batteries d&#8217;une capacité de 1100 mAh. Le compartiment batterie dispose d&#8217;un cache amovible pour pouvoir accueillir une batterie plus grosse d&#8217;une capacité de 1700 mAh.</p>
<p>Il est difficile de se procurer les batteries additionnelles en dehors d&#8217;une commande sur internet. Il faut cependant savoir que ces batteries sont d&#8217;une taille standard, elles sont utilisées dans des caméscopes et autres appareils photos numériques. Après avoir mesuré la taille du compartiment batterie, j&#8217;ai trouvé des batteries compatibles.</p>
<ul>
<li>Les batteries d&#8217;origine de 1100 mAh sont compatibles avec les batteries <strong>NP-60</strong></li>
<li>Les batteries de forte capacité de 1700 mAh sont compatibles avec les batteries <strong>NP-120</strong></li>
</ul>
<p>&nbsp;</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/11/IMG_20111105_135814.jpg" rel="lightbox[1317]"><img class="aligncenter size-large wp-image-1318" title="NP-120" src="http://www.equinoxefr.org/wp-content/uploads/2011/11/IMG_20111105_135814-768x1024.jpg" alt="" width="590" height="786" /></a></p>
<p>Ces batteries sont disponibles facilement dans des magasins comme <a href="http://www.1001piles.com/" target="_blank">&laquo;&nbsp;1000 et une piles&nbsp;&raquo;</a> pour environ 29 €.</p>
<p>&nbsp;</p>
<p>Voilà la batterie d&#8217;origine et la nouvelle de forte capacité ( 1800 mAh ).</p>
<p><a href="http://www.equinoxefr.org/wp-content/uploads/2011/11/IMG_20111105_135842.jpg" rel="lightbox[1317]"><img class="aligncenter size-large wp-image-1319" title="NP120 / NP-60" src="http://www.equinoxefr.org/wp-content/uploads/2011/11/IMG_20111105_135842-1024x754.jpg" alt="" width="590" height="434" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.equinoxefr.org/post/2011/11/05/batterie-generique-pour-camera-drift-hd170-stealth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

