<?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>Debian or not to be ? 2.0 &#187; os x</title> <atom:link href="http://www.crashdump.fr/tag/os-x/feed/" rel="self" type="application/rss+xml" /><link>http://www.crashdump.fr</link> <description>that is the question</description> <lastBuildDate>Mon, 23 Jan 2012 13:14:39 +0000</lastBuildDate> <language>fr</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Effacer définitivement les données d&#8217;un disque dur sous *nux (dd, zero, random)</title><link>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/</link> <comments>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/#comments</comments> <pubDate>Tue, 05 May 2009 20:25:48 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Debian]]></category> <category><![CDATA[Sécurité]]></category> <category><![CDATA[bsd]]></category> <category><![CDATA[dd]]></category> <category><![CDATA[disque dur]]></category> <category><![CDATA[fichier]]></category> <category><![CDATA[format]]></category> <category><![CDATA[formater]]></category> <category><![CDATA[hexdump]]></category> <category><![CDATA[kernel]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[partition]]></category> <category><![CDATA[Peter Gutmann]]></category> <category><![CDATA[secure]]></category> <category><![CDATA[securisé]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=677</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/05/hard-disk-drive.png" class="attachment-featured-image wp-post-image" alt="hard-disk-drive" title="hard-disk-drive" /></p><br />Ce billet contient deux parties : la première explique succinctement les solutions et commandes pour pouvoir effacer toutes les données d&#8217;un disque (ou d&#8217;une partition). La deuxième approfondit les commandes et outils utilisés dans la première &#8212; Je me rend bien compte, après relecture du fait que j&#8217;ai pas mal dérivé dans l&#8217;écriture de cet article, [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/05/hard-disk-drive.png" class="attachment-featured-image wp-post-image" alt="hard-disk-drive" title="hard-disk-drive" /></p><br /><p><em>Ce billet contient deux parties : <strong>la première explique succinctement les solutions et commandes</strong> pour pouvoir effacer toutes les données d&#8217;un disque (ou d&#8217;une partition). <strong>La deuxième approfondit les commandes et outils utilisés</strong> dans la première &#8212; Je me rend bien compte, après relecture du fait que j&#8217;ai pas mal dérivé dans l&#8217;écriture de cet article, il faut croire que j&#8217;avais beaucoup à dire.. donc si vous avez le temps, servez vous un café et profitez en bien.</em></p><p>Update le 6 Mai 2009: Correction des fautes d&#8217;orthographe&#8230;</p><p><strong>ATTENTION: Toutes les procédures ci-dessous sont définitives et non réversibles. Après avoir exécuté ces commandes, vous (ou un tiers) ne pourrez JAMAIS récupérer les informations qui y étaient stockées.</strong></p><p><em>Info: Dans ce billet j&#8217;utiliserais comme chemin pour mon disque dur a effacer : /dev/sdX, il vous faudra naturellement le remplacer par le vôtre. Vérifiez toujours d&#8217;abord vôtre table de partition avec &laquo;&nbsp;df&nbsp;&raquo; (utilitaire sans risques, il permet simplement de lister les disques montés sur vôtre système &#8211; NDLR : fstab)</em><br /> <em>Suivant la distribution *nix que vous utiliserez vous ne pourrez sûrement pas directement réinitialiser le disque système : il vous faudra utiliser un &laquo;&nbsp;live CD&nbsp;&raquo; ou booter sur un autre disque dur.</em></p><h2>1. L&#8217;utilitaire &laquo;&nbsp;dd&nbsp;&raquo;:</h2><p>L&#8217;utilitaire &laquo;&nbsp;dd&nbsp;&raquo; fourni avec tous les *nix et dérivés, permet de faire de nombreuses manipulations sur des fichiers ou des systèmes de fichiers comme (liste non exhaustive): Formatter une disquette à partir d&#8217;une image, découper un fichier en plusieurs morceaux, faire une image d&#8217;un DVD ou encore — et c&#8217;est ce qui nous intéresse ici — détruire les données d&#8217;un disque dur en le remplissant de zéros ou de données aléatoires.</p><p><strong>Il faut toujours faire attention lorsqu&#8217;on utilise dd. Le simple fait d&#8217;oublier une option ou d&#8217;échanger les arguments aura des conséquences désastreuses.</strong></p><h3>1.1 Méthode rapide et peu sûre :</h3><p>La première méthode consiste à écrire des 0 sur tous les secteurs du disque en une seule passe :</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc</div></td></tr></tbody></table></div><p><em>L&#8217;argument « conv=notrunc » permet de ne pas limiter la taille du fichier de sortie.</em></p><h3>1.2 Méthode lente et moyennement sûre :</h3><p>La seconde méthode, un peu plus sûre que la précédente consiste en l&#8217;utilisation du périphérique générateur d&#8217;aléatoires du noyau. Ce qui aura pour effet d&#8217;écrire des données aléatoires sur tous les secteurs du disque :</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">dd if=/dev/urandom of=/dev/sdX bs=512 conv=notrunc</div></td></tr></tbody></table></div><h3>1.3 Méthode très lente et sûre:</h3><p>Ici nous allons utiliser la première méthode, mais avec 32 passe.. De quoi vraiment tout effacer.</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">32</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc; <span style="color: #000000; font-weight: bold;">done</span></div></td></tr></tbody></table></div><p>Notez qu&#8217;ici j&#8217;ai défini le paramètre « BS » qui correspond au nombre d&#8217;octets spécifié écrit en une seule fois. Ce qui permet de raccourcir considérablement le temps de chaque passe.</p><h3>1.4 Méthode vraiment très lente et très sûre:</h3><p>Pour cette dernière solution, vous l&#8217;aurez déduit par vous même, 16 passes de random, de quoi effacer définitivement n&#8217;importe quel octet sensible ! Suivant la taille du disque/partition, cette solution peut prendre énormément de temps&#8230;</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">for n in `seq 16`; do dd if=/dev/urandom of=/dev/sdX bs=512 conv=notrunc; done</div></td></tr></tbody></table></div><h2>Approfondissements :</h2><h3>Temps des opérations — Optimisations</h3><p>Voyons comment se comporte dd pour un fichier test de 100Mb avec notre solution n°1 et un Block size de 1:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">102400000</span><br /> <span style="color: #000000;">102400000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">102400000</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">458.989378</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">223099</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> real 7m38.997s<br /> user 1m52.333s<br /> sys 5m30.299s</div></td></tr></tbody></table></div><p>1 * 102400000 = 100Mb, dd a mis environ 7 minutes 38 secondes, pitoyable, pourquoi ?!</p><p><strong>Petites précisions indispensables au sujet des secteurs (ou blocs)</strong>:<br /> Un secteur (ou bloc) est une subdivision d&#8217;une piste de votre disque dur. Chaque secteur peut stocker un nombre bien défini de données — les disques magnétiques fournissent généralement un espace de 512 octets (ce n&#8217;est pas le cas des SSD). La notion de bloc a été utilisée au début de l&#8217;informatique pour ce petit morceau de données, mais le terme secteur est devenu beaucoup plus courant. Puis peu à peu, « bloc » est devenu plus employé pour définir un certain nombre de données (variable) utilisé par un processus. Par exemple, le programme dd qui permet de définir la taille de bloc à utiliser lors de l&#8217;exécution avec le paramètre BS (= octets). En réalité, ça ne change pas la taille du secteur d&#8217;un support, seule la taille des données qui seront manipulées.</p><p><em>Notez que pour un CD, la taille d’un secteur est de 2.048 bytes (par exemple, si vous avez besoin de créer une image iso, tapez : dd if=/dev/hdc of=/tmp/mycd.iso bs=2048 conv=notrunc).</em></p><p>Reprenons — comment puis-je vérifier la taille des blocs sur un BSD ?</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ pdisk <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>rdisk1 <span style="color: #660033;">-blockSize</span><br /> <span style="color: #000000;">512</span></div></td></tr></tbody></table></div><p>Et sur un GNU/Linux ?</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">tune2fs <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>md1 <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> Block<br /> Block count: <span style="color: #000000;">5118688</span><br /> Block size: <span style="color: #000000;">4096</span><br /> Blocks per group: <span style="color: #000000;">32768</span></div></td></tr></tbody></table></div><p>Notez que sur le deuxième exemple, le système de fichier est en fait monté sur un RAID, d&#8217;où la réponse de BS de 4k.</p><p>Bien, maintenant que nous savons, essayons en spécifiant un BS de 512:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">512</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">200000</span><br /> <span style="color: #000000;">200000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">200000</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">1.615840</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">63372613</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> real 0m1.618s<br /> user 0m0.240s<br /> sys 0m1.015s</div></td></tr></tbody></table></div><p>512 * 200000 = 100Mb, dd a mis à peine plus d&#8217;une 2,4s (contre 7m38) — la différence est énorme, pourquoi ?</p><p>En fait, l&#8217;explication est simple, c&#8217;est la synchronisation entre les données envoyées et les données écrites. Des blocs de 512 octets sont envoyés au disque et sont directement écrits sur les secteurs correspondants ; inutile de mettre en cache 512 fois 1 octet pour pouvoir écrire notre bloc. Et si on spécifie un BS supérieur, me direz-vous ? Essayons.</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">time</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">bs</span>=<span style="color: #000000;">1024</span> <span style="color: #007800;">conv</span>=notrunc <span style="color: #007800;">count</span>=<span style="color: #000000;">100000</span><br /> <span style="color: #000000;">100000</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">100000</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">102400000</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">3.185333</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">32147345</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> real 0m3.188s<br /> user 0m0.131s<br /> sys 0m0.693s</div></td></tr></tbody></table></div><p>En effet, cela ne nous apporte rien ! <strong>notez que j&#8217;ai spécifié bs=512, mais en fait dd utilise par défaut le block size de 512.</strong></p><h3>/dev/zero, /dev/random ou /dev/urandom ?</h3><p><em>Pour cette partie, je me suis largement inspiré des manpages de random que j&#8217;ai agrémentée d&#8217;exemples et quelques précisions</em>.</p><p>Les fichiers spéciaux /dev/random et /dev/urandom existents depuis Linux 1.3.30 et ils fournissent une interface avec le générateur de nombres aléatoires du noyau. Il faut savoir que le noyau identifie chaque périphérique au moyen de deux numéros, le majeur (à gauche) et le mineur (à droite), ex:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">ls</span> <span style="color: #660033;">-l</span> <span style="color: #000000; font-weight: bold;">/</span>dev<br /> crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">5</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 zero<br /> crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">8</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 random<br /> crw-rw-rw- <span style="color: #000000;">1</span> root root <span style="color: #000000;">1</span>, <span style="color: #000000;">9</span> avr <span style="color: #000000;">29</span> <span style="color: #000000;">14</span>:07 urandom</div></td></tr></tbody></table></div><p>Le fichier /dev/random a un numéro de périphérique majeur égal à 1, et un numéro mineur égal à 8. Les numéros du périphérique /dev/urandom sont 1 pour le majeur, et 9 pour le mineur et pour zero ils sont respectivement de 1 et 5. Ils sont de type c (Character), ils communiquent octet par octet (comme un port série) à l&#8217;inverse des disques durs qui sont de type b (Blocks) et qui &#8211; donc &#8211; communiquent par blocs de données.</p><p>Ce que l&#8217;on peut lire dans la documentation de noyau Linux a leurs propos :</p><pre>1 char Memory device
    ...
    5 = /dev/zero        Null byte source
    ...
    8 = /dev/random   Nondeterministic random number gen.
    9 = /dev/urandom Faster, less secure random number gen.
    ...</pre><p>En réalité, le générateur de nombres aléatoires récupère les séquences aléatoires en fonction du « bruit » généré par l&#8217;environnement : mouvement de la souris, frappe au clavier, etc.. Le générateur mémorise également une estimation du nombre de bits de bruit dans son réservoir d&#8217;entropie, et utilise son contenu pour créer des nombres aléatoires.<br /> <strong>En effet, lors d&#8217;une lecture, le périphérique /dev/random sera limité au nombre de bits de bruit qu&#8217;il contient</strong>.<br /> /dev/random est particulièrement adapté pour des cas où l&#8217;on a ponctuellement besoin de nombres hautement aléatoires (création de clés par exemple). Lorsque le réservoir d&#8217;entropie est vide, les lectures du périphérique /dev/random seront bloquantes jusqu&#8217;à l&#8217;obtention de suffisamment de bruits en provenance de l&#8217;environnement. Dans notre cas &#8211; ou l&#8217;on a besoin d&#8217;une très grande quantité de données —, nous risquons d&#8217;être très rapidement limité ! Heureusement, /dev/urandom renverra autant d&#8217;octets qu&#8217;on en demande. Toutefois, s&#8217;il n&#8217;y a plus assez de bits disponibles dans le réservoir d&#8217;entropie, les valeurs renvoyées pourraient être théoriquement vulnérables à une cryptanalyse basée sur l&#8217;algorithme employé par le pilote. Il n&#8217;existe pas de documentation sur ce type d&#8217;attaque dans la littérature publique actuelle, mais cela n&#8217;élimine pas le risque théorique.</p><p>Le fichier de périphérique /dev/zero quand a lui, se comporte comme s’il contenait une infinité d’octets à ~0. Quelle que soit la quantité de données que vous essayez de lire à partir de /dev/zero, il générera suffisamment d’octets nuls.</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero<br /> 0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00<br /> <span style="color: #000000; font-weight: bold;">*</span></div></td></tr></tbody></table></div><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random<br /> 00000000 c8 6a <span style="color: #000000;">22</span> ab 8a cb a2 <span style="color: #000000;">66</span> <span style="color: #000000;">17</span> 7a ce 8d d6 e8 e1 fa <span style="color: #000000; font-weight: bold;">|</span>?j<span style="color: #ff0000;">&quot;?.ˢf.z?.????|<br /> 00000010 c1 69 7c d1 64 39 44 cc be 8f 06 db 88 1e 5c ba |?i|?d9D̾..?..\?|<br /> 00000020 99 9d a3 f7 cb ff a4 ea 43 c1 b4 ea b8 ba f9 71 |..??????C??긺?q|<br /> ...</span></div></td></tr></tbody></table></div><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom<br /> 00000000 <span style="color: #000000;">49</span> db 3d 9e <span style="color: #000000;">25</span> bf <span style="color: #000000;">14</span> b9 b8 a6 <span style="color: #000000;">58</span> <span style="color: #000000;">22</span> b1 <span style="color: #000000;">13</span> 7b <span style="color: #000000;">29</span> <span style="color: #000000; font-weight: bold;">|</span>I?=.<span style="color: #000000; font-weight: bold;">%</span>?.???X<span style="color: #ff0000;">&quot;?.{)|<br /> 00000010 33 40 bf 14 e5 aa 99 c9 a0 ee fb 5c 74 5a 01 d6 |3@?.?.ɠ??<span style="color: #000099; font-weight: bold;">\t</span>Z.?|<br /> 00000020 6b 45 33 6c a4 d6 69 54 53 d8 17 55 ba dc 8c 76 |kE3l??iTS?.U??.v|<br /> ...</span></div></td></tr></tbody></table></div><p>En résumé, nous allons plutôt utiliser /dev/urandom ou /dev/zero, sinon ça va prendre un temps fou. /dev/random donne de l&#8217;entropie &laquo;&nbsp;forte&nbsp;&raquo; (liée au matériel) et ne donne donc que quelques octets par seconde. /dev/urandom complète cette entropie forte avec du PRNG et génère donc les données aussi vite que nécessaire, ou presque..</p><p><strong>Dans le cas d&#8217;un effacement de disque dur, ce risque nous importe peu, mais je trouvais intéressant d&#8217;en parler.</strong></p><p>Petites précisions pour les BSD Users:<br /> 1) Le générateur de bruit random a été remplacé par un générateur cryptographique nommé « <a rel="nofollow" href="http://fr.wikipedia.org/wiki/Yarrow">Yarrow algorithm</a> » ;<br /> 2) /dev/urandom est un lien symbolique sur /dev/random.<br /> 3) Les numéros mineurs et majeurs ne sont pas les mêmes, ex:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ ls -l /dev | grep random<br /> crw-rw-rw- 1 root wheel 8, 0 5 mai 15:23 random<br /> crw-rw-rw- 1 root wheel 8, 1 3 mai 15:52 urandom</div></td></tr></tbody></table></div><h3>Vérifications</h3><p>Pour vérifier l&#8217;oeuvre de la commande dd couplée à random, nous allons utiliser « hexdump » (sur un fichier de 64b, pour une question de lisibilité).</p><p>Utilisons &laquo;&nbsp;zero&nbsp;&raquo; comme générateur:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">64</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>^00<span style="color: #7a0874; font-weight: bold;">&#93;</span><br /> <span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000035</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1826092</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records out<br /> <span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000018</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">3532045</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> 00000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <span style="color: #000000; font-weight: bold;">|</span>................<span style="color: #000000; font-weight: bold;">|</span><br /> <span style="color: #000000; font-weight: bold;">*</span><br /> 00000040</div></td></tr></tbody></table></div><p>Quand à utiliser &laquo;&nbsp;random&nbsp;&raquo;, voici le résultat :</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>random <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">count</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">bs</span>=<span style="color: #000000;">64</span> <span style="color: #000000; font-weight: bold;">&amp;</span>amp;<span style="color: #000000; font-weight: bold;">&amp;</span>amp; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span><br /> <span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">1</span>+<span style="color: #000000;">0</span> records out<br /> <span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000040</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">1597830</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> <span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records <span style="color: #000000; font-weight: bold;">in</span><br /> <span style="color: #000000;">0</span>+<span style="color: #000000;">1</span> records out<br /> <span style="color: #000000;">64</span> bytes transferred <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000;">0.000016</span> secs <span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #000000;">4006499</span> bytes<span style="color: #000000; font-weight: bold;">/</span>sec<span style="color: #7a0874; font-weight: bold;">&#41;</span><br /> 00000000 <span style="color: #000000;">68</span> 0f 9a a5 f8 9c 1a <span style="color: #000000;">45</span> fa ce c2 04 <span style="color: #000000;">64</span> 0d 3a a2 <span style="color: #000000; font-weight: bold;">|</span>h..??..E???.d.:?<span style="color: #000000; font-weight: bold;">|</span><br /> 00000010 d5 <span style="color: #000000;">59</span> f1 <span style="color: #000000;">10</span> 05 4a <span style="color: #c20cb9; font-weight: bold;">cc</span> b0 ec <span style="color: #000000;">69</span> 3a <span style="color: #000000;">26</span> f6 f9 <span style="color: #000000;">42</span> c3 <span style="color: #000000; font-weight: bold;">|</span>?Y?..J̰?i:<span style="color: #000000; font-weight: bold;">&amp;</span>amp;??B?<span style="color: #000000; font-weight: bold;">|</span><br /> 00000020 <span style="color: #000000;">28</span> <span style="color: #000000;">81</span> <span style="color: #000000;">32</span> 7b 3e f5 7c 3a a8 d9 <span style="color: #000000;">75</span> <span style="color: #000000;">63</span> bd <span style="color: #000000;">16</span> <span style="color: #000000;">21</span> 8e <span style="color: #000000; font-weight: bold;">|</span><span style="color: #7a0874; font-weight: bold;">&#40;</span>.2<span style="color: #7a0874; font-weight: bold;">&#123;</span><span style="color: #000000; font-weight: bold;">&amp;</span>gt;?<span style="color: #000000; font-weight: bold;">|</span>:??uc?.<span style="color: #000000; font-weight: bold;">!</span>.<span style="color: #000000; font-weight: bold;">|</span><br /> 00000030 9a 9e <span style="color: #000000;">28</span> <span style="color: #000000;">43</span> <span style="color: #c20cb9; font-weight: bold;">bc</span> <span style="color: #000000;">69</span> 3c 7a <span style="color: #000000;">53</span> <span style="color: #000000;">11</span> 8b 9b 7c 8d <span style="color: #000000;">86</span> 2e <span style="color: #000000; font-weight: bold;">|</span>..<span style="color: #7a0874; font-weight: bold;">&#40;</span>C?i 00000040</div></td></tr></tbody></table></div><p>Vous pourrez, naturellement vérifier le résultat en situation « réelle » grace a la commande suivante :</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">hexdump</span> <span style="color: #660033;">-C</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> <span style="color: #7a0874; font-weight: bold;">&#91;</span>^00<span style="color: #7a0874; font-weight: bold;">&#93;</span></div></td></tr></tbody></table></div><h2>Note finale</h2><p>Il existe des logiciels comme &laquo;&nbsp;Shred&nbsp;&raquo; qui offrent des solutions « clés en main », mais qui au final ne font que ce que vous auriez très bien pu faire avec &laquo;&nbsp;dd&nbsp;&raquo; (un nombre X de passes random puis finir sur une &laquo;&nbsp;zero&nbsp;&raquo;), ex:</p><p>Les deux lignes suivantes font la même chose:</p><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #c20cb9; font-weight: bold;">shred</span> <span style="color: #660033;">-fzv</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">16</span> <span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX</div></td></tr></tbody></table></div><div class="codecolorer-container bash default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="bash codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">for</span> n <span style="color: #000000; font-weight: bold;">in</span> <span style="color: #000000; font-weight: bold;">`</span><span style="color: #c20cb9; font-weight: bold;">seq</span> <span style="color: #000000;">15</span><span style="color: #000000; font-weight: bold;">`</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>urandom <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">conv</span>=notrunc; <span style="color: #000000; font-weight: bold;">done</span>; <span style="color: #c20cb9; font-weight: bold;">dd</span> <span style="color: #007800;">if</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>zero <span style="color: #007800;">of</span>=<span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sdX <span style="color: #007800;">conv</span>=notrunc</div></td></tr></tbody></table></div><p>sachant que &#8211; pour un disque de 500Go &#8211; dd a été le plus rapide chez moi.</p><p>Il existe un ensemble d’outils nommé « secure_deletion toolkit », mais il n&#8217;est pas encore porté sur toutes les plates-formes. Par exemple, l&#8217;outil « sfill » pousse l&#8217;effacement sécurisé des fichiers à son paroxysme :</p><p>* Une passe avec 0xff<br /> * 5 passes aléatoires avec la source /dev/urandom<br /> * 27 passes avec des valeurs spéciales définies par Peter Gutmann. (<a rel="nofollow" href="http://www.cs.auckland.ac.nz/~pgut001/pubs/secure_del.html">Je vous invite d&#8217;ailleurs a lire son article très complet si vous voulez en savoir plus.</a>)<br /> * A nouveau 5 passes aléatoires.<br /> * Une passe avec 0&#215;00.</p><p><strong>Il est peu être possible de lire « à côté des pistes », des résidus magnétisés et de retrouver ainsi des données écrites préalablement en décalant les têtes et peut être existe&#8217;il d&#8217;autres méthodes dont nous n&#8217;avons pas connaissance alors il reste une solution universelle et radicale : La destruction physique. C&#8217;est la seule solution réellement viable et irrécupérable : Perceuse, Masse, Acide et j&#8217;en passe..</strong></p><p><strong>Le générateur random et l&#8217;utilitaire dd sont disponibles sur énormément de distributions : Solaris, Mac OS X, FreeBSD, HP-UX, Tru64, AIX et j&#8217;en passe.</strong></p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/debian/effacer-definivement-toutes-les-donnees-dun-disque-dur-sous-nux-677/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Installer Os X sur un Thinkpad R52</title><link>http://www.crashdump.fr/apple/installer-os-x-sur-un-thinkpad-r52-598/</link> <comments>http://www.crashdump.fr/apple/installer-os-x-sur-un-thinkpad-r52-598/#comments</comments> <pubDate>Tue, 21 Apr 2009 11:11:41 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Hackintosh]]></category> <category><![CDATA[IBM]]></category> <category><![CDATA[iDeneb]]></category> <category><![CDATA[intel]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[R52]]></category> <category><![CDATA[T52]]></category> <category><![CDATA[Thinkpad]]></category> <category><![CDATA[Tuto]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=598</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/ideneb-R52.jpg" class="attachment-featured-image wp-post-image" alt="ideneb-R52" title="ideneb-R52" /></p><br />Ayant un R52 sous la main, je me suis lancé dans l&#8217;installation d&#8217;un Mac Os X sur cette machine. La procédure n&#8217;est pas très compliquée mais je vais vous détailler toutes les étapes ici, accompagné de photos. Retrouvez toutes les photos de la procédure ici. Matériel requis - Un portable Lenovo(IBM) Thinkpad R52 (ou T52) [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/04/ideneb-R52.jpg" class="attachment-featured-image wp-post-image" alt="ideneb-R52" title="ideneb-R52" /></p><br /><p><em>Ayant un R52 sous la main, je me suis lancé dans l&#8217;installation d&#8217;un Mac Os X sur cette machine. La procédure n&#8217;est pas très compliquée mais je vais vous détailler toutes les étapes ici, accompagné de photos.</em></p><p><a href="http://www.crashdump.fr/myFiles/pics/TutoHackintoshR52/">Retrouvez toutes les photos de la procédure ici</a>.</p><h2>Matériel requis</h2><p style="text-align: left;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc038702.jpg"><img class="size-thumbnail wp-image-601 aligncenter" title="dsc038702" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc038702-430x125.jpg" alt="dsc038702" width="430" height="125" /></a><br /> - Un portable Lenovo(IBM) Thinkpad R52 (ou T52)<br /> - La distribution iDeneb 1.4 (10.5.6) (<a rel="nofollow" href="http://www.google.fr/search?hl=fr&amp;q=%22iDeneb+1.4%22+rapidfind.org&amp;btnG=Rechercher&amp;meta=">Vous pourrez la trouver sur google</a>)<br /> - Du café et de la bonne musique.. pour rendre l&#8217;étape d&#8217;installation moins douloureuse :)</p><h2>Installation</h2><p>0. Faites couler un café.. on en aura besoin plus tard.</p><p style="text-align: left;">1. Configurer le BIOS pour Booter sur le DVD. Accessoirement vous pouvez désactiver le port Parallèle qui ne nous servira plus a rien ;)<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03871.jpg"><img class="size-thumbnail wp-image-603 aligncenter" title="dsc03871" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03871-430x125.jpg" alt="dsc03871" width="430" height="125" /></a></p><p style="text-align: left;">2. Insérer le DVD de iDeneb 1.4 dans le R52 puis redémarrez le portable.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03872.jpg"><img class="size-thumbnail wp-image-602 aligncenter" title="dsc03872" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03872-430x125.jpg" alt="dsc03872" width="430" height="125" /></a></p><p style="text-align: left;">3. Lors de l&#8217;invite suivante appuyez sur F8 pour spécifier les arguments de boot suivant: &laquo;&nbsp;cpus=1 maxmem=2048 –v&nbsp;&raquo; (Sans les &laquo;&nbsp;, inutile de vous décrire l&#8217;effet de ces arguments.. vous les aurez compris..).<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03874.jpg"><img class="size-thumbnail wp-image-604 aligncenter" title="dsc03874" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03874-430x125.jpg" alt="dsc03874" width="430" height="125" /></a></p><p style="text-align: left;">4. Le DVD d&#8217;installation boot, c&#8217;est une étape qui peut parfois être un peu longue.. laissez tourner tant qu&#8217;il y a de l&#8217;activité..<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03879.jpg"><img class="size-thumbnail wp-image-605 aligncenter" title="dsc03879" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03879-430x125.jpg" alt="dsc03879" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03881.jpg"><img class="size-thumbnail wp-image-606 aligncenter" title="dsc03881" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03881-430x125.jpg" alt="dsc03881" width="430" height="125" /></a></p><p style="text-align: left;">5. Nous arrivons a la sélection du langage de l&#8217;installer, sélectionnez la langue qui vous conviens puis cliquez suivant.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03886.jpg"><img class="size-thumbnail wp-image-607 aligncenter" title="dsc03886" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03886-430x125.jpg" alt="dsc03886" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03887.jpg"><img class="size-thumbnail wp-image-608 aligncenter" title="dsc03887" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03887-430x125.jpg" alt="dsc03887" width="430" height="125" /></a></p><p style="text-align: left;">6. Arrivé sur l&#8217;écran de bienvenue, ouvrez l&#8217;utilitaire de disque pour y créer une partition HFS. Pour cela cliquez sur: Menu -&gt; Utilitaires -&gt; Utiliaire de disque.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03889.jpg"><img class="size-thumbnail wp-image-609 aligncenter" title="dsc03889" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03889-430x125.jpg" alt="dsc03889" width="430" height="125" /></a></p><p style="text-align: left;">7. Créez une partition Mac OS étendu (journalisé) vous pouvez toujours avoir une deuxième partition ext3 ou fat32 pour windows.. appliquez puis continuez.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03891.jpg"><img class="size-thumbnail wp-image-610 aligncenter" title="dsc03891" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03891-430x125.jpg" alt="dsc03891" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03893.jpg"><img class="size-thumbnail wp-image-611 aligncenter" title="dsc03893" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03893-430x125.jpg" alt="dsc03893" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03895.jpg"><img class="size-thumbnail wp-image-612 aligncenter" title="dsc03895" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03895-430x125.jpg" alt="dsc03895" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03896.jpg"><img class="size-thumbnail wp-image-613 aligncenter" title="dsc03896" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03896-430x125.jpg" alt="dsc03896" width="430" height="125" /></a></p><p style="text-align: left;">8. Sélection du disque/partition sur laquelle sera installé le système.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03897.jpg"><img class="size-thumbnail wp-image-614 aligncenter" title="dsc03897" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03897-430x125.jpg" alt="dsc03897" width="430" height="125" /></a></p><p style="text-align: left;">9. Attention ici, avant de cliquer sur &laquo;&nbsp;Installer&nbsp;&raquo; il va nous falloir spécifier des choses dans &laquo;&nbsp;Personnaliser&nbsp;&raquo;.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03899.jpg"><img class="size-thumbnail wp-image-615 aligncenter" title="dsc03899" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03899-430x125.jpg" alt="dsc03899" width="430" height="125" /></a></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">Langues -&amp;gt; Francais<br /> Patches -&amp;gt;<br /> Audio -&amp;gt; &quot;AC97Audio&quot;<br /> Chipset -&amp;gt; &quot;ICHx fixed&quot;<br /> Kernel -&amp;gt; &quot;Kernel Voodoo 9.5.0&quot;<br /> Fix -&amp;gt; &quot;BatteryManager&quot;, &quot;Cpus=1-Fix&quot;, &quot;Seatbelt Fix&quot;, &quot;AppleSMBIOS MacBook&quot;.<br /> Video -&amp;gt; Intel -&amp;gt; &quot;Intel GMA 900&quot;</div></td></tr></tbody></table></div><p><strong>Explications</strong>:<br /> - AC97Audio = Driver du chip audio AC97&#8242;<br /> - ICHx Fixed = Driver du Chipset ICH (ATA/SATA..)<br /> - Kernel Voodoo 9.5.0 = CPU SSE2 et le 9.6.0 (celui par défaut) est SSE3 only.<br /> - BatteryManager = Accès au informations d&#8217;état de la batterie.<br /> - Cpus=1-Fix = Pentium M, un seul core donc..<br /> - Seatblelt Fix = Corrige un problème lié au montage d&#8217;iso sur le Kernel Voodoo 9.5.0<br /> - AppleSMBIOS Macbook = On spécifie que c&#8217;est un portable pour l&#8217;About this mac.<br /> <del datetime="2009-04-21T19:34:37+00:00">- IOPCICard = Gestion du PC Card TI.</del> Kernel panic.. dommage, on va trouver une autre solution.<br /> - Intel GMA 900 = Notre carte graphique.. (attention sur certain modèles de R52 c&#8217;est une ATI X300.. modifiez en fonction).</p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03901.jpg"><img class="size-thumbnail wp-image-616 aligncenter" title="dsc03901" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03901-430x125.jpg" alt="dsc03901" width="430" height="125" /></a></p><p style="text-align: left;">10. Cliquez &laquo;&nbsp;Terminé&nbsp;&raquo; puis &laquo;&nbsp;Installation&nbsp;&raquo;<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03902.jpg"><img class="size-thumbnail wp-image-617 aligncenter" title="dsc03902" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03902-430x125.jpg" alt="dsc03902" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03903.jpg"><img class="size-thumbnail wp-image-618 aligncenter" title="dsc03903" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03903-430x125.jpg" alt="dsc03903" width="430" height="125" /></a></p><p style="text-align: center;">NOTE: Vous pouvez passer l&#8217;étape de vérification du disque.. ou pas.. mais si l&#8217;installation échoue, c&#8217;est une des choses a vérifier en premier.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03905.jpg"><img class="size-thumbnail wp-image-619 aligncenter" title="dsc03905" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03905-430x125.jpg" alt="dsc03905" width="430" height="125" /></a></p><p style="text-align: left;">11. Allez chercher vôtre café, il a du finir de couler.. et l&#8217;installation va être longue..<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03908.jpg"><img class="size-thumbnail wp-image-620 aligncenter" title="dsc03908" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03908-430x125.jpg" alt="dsc03908" width="430" height="125" /></a></p><p style="text-align: left;">12. Cliquez &laquo;&nbsp;redémarrer&nbsp;&raquo; puis éjectez le DVD.<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03911.jpg"><img class="size-thumbnail wp-image-621 aligncenter" title="dsc03911" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03911-430x125.jpg" alt="dsc03911" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03914.jpg"><img class="size-thumbnail wp-image-622 aligncenter" title="dsc03914" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03914-430x125.jpg" alt="dsc03914" width="430" height="125" /></a></p><p style="text-align: left;">13. Comme au début de ce tutoriel, pour le premier démarrage il va falloir spécifier les arguments de boot: cpus=1 maxmem=2048 –v (utile uniquement pour le premier boot.. ensuite vous pourrez booter normalement, sauf problèmes en cas de copies de gros fichiers)<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03915.jpg"><img class="size-thumbnail wp-image-623 aligncenter" title="dsc03915" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03915-430x125.jpg" alt="dsc03915" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03917.jpg"><img class="size-thumbnail wp-image-624 aligncenter" title="dsc03917" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03917-430x125.jpg" alt="dsc03917" width="430" height="125" /></a></p><p style="text-align: left;">14. De l&#8217;image et du son ! :)<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03925.jpg"><img class="size-thumbnail wp-image-625 aligncenter" title="dsc03925" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03925-430x125.jpg" alt="dsc03925" width="430" height="125" /></a></p><p style="text-align: left;">15. Suivez l&#8217;assitant&#8230;<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03929.jpg"><img class="size-thumbnail wp-image-626 aligncenter" title="dsc03929" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03929-430x125.jpg" alt="dsc03929" width="430" height="125" /></a></p><p style="text-align: left;">16. Félicitations !<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03933.jpg"><img class="size-thumbnail wp-image-627 aligncenter" title="dsc03933" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03933-430x125.jpg" alt="dsc03933" width="430" height="125" /></a></p><p style="text-align: center;"><a href="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03934.jpg"><img class="size-thumbnail wp-image-628 aligncenter" title="dsc03934" src="http://www.crashdump.fr/wp-content/uploads/2009/04/dsc03934-430x125.jpg" alt="dsc03934" width="430" height="125" /></a></p><p>Vous pouvez maintenant lire cet article: <a href="http://www.crashdump.fr/tout-et-rien/bestof-apps-pour-osx-et-nostalgie-396/">Les applications indispensables pour Os X</a></p><p>Nous pourrions encore améliorer deux/trois petites choses.. mais je reviendrais sûrement sur cet article plus tard, dans une révision 2.</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/apple/installer-os-x-sur-un-thinkpad-r52-598/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Les applications indispensables pour Os X</title><link>http://www.crashdump.fr/tout-et-rien/bestof-apps-pour-osx-et-nostalgie-396/</link> <comments>http://www.crashdump.fr/tout-et-rien/bestof-apps-pour-osx-et-nostalgie-396/#comments</comments> <pubDate>Sun, 15 Feb 2009 13:54:12 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Tout-et-Rien]]></category> <category><![CDATA[AOL]]></category> <category><![CDATA[developpement]]></category> <category><![CDATA[gravure]]></category> <category><![CDATA[indispensables]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[maintenance]]></category> <category><![CDATA[messagerie]]></category> <category><![CDATA[mises a jours]]></category> <category><![CDATA[multimedia]]></category> <category><![CDATA[navigateur]]></category> <category><![CDATA[notifications]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[outils]]></category> <category><![CDATA[rss]]></category> <category><![CDATA[terminal]]></category> <category><![CDATA[utilitaires]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=396</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/02/hasta_la_vista.jpg" class="attachment-featured-image wp-post-image" alt="hasta_la_vista" title="hasta_la_vista" /></p><br />Voilà maintenant 8 mois que j&#8217;ai reçu mon iMac , il a marqué mon retour aux sources. J&#8217;ai commencé dans le merveilleux monde d&#8217;Apple très jeune &#8211; sur un Mac IIfx &#8211; je m&#8217;en souviens comme si c&#8217;était hier, mon père m&#8217;avais ramené une machine dont le boîtier étais en piteux état (et qui, d&#8217;ailleurs, [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2009/02/hasta_la_vista.jpg" class="attachment-featured-image wp-post-image" alt="hasta_la_vista" title="hasta_la_vista" /></p><br /><p><em>Voilà maintenant 8 mois que <a rel="nofollow" href="http://www.crashdump.fr/tout-et-rien/jai-recu-le-colis-marque-a-la-pomme-157/">j&#8217;ai reçu mon iMac</a> , il a marqué mon retour aux sources. J&#8217;ai commencé dans le merveilleux monde d&#8217;Apple très jeune &#8211; sur un <a href="http://en.wikipedia.org/wiki/Macintosh_IIfx">Mac IIfx</a> &#8211; je m&#8217;en souviens comme si c&#8217;était hier, mon père m&#8217;avais ramené une machine dont le boîtier étais en piteux état (et qui, d&#8217;ailleurs, ne ferais rêver personne aujourd&#8217;hui) mais mes yeux d&#8217;enfant se sont mis a briller quand je l&#8217;ai vu ! Alors j&#8217;ai entrepris de le faire marcher a nouveau.. et c&#8217;est finalement avec des plaques d&#8217;aluminium en guise de boîtier et un disque dur posé a côté qu&#8217;il à couiné pour la première fois ! Après ça j&#8217;ai souvent eu des machines à base de x86.. 386, 486, Pentium I, II &amp; III.. bref, la liste est plutôt longue et ce n&#8217;est pas le but de ce billet. Tout ça pour vous dire que l&#8217;arrivée de ce iMac m&#8217;as rappelé de vieux &#8211; et bon &#8211; souvenirs. </em></p><p>J&#8217;aimerais faire le bilan de ces quelques mois pour essayer de lister les applications indispensables au monde Os X. Pour plus de cohérence et par souci de lisibilité je vais les trier par fonction, catégorie.</p><p><em>Cette liste est non exhaustive et évoluera en permanence.. elle à été mise a jours le:</em> 15 Fevrier 2008.</p><h2>Internet</h2><h3>Les navigateurs:</h3><ul><li><a rel="nofollow" title="Safari" href="http://www.apple.com/fr/safari/" target="_blank"><strong>Safari</strong></a>: Excellent, enfin un OS qui propose un navigateur par défaut qui a de quoi séduire. Contrairement à son (portage?) sous windows il est plutôt rapide et léger, je l&#8217;utilise tous les jours.</li><li><a rel="nofollow" title="Firefox" href="http://www.mozilla-europe.org/fr/firefox/" target="_blank"><strong>Firefox</strong></a>: Malheureusement safari souffre parfois de son manque de part de marchés et il arrive que certains sites &#8211; bien spécifiques &#8211; ne fonctionnent pas a merveille, c&#8217;est alors que je bascule sur ce navigateur secondaire, mais indispensable. Je ne pense pas avoir à dire grand chose sur tant celui-ci tellement est connu et reconnu..</li><li><a rel="nofollow" title="Flock" href="http://flock.com/" target="_blank"><strong>Flock</strong></a>: Un Social Web Browser, connectez vous facilement sur toutes les reseaux (Facebook, Flickr, Myspace, Vos blogs, etc..) Plutôt pratique pour tout centraliser.</li><li><del><strong>Internet explorer</strong>: Non, c&#8217;est une blague&#8230; :)</del></li></ul><h3>Lecteurs de flux RSS</h3><ul><li><a rel="nofollow" title="Netnewswire" href="http://www.newsgator.com/INDIVIDUALS/NETNEWSWIRE/" target="_blank"><strong>NetNewsWire</strong></a>: J&#8217;aime les applications simples, qui exécutent ce pourquoi on les emplois en le fessant bien.. c&#8217;est le cas de celle ci. En plus elle permet la synchronisation de vos flux préférés avec NewsGator et MobileMe. Que vouloir de plus ?</li></ul><h3>Messagerie instantanée</h3><ul><li><a rel="nofollow" href="http://www.adiumx.com/" target="_blank"><strong>AdiumX</strong></a>: Un client IM dans l&#8217;esprit mac, contrairement à l&#8217;autre &#8211; dont je parlerais après.. très intuitif, multi-protocoles (AOL, MSN, Jabber, GTalk, Yahoo, Bonjour, MySpace, Facebook..). Malheureusement il ne gère pas encore la vidéo mais il permet l&#8217;ajout de plugins, thèmes, icones.. bref, je suis fan.</li><li><a rel="nofollow" href="http://www.amsn-project.net/" target="_blank"><strong>aMsn</strong></a>: Le client anti user-friendly par excellence sous mac mais il est le seul qui gère la video via msn.. alors il faut l&#8217;avoir. (même si il est vraiment très moche)</li><li><a rel="nofollow" href="http://conceitedsoftware.com/products/linkinus" target="_blank"><strong>Linkinus</strong></a>: Un client IRC parmi tant d&#8217;autres, celui là m&#8217;as accroché.. allez savoir pourquoi :)</li></ul><h3>Transferts de données</h3><ul><li><a rel="nofollow" href="http://www.panic.com/transmit/" target="_blank"><strong>Transmit</strong></a>: Un client pour les protocoles FTP(+SSL), SFTP, Webdav, Amazone S3. C&#8217;est une création Panic &#8211; qui a, à son actif de très très bon logiciels. Un must have.</li><li><strong><a rel="nofollow" href="http://cyberduck.ch/" target="_blank">Cyberduck</a></strong>: Un autre client (s)FTP, etc.. Et open source en plus !</li><li><a rel="nofollow" href="http://www.transmissionbt.com/" target="_blank"><strong>Transmission</strong></a>: <del>Un</del> Le client Torrent par excellence.</li><li><strong>Halime</strong>: Très bon client pour les newsgroups, malheureusement il n&#8217;est plus mis a jour.</li></ul><h3>Interface système et utilitaires</h3><ul><li><a rel="nofollow" href="http://www.islayer.com/apps/istatmenus/" target="_blank"><strong>iStats Menus</strong></a>: Gardez un oeil sur l&#8217;utilisation des ressources de vôtre machine (et en plus ça a de la gueule !).</li><li><strong><a rel="nofollow" href="http://growl.info/" target="_blank">Growl</a>:</strong> Centralise toutes vos notifications via des bulles entièrement customisable (enormement d&#8217;applications sont compatibles, c&#8217;est un must have).</li><li><a rel="nofollow" href="http://www.titanium.free.fr/pgs2/english/deeper.html" target="_blank"><strong>Deeper</strong></a>: <del></del>Pour customiser son système simplement.</li><li><strong><a rel="nofollow" href="http://www.blacktree.com/" target="_blank">Quicksilver</a>:</strong> Le lanceur par excellence, tapez les trois premières lettres d&#8217;une application et il la lance ! C&#8217;est bien simple, je ne peux plus m&#8217;en passer :)</li><li><strong><a rel="nofollow" href="http://metaquark.de/appfresh/" target="_blank">AppFresh</a>:</strong> Permet de garder vos applications a jours le plus simplement du monde.</li><li><strong><a rel="nofollow" href="http://code.google.com/p/blacktree-visor/" target="_blank">Blacktree visor</a>:</strong> Ouvrez un terminal a la façon Quake, très pratique avec terriblement de gueule !</li></ul><h3>Sécurité</h3><ul><li><a rel="nofollow" href="http://www.obdev.at/products/littlesnitch/index.html" target="_blank"><strong>Little snitch</strong></a>: Firewall très bien conçu &#8211; user friendly. Un must have.</li><li><strong><a rel="nofollow" href="http://www.shirt-pocket.com/SuperDuper/SuperDuperDescription.html" target="_blank">SuperDuper</a>: </strong>Solution de backup très simple et bien foutue, un complement parfait a time machine.</li></ul><h3>Multimedia</h3><ul><li><strong><a rel="nofollow" href="http://www.perian.org/" target="_blank">Perian</a>: </strong>Permet a Quicktime de lire quasiment tous les formats existants. Un must-have.</li><li><a rel="nofollow" href="http://www.xiph.org/quicktime/" target="_blank"><strong>Xiph</strong></a>: Apporte le support de l&#8217;OGG a iTunes/Quicktime. Indispensable aussi.</li><li><strong><a rel="nofollow" href="http://www.telestream.net/telestream-products/desktop-products.htm" target="_blank">Flip4Mac</a>:</strong> Lecture des wmv par Quicktime.</li><li><strong><a rel="nofollow" href="http://mplayerosx.sttz.ch/" target="_blank">MPlayer OSX Extended</a>: </strong>L&#8217;alternative a Quicktime que je prefere, très propre/performant.</li><li><strong><a rel="nofollow" href="http://www.squared5.com/" target="_blank">Mpeg Streamclip</a>: </strong>Un convertiseur de vidéos simple et bien foutu.</li><li><strong><a rel="nofollow" href="http://handbrake.fr/" target="_blank">Handbrake</a>:</strong> Un autre convertiseur de vidéos, parfait complement a Mpeg streamclip.</li></ul><h3>Gestion des fichiers / Gravure</h3><ul><li><a rel="nofollow" href="http://www.roxio.com/fra/products/toast/titanium/overview.html" target="_blank"><strong>Toast</strong></a>: Logiciel de gravure multifonction, l&#8217;equivalent de Nero sur mac.. malheureusement il a les mêmes défaut que son homologue: très lourd.</li><li><strong><a rel="nofollow" href="http://www.maconnect.ch/" target="_blank">Liquid CD</a>: </strong>Une très bonne alternative a Toast. Gratuit en plus.</li><li><strong><a rel="nofollow" href="http://wakaba.c3.cx/s/apps/unarchiver.html" target="_blank">The Unarchiver</a>: </strong>Extraction d&#8217;archives de tous formats. Un must have.</li><li><a rel="nofollow" href="http://sixtyfive.xmghosting.com/" target="_blank"><strong>7zx</strong></a>: Utilitaire d&#8217;archive supportant les formats tar, zip, gzip, bzip2, UNIX compress, 7z et s7z.</li></ul><h3>Maintenance et Optimisations</h3><ul><li><a rel="nofollow" href="http://www.titanium.free.fr/" target="_blank"><strong>Onyx</strong></a>: Utilitaire de maintenance très complet. Un must-have.</li></ul><h3>Développement</h3><ul><li><a rel="nofollow" href="http://www.panic.com/coda/" target="_blank"><strong>Coda</strong></a>: Un outil pour le devel Web complet.. il intègre toutes les fonctions dont vous avez besoin, encore une fois Panic software a assuré !</li><li><strong><a rel="nofollow" href="http://developer.apple.com/technologies/tools/" target="_blank">XCode</a>:</strong> L&#8217;environement de developpement par Apple. Très bien concu !</li><li><strong><a rel="nofollow" href="http://www.sequelpro.com/" target="_blank">Sequel Pro</a>:</strong> Gestion de BDD MySQL via une interface très bien foutue.</li></ul><p><em>Je vous invite a poster &#8211; dans les commentaires &#8211; le nom des applications que vous aimez le plus pour que je puisse continuer cette liste. </em></p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/tout-et-rien/bestof-apps-pour-osx-et-nostalgie-396/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Remplacer le firmware de la fonera avec dd-wrt (sous Mac)</title><link>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/</link> <comments>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/#comments</comments> <pubDate>Mon, 08 Sep 2008 14:28:05 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Réseaux]]></category> <category><![CDATA[0.7.1r2]]></category> <category><![CDATA[0.7.1r3]]></category> <category><![CDATA[0.7.1r4]]></category> <category><![CDATA[dd-wrt]]></category> <category><![CDATA[Firmware]]></category> <category><![CDATA[flasher]]></category> <category><![CDATA[fonera]]></category> <category><![CDATA[Gateway]]></category> <category><![CDATA[http]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[radius]]></category> <category><![CDATA[réseau]]></category> <category><![CDATA[tftp]]></category> <category><![CDATA[Tuto]]></category> <category><![CDATA[tutoriel]]></category> <category><![CDATA[wifi]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=357</guid> <description><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/09/fonera-wrt.jpg" class="attachment-featured-image wp-post-image" alt="fonera-wrt" title="fonera-wrt" /></p><br />Attention, ce tutoriel ne concerne que les versions de firmware 0.7.1r2 ou plus récent. Dans ce tutoriel je vais essayer vous expliquer comment flasher sa Fonera avec le firmware DD-WRT avec votre Mac préféré. DD-WRT, C&#8217;est quoi ? Tout simplement firmware alternatif qui vous apporte pleins de fonctions: un mode client en wifi, système de [...]]]></description> <content:encoded><![CDATA[<p><img width="240" height="150" src="http://www.crashdump.fr/wp-content/uploads/2008/09/fonera-wrt.jpg" class="attachment-featured-image wp-post-image" alt="fonera-wrt" title="fonera-wrt" /></p><br /><p><strong>Attention, ce tutoriel ne concerne que les versions de firmware 0.7.1r2 ou plus récent.</strong></p><p><i>Dans ce tutoriel je vais <del>essayer</del> vous expliquer comment flasher sa Fonera avec le firmware DD-WRT avec votre Mac préféré. DD-WRT, C&#8217;est quoi ? Tout simplement firmware alternatif qui vous apporte pleins de fonctions: un mode client en wifi, système de hotspot (Chilli) et encore pleins d&#8217;autres choses.. en plus il est gratuit. Pourquoi s&#8217;en priver ?</i></p><h3><li>Ce dont vous aurez besoin</li></h3><li><ul>Un câble ethernet (RJ45, Droit): pour connecter la Fonera à votre machine,</ul><ul>Le firmware DD-WRT: Téléchargez le ici (<a rel="nofollow" href="http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fv24%2FAtheros+WiSoc%2FFonera/">Final version</a> ou <a rel="nofollow" href="http://www.dd-wrt.com/dd-wrtv2/down.php?path=downloads%2Fobsolete%2Frelease+candidates/">Release Candidate</a>)</ul><ul>Ces deux fichiers: <a rel="nofollow" href="http://fonera.info/camicia/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma">openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma</a> et <a rel="nofollow" href="http://fonera.info/camicia/out.hex">out.hex</a></ul><ul><del>Un serveur http</del>: OS X en intègre un,</ul><ul><del>Un serveur tftp</del>: OS X en intègre un aussi,</ul><ul><del>Un client SSH, Telnet</del>: Terminal, aussi intégré à OS X.</ul></li><p><strong>Attention, il est important de télécharger ces fichiers avant de commencer ce tutoriel car vous n&#8217;aurez plus de connexion a internet pendant la procédure&#8230; Sauf si vous avez plusieurs machines.. ;)</strong></p><h3><li>Vérifier la version de la fonera</li></h3><p>1. Procédure de reset:<br /> - Maintenez le bouton reset 30s,<br /> - Débranchez/retranchez l&#8217;alimentation tout en maintenant le reset,<br /> - Continuez a appuyer dessus jusqu&#8217;à ce que la led wifi s&#8217;allume puis s&#8217;éteigne (2-3 minutes),<br /> - Relâchez (enfin) le reset puis attendez (encore) 2-3 minutes que la led wifi s&#8217;allume de nouveau.</ul><p>2. Connecter: Pour cela on va brancher la Fonera directement à l&#8217;ordinateur en RJ45 puis configurer l&#8217;adresse Ip de la carte Ethernet en: 169.254.255.2/255.255.0.0 (la fonera ayant l&#8217;adresse: 169.254.255.1).<br /> 3. Récupérer la version: Ouvrez votre navigateur et tapez dans la barre d&#8217;adresse &laquo;&nbsp;http://169.254.255.1&#8243;<br /> 4. Si un login/mdp vous est demandé entrez:<br /> - login: root<br /> - pass: admin</p><h3><li>Exploiter RADIUS pour obtenir un accès SSH</li></h3><p>A chaque démarrage de la fonera elle se connecte a un serveur RADIUS (/usr/sbin/chilli_radconfig) pour télécharger la configuration la plus récente (/etc/chilli.conf).<br /> FON a pris des précautions pour sécuriser l&#8217;utilisation du serveur SSH mais n&#8217;a pas fait de même pour leur serveur RADIUS, nous allons exploiter cette faille en se connectant à un serveur spoofé qui va nous permettre d&#8217;avoir la main sur cette petite bête..<br /> Pour cela nous allons devoir faire pointer la Fonera sur un serveur DNS qui redirigera l&#8217;adresse &laquo;&nbsp;radius01.fon.com&nbsp;&raquo; vers un serveur RADIUS &laquo;&nbsp;Non-officiel&nbsp;&raquo; sur lequel elle récupérera un fichier config a notre sauce.</p><p>En résumé. Donc tout ce que l&#8217;on a à faire c&#8217;est configurer la Fonera pour qu&#8217;elle pointe sur le DNS: &laquo;&nbsp;88.198.165.155&#8243; ce qui redirigera &laquo;&nbsp;radius01.fon.com&nbsp;&raquo; sur &laquo;&nbsp;kolofonium.datenbruch.de&nbsp;&raquo; (qui est un serveur Radius &laquo;&nbsp;pirate&nbsp;&raquo;).</p><p>1. Ouvrez votre navigateur et tapez dans la barre d&#8217;adresse &laquo;&nbsp;http://169.254.255.1&#8243;<br /> 2. Allez dans &laquo;&nbsp;advanced&nbsp;&raquo; et entrez les paramètres réseau avec:<br /> - Ip: une Ip valide derrière votre Box internet (ex: 192.168.3.20, chez moi)<br /> - Network Mask: 255.255.255.0<br /> - Gateway: L&#8217;Ip de votre Box Internet. (ex: 192.168.3.242, chez moi)<br /> - DNS: 88.198.165.155</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/hacked-dns.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/hacked-dns-430x125.jpg" alt="" title="hacked-dns" width="430" height="125" class="alignnone size-thumbnail wp-image-359" /></a></p><p>3. Connectez la Fonera directement a un des ports ethernet de votre box internet,<br /> 4. Redémarrez enfin la Fonera puis attendez quelques minutes pour la redémarrer à nouveau.</p><p>La modification touche le fichier &laquo;&nbsp;/etc/raddb/users&nbsp;&raquo;, le nouveau contient:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">chillispot Auth-Type = External<br /> &nbsp; &nbsp; &nbsp; &nbsp; Exec-Program-Wait = &quot;/etc/raddb/fonera.sh&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiusserver1 radius01.fon.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiusserver2 radius02.fon.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;radiussecret garrafon&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;dhcpif eth1&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamsecret garrafon&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamanydns&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed www.martinvarsavsky.net,www.google.com,www.flickr.com,static.flickr.com,video.google.com,216.239.51.0/24,66.249.81.0/24&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed www.fon.com,www.paypal.com,www.paypalobjects.com,www.skype.com,66.249.93.0/24,72.14.207.0/24,72.14.209.0/24,84.96.67.0/24,213.91.9.0/24,80.118.99.0/24&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed shop.fon.co.kr,secure.nuguya.com,inilite.inicis.com,fon-en.custhelp.com,maps.fon.com,c20.statcounter.com&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamserver https://login.fon.com/cp/index.php&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;# Greetings from Michael and Stefan&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;# http://mrmuh.blogspot.com/ &amp; http://stefans.datenbruch.de/lafonera/&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;uamallowed stefans.datenbruch.de&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; CHILLICONF = &quot;ipup /etc/init.d/dropbear&quot;,<br /> &nbsp; &nbsp; &nbsp; &nbsp; Fall-Through = 0</div></td></tr></tbody></table></div><p>On notera la ligne &laquo;&nbsp;ipup /etc/init.d/dropbear&nbsp;&raquo;: C&#8217;est elle qui lance le serveur SSH des que l&#8217;interface &laquo;&nbsp;publique&nbsp;&raquo; est démarrée.</p><h3><li>Se connecter a notre joli serveur SSH</li></h3><p>1. Reconnectez la Fonera a votre machine par l&#8217;interface Ethernet (rappel ip: 169.254.255.1)</p><p>2. Ouvrez un Terminal (Applications > Terminal) et tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># ssh root@169.254.255.1</div></td></tr></tbody></table></div><p>3. On accepte la clé et on entre le mot de passe &laquo;&nbsp;admin&nbsp;&raquo;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/ssh-fon.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/ssh-fon-430x125.jpg" alt="" title="ssh-fon" width="430" height="125" class="alignnone size-thumbnail wp-image-363" /></a></p><p>4. Yeepee, on est dedans :)</p><p>5. Activer le SSH en permanence:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mv /etc/init.d/dropbear /etc/init.d/S50dropbear</div></td></tr></tbody></table></div><h3><li>Configurer notre serveur HTTP</li></h3><p>1. Rendez-vous dans vos &laquo;&nbsp;Préférences systèmes&nbsp;&raquo; puis dans &laquo;&nbsp;Partage&nbsp;&raquo;, Activez le &laquo;&nbsp;Partage web&nbsp;&raquo;. Notez l&#8217;url du bas, (ici: http://mac.local/~rzo ou http://169.254.5.199/~rzo) Vous trouverez votre Ip dans les préférences réseau de OSX, la mienne est &laquo;&nbsp;169.254.5.199&#8243;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web-430x125.jpg" alt="" title="partage-web" width="430" height="125" class="alignnone size-thumbnail wp-image-364" /></a></p><p>2. Puis mettez les 2 fichiers téléchargé plus tôt dans le répertoire de partage web de votre utilisateur (/Users/&#8217;nomUtilisateur&#8217;/Sites/)<br /> - openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma<br /> - out.hex<br /> <a href="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web2.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/partage-web2-430x125.jpg" alt="" title="partage-web2" width="430" height="125" class="alignnone size-thumbnail wp-image-365" /></a></p><h3><li>Accès à la mtd</li></h3><p>1. On récupère nos fichiers sur la Fonera:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /tmp<br /> # wget http://169.254.5.199/~username/openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma</div></td></tr></tbody></table></div><p>2. On flashe avec le firmware modifié, ce qui nous permet un accès à la mtd:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mtd -e vmlinux.bin.l7 write openwrt-ar531x-2.4-vmlinux-CAMICIA.lzma vmlinux.bin.l7<br /> # reboot</div></td></tr></tbody></table></div><p>Soyez patients, cela peut prendre du temps&#8230;</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/flash-vmlinux.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/flash-vmlinux-430x125.jpg" alt="" title="flash-vmlinux" width="430" height="125" class="alignnone size-thumbnail wp-image-367" /></a></p><p>3. on se reconnecte en SSH et on lui applique le out.hex (fichier config redboot)</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /tmp<br /> # wget http://169.254.5.199/~username/out.hex<br /> # mtd -e &quot;RedBoot config&quot; write out.hex &quot;RedBoot config&quot;<br /> # reboot</div></td></tr></tbody></table></div><p>Attention, si vous avez l&#8217;erreur: &laquo;&nbsp;Could not open mtd device&nbsp;&raquo; assurez vous d&#8217;avoir tapé la commande en respectant les majuscules, c&#8217;est case sensitive.</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/redboot-configouthex.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/redboot-configouthex-430x125.jpg" alt="" title="redboot-configouthex" width="430" height="125" class="alignnone size-thumbnail wp-image-368" /></a></p><h3><li>Configurer le serveur tftp</li></h3><p>1. Entrez dans un Terminal: (dans mon cas il existait déjà.. vérifiez quand même..)</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo mkdir /private/tftpboot</div></td></tr></tbody></table></div><p>2. Copiez le firmware de dd-wrt à la racine du serveur tftp (linux.bin):<br /> - Déplacez le fichier sur le bureau.<br /> - Tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo cp ~/Desktop/linux.bin /private/tftpboot/</div></td></tr></tbody></table></div><p>3. On démarre le serveur tfp, tapez:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">sudo /sbin/service tftp start</div></td></tr></tbody></table></div><h3><li>Quand on touche au but..</li></h3><p>NOTA: A ce stade la Fonera ne peux pas démarrer correctement, c&#8217;est normal &#8211; et indispensable &#8211; le répertoire FIS est complètement effacé. Par contre nous pouvons toujours nous connecter au RedBoot, pour cela:</p><p>1. Configurez votre carte Ethernet pour avoir l&#8217;Ip: 192.168.1.10</p><p>2. Préparez un Terminal avec la ligne suivante: <b>Ne tapez pas entrée tout de suite !</b></p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$ telnet 192.168.1.254 9000</div></td></tr></tbody></table></div><p>3. Débranchez et rebranchez l&#8217;alimentation de la Fonera, puis validez la commande ci-dessus dans les 10 secondes qui suivent le branchement.<br /> NOTE: Le pre-boot de la Fonera peut prendre du temps, n&#8217;hésitez pas à retaper la commande plusieurs fois.. (Tips: Flèche haut).</p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-redboot.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-redboot-430x125.jpg" alt="" title="telnet-redboot" width="430" height="125" class="alignnone size-thumbnail wp-image-371" /></a></p><p>4. On a le shell, on configure le réseau. qui va pointer sur notre serveur tftp:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&gt; ip_address -l 192.168.1.254/24 -h 192.168.1.10</div></td></tr></tbody></table></div><p>5. Puis on flashe ! Répondez &laquo;&nbsp;y&nbsp;&raquo; quand on vous pose des questions.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&gt; fis init<br /> &gt; load -r -b 0x80041000 linux.bin<br /> &gt; fis create linux</div></td></tr></tbody></table></div><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-flashing.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/telnet-flashing-430x125.jpg" alt="" title="telnet-flashing" width="430" height="125" class="alignnone size-thumbnail wp-image-369" /></a></p><p>Ces commandes sont très longues a exécuter, ne vous affolez pas ! (&laquo;&nbsp;fis create linux&nbsp;&raquo; a pris 30 minutes chez moi&#8230;).<br /> Ne pas rebooter ensuite, il va falloir modifier le script de démarrage !</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;height:450px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">RedBoot&gt; fconfig<br /> Run script at boot: true<br /> Boot script:<br /> .. fis load -l vmlinux.bin.l7<br /> .. exec<br /> Enter script, terminate with empty line<br /> &gt;&gt; fis load -l linux<br /> &gt;&gt; exec<br /> &gt;&gt;<br /> Boot script timeout (1000ms resolution): 10<br /> Use BOOTP for network configuration: false<br /> Gateway IP address:<br /> Local IP address: 192.168.1.254<br /> Local IP address mask: 255.255.255.0<br /> Default server IP address: &lt;blank&gt;<br /> Console baud rate: 9600<br /> GDB connection port: 9000<br /> Force console for special debug messages: false<br /> Network debug at boot time: false<br /> Update RedBoot non-volatile configuration - continue (y/n)? y<br /> ... Erase from 0xa87e0000-0xa87f0000: .<br /> ... Program from 0x80ff0000-0x81000000 at 0xa87e0000: .<br /> RedBoot&gt;reset</div></td></tr></tbody></table></div><p>Voilà, vous y êtes, redémarrez la Fonera, configurez votre réseau ethernet (ou wifi) en DHCP puis lancez un navigateur sur l&#8217;url: http://192.168.1.1. <strong>Félicitation.</strong></p><p><a href="http://www.crashdump.fr/wp-content/uploads/2008/09/final-ddwrt-ok.jpg"><img src="http://www.crashdump.fr/wp-content/uploads/2008/09/final-ddwrt-ok-430x125.jpg" alt="" title="final-ddwrt-ok" width="430" height="125" class="alignnone size-thumbnail wp-image-370" /></a></p><p><em>NOTE: l&#8217;utilisateur/mot de passe est le même. login: root, mdp: admin</em></p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/reseaux/flasher-sa-fonera-en-dd-wrt-sous-os-x-357/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Ecran bleu au boot de  OS X(86) 10.5..</title><link>http://www.crashdump.fr/apple/ecran-bleu-au-boot-de-os-x86-105-309/</link> <comments>http://www.crashdump.fr/apple/ecran-bleu-au-boot-de-os-x86-105-309/#comments</comments> <pubDate>Fri, 22 Aug 2008 13:22:13 +0000</pubDate> <dc:creator>Crashdump</dc:creator> <category><![CDATA[Apple]]></category> <category><![CDATA[Application Enchancer]]></category> <category><![CDATA[bad ape]]></category> <category><![CDATA[blue screen]]></category> <category><![CDATA[finder]]></category> <category><![CDATA[fsck]]></category> <category><![CDATA[Library]]></category> <category><![CDATA[mode]]></category> <category><![CDATA[mount]]></category> <category><![CDATA[os x]]></category> <category><![CDATA[permission]]></category> <category><![CDATA[preferences]]></category> <category><![CDATA[probleme]]></category> <category><![CDATA[rescue]]></category><guid isPermaLink="false">http://www.crashdump.fr/?p=309</guid> <description><![CDATA[Il y a des jours comme ça, ou l&#8217;on devrait rester coucher.. Ce matin ma machine m&#8217;a fait suer a grandes goûtes ! C&#8217;est un Lenovo, os x est installé dessus et a toujours fonctionné a merveille.. jusqu&#8217;à tout a l&#8217;heure. Boot du système, tout va pour le mieux au début mais quand viens le [...]]]></description> <content:encoded><![CDATA[<p>Il y a des jours comme ça, ou l&#8217;on devrait rester coucher.. Ce matin ma machine m&#8217;a fait suer a grandes goûtes ! C&#8217;est un Lenovo, os x est installé dessus et a toujours fonctionné a merveille.. jusqu&#8217;à tout a l&#8217;heure.</p><p>Boot du système, tout va pour le mieux au début mais quand viens le tours du Finder, l&#8217;écran reste bleu, rien. plus d&#8217;accès disque, il s&#8217;endort. immuable. Reboot en mode single user (-s au prompt).. a l&#8217;attaque du mode rescue.<br /> <span id="more-309"></span><br /> 1) Monter le disque:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mount -uw /</div></td></tr></tbody></table></div><p>2) Supprimer les préférences: de login, du serveur x.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mv /Library/Preferences/com.apple.loginwindow.plist ~/Desktop/com.apple.loginwindow.plist.old</div></td></tr></tbody></table></div><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># mv /Library/Preferences/com.apple.windowserver.plist ~/Desktop/com.apple.windowserver.plist</div></td></tr></tbody></table></div><p>3) Supprimer les Préférences des applications utilisateurs qui peuvent être foireuses..</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># cd /Users/$NOM_UTILISATEUR/Library <br /> # mv Preferences Preferences.old</div></td></tr></tbody></table></div><p>4) Vérifier le volume</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># fsck -fy</div></td></tr></tbody></table></div><p>5) Réparer les autorisations</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># chmod 1775 /</div></td></tr></tbody></table></div><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># diskutil repairPermissions /</div></td></tr></tbody></table></div><p>6) Redémarrer.</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"># reboot</div></td></tr></tbody></table></div><p>.. a ce moment là, c&#8217;est plutôt l&#8217;angoisse.. reboot long.. toujours pareil, dégoûté. Puis l&#8217;éclair de lumière, j&#8217;avais installé &laquo;&nbsp;Bad APE&nbsp;&raquo; la veille.. re-reboot en mode rescue et élimination du problème:</p><div class="codecolorer-container text default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="text codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">rm -rf /System/Library/SystemConfiguration/ApplicationEnhancer.bundle</div></td></tr></tbody></table></div><p>Reboot, ça marche. Je souffle et vais me fumer une cigarette bien méritée. a très bientôt.</p> ]]></content:encoded> <wfw:commentRss>http://www.crashdump.fr/apple/ecran-bleu-au-boot-de-os-x86-105-309/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Served from: www.crashdump.fr @ 2012-02-04 18:26:45 by W3 Total Cache -->
