<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3392442543993712157</id><updated>2011-07-08T00:56:31.992+02:00</updated><category term='Unix'/><category term='matériel'/><category term='RHEL'/><category term='DNS'/><category term='bug'/><category term='AppleScript'/><category term='development'/><category term='partitions'/><category term='FOSDEM'/><category term='x86'/><category term='Windows'/><category term='Apple'/><category term='BSD'/><category term='Leopard'/><category term='FAT'/><category term='Mach-O'/><category term='Steve Jobs'/><category term='PostScript'/><category term='PC-BSD'/><category term='tcsh'/><category term='Big Brother'/><category term='Deskstar'/><category term='banque'/><category term='Objective-C'/><category term='GIMP'/><category term='Solaris'/><category term='Mac OS X'/><category term='Kernel Panic'/><category term='X11'/><category term='Universal Binary'/><category term='hardware'/><category term='PowerPC'/><category term='photo numérique'/><category term='Debian Live'/><category term='KDE'/><category term='IPP'/><category term='64-bit'/><category term='carte bancaire'/><category term='Sony'/><category term='Jaguar'/><category term='disque dur'/><category term='FreeBSD'/><category term='Perl'/><category term='Mon Site Web'/><category term='magic number'/><category term='geek'/><category term='bash'/><category term='Spotlight'/><category term='XCode'/><category term='Tiger'/><category term='Open Source'/><category term='Rions'/><category term='Fink'/><category term='Debian GNU/Linux'/><category term='Rhapsody'/><category term='NextStep'/><category term='iPhone'/><category term='CUPS'/><category term='Rosetta'/><category term='VMware'/><category term='Linux'/><category term='OpenOffice.org'/><category term='FAT32'/><category term='gcc'/><category term='Panther'/><category term='MacBook Air'/><category term='Clef USB'/><category term='slashdot'/><category term='print-sizeof-pointer'/><category term='iBook'/><category term='Intel'/><category term='munin'/><category term='fat binary'/><category term='OpenBSD'/><title type='text'>Le blog de Pierre Bauduin</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>66</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-301420630378386300</id><published>2009-06-21T20:00:00.002+02:00</published><updated>2009-06-21T20:52:18.983+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><category scheme='http://www.blogger.com/atom/ns#' term='print-sizeof-pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><title type='text'>print-size-of-pointer: exécution sous Solaris</title><content type='html'>Voici ce qui se passe lorsque j'exécute mon programme print-size-of-pointer sur ma Sun Fire sous Solaris:&lt;br /&gt;(Il y a deux versions: compilé en 32-bit et compilé en 64-bit):&lt;br /&gt;&lt;br /&gt;Résultat sur fire (Sun Fire 64-bit):&lt;br /&gt;Version du kernel:&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;uname -a&lt;/TT&gt;&lt;br /&gt;SunOS fire 5.10 Generic_118833-33 sun4u sparc SUNW,UltraAX-i2&lt;br /&gt;&lt;br /&gt;Sommes-nous en 64-bit ?&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;isainfo -b&lt;br /&gt;64&lt;/TT&gt;&lt;br /&gt;Oui, nous sommes en 64-bit&lt;br /&gt;&lt;br /&gt;Voyons les fichiers&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;ls -l&lt;br /&gt;total 142&lt;br /&gt;-rwxr-xr-x   1 pbn     users       6587 Jun  1 20:00 print-sizeof-pointer-linux-32bit.bin&lt;br /&gt;-rwxr-xr-x   1 pbn     users       9415 Jun  1 20:00 print-sizeof-pointer-linux-64bit.bin&lt;br /&gt;-rwxr-xr-x   1 pbn     users      53640 Jun  1 20:00 print-sizeof-pointer-macosx.bin&lt;br /&gt;-rw-r--r--   1 pbn     users        561 Jun  1 20:00 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Je compile mon programme en 32-bit&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;gcc -o print-sizeof-pointer-solaris-32bit.bin -m32 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Je compile mon programme en 64-bit&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;gcc -o print-sizeof-pointer-solaris-64bit.bin -m64 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons de quel type d'exécutable il s'agit:&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;file *solaris*&lt;br /&gt;print-sizeof-pointer-solaris-32bit.bin: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped, no debugging information available&lt;br /&gt;print-sizeof-pointer-solaris-64bit.bin: ELF 64-bit MSB executable SPARCV9 Version 1, dynamically linked, not stripped, no debugging information available&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;J'exécute la version 32-bit de mon programme:&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;./print-sizeof-pointer-solaris-32bit.bin &lt;br /&gt;print-sizeof-pointer.c&lt;br /&gt;  If the result is 8, this machine is a 64-bit system.&lt;br /&gt;  If the result is 4, this machine is a 32-bit system.&lt;br /&gt;  Result: 4&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;J'exécute la version 64-bit de mon programme:&lt;br /&gt;&lt;TT&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;./print-sizeof-pointer-solaris-64bit.bin &lt;br /&gt;print-sizeof-pointer.c&lt;br /&gt;  If the result is 8, this machine is a 64-bit system.&lt;br /&gt;  If the result is 4, this machine is a 32-bit system.&lt;br /&gt;  Result: 8&lt;br /&gt;[pbn@fire] /export/home/pbn/Documents/print-sizeof-pointer&gt;&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;En bref sous Solaris sur une machine 64-bit avec un OS 64-bit, je peux à la fois exécuter les exécutables 32-bit et 64-bit. Et en fait, les exécutables 32-bit ont leurs adresses en 32-bit, les exécutables 64-bit ont leurs adresses en 64-bit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-301420630378386300?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/301420630378386300/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=301420630378386300' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/301420630378386300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/301420630378386300'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/06/print-size-of-pointer-solaris.html' title='print-size-of-pointer: exécution sous Solaris'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1940929368317665471</id><published>2009-06-21T14:20:00.002+02:00</published><updated>2009-06-21T18:28:44.965+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><category scheme='http://www.blogger.com/atom/ns#' term='print-sizeof-pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>print-size-of-pointer: exécution sous Mac OS X</title><content type='html'>Voici ce qui se passe lorsque j'exécute mon programme print-size-of-pointer sous MacOSX:&lt;br /&gt;&lt;br /&gt;Résultat sur albert (iMac Intel Core 2 Duo à 2 GHz, Mac OS X 10.5 Intel):&lt;br /&gt;&lt;br /&gt;Quel kernel avons-nous ?&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn&gt;uname -a&lt;br /&gt;Darwin albert 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;En particulier, quelle est l'architecture ?&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn&gt;uname -m&lt;br /&gt;i386&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Le CPU est-il 64-bit ?&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn&gt;sysctl hw.cpu64bit_capable&lt;br /&gt;hw.cpu64bit_capable: 1&lt;/TT&gt;&lt;br /&gt;Oui, le CPU est 64-bit&lt;br /&gt;&lt;br /&gt;Voyons les fichiers&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn/Documents/other/print-sizeof-pointer&gt;ls&lt;br /&gt;print-sizeof-pointer-linux-32bit.bin print-sizeof-pointer-macosx.bin&lt;br /&gt;print-sizeof-pointer-linux-64bit.bin print-sizeof-pointer.c&lt;br /&gt;[pbn@albert] /Users/pbn/Documents/other/print-sizeof-pointer&gt;ls -l&lt;br /&gt;total 160&lt;br /&gt;-rw-r--r--  1 pbn  staff   6587  1 jui 20:00 print-sizeof-pointer-linux-32bit.bin&lt;br /&gt;-rw-r--r--  1 pbn  staff   9415  1 jui 20:00 print-sizeof-pointer-linux-64bit.bin&lt;br /&gt;-rwxr-xr-x  1 pbn  staff  53640  1 jui 20:00 print-sizeof-pointer-macosx.bin&lt;br /&gt;-rw-r--r--  1 pbn  staff    561  1 jui 20:00 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons de quel type d'exécutable il s'agit: c'est un "universal binary" qui contient quatre exécutables pour quatre architectures différentes&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn/Documents/other/print-sizeof-pointer&gt;file print-sizeof-pointermacosx.bin &lt;br /&gt;print-sizeof-pointer-macosx.bin: Mach-O universal binary with 4 architectures&lt;br /&gt;print-sizeof-pointer-macosx.bin (for architecture i386): Mach-O executable i386&lt;br /&gt;print-sizeof-pointer-macosx.bin (for architecture x86_64): Mach-O 64-bit executable x86_64&lt;br /&gt;print-sizeof-pointer-macosx.bin (for architecture ppc7400): Mach-O executable ppc&lt;br /&gt;print-sizeof-pointer-macosx.bin (for architecture ppc64): Mach-O 64-bit executable ppc64&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;J'exécute mon programme:&lt;br /&gt;&lt;TT&gt;[pbn@albert] /Users/pbn/Documents/other/print-sizeof-pointer&gt;./print-sizeof-pointer-macosx.bin &lt;br /&gt;print-sizeof-pointer.c&lt;br /&gt;  If the result is 8, this machine is a 64-bit system.&lt;br /&gt;  If the result is 4, this machine is a 32-bit system.&lt;br /&gt;  Result: 8&lt;br /&gt;[pbn@albert] /Users/pbn/Documents/other/print-sizeof-pointer&gt;&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;En bref le cas de Mac OS X 10.5 "Léopard" est un peu particulier: sur une machine 64-bit sous Mac OS X 10.5 "Léopard":&lt;UL&gt;&lt;br /&gt;&lt;LI&gt; l'operating system est 64-bit&lt;br /&gt;&lt;LI&gt; l'API (Cocoa) est 64-bit et/ou 32-bit&lt;br /&gt;&lt;LI&gt; le kernel est 32-bit&lt;br /&gt;&lt;LI&gt; les fichiers "Universal Binaries" peuvent contenir les exécutables pour plusieurs architectures.&lt;br /&gt;&lt;/UL&gt;L'exécution de &lt;TT&gt;print-size-of-pointer&lt;/TT&gt; montre que les exécutables 32-bit ont leurs adresses en 32-bit, les exécutables 64-bit ont leurs adresses en 64-bit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1940929368317665471?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1940929368317665471/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1940929368317665471' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1940929368317665471'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1940929368317665471'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/06/print-size-of-pointer-macosx.html' title='print-size-of-pointer: exécution sous Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7261357346162559905</id><published>2009-06-20T10:20:00.003+02:00</published><updated>2009-06-21T18:28:25.925+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><category scheme='http://www.blogger.com/atom/ns#' term='print-sizeof-pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>print-size-of-pointer: exécution sous Linux</title><content type='html'>Voici ce qui se passe lorsque j'exécute mon programme print-size-of-pointer sous Linux:&lt;br /&gt;(Il y a deux versions: compilé en 32-bit et compilé en 64-bit):&lt;br /&gt;&lt;br /&gt;Résultat sur cobra (Intel(R) Core(TM)2 Quad CPU    Q9400  @ 2.66GHz, Debian GNU/Linux "squeeze" 64-bit):&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;cd other/print-sizeof-pointer/&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons les fichiers&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;ls -l&lt;br /&gt;total 92&lt;br /&gt;-rwxr-xr-x 1 pibe pibe   561 jun  1 20:00 print-sizeof-pointer.c&lt;br /&gt;-rwxr-xr-x 1 pibe pibe  6587 jun  1 20:00 print-sizeof-pointer-linux-32bit.bin&lt;br /&gt;-rwxr-xr-x 1 pibe pibe  9415 jun  1 20:00 print-sizeof-pointer-linux-64bit.bin&lt;br /&gt;-rwxr-xr-x 1 pibe pibe 53640 jun  1 20:00 print-sizeof-pointer-macosx.bin&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons de quel type d'exécutable il s'agit, c'est du Linux ELF 32-bit&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;file print-sizeof-pointer-linux-32bit.bin &lt;br /&gt;print-sizeof-pointer-linux-32bit.bin: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.8, not stripped&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons de quel type d'exécutable il s'agit, c'est du Linux ELF 64-bit&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;file print-sizeof-pointer-linux-64bit.bin &lt;br /&gt;print-sizeof-pointer-linux-64bit.bin: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons la version du kernel:&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;uname -a&lt;br /&gt;Linux cobra 2.6.26-2-amd64 #1 SMP Fri Mar 27 04:02:59 UTC 2009 x86_64 GNU/Linux&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Voyons le "type de machine" du kernel:&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;uname -m&lt;br /&gt;x86_64&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Demandons à dpkg sur quelle architecture nous sommes:&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;dpkg --print-architecture&lt;br /&gt;amd64&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;J'exécute la version 32-bit de mon programme:&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;./print-sizeof-pointer-linux-32bit.bin &lt;br /&gt;print-sizeof-pointer.c&lt;br /&gt;  If the result is 8, this machine is a 64-bit system.&lt;br /&gt;  If the result is 4, this machine is a 32-bit system.&lt;br /&gt;  Result: 4&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;J'exécute la version 64-bit de mon programme:&lt;br /&gt;&lt;TT&gt;[pbn@cobra] /home/pbn&gt;./print-sizeof-pointer-linux-64bit.bin &lt;br /&gt;print-sizeof-pointer.c&lt;br /&gt;  If the result is 8, this machine is a 64-bit system.&lt;br /&gt;  If the result is 4, this machine is a 32-bit system.&lt;br /&gt;  Result: 8&lt;br /&gt;[pbn@cobra] /home/pbn&gt;&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;En bref sous Linux sur une machine 64-bit avec un OS 64-bit, je peux à la fois exécuter les exécutables 32-bit et 64-bit. Et en fait, les exécutables 32-bit ont leurs adresses en 32-bit, les exécutables 64-bit ont leurs adresses en 64-bit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7261357346162559905?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7261357346162559905/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7261357346162559905' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7261357346162559905'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7261357346162559905'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/06/print-size-of-pointer-linux.html' title='print-size-of-pointer: exécution sous Linux'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7133601885840753145</id><published>2009-06-12T20:00:00.011+02:00</published><updated>2009-06-17T15:17:39.675+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='development'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><category scheme='http://www.blogger.com/atom/ns#' term='print-sizeof-pointer'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>64 bits ou 32 bits: mon petit programme print-sizeof-pointer.c</title><content type='html'>Comme je viens de m'offrir un PC de bureau 64-bit, je m'intéresse aux différences entre 64-bit et 32-bit.&lt;br /&gt;&lt;br /&gt;J'ai donc écrit un tout petit programme en C qui permet de connaître la taille des pointeurs:&lt;br /&gt;&lt;br /&gt;&lt;TT&gt;/*&lt;br /&gt;   print-sizeof-pointer.c&lt;br /&gt;   &lt;br /&gt;   This little program prints the size of pointers.&lt;br /&gt;   On a 64-bit system, pointers are 64-bit (8 bytes),&lt;br /&gt;   so this program prints "8".&lt;br /&gt;   On a 32-bit system, pointers are 32-bit (4 bytes),&lt;br /&gt;   so this program prints "4".&lt;br /&gt;&lt;br /&gt;   Pierre Bauduin&lt;br /&gt;   le 12 juin 2009 */&lt;br /&gt;&lt;br /&gt;#include &amp;lt;stdio.h&amp;gt;&lt;br /&gt;int main()&lt;br /&gt;{&lt;br /&gt;   printf ("print-sizeof-pointer.c\n");&lt;br /&gt;   printf ("  If the result is 8, this machine is a 64-bit system.\n");&lt;br /&gt;   printf ("  If the result is 4, this machine is a 32-bit system.\n");&lt;br /&gt;   printf ("  Result: %d\n", sizeof(void *));&lt;br /&gt;}&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Ce programme permet donc de savoir si l'adressage est 64-bit ou 32-bit.&lt;br /&gt;Si la taille des pointeurs est 8 octets, cela veut dire que l'adressage est 64-bit.&lt;br /&gt;Si la taille des pointeurs est 4 octets, cela veut dire que l'adressage est 32-bit.&lt;br /&gt;&lt;br /&gt;Attention, évitons les confusions:&lt;br /&gt;&lt;UL&gt;&lt;LI&gt; Sur une machine 64-bit on peut faire tourner un OS 64-bit ou un OS 32-bit. Si l'OS est 32-bit, l'adressage est 32-bit.&lt;br /&gt;&lt;LI&gt; Même si la machine et l'OS sont tous les deux 64-bit, cela ne veut pas dire que tous les exécutables doivent être 32-bit ou 64-bit. Par exemple avec Mac OS X 10.5 "Léopard", une grande majorité des exécutables est encore 32-bit.&lt;br /&gt;&lt;LI&gt; Et donc, sur une machine 64-bit avec un OS 64-bit, il est généralement possible de faire tourner à la fois des exécutables 64-bit et des exécutables 32-bit. &lt;br /&gt;&lt;LI&gt; C'est en fait c'est à la compilation (voir ci-dessous comment) qu'il est possible de choisir de générer un exécutable 32-bit ou 64-bit.&lt;br /&gt;&lt;/UL&gt;&lt;br /&gt;Comment compiler une version 64-bit et/ou 32-bit ?&lt;br /&gt;&lt;br /&gt;Si vous avez un système 64-bit, il est possible de dire au compilateur de générer un exécutable 32-bit ou 64-bit.&lt;br /&gt;&lt;br /&gt;Cas de Linux, FreeBSD et Solaris:&lt;br /&gt;Pour compiler en 64-bit:&lt;br /&gt;&lt;TT&gt;gcc -o print-sizeof-pointer-solaris-64bit.bin -m64 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;Pour compiler en 32-bit:&lt;br /&gt;&lt;TT&gt;gcc -o print-sizeof-pointer-solaris-32bit.bin -m32 print-sizeof-pointer.c&lt;/TT&gt;&lt;br /&gt;&lt;br /&gt;Cas de Mac OS X: Comme expliqué dans un post précédent, MacOSX permet de générer des "universal binaries" qui contiennent dans le même fichier les exécutables pour une, deux, trois ou même quatre architectures:&lt;br /&gt;&lt;TT&gt;gcc -arch i386 -arch ppc -arch ppc64 -arch x86_64 -o print-sizeof-pointer.bin print-sizeof-pointer.c&lt;/TT&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7133601885840753145?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7133601885840753145/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7133601885840753145' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7133601885840753145'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7133601885840753145'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/06/64-bits-ou-32-bits-mon-petit-programme.html' title='64 bits ou 32 bits: mon petit programme print-sizeof-pointer.c'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8661485344953023286</id><published>2009-06-01T20:42:00.005+02:00</published><updated>2009-06-17T12:40:54.843+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='64-bit'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><title type='text'>Mac OS X 10.5: 64 ou 32 bits ?</title><content type='html'>A note époque les systèmes d'exploitations existent en 32-bit ou en 64-bit. Comme j'en ai déjà parlé précédemment, Mac OS X 10.5 ("Léopard") est une version combinée qui est à la fois 32-bit et 64-bit. De plus, comme Apple est occupé à passer de l'architecture PowerPC à l'architecture Intel, les exécutables Mac OS X sont (ou en tous cas, peuvent être) multi-architectures. Il s'agit des "Universal Binaries" dont je vous ai déjà parlé. &lt;br /&gt;&lt;br /&gt;Sur mon iMac Intel sous Mac OS X 10.5 ("Léopard"), lorsque j'essaye de voir si un exécutable est 32-bit ou 64-bit, PowerPC ou Intel, j'utilise (par exemple) la commande file:&lt;span style="font-family:courier new;"&gt;&lt;br /&gt;[pbn@albert] /Users/pbn&gt;file /bin/ls&lt;br /&gt;/bin/ls: Mach-O universal binary with 2 architectures&lt;br /&gt;/bin/ls (for architecture i386): Mach-O executable i386&lt;br /&gt;/bin/ls (for architecture ppc7400): Mach-O executable ppc&lt;br /&gt;[pbn@albert] /Users/pbn&gt;&lt;/span&gt;&lt;br /&gt;... ceci est un "Universal Binary". Il contient des binaires pour deux architectures: i386, c'est à dire x86 32-bit, et ppc c'est à dire PowerPC 32-bit. C'est un peu décevant: où sont les binaires 64-bit ?&lt;br /&gt;&lt;br /&gt;En fait, Mac OS X 10.5 ("Léopard"), peut faire tourner les exécutables 32-bit et 64-bit, mais la majorité des exécutables sont toujours 32-bit.&lt;br /&gt;&lt;br /&gt;Sous, Mac OS X 10.5 ("Léopard"), même le &lt;B&gt;kernel&lt;/B&gt; est 32-bit: &lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pbn@albert] /Users/pbn&gt;uname -a&lt;br /&gt;Darwin albert 9.7.0 Darwin Kernel Version 9.7.0: Tue Mar 31 22:52:17 PDT 2009; root:xnu-1228.12.14~1/RELEASE_I386 i386&lt;br /&gt;[pbn@albert] /Users/pbn&gt;file /mach_kernel&lt;br /&gt;/mach_kernel: Mach-O universal binary with 2 architectures&lt;br /&gt;/mach_kernel (for architecture i386):   Mach-O executable i386&lt;br /&gt;/mach_kernel (for architecture ppc):    Mach-O executable ppc&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cependant &lt;B&gt;Cocoa&lt;/B&gt;, et donc les &lt;B&gt;librairies&lt;/B&gt; (ou en bon français les &lt;B&gt;bibliothèques&lt;/B&gt;) sont en 32-bit et 64-bit. Un exemple:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pbn@albert] /Users/pbn&gt;file /usr/lib/libSystem.dylib&lt;br /&gt;/usr/lib/libSystem.dylib: Mach-O universal binary with 4 architectures&lt;br /&gt;/usr/lib/libSystem.dylib (for architecture ppc7400):    Mach-O dynamically linked shared library ppc&lt;br /&gt;/usr/lib/libSystem.dylib (for architecture ppc64):    Mach-O 64-bit dynamically linked shared library ppc64&lt;br /&gt;/usr/lib/libSystem.dylib (for architecture i386):    Mach-O dynamically linked shared library i386&lt;br /&gt;/usr/lib/libSystem.dylib (for architecture x86_64):    Mach-O 64-bit dynamically linked shared library x86_64&lt;br /&gt;[pbn@albert] /Users/pbn&gt;&lt;/span&gt;&lt;br /&gt;... voilà qui est plus intéressant. On constate ici que cette librairie est un "Universal Binary" qui contient quatre binaires différents:&lt;br /&gt;&lt;TABLE BORDER CELLSPACING=0&gt;&lt;br /&gt;&lt;TR&gt;&lt;TD ALIGN=CENTER&gt;&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;32-bit&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;64-bit&lt;br /&gt;&lt;TR&gt;&lt;TD ALIGN=CENTER&gt;PowerPC&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;ppc7400&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;ppc64&lt;br /&gt;&lt;TR&gt;&lt;TD ALIGN=CENTER&gt;Intel&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;i386&lt;br /&gt;&lt;TD ALIGN=CENTER&gt;x86_64&lt;br /&gt;&lt;/TABLE&gt;&lt;br /&gt;&lt;br /&gt;En fait la librairie &lt;span style="font-family:courier new;"&gt;/usr/lib/libSystem.dylib&lt;/span&gt; est particulièrement importante sous Mac OS X puisqu'elle contient entre autres toute la librairie glibc.&lt;br /&gt;&lt;br /&gt;Il est logique que les librairies existent en 32-bit et 64-bit. En effet, pour pouvoir exécuter des exécutables 32-bit et 64-bit &lt;I&gt;(compilés dynamiquement, en tous cas)&lt;/I&gt;, il faut avoir quelque part les librairies à la fois en 32-bit et 64-bit.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8661485344953023286?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8661485344953023286/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8661485344953023286' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8661485344953023286'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8661485344953023286'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/06/mac-os-x-105-64-ou-32-bits.html' title='Mac OS X 10.5: 64 ou 32 bits ?'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1553354363645086536</id><published>2009-04-12T20:00:00.009+02:00</published><updated>2010-03-20T11:33:56.606+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><title type='text'>Clef USB Debian Live</title><content type='html'>Faites comme moi&lt;br /&gt;&lt;ul&gt;&lt;li&gt;achetez des clefs USB de 2 GB&lt;/li&gt;&lt;li&gt;installez Debian Live dessus&lt;/li&gt;&lt;li&gt;donnez les autour de vous&lt;/li&gt;&lt;/ul&gt;&lt;div style="text-align: left;"&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/S6SiR_HcjFI/AAAAAAAABmY/4-FanLb1p_I/s1600-h/clef-usb-kingston-pour-debian-live-avant.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/S6SiR_HcjFI/AAAAAAAABmY/4-FanLb1p_I/s320/clef-usb-kingston-pour-debian-live-avant.jpg" alt="" id="BLOGGER_PHOTO_ID_5450659878909283410" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Il devient parfois difficile de trouver une clef USB neuve de 2 GB. Après quelques recherches sur Internet j'ai trouvé une offre assez intéressante: la clef &lt;a href="http://www.pixmania.be/be/fr/626762/art/kingston/cle-usb-data-traveler-100.html"&gt;Kingston DataTraveler 100 2GB&lt;/a&gt; sur pixmania.com. Elle ne coûte pas cher, et elle a un bon rapport qualité/prix. Elle n'est pas la plus rapide (seulement 10 MB/sec en lecture), si vous cherchez plus rapide, utilisez plutôt la Corsair Flash Voyager.&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/S6SimSZbXWI/AAAAAAAABmg/YjQzNSszeQ4/s1600-h/clef-usb-kingston-pour-debian-live-arriere.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 240px;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/S6SimSZbXWI/AAAAAAAABmg/YjQzNSszeQ4/s320/clef-usb-kingston-pour-debian-live-arriere.jpg" alt="" id="BLOGGER_PHOTO_ID_5450660227682360674" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Notez que je ne touche pas d'argent ni de Kingston ni de Pixmania :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1553354363645086536?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1553354363645086536/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1553354363645086536' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1553354363645086536'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1553354363645086536'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/04/clef-usb-debian-live.html' title='Clef USB Debian Live'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4Pkux9IuP_c/S6SiR_HcjFI/AAAAAAAABmY/4-FanLb1p_I/s72-c/clef-usb-kingston-pour-debian-live-avant.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2741794999971539814</id><published>2009-04-07T20:00:00.006+02:00</published><updated>2009-04-14T00:00:05.401+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><title type='text'>Nouvel autorun.inf pour clef USB</title><content type='html'>Suite des aventures avec Debian Live:&lt;br /&gt;&lt;br /&gt;Sur la partition DOCUMENTS j'ai créé un fichier &lt;tt style="color: blue;"&gt;autorun.inf&lt;/tt&gt; qui contient tout simplement:&lt;br /&gt;&lt;pre style="color: blue;"&gt;&lt;br /&gt;[autorun]&lt;br /&gt;icon=linux.ico&lt;br /&gt;shellexecute=debian_live.html&lt;br /&gt;&lt;/pre&gt;Ceci provoque l'ouverture du fichier &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;debian_live.html&lt;/span&gt; (une page web avec des explications) dans le programme qui est associé aux fichiers de type .html sur la machine Windows (le navigateur web par défaut en l'occurence).&lt;br /&gt;&lt;br /&gt;Quand je branche la clef USB dans une machine Windows, je vois ceci dans explorer.exe:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/SdZ9a-NLB9I/AAAAAAAABZg/bsFEFqPftuk/s1600-h/debian-live-in-windows-02.png"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 400px; height: 299px;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/SdZ9a-NLB9I/AAAAAAAABZg/bsFEFqPftuk/s400/debian-live-in-windows-02.png" alt="" id="BLOGGER_PHOTO_ID_5320577912113137618" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2741794999971539814?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2741794999971539814/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2741794999971539814' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2741794999971539814'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2741794999971539814'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/04/nouvel-autoruninf-pour-clef-usb.html' title='Nouvel autorun.inf pour clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_4Pkux9IuP_c/SdZ9a-NLB9I/AAAAAAAABZg/bsFEFqPftuk/s72-c/debian-live-in-windows-02.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2017124201071559854</id><published>2009-04-04T10:00:00.002+02:00</published><updated>2009-04-04T11:01:51.244+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='partitions'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT32'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian Live sur une clef USB: la solution définitive pour les partitions</title><content type='html'>Dans un post précédent (enfin il y a plus d'un an) je vous expliquais un "dilemme":&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Lorsqu'on introduit une clef USB qui contient plusieurs partitions, Windows monte seulement la première partition, et aucune autre !&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ceci est embêtant car sur ma clef USB Debian Live j'ai en fait deux partitions&lt;br /&gt;&lt;ul&gt;&lt;li&gt;une partition DEBIAN_LIVE qui contient le système Debian Live bootable&lt;/li&gt;&lt;li&gt;une partition DOCUMENTS formatée en FAT32 qui contient divers fichiers utiles&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;La partition DOCUMENTS occupe en fait l'espace libre après la partition DEBIAN_LIVE.&lt;br /&gt;&lt;br /&gt;La solution que j'avais trouvée il y a un an fonctionnait, mais n'était pas très élégante. Je devais utiliser dd ou parted pour déplacer la partition DEBIAN_LIVE à la fin de la clef USB. Ensuite je recréais la partition DOCUMENTS comme première partition de la clef USB.&lt;br /&gt;&lt;br /&gt;Comme me l'a suggéré Stuart (merci beaucoup !) dans un commentaire sur mon blog, il y a une solution beaucoup plus élégante. On se base sur le fait que la première partition de la table des partitions n'est pas obligatoirement la première partition sur la clef USB. La partition que Windows va monter est celle qui est la première dans la table des partitions, mais elle peut être n'importe où sur la clef USB.&lt;br /&gt;&lt;br /&gt;Voici en pratique comment faire:&lt;pre&gt;&lt;br /&gt;** Je m'occupe de ma clef USB: /dev/sdc&lt;br /&gt;[root@cobra] /home/pbn/debian-live&gt;fdisk /dev/sdc&lt;br /&gt;** Je regarde les partitions&lt;br /&gt;Command (m for help): p&lt;br /&gt;Disk /dev/sdc: 2004 MB, 2004876800 bytes&lt;br /&gt;255 heads, 63 sectors/track, 243 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;Disk identifier: 0x00075233&lt;br /&gt;Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdc1   *           1         134     1076323+  83  Linux&lt;br /&gt;** Je vois qu'il y a une partition, c'est DEBIAN_LIVE, qui commence au cylindre 1 et s'arrête au cylindre 134&lt;br /&gt;** Je jette la partition 1&lt;br /&gt;Command (m for help): d&lt;br /&gt;Selected partition 1&lt;br /&gt;** Je crée une nouvelle partition 2&lt;br /&gt;** Cette partition va du cylindre 1 à 134 inclus&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e   extended&lt;br /&gt;p   primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 2&lt;br /&gt;First cylinder (1-243, default 1):&lt;br /&gt;Using default value 1&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (1-134, default 134):&lt;br /&gt;Using default value 134&lt;br /&gt;** Je marque la partition 2 comme bootable&lt;br /&gt;Command (m for help): a&lt;br /&gt;Partition number (1-4): 2&lt;br /&gt;** Je crée une nouvelle partition 1&lt;br /&gt;** Cette partition va du cylindre 135 à la fin&lt;br /&gt;Command (m for help): n&lt;br /&gt;Command action&lt;br /&gt;e   extended&lt;br /&gt;p   primary partition (1-4)&lt;br /&gt;p&lt;br /&gt;Partition number (1-4): 1&lt;br /&gt;First cylinder (1-243, default 1): 135&lt;br /&gt;Last cylinder or +size or +sizeM or +sizeK (135-243, default 243):&lt;br /&gt;Using default value 243&lt;br /&gt;** Cette partition est de type 0x0b (FAT32)&lt;br /&gt;Command (m for help): t&lt;br /&gt;Selected partition 1&lt;br /&gt;Hex code (type L to list codes): 0b&lt;br /&gt;Changed system type of partition 1 to b (W95 FAT32)&lt;br /&gt;** Je regarde le résultat&lt;br /&gt;Command (m for help): p&lt;br /&gt;Disk /dev/sdc: 2004 MB, 2004876800 bytes&lt;br /&gt;255 heads, 63 sectors/track, 243 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;Disk identifier: 0x00075233&lt;br /&gt;Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdc1             135         243      875542+   b  W95 FAT32&lt;br /&gt;/dev/sdc2   *           1         134     1076323+  83  Linux&lt;br /&gt;Partition table entries are not in disk order&lt;br /&gt;* J'écris la table des partitions&lt;br /&gt;Command (m for help): w&lt;br /&gt;The partition table has been altered!&lt;br /&gt;Calling ioctl() to re-read partition table.&lt;br /&gt;* Ca y est on a fini !&lt;/pre&gt;&lt;br /&gt;C'est beaucoup plus élégant, et ça va beaucoup plus vite !&lt;br /&gt;Merci encore à Stuart...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2017124201071559854?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2017124201071559854/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2017124201071559854' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2017124201071559854'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2017124201071559854'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/04/debian-live-sur-une-clef-usb-la.html' title='Debian Live sur une clef USB: la solution définitive pour les partitions'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4272936375158202415</id><published>2009-03-21T20:00:00.009+01:00</published><updated>2009-04-03T15:01:45.985+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian Live le retour</title><content type='html'>Avec la sortie de Debian GNU/Linux 5.0 "Lenny" ce 14 février je me suis attelé à me replonger à nouveau dans Debian Live.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-640x480.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://pierre.baudu.in/images/debian-live-640x480.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Debian Live est, comme son nom le laisse entendre, un outil très puissant qui permet de créer une version Live (Live-CD ou Live-USB ou Live-Net) entièrement personnalisée. Je l'utilise pour générer des clefs USB bootables.&lt;br /&gt;&lt;br /&gt;Lorsque j'arrive devant un ordinateur lambda, je n'ai qu'à brancher la clef USB, forcer la machine à booter sur le port USB, et je me retrouve en quelques secondes dans ma version personnalisée de Debian:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;choix des paquets installés&lt;/li&gt;&lt;li&gt;ajout de mes propres programmes personnalisés&lt;/li&gt;&lt;li&gt;configuration du fond d'écran, de l'écran de veille&lt;/li&gt;&lt;li&gt;configuration des locales, des langues disponibles&lt;/li&gt;&lt;/ul&gt;En plus de la partition Debian Live (filesystem aufs monté en lecture seule), j'ai crée une deuxième partition sur la clef USB qui est montée en lecture/écriture et qui est persistante, c'est à dire qu'après un reboot les données restent sur la partition.&lt;br /&gt;&lt;br /&gt;Bien entendu Debian Live ne touche pas au disque dur de la machine, donc vous pouvez l'utiliser sur une machine qui n'est pas à vous...&lt;br /&gt;&lt;br /&gt;Debian Live génère des images pour CD/DVD (LiveCD), pour clef USB (LiveUSB), mais aussi des systèmes Debian Live qu'il est possible de démarrer par le réseau avec une machine qui supporte PXE. Un serveur DHCP/BOOTP et TFTP est également nécessaire pour démarrer par le réseau.&lt;br /&gt;&lt;br /&gt;Voici l'incantation magique:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;lh_config --mirror-binary http://debian-mirror:7777/debian/ --mirror-binary-security http://debian-mirror:7777/debian-security/ --mirror-bootstrap http://debian-mirror:7777/debian/ --mirror-chroot http://debian-mirror:7777/debian/ --mirror-chroot-security http://debian-mirror:7777/debian-security/ -b usb-hdd -d lenny --bootappend-live "quickreboot locale=fr_BE.UTF-8 keyb=be2-latin1" --hostname debian-live --packages "akregator alsa-base alsaplayer-text alsa-tools alsa-utils amarok atlantik audacity aumix bzip2 console-setup cupsys cupsys-bsd cupsys-client debian-goodies eject elinks enscript ethtool evolution evolution-exchange finger fortunes fortunes-fr frozen-bubble ghc6 gimp gkrellm gnuchess gwenview htop iceweasel iceweasel-l10n-fr imagemagick k3b k3b-i18n kalarm kasteroids kate kaudiocreator kcalc kcheckgmail kde-i18n-fr kdebase kdeprint keytouch kgoldrunner khangman khexedit kicker-applets kmahjongg kmix kompose kpat kpdf kpersonalizer kpoker kpowersave krdc kreversi kscreensaver kscreensaver-xsavers ksirtet ksnapshot kweather kwifimanager kwin4 laptop-detect less live-helper lftp lmms locate lsdvd lshw lsof lynx mc memtest86+ mpg321 mtools munin-node mutt ncftp network-manager-kde ntpdate octave3.0 openoffice.org openoffice.org-l10n-fr openssh-server partimage parted pinball psmisc qtparted resolvconf screen slay smb4k smbclient smlnj strace sysstat tcpdump tcsh telnet tofrodos traceroute unzip vim wamerican wdutch wfrench wget xorg xbill xboard xdaliclock xgalaga xine-plugin xine-ui x-ttcidfont-conf xscreensaver xserver-xorg xsysinfo xterm zsh" &amp;amp;&amp;amp; lh_build&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note: on suppose que l'on dispose d'un miroir local appelé &lt;span style="color: rgb(51, 51, 255);"&gt;debian-mirror&lt;/span&gt; sur le port &lt;span style="color: rgb(51, 51, 255);"&gt;7777&lt;/span&gt;. Personnellement j'utilise &lt;a href="http://packages.debian.org/lenny/apt-cacher" target="_BLANK"&gt;apt-cacher&lt;/a&gt; pour mon miroir local.&lt;br /&gt;&lt;br /&gt;Ensuite sans surprise il suffit d'écrire le fichier binary.img directement sur la clef USB:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family: courier new;"&gt;dd if=/home/pbn/debian-live/binary.img of=/dev/sdX&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;... où vous remplacez &lt;span style="color: rgb(51, 51, 255);font-size:85%;" &gt;&lt;span style="font-family: courier new;"&gt;/dev/sdX&lt;/span&gt;&lt;/span&gt; par le périphérique correspondant à la clef USB. &lt;span style="color: rgb(255, 0, 0);"&gt;Attention, ne vous trompez pas de périphérique, sinon vous risquez d'effacer le contenu de votre disque dur !&lt;/span&gt; Je vous aurai prévenu...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4272936375158202415?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4272936375158202415/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4272936375158202415' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4272936375158202415'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4272936375158202415'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2009/03/debian-live-le-retour.html' title='Debian Live le retour'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6422155203367114267</id><published>2008-09-21T20:42:00.000+02:00</published><updated>2008-09-24T02:51:08.900+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Une commande Debian GNU/Linux peu connue: saidar</title><content type='html'>Lorsque vous désirez surveiller l'utilisation des ressources d'une machine dans un xterm, vous connaissez certainement top et htop. &lt;br /&gt;&lt;br /&gt;Mais il existe une commande peu connue mais qui peut être utile:&lt;span style="color: rgb(51, 51, 255);"&gt;saidar&lt;/span&gt;.&lt;br /&gt;Un peu d'information:&lt;br /&gt;&lt;pre&gt;[pbn@cobra] /home/pbn&gt;aptitude show saidar&lt;br /&gt;Package: saidar&lt;br /&gt;State: installed&lt;br /&gt;Automatically installed: no&lt;br /&gt;Version: 0.13-1&lt;br /&gt;Priority: optional&lt;br /&gt;Section: utils&lt;br /&gt;Maintainer: Bartosz Fenski &lt;fenio@debian.org&gt;&lt;br /&gt;Uncompressed Size: 102k&lt;br /&gt;Depends: libc6 (&gt;= 2.3.5-1), libncurses5 (&gt;= 5.4-5), libstatgrab6&lt;br /&gt;Description: curses-based program which displays live system statistics&lt;br /&gt; saidar is a curses-based application to display system statistics. Statistics&lt;br /&gt; include CPU, processes, load, memory, swap, network I/O and disks I/O along&lt;br /&gt; with their free space. &lt;br /&gt;saidar utilizes libstatgrab library. &lt;br /&gt;Homepage: http://www.i-scream.org/libstatgrab/&lt;br /&gt;Tags: uitoolkit::ncurses&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Pour l'installer:&lt;br /&gt;(en tant que root)&lt;pre&gt;[root@cobra] /home/pbn&gt; aptitude-install saidar&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Pour l'utiliser:&lt;br /&gt;(pas besoin d'être root)&lt;pre&gt;[pbn@cobra] /home/pbn&gt;saidar&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6422155203367114267?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6422155203367114267/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6422155203367114267' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6422155203367114267'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6422155203367114267'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/09/une-commande-debian-gnulinux-peu-connue.html' title='Une commande Debian GNU/Linux peu connue: saidar'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1872224319142489951</id><published>2008-08-08T20:08:00.000+02:00</published><updated>2008-08-08T20:08:13.564+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='munin'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='geek'/><title type='text'>version preliminaire 0.0.7 de munin node pour Mac OS X</title><content type='html'>En ce 08/08/2008, voici une &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.7.tar.gz"&gt;nouvelle version de ma version préliminaire de munin-node pour Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Il y a maintenant six plugins:&lt;br /&gt;cpu, df, load, processes, uptime, users&lt;br /&gt;&lt;br /&gt;Bien entendu vous êtes libres d'écrire des plugins supplémentaires :)&lt;br /&gt;&lt;br /&gt;Pour l'utiliser, téléchargez &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.7.tar.gz"&gt;ce fichier&lt;/a&gt; et allez dans &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; et décompressez le fichier (créez &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; s'il n'existe pas déjà)&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo mkdir /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ cd /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo tar --preserve -zxvf munin-1.2.5-pbn-macosx-experimental-0.0.7.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un répertoire &lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental&lt;/span&gt; a été créé&lt;br /&gt;&lt;br /&gt;Lisez ensuite la suite des instructions dans le fichier &lt;span style="font-family:courier new;"&gt;readme.txt&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1872224319142489951?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1872224319142489951/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1872224319142489951' title='5 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1872224319142489951'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1872224319142489951'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/08/version-preliminaire-007-de-munin-node.html' title='version preliminaire 0.0.7 de munin node pour Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-238005288363236371</id><published>2008-07-18T20:10:00.004+02:00</published><updated>2008-07-18T21:31:16.886+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iPhone'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><title type='text'>photo de mon site sur un des premiers iPhone 3G de Belgique</title><content type='html'>Un petit événement: cet après-midi, j'ai pu naviguer sur mon site à l'aide d'un des premiers iPhone 3G de Belgique. Voyez la photo:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://picasaweb.google.com/pierre.bauduin/Divers/photo#5224355624312161522"&gt;&lt;img src="http://lh3.ggpht.com/pierre.bauduin/SICjwq9wxPI/AAAAAAAAA3o/Htw63w2YYFc/s400/mon-site-sur-un-des-premiers-iphone3g-de-belgique.jpg" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Voici les entrées du log d'Apache:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;194.78.xx.xx - - [18/Jul/2008:11:17:49 +0000] "GET / HTTP/1.1" 200 5995 "-" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0 like Mac OS X; fr-fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5A345 Safari/525.20"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;194.78.xx.xx - - [18/Jul/2008:11:17:49 +0000] "GET /images/powered_by_debian.png HTTP/1.1" 200 2761 "http://pierre.baudu.in/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0 like Mac OS X; fr-fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5A345 Safari/525.20"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;194.78.xx.xx - - [18/Jul/2008:11:17:49 +0000] "GET /images/64711.png HTTP/1.1" 200 3626 "http://pierre.baudu.in/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0 like Mac OS X; fr-fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5A345 Safari/525.20"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;194.78.xx.xx - - [18/Jul/2008:11:17:49 +0000] "GET /images/pbn_egypte.png HTTP/1.1" 200 265094 "http://pierre.baudu.in/" "Mozilla/5.0 (iPhone; U; CPU iPhone OS 2_0 like Mac OS X; fr-fr) AppleWebKit/525.18.1 (KHTML, like Gecko) Version/3.1.1 Mobile/5A345 Safari/525.20"&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-238005288363236371?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/238005288363236371/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=238005288363236371' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/238005288363236371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/238005288363236371'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/07/photo-de-mon-site-sur-un-des-premiers.html' title='photo de mon site sur un des premiers iPhone 3G de Belgique'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://lh3.ggpht.com/pierre.bauduin/SICjwq9wxPI/AAAAAAAAA3o/Htw63w2YYFc/s72-c/mon-site-sur-un-des-premiers-iphone3g-de-belgique.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4242622677303823508</id><published>2008-07-15T20:40:00.001+02:00</published><updated>2008-07-17T16:40:02.757+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>the OpenBSD crowd is a bunch of masturbating monkeys</title><content type='html'>Le créateur du kernel Linux, Linus Torvalds lui-même, a fait preuve d'un certain franc-parler sur la liste de distribution linux.kernel:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;i&gt;"I think the OpenBSD crowd is a bunch of masturbating monkeys"&lt;/i&gt;&lt;br /&gt;Linus Torvalds&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Voyez le &lt;a href="http://article.gmane.org/gmane.linux.kernel/706950" target="_BLANK"&gt;texte original du post&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4242622677303823508?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4242622677303823508/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4242622677303823508' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4242622677303823508'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4242622677303823508'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/07/openbsd-crowd-is-bunch-of-masturbating.html' title='the OpenBSD crowd is a bunch of masturbating monkeys'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2899534951871233800</id><published>2008-07-12T14:21:00.001+02:00</published><updated>2008-07-16T15:28:12.231+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='munin'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='geek'/><title type='text'>version préliminaire 0.0.5 de munin node pour Mac OS X</title><content type='html'>Voici une &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.5.tar.gz"&gt;nouvelle version de ma version préliminaire de munin-node pour Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Cette version corrige quelques petits bugs par rapport à la précedente. En particulier le fichier &lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/var/run/munin/munin-node.pid&lt;/span&gt; n'est plus créé par &lt;span style="font-family:courier new;"&gt;Net::Server&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Il y a toujours cinq plugins:&lt;br /&gt;cpu, load, processes, uptime, users&lt;br /&gt;&lt;br /&gt;Bien entendu vous êtes libres d'écrire des plugins supplémentaires :)&lt;br /&gt;&lt;br /&gt;Pour l'utiliser, téléchargez &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.5.tar.gz"&gt;ce fichier&lt;/a&gt; et allez dans &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; et décompressez le fichier (créez &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; s'il n'existe pas déjà)&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo mkdir /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ cd /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo tar --preserve -zxvf munin-1.2.5-pbn-macosx-experimental-0.0.5.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un répertoire &lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental&lt;/span&gt; a été créé&lt;br /&gt;&lt;br /&gt;Lisez ensuite la suite des instructions dans le fichier &lt;span style="font-family:courier new;"&gt;readme.txt&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2899534951871233800?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2899534951871233800/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2899534951871233800' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2899534951871233800'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2899534951871233800'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/07/version-preliminaire-005-de-munin-node.html' title='version préliminaire 0.0.5 de munin node pour Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7683919311473492777</id><published>2008-07-09T19:42:00.001+02:00</published><updated>2008-07-09T19:47:42.707+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='munin'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='geek'/><title type='text'>version préliminaire 0.0.4 de munin-node pour Mac OS X</title><content type='html'>Voici une &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.4.tar.gz"&gt;nouvelle version de ma version préliminaire de munin-node pour Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Cette version corrige quelques bugs par rapport à la précedente.&lt;br /&gt;Il y a maintenant cinq plugins:&lt;br /&gt;cpu, load, processes, uptime, users&lt;br /&gt;&lt;br /&gt;Bien entendu vous êtes libres d'écrire des plugins supplémentaires :)&lt;br /&gt;&lt;br /&gt;Pour l'utiliser, téléchargez &lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.4.tar.gz"&gt;ce fichier&lt;/a&gt; et allez dans &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; et décompressez le fichier (créez &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; s'il n'existe pas déjà)&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo mkdir /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ cd /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo tar --preserve -zxvf munin-1.2.5-pbn-macosx-experimental-0.0.4.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Un répertoire &lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental&lt;/span&gt; a été créé&lt;br /&gt;&lt;br /&gt;Lisez ensuite la suite des instructions dans le fichier &lt;span style="font-family:courier new;"&gt;readme.txt&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7683919311473492777?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7683919311473492777/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7683919311473492777' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7683919311473492777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7683919311473492777'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/07/version-preliminaire-004-de-munin-node.html' title='version préliminaire 0.0.4 de munin-node pour Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3836842179009473428</id><published>2008-07-05T14:00:00.006+02:00</published><updated>2009-06-11T15:38:56.699+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='munin'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='geek'/><title type='text'>version préliminaire 0.0.3 de munin-node pour Mac OS X</title><content type='html'>Voici (enfin) une version préliminaire de munin-node pour Mac OS X&lt;br /&gt;&lt;br /&gt;Comment l'installer ?&lt;br /&gt;&lt;br /&gt;D'abord je télécharge le fichier &lt;br /&gt;&lt;a href="http://pierre.baudu.in/files/munin-1.2.5-pbn-macosx-experimental-0.0.3.tar.gz"&gt;munin-1.2.5-pbn-macosx-experimental-0.0.3.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s1600-h/warning_120_105_avec_transparence.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s320/warning_120_105_avec_transparence.gif" alt="" id="BLOGGER_PHOTO_ID_5151243601595296850" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Attention vous allez travailler en ligne de commande avec sudo. Soyez attentif...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/br&gt;&lt;br /&gt;&lt;br /&gt;Je vais dans dans &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; et je décompresse le fichier (je crée &lt;span style="font-family:courier new;"&gt;/usr/local&lt;/span&gt; s'il n'existe pas déjà)&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo mkdir /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ cd /usr/local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo tar --preserve -zxvf munin-1.2.5-pbn-macosx-experimental-0.0.3.tar.gz&lt;/span&gt;&lt;br /&gt;Un répertoire &lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental&lt;/span&gt; a été créé&lt;br /&gt;&lt;br /&gt;Je regarde la liste des groupes existants et de leur gid:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ dscl . list /Groups gid | sort -n -k 2 | less&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je crée le groupe munin. ATTENTION: Je veille à lui donner un gid qui n'est pas encore utilisé:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo dscl . -create /Groups/munin gid 144&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo dscl . -create /Groups/munin passwd 42ab7u&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je copie dans &lt;span style="font-family:courier new;"&gt;/Library/LaunchDaemons&lt;/span&gt; le fichier qui se trouve dans le répertoire&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental/copy_the_file_in_this_directory_to_Library_LaunchDaemons:&lt;br /&gt;&lt;/span&gt; en faisant:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;$ sudo cp -P /usr/local/munin-1.2.5-pbn-experimental/copy_the_file_in_this_directory_to_Library_LaunchDaemons/localhost.munin-node.plist&lt;br /&gt;/Library/LaunchDaemons&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je n'oublie d'aller modifier le fichier &lt;span style="font-family:courier new;"&gt;/usr/local/munin-1.2.5-pbn-experimental/etc/munin/munin-node.conf&lt;/span&gt;&lt;br /&gt;en y indiquant l'adresse IP de mon &lt;b&gt;serveur munin&lt;/b&gt; en mettant &lt;span style="font-family:courier new;"&gt;allow ^10\.20\.10\.1&lt;/span&gt; dans mon cas&lt;br /&gt;&lt;br /&gt;Ensuite je redémarre la machine (ou, pour les utilisateurs avancés, je lance manuellement le démon en faisant &lt;span style="font-family:courier new;"&gt;launchctl start local.munin-node.plist&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;... et voilà, munin-node est installé et tourne !&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3836842179009473428?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3836842179009473428/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3836842179009473428' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3836842179009473428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3836842179009473428'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/07/munin-node-sur-macosx.html' title='version préliminaire 0.0.3 de munin-node pour Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s72-c/warning_120_105_avec_transparence.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4452261514516250146</id><published>2008-06-09T22:04:00.004+02:00</published><updated>2008-11-19T02:24:04.733+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='iPhone'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><title type='text'>Voici enfin l'iPhone 3G !</title><content type='html'>Aujourd'hui à la WWDC 2008 à San Francisco, on s'y attendait mais...&lt;br /&gt;Steve Jobs a présenté...&lt;br /&gt;... le nouvel iPhone !&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/SE_brZyT1NI/AAAAAAAAA2M/HtJf1_NcKY8/s1600-h/Steve-Jobs-WWDC2008-iPhone-G3.jpg"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/SE_brZyT1NI/AAAAAAAAA2M/HtJf1_NcKY8/s400/Steve-Jobs-WWDC2008-iPhone-G3.jpg" alt="" id="BLOGGER_PHOTO_ID_5210624832593712338" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;C'est l'iPhone 3G.&lt;br /&gt;Comme son nom l'indique, il supporte la technologie 3G&lt;br /&gt;Mais ce n'est pas tout:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;il supporte le GPS&lt;/li&gt;&lt;li&gt;il ne coûte que $199 pour la version 8GB&lt;/li&gt;&lt;li&gt;il supporte bien entendu ce que son prédecesseur supportait déja: EDGE/GPRS, le WiFi, Google Mail&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Il sort en Belgique, selon Steve Jobs, le 11 juillet...&lt;br /&gt;(Mais c'est la théorie, en pratique, ce sera plus tard...)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.tuaw.com/2008/06/09/iphone-3g-announced/"&gt;Lien sur "The Unofficial Apple Weblog"&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.apple.com/iphone/"&gt;Lien officiel Apple (apple.com)&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.apple.com/befr/iphone/"&gt;Lien officiel Apple Belgique&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4452261514516250146?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4452261514516250146/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4452261514516250146' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4452261514516250146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4452261514516250146'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/06/voici-enfin-l-iphone-3g.html' title='Voici enfin l&apos;iPhone 3G !'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4Pkux9IuP_c/SE_brZyT1NI/AAAAAAAAA2M/HtJf1_NcKY8/s72-c/Steve-Jobs-WWDC2008-iPhone-G3.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-5181648534703383208</id><published>2008-05-24T20:10:00.004+02:00</published><updated>2008-05-26T19:26:06.815+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='partitions'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><title type='text'>PartitionMagic 8.0 ... depuis 6 ans ?!</title><content type='html'>Il y a un certain nombre d'outils qui permettent de créer, agrandir, modifier, transférer des partitions et des systèmes de fichier.&lt;br /&gt;&lt;br /&gt;Il existe des outils Open Source:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/parted/" target="_BLANK"&gt;GNU Parted&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://gparted.sourceforge.net/" target="_BLANK"&gt;GParted&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://qtparted.sourceforge.net/" target="_BLANK"&gt;QtParted&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;... qui sont en fait tous basés sur la librairie &lt;a href="http://www.blogger.com/www.gnu.org/software/parted/"&gt;GNU parted&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Il existe des outils commerciaux:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; le plus connu: &lt;a href="http://fr.wikipedia.org/wiki/PartitionMagic" target="_BLANK"&gt;PartitionMagic 8.0&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; moins connu: &lt;a href="http://www.blogger.com/%20http://fr.acronis.com/homecomputing/products/diskdirector/" target="_BLANK"&gt;Acronis Disk Director&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;Je démarre par hasard sur une disquette bootable de Partition Magic 8.0, et je suis assez surpris de lire:&lt;br /&gt;&lt;pre&gt;PartitionMagic 8.04&lt;br /&gt;Copyright 1994-2002, Powerquest Corporation&lt;br /&gt;All rights reserved.&lt;/pre&gt;&lt;br /&gt;Eh bien ? Les gens utilisent Partition Magic 8.0 depuis 2002, et nous sommes en 2008. Cela fait six ans avec la même version. C'est assez étaonnant car dans le domaine des systèmes de fichiers, de nouveaux systèmes de fichiers apparaissent: ext3, ext4, ReiserFS, xfs, zfs, le futur WinFS. Il faut aussi dire qu'entretemps Symantec a racheté PowerQuest, développeur de Partition Magic.&lt;br /&gt;&lt;br /&gt;Peut-être que, comme Partition Magic devient un produit Symantec, c'est moins bon :)&lt;br /&gt;&lt;br /&gt;Aura-t-on un jour un PartitionMagic 9.0 ? Ou au moins un 8.5 ? Ou un petit 8.1 ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-5181648534703383208?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/5181648534703383208/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=5181648534703383208' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5181648534703383208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5181648534703383208'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/05/partitionmagic-80-depuis-6-ans.html' title='PartitionMagic 8.0 ... depuis 6 ans ?!'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-9148463165566559311</id><published>2008-04-24T20:40:00.001+02:00</published><updated>2008-06-07T01:46:16.289+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenOffice.org'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><title type='text'>Microsoft va installer un centre d'innovation à Mons</title><content type='html'>Dans &lt;a href="http://pierrebauduin.blogspot.com/2008/03/des-logiciels-libres-pour-les-40-000.html"&gt;ce post précédent&lt;/a&gt; j'apprenais dans &lt;a href="http://www.lesoir.be/actualite/belgique/technologies-les-ecoles-2008-03-28-587435.shtml"&gt;un article du Soir du 28 mars 2008&lt;/a&gt; que pour équiper les 40.000 nouveaux ordinateurs des écoles, la Région Wallonne envisagait de choisir OpenOffice.org plutôt que Microsoft Office.&lt;br /&gt;&lt;br /&gt;Moins d'un mois plus tard, j'apprends dans &lt;a href="http://www.lesoir.be/regions/hainaut/un-centre-microsoft-a-mons-2008-04-24-593998.shtml"&gt;un article du Soir du 24 avril 2008&lt;/a&gt; que Microsoft vai installer un centre d'innovation à Mons.&lt;br /&gt;&lt;br /&gt;Faut il voir un lien entre ces deux événements ?&lt;br /&gt;&lt;a href="javascript:void(0)" tabindex="10" onclick="return false;"&gt;&lt;span&gt;&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-9148463165566559311?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/9148463165566559311/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=9148463165566559311' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/9148463165566559311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/9148463165566559311'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/microsoft-va-installer-un-centre.html' title='Microsoft va installer un centre d&apos;innovation à Mons'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6872632165415463002</id><published>2008-04-14T20:45:00.005+02:00</published><updated>2008-06-07T16:47:18.483+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Créer un groupe sous Mac OS X</title><content type='html'>Après avoir vu &lt;a href="http://pierrebauduin.blogspot.com/2008/04/creer-un-utilisateur-sous-mac-os-x.html"&gt;dans un post précédent&lt;/a&gt; comment créer un utilisateur sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, voyons aujourd'hui comment créer un groupe.&lt;br /&gt;&lt;br /&gt;Ceci ne fonctionne qu'à partir de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt;, car les versions antérieures utilisaient NetInfo et pas dscl.&lt;br /&gt;&lt;br /&gt;On utilise à nouveau la commande dscl:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Groups/mongroupe gid xxxx&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Groups/mongroupe passwd 42ez7a &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;A la place de xxxx indiquez un gid valide.&lt;br /&gt;(où xxxx est le GID, faites bien attention d'en choisir un qui n'existe pas déjà, pour voir la liste des groupes existants et leurs gid dans l'ordre croissant: &lt;span style="font-family:courier new;"&gt;dscl . list /Groups gid | sort -n -k 2&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;Pour ajouter l'utilisateur &lt;span style="font-family:courier new;"&gt;toto&lt;/span&gt; au groupe &lt;span style="font-family:courier new;"&gt;mongroupe&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -merge /Groups/mongroupe users toto&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je l'ai testé sur &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6872632165415463002?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6872632165415463002/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6872632165415463002' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6872632165415463002'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6872632165415463002'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/creer-un-groupe-sous-mac-os-x.html' title='Créer un groupe sous Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-876460920070181422</id><published>2008-04-14T20:30:00.000+02:00</published><updated>2008-05-26T03:20:15.835+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='photo numérique'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Sony'/><title type='text'>Mon appareil photo numérique Sony DSC-W55 sous Debian GNU/Linux</title><content type='html'>J'apprécie assez bien mon nouvel appareil photo numérique &lt;a href="http://www.sony.be/view/ShowProduct.action?product=DSC-W55" TARGET="_BLANK"&gt;&lt;span style="color: blue; font-size:120%"&gt;SONY DSC-W55&lt;/span&gt;&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Sans surprise, il écrit les photos sur mon &lt;a href="http://en.wikipedia.org/wiki/MemoryStick" TARGET="_BLANK"&gt;MemoryStick&lt;/a&gt; de 2 GB, qui est un système de fichier FAT16. Pour afficher les photos sous &lt;a href="http://en.wikipedia.org/wiki/Debian" TARGET="_BLANK"&gt;Debian GNU/Linux&lt;/a&gt;, la première solution est de sortir le &lt;a href="http://en.wikipedia.org/wiki/MemoryStick" TARGET="_BLANK"&gt;MemoryStick&lt;/a&gt; de l'appareil, le mettre dans un lecteur MemoryStick à connecteur USB, et de le brancher dans ma machine &lt;a href="http://en.wikipedia.org/wiki/Debian" TARGET="_BLANK"&gt;Debian GNU/Linux&lt;/a&gt;. Le &lt;a href="http://en.wikipedia.org/wiki/MemoryStick" TARGET="_BLANK"&gt;MemoryStick&lt;/a&gt; apparaît comme un système de fichiers.&lt;br /&gt;&lt;br /&gt;Mais, évidemment, ce serait plus simple de brancher l'appareil directement...&lt;br /&gt;&lt;br /&gt;Lorsque je connecte l'appareil à ma machine &lt;a href="http://en.wikipedia.org/wiki/Debian" TARGET="_BLANK"&gt;Debian GNU/Linux&lt;/a&gt; à l'aide du connecteur approprié, je vois bien des messages de type USB dans mon kernel, mais sans plus.&lt;br /&gt;&lt;br /&gt;Avec la commande &lt;tt style="color: blue;"&gt;lsusb&lt;/tt&gt; je vois:&lt;pre style="color: blue;"&gt;[root@cobra] /root&gt;lsusb&lt;br /&gt;Bus 005 Device 009: ID 054c:0010 Sony Corp. DSC-S30/S70/S75/F505V/F505/FD92 Cybershot/Mavica Digital Camera&lt;/pre&gt;... mais aucun système de fichiers ne se monte automatiquement.&lt;br /&gt;&lt;br /&gt;La solution est de modifier la configuration de l'appareil photo numérique.&lt;br /&gt;&lt;br /&gt;J'allume l'appareil, j'appuie sur &lt;tt style="color: blue;"&gt;MENU&lt;/tt&gt; et je vais dans le menu numéro 2. Là pour l'option &lt;tt style="color: blue;"&gt;Connexion USB&lt;/tt&gt; je choisis &lt;tt style="color: blue;"&gt;Stock de mas&lt;/tt&gt;, ou en anglais, dans l'option &lt;tt style="color: blue;"&gt;USB Connect&lt;/tt&gt; je choisis &lt;tt style="color: blue;"&gt;Mass Storage&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;Je branche à nouveau mon appareil photo sur le port USB de ma machine et pouf, le système de fichiers du &lt;a href="http://en.wikipedia.org/wiki/MemoryStick" TARGET="_BLANK"&gt;MemoryStick&lt;/a&gt; se monte tout seul !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-876460920070181422?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/876460920070181422/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=876460920070181422' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/876460920070181422'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/876460920070181422'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/mon-appareil-photo-numerique-sony-dsc.html' title='Mon appareil photo numérique Sony DSC-W55 sous Debian GNU/Linux'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-5835066413091911993</id><published>2008-04-12T20:40:00.009+02:00</published><updated>2008-06-07T16:24:59.889+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Créer un utilisateur sous Mac OS X</title><content type='html'>Voici comment créer un utilisateur en ligne de commande sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ceci ne fonctionne qu'à partir de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt;, car les versions antérieures utilisaient NetInfo et pas dscl.&lt;br /&gt;&lt;br /&gt;Dans notre exemple l'utilisateur est toto.&lt;br /&gt;On utilise la commande dscl:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto UserShell /bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto RealName "Toto Machin"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto UniqueID xxx&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto PrimaryGroupID 20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/toto NFSHomeDirectory /Users/toto&lt;br /&gt;sudo mkdir /Users/toto&lt;br /&gt;sudo chgrp staff &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/Users/toto&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sudo chown toto &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/Users/toto&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;(où xxx est le UID, faites bien attention d'en choisir un qui n'existe pas déjà, pour cela faites &lt;span style="font-family:courier new;"&gt;sudo dscl . list /users UniqueID&lt;/span&gt; pour voir ceux qui sont déjà utilisés. Dans mon cas l'&lt;span style="font-family:courier new;"&gt;UniqueID&lt;/span&gt; est 503. Le &lt;span style="font-family:courier new;"&gt;PrimaryGroupID 20&lt;/span&gt; correspond à &lt;span style="font-family:courier new;"&gt;staff,&lt;/span&gt; en tous cas sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt; et Léopard)&lt;br /&gt;&lt;br /&gt;Je l'ai testé sur &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-5835066413091911993?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/5835066413091911993/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=5835066413091911993' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5835066413091911993'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5835066413091911993'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/creer-un-utilisateur-sous-mac-os-x.html' title='Créer un utilisateur sous Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3193871129032726328</id><published>2008-04-04T14:00:00.006+02:00</published><updated>2008-04-12T16:42:22.666+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='disque dur'/><category scheme='http://www.blogger.com/atom/ns#' term='hardware'/><category scheme='http://www.blogger.com/atom/ns#' term='Deskstar'/><category scheme='http://www.blogger.com/atom/ns#' term='matériel'/><title type='text'>Disque dur IBM / Hitachi Deskstar: quelle plaie !</title><content type='html'>Lorsque j'ai acheté mon Power Macintosh Quicksilver 2002, j'ai pu constater que son disque dur principal était un disque PATA &lt;a href="http://en.wikipedia.org/wiki/Hitachi_Deskstar" target="_BLANK"&gt;Hitachi Deskstar&lt;/a&gt; de 120 GB.&lt;br /&gt;&lt;br /&gt;Lorsque j'ai allumé la machine, elle a mis une dizaine de minutes pour démarrer ! En effet, le disque dur émettait presque en permanence des bruits bizarres. Lorsqu'il fait ses bruits, évidemment, il ne sait pas lire de données. Dans ce cas il faisait des bruits pendant environ 40 secondes, puis lisait effectivement les données pendant environ 5 secondes. Ceci explique pourquoi il a fallu dix minutes pour démarrer le système !&lt;br /&gt;&lt;br /&gt;Ces disques &lt;a href="http://en.wikipedia.org/wiki/IBM_Deskstar" target="_BLANK"&gt;IBM Deskstar&lt;/a&gt;, devenus &lt;a href="http://en.wikipedia.org/wiki/Hitachi_Deskstar" target="_BLANK"&gt;Hitachi Deskstar&lt;/a&gt; lorsque &lt;a href="http://en.wikipedia.org/wiki/Hitachi" target="_BLANK"&gt;Hitachi&lt;/a&gt; a racheté l'usine d'&lt;a href="http://en.wikipedia.org/wiki/IBM" target="_BLANK"&gt;IBM&lt;/a&gt;, sont bien connus pour &lt;a href="http://www.pcworld.com/article/id,59943/article.html" target="_BLANK"&gt;avoir de sérieux problèmes de fiabilité&lt;/a&gt;, à un point tel qu'&lt;a href="http://www.pcworld.com/article/id,67608/article.html" target="_BLANK"&gt;un procès en "class action" a été intenté contre IBM&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;J'ai immédiatement remplacé ce Deskstar par un bon vieux &lt;a href="http://picasaweb.google.com/pierre.bauduin/Machines/photo#5185725866966213538" target="_BLANK"&gt;Seagate Barracuda ATA IV&lt;/a&gt; qui fonctionne parfaitement.&lt;br /&gt;&lt;br /&gt;Par curiosité, j'ai malgré tout branché le disque dur Hitachi Deskstar pour le reformater avec un test en écriture (&lt;tt&gt;mkfs.ext3 -c -c /dev/hdb1&lt;/tt&gt;). Au premier boot, avant même d'avoir reformaté le disque, le BIOS me dit déjà:&lt;blockquote&gt; &lt;i style="color: blue;"&gt;SMART Failure Predicted on Primary Master. WARNING: Immediately back-up your data and replace your hard disk drive.A failure may be imminent.&lt;/i&gt;&lt;/blockquote&gt;Regardez la vidéo:&lt;br /&gt;&lt;center&gt;&lt;br /&gt;&lt;embed style="width: 400px; height: 326px;" id="VideoPlayback" type="application/x-shockwave-flash" src="http://video.google.com/googleplayer.swf?docId=-6670376576270973799&amp;amp;hl=en" flashvars=""&gt;&lt;/embed&gt;&lt;br /&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;Finalement, en tapant F1 j'arrive à lancer le système. Je démarre sur un &lt;a href="http://en.wikipedia.org/wiki/SystemRescueCD" target="_BLANK"&gt;SystemRescueCD&lt;/a&gt;, et j'effectue la commande:&lt;br /&gt;&lt;tt style="color: blue;"&gt;mkfs.ext3 -c -c /dev/hda1&lt;/tt&gt;&lt;br /&gt;Durée: 12h pour 120 GB (!)&lt;br /&gt;&lt;br /&gt;Résultat des courses: moi je ne veux plus utiliser de disque &lt;a href="http://en.wikipedia.org/wiki/IBM_Deskstar" target="_BLANK"&gt;IBM / Hitachi Deskstar&lt;/a&gt; !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3193871129032726328?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3193871129032726328/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3193871129032726328' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3193871129032726328'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3193871129032726328'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/disque-dur-ibm-hitachi-deskstar-quelle.html' title='Disque dur IBM / Hitachi Deskstar: quelle plaie !'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6093590671396065152</id><published>2008-04-01T00:16:00.006+02:00</published><updated>2008-04-07T14:43:22.768+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Rions'/><title type='text'>Le clic est breveté par Xerox</title><content type='html'>Ajourd'hui 1er avril 2008, voici une information qui va causer d'importants changements dans nos habitudes:&lt;br /&gt;&lt;br /&gt;Xerox, la première société à avoir commercialisé un ordinateur qui utilise une interface graphique, détient un brevet sur le clic. Désormais, et quel que soit le système d'exploitation que vous utilisez, pour chaque clic, vous devez verser une redevance de 2,00 USD soit environ 1,27 EUR.&lt;br /&gt;&lt;br /&gt;Si vous ne voulez pas payer la redevance, la solution est de ne pas cliquer. Configurez votre système pour qu'une touche du clavier corresponde au clic.&lt;br /&gt;&lt;br /&gt;Ah oui j'oubliais: des souris d'un nouveau type vont être vendues d'ici peu: des souris sans bouton...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6093590671396065152?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6093590671396065152/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6093590671396065152' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6093590671396065152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6093590671396065152'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/04/le-clic-est-brevet-par-xerox.html' title='Le clic est breveté par Xerox'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7044619089945544311</id><published>2008-03-28T20:40:00.004+01:00</published><updated>2008-11-16T15:18:48.239+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='OpenOffice.org'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><title type='text'>Des logiciels libres pour les 40 000 nouveaux ordinateurs de la région wallonne ?</title><content type='html'>Je lis dans &lt;a href="http://www.lesoir.be/actualite/belgique/technologies-les-ecoles-2008-03-28-587435.shtml" TARGET="_BLANK"&gt;cet article du Soir de ce 28 mars 2008&lt;/a&gt; que pour le marché des 40.000 nouveaux ordinateurs il est possible que des logiciels libres soient choisis au détriment des produits Microsoft. Bien entendu &lt;a href="http://fr.openoffice.org/" target="_BLANK"&gt;OpenOffice.org&lt;/a&gt; est pour moi un excellent choix pour de nombreuses raisons:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;coût: OpenOffice.org coûte 0 EUR contre environ 600 EUR pour Microsoft Office&lt;/li&gt;&lt;li&gt;respect des standards: OpenOffice.org utilise des formats de fichiers standard tels que ODF. Microsoft Office utilise par contre des formats propriétaires qui sont illisibles&lt;br /&gt;&lt;/li&gt;&lt;li&gt;compatibilité: OpenOffice sait lire et écrire les format de fichiers standard, mais aussi les formats propriétaires Microsoft Office: .xls, .doc, .ppt.&lt;br /&gt;&lt;/li&gt;&lt;li&gt;pas de lien avec un fournisseur unique: Microsoft peut "brader" la version actuelle de Microsoft Office et vous la vendre 100 EUR au lieu de 600 EUR. Mais bien entendu, quand vous voudrez la nouvelle version d'ici trois ans, ce sera le prix plein...&lt;/li&gt;&lt;li&gt;disponible pour tous les systèmes d'exploitation. Microsoft Office n'existe que pour Windows et Mac OS X. Par contre OpenOffice.org existe pour: Debian, Ubuntu, Red Hat, Windows, Mac OS X, FreeBSD, PC-BSD, etc...&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Cependant je peux lire dans l'article: &lt;blockquote style="font-style: italic;"&gt;Le seul bémol c’est que l’on n’a pas aujourd’hui la certitude qu’OpenOffice sera parfaitement stable sur les ordinateurs d’Apple, note un proche du dossier. Or, l’appel d’offres prévoit que les écoles doivent pouvoir choisir librement entre des PC ou des Mac.&lt;/blockquote&gt;... soyons sérieux, il existe des versions d'OpenOffice.org 2.3.x pour Mac OS X... &lt;br /&gt;&lt;br /&gt;Espérons que la région wallonne choisisse OpenOffice.org !&lt;br /&gt;&lt;br /&gt;Oui mais, attendez... ce vendredi 28 mars 2008 une autre information se retrouve dans l'actualité: Microsoft aurait l'intention de s'implanter en région wallonne. Peut-être que si la région wallonne choisit de l'Open Source, l'implantation de Microsoft en en région wallonne ne se fera pas ?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7044619089945544311?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7044619089945544311/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7044619089945544311' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7044619089945544311'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7044619089945544311'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/des-logiciels-libres-pour-les-40-000.html' title='Des logiciels libres pour les 40 000 nouveaux ordinateurs de la région wallonne ?'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7592324196157871725</id><published>2008-03-20T20:20:00.004+01:00</published><updated>2008-04-05T18:29:42.457+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><title type='text'>autorun.inf sur une clef USB</title><content type='html'>&lt;i&gt;Voici la suite de mes aventures avec Debian Live sur ma clef USB...&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;Désormais j'arrive à booter sur la clef USB (à condition, bien entendu, que le BIOS supporte le démarrage à partir de la clef USB)&lt;br /&gt;J'arrive également à ce que la partition DOCUMENTS soit montée automatiquement sous Windows.&lt;br /&gt;&lt;br /&gt;Cependant, j'aimerais qu'une action soit exécutée automatiquement lorsque je branche la clef USB dans une machine Windows. J'ai donc créé sur la partition DOCUMENTS un fichier &lt;tt style="color: blue;"&gt;autorun.inf&lt;/tt&gt; qui contient tout simplement:&lt;br /&gt;&lt;pre style="color: blue;"&gt;[autorun]&lt;br /&gt;icon=linux.ico&lt;br /&gt;open=autorun.bat&lt;/pre&gt;&lt;br /&gt;Quand je branche la clef USB dans une machine Windows, je vois ceci dans explorer.exe:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-partitions-documents-sous-windows.png"&gt;&lt;img style="cursor:pointer; cursor:hand;" src="http://pierre.baudu.in/images/debian-live-partitions-documents-sous-windows.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;... mais, le fichier autorun.inf ne s'exécute pas automatiquement !&lt;br /&gt;&lt;br /&gt;Note: pour être complet, voici le contenu du fichier &lt;tt style="color: blue;"&gt;autorun.bat&lt;/tt&gt;:&lt;br /&gt;&lt;pre style="color: blue;"&gt;@echo Starting "debian_live.txt"...&lt;br /&gt;@start debian_live.txt&lt;br /&gt;@exit&lt;/pre&gt;&lt;br /&gt;Et le fichier &lt;tt style="color: blue;"&gt;debian_live.txt&lt;/tt&gt; est un fichier texte expliquant qu'il faut redémarrer la machine en activant le boot sur clef USB.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7592324196157871725?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7592324196157871725/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7592324196157871725' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7592324196157871725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7592324196157871725'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/autoruninf-sur-une-clef-usb.html' title='autorun.inf sur une clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6487508264556882353</id><published>2008-03-14T20:10:00.003+01:00</published><updated>2008-03-16T18:02:20.537+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Mon script sizeofdeb</title><content type='html'>J'ai écrit un (petit) script qui vous donne l'espace occupé par le package Debian donné en paramètre.&lt;br /&gt;&lt;br /&gt;Voici le script:&lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# sizeofdeb.sh - version 0.0.2&lt;br /&gt;# Pierre Bauduin (pierre@baudu.in)&lt;br /&gt;# le 14 mars 2008&lt;br /&gt;#&lt;br /&gt;# This script finds out how much space in kB is taken by the package given as a parameter&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Let's print some information&lt;br /&gt;printf "$0 - finds out how much space in kB is taken by a Debian package\n"&lt;br /&gt;&lt;br /&gt;# With how many parameters were we called ?&lt;br /&gt;if [ "$#" != 1 ]; then&lt;br /&gt;   printf "Usage: $0 &lt;name-of-debian-package&gt;\n"&lt;br /&gt;   exit 1&lt;br /&gt;else&lt;br /&gt;   # Here is the package we are looking for&lt;br /&gt;   NAME_OF_THE_DEBIAN_PACKAGE=$1&lt;br /&gt;   RESULT_OF_GREP_STATUS=`grep-status -nsInstalled-size,Package -F Status ' installed' $STATUS \&lt;br /&gt;                                | perl -p00l12 -e 's/\n/ /'  \&lt;br /&gt;                                | grep -i $NAME_OF_THE_DEBIAN_PACKAGE`&lt;br /&gt;   # Is the string empty ?&lt;br /&gt;   if [ "$RESULT_OF_GREP_STATUS" = "" ]; then&lt;br /&gt;        # The string is empty&lt;br /&gt;        printf "Could not find any package matching $NAME_OF_THE_DEBIAN_PACKAGE. This means it is not installed or you made a typo.\n"&lt;br /&gt;   else&lt;br /&gt;        # The string is not empty&lt;br /&gt;        printf "$RESULT_OF_GREP_STATUS\n"&lt;br /&gt;   fi&lt;br /&gt;fi&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Exemples d'utilisation:&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[pbn@cobra] /home/pibe&gt;sizeofdeb finger&lt;br /&gt;sizeofdeb - finds out how much space in kB is taken by a Debian package&lt;br /&gt;76 finger&lt;br /&gt;&lt;br /&gt;[pbn@cobra] /home/pibe&gt;sizeofdeb iceweasel&lt;br /&gt;sizeofdeb - finds out how much space in kB is taken by a Debian package&lt;br /&gt;836 iceweasel-l10n-fr&lt;br /&gt;24408 iceweasel&lt;br /&gt;780 iceweasel-l10n-nl&lt;br /&gt;&lt;br /&gt;[pbn@cobra] /home/pibe&gt;sizeofdeb toto&lt;br /&gt;sizeofdeb - finds out how much space in kB is taken by a Debian package&lt;br /&gt;Could not find any package matching toto. This means it is not installed or you made a typo.&lt;br /&gt;&lt;br /&gt;[pbn@cobra] /home/pibe&gt;sizeofdeb evolution&lt;br /&gt;sizeofdeb - finds out how much space in kB is taken by a Debian package&lt;br /&gt;7660 evolution-data-server-common&lt;br /&gt;1088 evolution-data-server&lt;br /&gt;462 evolution-webcal&lt;br /&gt;2672 evolution-exchange&lt;br /&gt;384 evolution-plugins&lt;br /&gt;7748 evolution&lt;br /&gt;73582 evolution-common&lt;/pre&gt;&lt;br /&gt;Cliquez &lt;a href="http://pierre.baudu.in/files/sizeofdeb.sh"&gt;ici&lt;/a&gt; pour télécharger ce script (faites clic-droit-&gt; Enregistrer sous)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6487508264556882353?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6487508264556882353/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6487508264556882353' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6487508264556882353'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6487508264556882353'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/mon-script-sizeofdeb.html' title='Mon script sizeofdeb'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4171189618962299722</id><published>2008-03-12T22:10:00.019+01:00</published><updated>2009-04-03T20:27:13.824+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='partitions'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Plus loin dans Debian Live sur une clef USB</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-640x480.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://pierre.baudu.in/images/debian-live-640x480.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Mon affaire de système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; est presque parfaite. Hélas, il me reste le problème suivant: quand je connecte ma clef USB à une machine Windows, &lt;a href="http://pierrebauduin.blogspot.com/2008/02/plusieurs-partitions-sur-une-clef-usb.html"&gt;comme expliqué précémment&lt;/a&gt;: &lt;b&gt; Au lieu de monter la deuxième partition et pas la première, Windows monte la première partition et pas la deuxième &lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;En fait, "by design", lorsqu'on introduit une clef USB, &lt;b&gt;Windows monte seulement la première partition, et aucune autre !&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;La solution est de mettre la partition DEBIAN_LIVE en second et la partition DOCUMENTS en premier.&lt;br /&gt;&lt;br /&gt;Comment faire ?&lt;br /&gt;&lt;br /&gt;En fait, &lt;tt&gt;lh_build&lt;/tt&gt; génère à la fois le MBR (512 premiers octets de &lt;tt&gt;/dev/hda&lt;/tt&gt;) et la partition Debian Live (&lt;tt&gt;/dev/hda1&lt;/tt&gt;).&lt;br /&gt;&lt;br /&gt;La première solution est de déplacer la partition &lt;tt&gt;/dev/hda1&lt;/tt&gt; à la fin de la clef USB où elle deviendra &lt;tt&gt;/dev/hda2&lt;/tt&gt; à l'aide d'un outil opensource approprié tel que &lt;a href="http://www.gnu.org/software/parted/" target="_BLANK"&gt;GNU Parted&lt;/a&gt; ou &lt;a href="http://gparted.sourceforge.net/" target="_BLANK"&gt;GParted&lt;/a&gt; ou &lt;a href="http://qtparted.sourceforge.net/" target="_BLANK"&gt;QtParted&lt;/a&gt;. Ou à la limite un outil commercial approprié: &lt;a href="http://fr.wikipedia.org/wiki/PartitionMagic"&gt;PartitionMagic&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Mais, ce n'est finalement pas si facile que cela:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.gnu.org/software/parted/" target="_BLANK"&gt;GNU Parted&lt;/a&gt; ou &lt;a href="http://gparted.sourceforge.net/" target="_BLANK"&gt;GParted&lt;/a&gt; ou &lt;a href="http://qtparted.sourceforge.net/" target="_BLANK"&gt;QtParted&lt;/a&gt; me disent tous: &lt;tt&gt;Error: The file system is bigger than its volume!&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;PartitionMagic ne voit même pas les partitions sur la clef USB (!?)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;modifier directement la table de partition avec un éditeur hexadécimal me semble périlleux&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Finalement j'ai trouvé la solution:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; avec &lt;tt&gt;fdisk&lt;/tt&gt;, voir combien de cylindres occupe &lt;tt&gt;/dev/sdb1&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; créer un &lt;tt&gt;/dev/sdb2&lt;/tt&gt; type &lt;tt&gt;0x83&lt;/tt&gt; comportant le même nombre de cylindres tout à la fin de la clef USB&lt;br /&gt;&lt;/li&gt;&lt;li&gt; sauvegarder la table de partitions et quitter &lt;tt&gt;fdisk&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; transférer "en raw" toutes les données de la première vers la deuxième partition: &lt;tt&gt;time dd if=/dev/sdb1 of=/dev/sdb2&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; jeter la première partition&lt;br /&gt;&lt;/li&gt;&lt;li&gt; avec &lt;tt&gt;cfdisk&lt;/tt&gt; recréer comme première partition &lt;tt&gt;/dev/sdb1&lt;/tt&gt;  de type &lt;tt&gt;0x0b&lt;/tt&gt; (FAT32) qui prend tout l'espace jusqu'au début de &lt;tt&gt;/dev/sdb2&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; toujours dans &lt;tt&gt;cfdisk&lt;/tt&gt; mettre le flag "bootable" sur &lt;tt&gt;/dev/sdb2&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; sauver et quitter &lt;tt&gt;cfdisk&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; créer la partition FAT32 DOCUMENTS sur &lt;tt&gt;/dev/sdb1&lt;/tt&gt; en faisant: &lt;tt&gt;mkfs.vfat -F 32 -n DOCUMENTS /dev/sdb1&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Résultat des courses:&lt;pre&gt;Name      Flags    Part Type     FS Type       [Label]        Size (MB)&lt;br /&gt;----------------------------------------------------------------------&lt;br /&gt;sdb1               Primary       W95 FAT32     [DOCUMENTS]      1044,62&lt;br /&gt;sdb2      Boot     Primary       Linux         [DEBIAN_LIVE]     962,36&lt;/pre&gt;&lt;br /&gt;Voici ce que Windows voit:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-windows-diskmgmt-20080314.png"&gt;&lt;img style="cursor: pointer; width: 400px;" src="http://pierre.baudu.in/images/debian-live-windows-diskmgmt-20080314.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Et voilà, désormais, j'arrive à faire les deux:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Quand je boote sur ma clef USB, j'arrive dans Debian Live&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Quand je connecte ma clef USB à une machine Windows, j'arrive à monter la partition DOCUMENTS&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4171189618962299722?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4171189618962299722/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4171189618962299722' title='3 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4171189618962299722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4171189618962299722'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/plus-loin-dans-debian-live-sur-une-clef.html' title='Plus loin dans Debian Live sur une clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8463861916652532502</id><published>2008-03-07T22:00:00.005+01:00</published><updated>2008-11-16T15:19:58.063+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian Live: script pour monter automatiquement la partition Documents</title><content type='html'>Comme je vous l'ai expliqué dans plusieurs posts précédents, je m'intéresse à produire un système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; sur clef USB de 2 GB.&lt;br /&gt;&lt;br /&gt;Mon système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; prend 800MB, il me reste donc 1200 MB pour mes données. Evidemment, le plus simple est de créer une partition de données appelée "DOCUMENTS" en effectuant:&lt;br /&gt;&lt;tt&gt;time mkfs.vfat -F 32 -n DOCUMENTS /dev/sdb2&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;Cette partition sera la deuxième sur la clef. J'aurai donc une table des partitions comme ceci:&lt;br /&gt;&lt;pre&gt;Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdb1   *           1          93      746991   83  Linux&lt;br /&gt;/dev/sdb2              94         244     1212907+   b  W95 FAT32&lt;/pre&gt;&lt;br /&gt;Avec ceci, quand je connecte ma clef USB à une machine Debian GNU/Linux, Ubuntu ou Mac OS X, ma partition DOCUMENTS est automatiquement montée et je peux y accèder en lecture/écriture. Hélas, trois fois hélas, quand je connecte ma clef USB à une machine Windows, &lt;a href="http://pierrebauduin.blogspot.com/2008/02/plusieurs-partitions-sur-une-clef-usb.html"&gt;comme expliqué précémment&lt;/a&gt;: &lt;b&gt; Au lieu de monter la deuxième partition et pas la première, Windows monte la première partition et pas la deuxième &lt;/b&gt;.&lt;br /&gt;&lt;br /&gt;Une solution est de mettre la partition DEBIAN_LIVE en second et la partition DOCUMENTS en premier. Oui mais, dans ce cas, lorsque je boote &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; sur ma clef, il faut arriver à monter automatiquement la partition DOCUMENTS, qu'elle soit première ou deuxième. Et ce n'est à priori pas si facile que ça car:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;je ne connais pas à priori sur quel disque sera monté mon système Debian Live: &lt;tt&gt;/dev/sda&lt;/tt&gt;, &lt;tt&gt;/dev/sdb&lt;/tt&gt;, &lt;tt&gt;/dev/sdc&lt;/tt&gt;, ...&lt;/li&gt;&lt;li&gt;même si je connais le disque, par exemple &lt;tt&gt;/dev/sdb&lt;/tt&gt;, je ne sais pas à priori si la partition DOCUMENTS est première càd &lt;tt&gt;/dev/sdb1&lt;/tt&gt; ou deuxième càd &lt;tt&gt;/dev/sdb2&lt;/tt&gt;: il serait élégant de ne pas produire deux versions du script qui monte la partition DOCUMENTS: une version pour le cas où DOCUMENTS est premier, une autre pour le cas où DOCUMENTS est second...&lt;/li&gt;&lt;/ul&gt;J'ai finalement produit un script &lt;tt&gt;monter-partition-documents.sh&lt;/tt&gt; qui détecte automatiquement sur quelle partition se trouve DEBIAN_LIVE et sur quelle partition se trouve DOCUMENTS.&lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# Monte la partition des documents (vfat) dans /home/user/Documents&lt;br /&gt;# monter-partition-documents.sh&lt;br /&gt;#&lt;br /&gt;# Pierre Bauduin&lt;br /&gt;# Le 7 mars 2008&lt;br /&gt;#&lt;br /&gt;# Ceci est une clef USB&lt;br /&gt;#&lt;br /&gt;# Une des partitions est le système Debian Live,&lt;br /&gt;# l'autre partition est la partition Documents (formatée en FAT32)&lt;br /&gt;#&lt;br /&gt;# Il est possible que la partition Debian Live soit la première c'est à dire /dev/hdX1 ou /dev/sdX1&lt;br /&gt;# dans ce cas la partition Documents est /dev/hdX2 ou /dev/sdX2&lt;br /&gt;#&lt;br /&gt;# ! Mais, comme Windows ne monte que la première partition qu'il trouve sur une clef USB,&lt;br /&gt;# ! il est possible que sur la clef la partition Debian Live soit la deuxième c'est à dire /dev/hdX2 ou /dev/sdX2&lt;br /&gt;# ! dans ce cas la partition Documents est /dev/hdX1 ou /dev/sdX1&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;# Le point de montage /live/image est-il sur la première partition de ma clef USB ?&lt;br /&gt;if `mount | grep /live/image | awk '{print $1}' | grep -q 1`; then&lt;br /&gt;# Oui&lt;br /&gt;# Donc ma partition Documents est la deuxième et je la monte&lt;br /&gt;PART=`mount | grep /live/image | awk '{print $1}' | sed 's/1/2/'`&lt;br /&gt;[ -z "$PART" ] &amp;amp;&amp;amp; exit 1&lt;br /&gt;[ -d "$HOME/Documents" ] || mkdir $HOME/Documents&lt;br /&gt;sudo mount $PART $HOME/Documents \&lt;br /&gt;-t vfat \&lt;br /&gt;-o rw,noexec,nosuid,nodev,noatime,uid=999,gid=6,umask=027,codepage=850&lt;br /&gt;# Le point de montage /live/image est-il sur la deuxième partition de ma clef USB ?&lt;br /&gt;elif `mount | grep /live/image | awk '{print $1}' | grep -q 2`; then&lt;br /&gt;# Oui&lt;br /&gt;# Donc ma partition Documents est la première et je la monte&lt;br /&gt;PART=`mount | grep /live/image | awk '{print $1}' | sed 's/2/1/'`&lt;br /&gt;[ -z "$PART" ] &amp;amp;&amp;amp; exit 1&lt;br /&gt;[ -d "$HOME/Documents" ] || mkdir $HOME/Documents&lt;br /&gt;sudo mount $PART $HOME/Documents \&lt;br /&gt;-t vfat \&lt;br /&gt;-o rw,noexec,nosuid,nodev,noatime,uid=999,gid=6,umask=027,codepage=850&lt;br /&gt;fi&lt;br /&gt;&lt;/pre&gt;Cliquez &lt;a href="http://pierre.baudu.in/files/monter-partition-documents.sh"&gt;ici&lt;/a&gt; pour télécharger ce script à partir de mon site (faites clic-droit -&gt; Enregistrer sous...)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8463861916652532502?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8463861916652532502/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8463861916652532502' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8463861916652532502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8463861916652532502'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/debian-live-script-pour-monter.html' title='Debian Live: script pour monter automatiquement la partition Documents'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2254370304258156392</id><published>2008-03-02T20:20:00.002+01:00</published><updated>2008-11-16T15:20:13.855+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian Live: quelques liens utiles</title><content type='html'>Les packages les plus récents de &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; sont &lt;a href="http://live.debian.net/debian-snapshots/"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Le git repository de &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; c'est &lt;a href="http://git.debian.org/?p=users/daniel/live-helper.git"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Les écrans de boot (splashscreens) pour &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; sont &lt;a href="http://live.debian.net/other/wallpaper/"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-640x480.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 320px;" src="http://pierre.baudu.in/images/debian-live-640x480.png" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Vous trouverez plein d'autres liens &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; en allant &lt;a href="http://debian-live.alioth.debian.org/links.html"&gt;ici&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2254370304258156392?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2254370304258156392/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2254370304258156392' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2254370304258156392'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2254370304258156392'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/03/debian-live-quelques-liens-utiles.html' title='Debian Live: quelques liens utiles'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2473572729638694631</id><published>2008-02-28T20:00:00.004+01:00</published><updated>2008-11-19T02:24:04.977+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='PC-BSD'/><category scheme='http://www.blogger.com/atom/ns#' term='FOSDEM'/><category scheme='http://www.blogger.com/atom/ns#' term='BSD'/><title type='text'>Tim McCormick et Matt Olander présentent PC-BSD au FOSDEM2008</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R8V2ViMPTNI/AAAAAAAAAvY/WrR29gtx9d8/s1600-h/pcbsdlogo.jpg"&gt;&lt;img style="margin: 0px auto 0px; display: block; text-align: center; cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R8V2ViMPTNI/AAAAAAAAAvY/WrR29gtx9d8/s320/pcbsdlogo.jpg" alt="" id="BLOGGER_PHOTO_ID_5171669859432352978" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Le week-end dernier se déroulait le traditionnel &lt;a href="http://fosdem.org/"&gt;FOSDEM&lt;/a&gt; millésime 2008. Une &lt;a href="http://fosdem.org/2008/schedule/events/pcbsd_live_demo_pbi"&gt;présentation ("talk")&lt;/a&gt; retenait particulièrement mon attention. En effet Tim McCormick et Matt Olander, deux des développeurs principaux de &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt; venaient des USA à &lt;a href="http://fr.wikipedia.org/wiki/Bruxelles"&gt;Bruxelles&lt;/a&gt; pour nous présenter leur &lt;a href="http://fr.wikipedia.org/wiki/Syst%C3%A8me_d%27exploitation"&gt;système d'exploitation&lt;/a&gt;...&lt;br /&gt;&lt;br /&gt;&lt;div style="margin: 0px auto 0px; display: block; text-align: center; cursor: pointer;"&gt;&lt;br /&gt;&lt;a href="http://www.flickr.com/photos/11401533@N04/2292956197/" title="photo sharing"&gt;&lt;img src="http://farm3.static.flickr.com/2351/2292956197_f34874e3e6_m.jpg" alt="" style="border: solid 2px #000000;" /&gt;&lt;/a&gt; &lt;br/&gt; &lt;/div&gt; &lt;br /&gt;&lt;br /&gt;La présentation a failli ne pas avoir lieu car le projecteur ne fonctionnait plus ! Matt a branché son MacBook Pro sur l'entrée du projecteur, mais rien n'apparaissait sur la toile. Matt a alors commencé sa présentation sans aucun support et a répondu a quelques questions. Cependant, après quelques minutes de bidouillage au niveau des connexions du projecteur, nous avons pu assister à la démonstration.&lt;br /&gt;&lt;br /&gt;Matt a alors montré le processus d'installation &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt;, qui (comme vous le savez probablement déjà) est simplissime: démarrer sur le CD, choisir la langue et le clavier, et pouf, &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt; s'installe.&lt;br /&gt;&lt;br /&gt;Matt a également parlé d'un des gros avantages de &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt; qui est l'utilisation de fichiers .pbi. Pour installer un logiciel particulier, dans l'exemple de Matt: GIMP, il suffit d'aller sur &lt;a href="http://pbidir.com/" target="_BLANK"&gt;le site pbidir.com&lt;/a&gt; et de cliquer sur le logiciel que vous désirez installer. Dans notre exemple il s'agit de &lt;a href="http://pbidir.com/bt/pbi/28"&gt;GIMP&lt;/a&gt;. Le logiciel est alors téléchargé et installé automatiquement. Ceci est particulièrement intéressant pour un "utilisateur moyen" qui ne doit pas s'occuper de repositories ou de faire make install. Il lui suffit de cliquer sur le fichier .pbi, de cliquer Next et Finish, comme on le fait dans un système d'exploitation bien connu.&lt;br /&gt;&lt;br /&gt;Nous avons eu un certain nombre de questions/réponses assez intéressantes, notamment sur &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt; 2.0 ainsi que de la possibilité de pouvoir installer les ports de &lt;a href="http://en.wikipedia.org/wiki/FreeBSD"&gt;FreeBSD&lt;/a&gt; par une interface graphique, ce qui serait vraiment génial !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2473572729638694631?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2473572729638694631/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2473572729638694631' title='6 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2473572729638694631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2473572729638694631'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/tim-mccormick-et-matt-olander.html' title='Tim McCormick et Matt Olander présentent PC-BSD au FOSDEM2008'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_4Pkux9IuP_c/R8V2ViMPTNI/AAAAAAAAAvY/WrR29gtx9d8/s72-c/pcbsdlogo.jpg' height='72' width='72'/><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-5620909446711391256</id><published>2008-02-27T19:42:00.004+01:00</published><updated>2008-11-16T15:21:21.710+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT32'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Taille des clusters sur une partition en fonction de sa taille et du systeme de fichiers</title><content type='html'>A force de travailler avec &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; et de créer des partitions FAT, il est intéressant de s'informer de la taille des clusters. J'ai donc créé cette page:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pierre.baudu.in/other/clustersize.fr.html" target="_BLANK"&gt;Taille des clusters sur une partition en fonction de sa taille et du système de fichiers FAT, FAT32 ou NTFS&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ah oui - certains d'entre vous pourraient me demander ce qu'est un cluster...&lt;br /&gt;&lt;br /&gt;En bref, le cluster, ou "unité d'allocation" en Microsoftien, est la plus petite unité attribuable à un fichier dans les systèmes de fichiers pour MS-DOS et Windows. Les clusters ont tous la même taille. Chaque fichier occupe un ou plusieurs clusters. Un cluster appartient à un et un seul fichier.&lt;br /&gt;&lt;br /&gt;Supposons que la taille de cluster est de 8K.&lt;br /&gt;Si j'ai un fichier qui fait 1K, il occupe un cluster.&lt;br /&gt;Si j'ai un fichier qui fait 7K, il occupe un cluster.&lt;br /&gt;Si j'ai un fichier qui fait 12K, il occupe deux clusters.&lt;br /&gt;Si j'ai un fichier qui fait 81K, il occupe onze clusters.&lt;br /&gt;Si j'ai un fichier qui contient uniquement la phrase "Bardaf, c'est l'embardée", c'est à dire 24 octets, il  occupera un cluster.&lt;br /&gt;&lt;br /&gt;On voit que quelle que soit la taille du fichier, le dernier cluster n'est pas complètement occupé. Que je mette un fichier de 7K ou simplement "Bardaf, c'est l'embardée" je consomme un cluster de 8K.&lt;br /&gt;&lt;br /&gt;On perd donc de l'espace. Mais combien ? Une estimation connue est la suivante: si j'ai n fichiers, cela fait n clusters "pas complètement remplis", et ce quelle que soit la taille de chaque fichier. Un estimation de l'espac perdue est donc (n * taille du cluster) divisé par 2.&lt;br /&gt;&lt;br /&gt;Cet espace perdu peut être non négligeable. Si vers 1995 j'avais un disque de 1200 MB et que je le formatais en une seule partition FAT16, j'avais des clusters de 32 KB. Si j'avais par exemple 7000 fichiers (ce qui n'est pas si énorme), je perdais 112 MB sur un disque de 1200 MB, soit presque 10% de l'espace disque total.&lt;br /&gt;&lt;br /&gt;On comprend donc que, plus la taille des clusters est importante, plus on perd de l'espace. C'est la raison pour laquelle Microsoft a fait évoluer ses filesystems en passant de FAT à FAT16 puis à FAT32. Surtout, si vous devez choisir entre FAT16 et FAT32, choisissez FAT32, sauf peut-être si c'est pour un système d'exploitation qui ne connaît que FAT16 (cas de MS-DOS et de la première version de Windows 95).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-5620909446711391256?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/5620909446711391256/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=5620909446711391256' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5620909446711391256'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5620909446711391256'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/taille-des-clusters-sur-une-partition.html' title='Taille des clusters sur une partition en fonction de sa taille et du systeme de fichiers'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8308713128702936569</id><published>2008-02-26T20:20:00.005+01:00</published><updated>2008-11-16T15:21:41.165+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Windows'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='FAT32'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Plusieurs partitions sur une clef USB: problème dans Windows</title><content type='html'>Comme je vous l'ai expliqué précédemment avec &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; je génére un système bootable à placer sur une clef USB.&lt;br /&gt;&lt;br /&gt;Debian Live me crée un fichier binary.img que j'écris sur la clef USB en faisant:&lt;br /&gt;&lt;tt&gt;dd if=binary.img of=/dev/sdX&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Notez que j'écris bien sur /dev/sdX et &lt;b&gt;pas&lt;/b&gt; sur /dev/sdX1. Cela signifie que je binary.img contient le &lt;a href="http://en.wikipedia.org/wiki/Master_boot_record"&gt;MBR&lt;/a&gt; de la clef USB. En bref en faisant ce &lt;tt&gt;dd&lt;/tt&gt; je crée sur ma clef USB:&lt;br /&gt;&lt;ul&gt;&lt;li&gt; un &lt;a href="http://en.wikipedia.org/wiki/Master_boot_record"&gt;MBR&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt; une table des partitions contenant l'unique partition /dev/sdX1 de type &lt;tt&gt;0x83&lt;/tt&gt;:Linux&lt;br /&gt;&lt;/li&gt;&lt;li&gt; une partition /dev/sdX1&lt;/li&gt;&lt;/ul&gt;Mais la partition /dev/sdX1 ne prend pas toute la clef USB, il reste de la place. Regardez ce que je vois dans &lt;tt&gt;cfdisk&lt;/tt&gt; pour ma clef USB:&lt;pre&gt;&lt;br /&gt;           cfdisk (util-linux-ng 2.13.1)&lt;br /&gt;                Disk Drive: /dev/sdb&lt;br /&gt;           Size: 2013265920 bytes, 2013 MB&lt;br /&gt;  Heads: 255   Sectors per Track: 63   Cylinders: 244&lt;br /&gt;&lt;br /&gt;Name     Flags     Part Type     FS Type     Size (MB)&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;sdb1     Boot       Primary      Linux           764,96&lt;br /&gt;                    Pri/Log      Free Space     1242,02&lt;/pre&gt;&lt;br /&gt;Je crée donc une partition primaire de type &lt;tt&gt;0x0b&lt;/tt&gt;:FAT32 dans l'espace libre. Cette partition fait environ 1200 MB c'est à dire 1,2 GB&lt;br /&gt;&lt;br /&gt;J'ai donc la table de partitions suivante:&lt;pre&gt;&lt;br /&gt;[root@cobra] /root&gt;fdisk -l /dev/sdb&lt;br /&gt;Disk /dev/sdb: 2013 MB, 2013265920 bytes&lt;br /&gt;255 heads, 63 sectors/track, 244 cylinders&lt;br /&gt;Units = cylinders of 16065 * 512 = 8225280 bytes&lt;br /&gt;Disk identifier: 0x000ecf8e&lt;br /&gt;  Device Boot      Start         End      Blocks   Id  System&lt;br /&gt;/dev/sdb1   *           1          93      746991   83  Linux&lt;br /&gt;/dev/sdb2              94         244     1212907+   b  W95 FAT32&lt;/pre&gt;&lt;br /&gt;Maintenant je crée un système de fichiers FAT32.&lt;br /&gt;&lt;tt&gt;mkfs.vfat -F 32 -c -n DOCUMENTS /dev/sdb2&lt;/tt&gt;&lt;br /&gt;Ci-dessus:&lt;ul&gt;&lt;li&gt; &lt;tt&gt;-F 32&lt;/tt&gt; indique que je formate en FAT32 et pas FAT16 ni FAT12&lt;br /&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;-c&lt;/tt&gt; indique que je veux tester le support lors du formatage (facultatif)&lt;br /&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;-n DOCUMENTS&lt;/tt&gt; formate avec l'étiquette (&lt;tt&gt;label&lt;/tt&gt;) DOCUMENTS&lt;br /&gt;&lt;/li&gt;&lt;li&gt; &lt;tt&gt;/dev/sdb2&lt;/tt&gt; est le périphérique qui correspond à la deuxième partition de ma clef USB&lt;/li&gt;&lt;/ul&gt;Maintenant, je vais prendre ma clef USB et la brancher à une machine sous Windows. J'ai une partition Debian Live de 760 MB et une partition DOCUMENTS de 1200 MB. Je réfléchis: laquelle de ces partitions Windows va-t-il monter ? En toute logique, il ne devrait pas monter la première partition, puisque c'est une partition Linux. Par contre il devrait monter la deuxième partition, qui est une partition FAT32.&lt;br /&gt;&lt;br /&gt;(Pour accéder à diskmgmt.msc faites Start &gt; Run &gt; diskmgmt.msc. Vous pouvez aussi faire un clic droit sur l'ordinateur qui est en haut à gauche sur le bureau, choisir "Gérer" et sélectionner "Gestion des disques")&lt;br /&gt;&lt;br /&gt;Je branche ma clef USB sur la machine Windows, et dans diskmgmt.msc, je vois ceci:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/debian-live-windows-diskmgmt-20080221.png"&gt;&lt;img style="cursor: pointer;width: 400px;" src="http://pierre.baudu.in/images/debian-live-windows-diskmgmt-20080221.png" alt="" id="BLOGGER_PHOTO_ID_5169358716055538034" border="0"&gt;&lt;/a&gt;&lt;br /&gt;... eh bien ça alors !&lt;br /&gt;&lt;br /&gt;Dans la table des partitions (donc dans le MBR), la première partition est indiquée comme &lt;tt&gt;0x83&lt;/tt&gt; c'est à dire Linux et la deuxième est indiquée comme &lt;tt&gt;0x0b&lt;/tt&gt; c'est à dire FAT32. En toute logique, Windows devrait monter la deuxième partition, mais pas la première. En fait Windows fait exactement l'inverse: il monte la première partition (Linux) mais ne monte pas la deuxième partition (FAT32) !&lt;br /&gt;&lt;br /&gt;Comment Windows peut-il monter la partition alors que c'est une partition Linux me direz-vous ? C'est ici qu'il y a une subtilité. En fait, dans la table des partitions (donc dans le MBR), la première partition est indiquée comme &lt;tt&gt;0x83&lt;/tt&gt; c'est à dire Linux. Mais le système de fichier  utilisé sur cette partition est FAT16 car Debian Live génère un système bootable pour clef USB basé sur SYSLINUX. Et SYSLINUX, c'est une technologie qui ne fonctionne que sur les partitions FAT.&lt;br /&gt;&lt;br /&gt;Ce n'est qu'avec Windows que la deuxième partition DOCUMENTS n'est pas accessible.&lt;br /&gt;Avec Debian GNU/Linux, dès que je branche ma clef USB, je peux accéder à la première partition (DEBIAN-LIVE) et à la deuxième partition (DOCUMENTS).&lt;br /&gt;&lt;br /&gt;Avec Mac OS X, dès que je branche ma clef USB, je peux accéder à la deuxième partition (DOCUMENTS).&lt;br /&gt;&lt;br /&gt;Résultat des courses: Windows monte la première partition et pas la deuxième... Alors qu'il devrait monter la deuxième partition et pas la première...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8308713128702936569?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8308713128702936569/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8308713128702936569' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8308713128702936569'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8308713128702936569'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/plusieurs-partitions-sur-une-clef-usb.html' title='Plusieurs partitions sur une clef USB: problème dans Windows'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3367751760707928466</id><published>2008-02-22T10:20:00.003+01:00</published><updated>2008-11-16T15:23:12.575+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian-Live: squashfs-tools est en ballon</title><content type='html'>Hé bien cela fait maintenant plus d'une semaine qu'il n'est plus possbile de générer une image &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; de &lt;a href="http://www.de.debian.org/releases/lenny/"&gt;lenny&lt;/a&gt;. En fait squashfs-tools 1:3.3-3, la version actuelle de &lt;a href="http://packages.debian.org/lenny/squashfs-tools"&gt;squashfs-tools&lt;/a&gt; dans lenny, produit des images &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; qui ne démarrent pas correctement. Au boot j'obtiens:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;Begin: Mounting root file system... ...&lt;br /&gt;aufs 20071105&lt;br /&gt;loop: module loaded&lt;br /&gt;squashfs: version 3.2-r2 (2007/01/15) Phillip Lougher&lt;br /&gt;BusyBox v1.1.3 (Debian 1:1.1.3-5- Built-in shell (ash)&lt;br /&gt;Enter 'help' for a list of built-in commands.&lt;br /&gt;&lt;br /&gt;/bin/sh: can't access tty: job control turned off&lt;br /&gt;(initramfs)&lt;/pre&gt;Voyez d'ailleurs mon &lt;a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=465874"&gt;Debian bug report&lt;/a&gt; à ce sujet...&lt;br /&gt;&lt;br /&gt;&lt;a href="http://lists.alioth.debian.org/pipermail/debian-live-devel/2008-February/003167.html" TARGET="_BLANK"&gt;Comme je l'écris ici&lt;/a&gt;, une solution temporaire est de donner une valeur particulière à la variable d'environnement MKSQUASHFS_OPTIONS avant de taper lh_build:&lt;br /&gt;&lt;tt&gt;export MKSQUASHFS_OPTIONS="-b 64K -no-sparse"&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Reste à attendre qu'une nouvelle version de &lt;a href="http://packages.debian.org/lenny/squashfs-tools"&gt;squashfs-tools&lt;/a&gt; soit disponible pour &lt;a href="http://www.de.debian.org/releases/lenny/"&gt;lenny&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3367751760707928466?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3367751760707928466/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3367751760707928466' title='4 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3367751760707928466'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3367751760707928466'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/debian-live-squashfs-tools-est-en.html' title='Debian-Live: squashfs-tools est en ballon'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>4</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6222697492442126278</id><published>2008-02-20T21:30:00.001+01:00</published><updated>2008-11-16T15:23:12.577+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Debian Live pour une clef USB: suite</title><content type='html'>Dans les posts précédents je vous ai expliqué comment créer un système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; pour clef USB.&lt;br /&gt;Je vais maintenant personnaliser en profondeur mon système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; pour clef USB.&lt;br /&gt;&lt;br /&gt;J'ajoute quelques fichiers à mon système Debian Live, en allant par exemple cherches ces fichiers sur une autre machine Debian. Par exemple:&lt;br /&gt;Le plugin Adobe Flash pour Iceweasel:&lt;br /&gt;&lt;tt&gt;/usr/lib/iceweasel/plugins/libflashplayer.so&lt;/tt&gt;&lt;br /&gt;Quelques fonds d'écran:&lt;br /&gt;&lt;tt&gt;/usr/share/wallpapers/debian01.jpg&lt;br /&gt;/usr/share/wallpapers/debian02.jpg&lt;br /&gt;/usr/share/wallpapers/debian03.jpg&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je démarre à partir de la clef USB que j'ai obtenue précédemment.&lt;br /&gt;Par défaut, la session &lt;a href="http://fr.wikipedia.org/wiki/KDE"&gt;KDE&lt;/a&gt; s'ouvre automatiquement et mon utilisateur est&lt;br /&gt;&lt;tt&gt;uid: 999&lt;br /&gt;login: user&lt;br /&gt;password: live&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je personnalise l'environnement de mon utilisateur, en éditant &lt;tt&gt;.bashrc&lt;/tt&gt; et &lt;tt&gt;.bash_profile&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je personnalise mon installation &lt;a href="http://fr.wikipedia.org/wiki/KDE"&gt;KDE&lt;/a&gt;, c'est à dire:&lt;br /&gt;&lt;ul&gt;&lt;br /&gt;&lt;li&gt;je configure la barre des tâches en bas, en ajoutant et/ou enlevant des boutons&lt;br /&gt;&lt;/li&gt;&lt;li&gt;je configure mon fond d'écran&lt;br /&gt;&lt;/li&gt;&lt;li&gt;je configure mon écran de veille (screensaver en anglais)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;je configure mon menu K&lt;br /&gt;&lt;/li&gt;&lt;li&gt;je configure la présentation et la couleur des fenêtres, etc ...&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Maintenant je sauvegarde le plug-in Adobe Flash, mes fonds d'écran, et le répertoire &lt;tt&gt;/home/user/.kde&lt;/tt&gt; (et tout son contenu, bien entendu) de mon utilisateur, comme ceci:&lt;br /&gt;&lt;tt&gt;cd /&lt;br /&gt;tar --preserve -zcvf /tmp/my-debian-live-custom-files.tar.gz usr/share/wallpapers/debian01.jpg usr/share/wallpapers/debian02.jpg usr/share/wallpapers/debian03.jpg usr/lib/iceweasel/plugins/libflashplayer.so home/user/.bashrc home/user/.bash_profile home/user/.kde&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Attention, ce fichier est sur le système de fichiers squashfs de ma clef USB, et donc il disparaitra de la clef dès que j'éteins ou redémarre  la machine ! &lt;span style="color: rgb(51, 51, 255);"&gt;Je dois donc le copier quelquepart pour pouvoir le récupérer !&lt;/span&gt; Pour ce faire je peux:&lt;ul&gt;&lt;li&gt;le transférer par sftp&lt;br /&gt;&lt;/li&gt;&lt;li&gt;l'écrire sur un filesystem que j'ai monté en lecture/écriture&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Pour monter un système de fichiers en lecture/écriture, je peux:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;monter un autre système de fichiers de ma première clef USB en lecture/écriture (voir &lt;a href="http://pierrebauduin.blogspot.com/2008/02/ajouter-une-partition-montee-en.html"&gt;ce post&lt;/a&gt; pour en savoir plus)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;insérer une disquette et la monter en lecture/écriture&lt;br /&gt;&lt;/li&gt;&lt;li&gt;insérer une deuxième clef USB et la monter en lecture/écriture&lt;br /&gt;&lt;/li&gt;&lt;li&gt;monter un  système de fichiers du disque dur de la machine en lecture/écriture (déconseillé si la machine n'est pas à vous et que vous n'avez pas envie d'avoir des coups...)&lt;/li&gt;&lt;/ul&gt;Il suffit alors de transférer ce fichier &lt;tt&gt;my-debian-live-custom-files.tar.gz&lt;/tt&gt; vers votre support monté en lecture/écriture.&lt;br /&gt;&lt;br /&gt;Quand, c'est fait, retourner sur la machine où vous avez créé votre &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt;, et allez dans le répertoire approprié. Ensuite:&lt;br /&gt;Je nettoie avant de personnaliser:&lt;br /&gt;&lt;tt&gt;# lh_clean --binary&lt;/tt&gt;&lt;br /&gt;Ensuite aller dans le répertoire chroot:&lt;br /&gt;&lt;tt&gt;# cd chroot&lt;/tt&gt;&lt;br /&gt;Je remonte ce que je viens de sauvegarder&lt;br /&gt;&lt;tt&gt;# tar --preserve -zxvf /home/pbn/debian-live-home-user.tar.gz&lt;/tt&gt;&lt;br /&gt;Ensuite, je peux lancer à nouveau la génération de mon système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt;:&lt;br /&gt;&lt;tt&gt;# time nice --adjustment=1 lh_binary&lt;/tt&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6222697492442126278?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6222697492442126278/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6222697492442126278' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6222697492442126278'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6222697492442126278'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/debian-live-pour-une-clef-usb-suite.html' title='Debian Live pour une clef USB: suite'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6257479717163488397</id><published>2008-02-16T14:30:00.001+01:00</published><updated>2008-11-16T15:23:12.579+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Mon Site Web'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Nouvelle version de ma page d'outils pour Debian GNU/Linux</title><content type='html'>J'ai réalisé une &lt;a href="http://pierre.baudu.in/outils/debian/"&gt;nouvelle version de ma page d'outils pour Debian GNU/Linux&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://pierre.baudu.in/images/pierre.baudu.in.outils.debian.20080216.png"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px;" src="http://pierre.baudu.in/images/pierre.baudu.in.outils.debian.20080216.png" border="0" alt="" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Les nouveautés sont:&lt;ul&gt;&lt;li&gt; en plus des informations générales sur un package, vous pouvez maintenant obtenir des informations détaillées sur un package. Ces informations viennent du site de &lt;a href="http://qa.debian.org/"&gt;Debian Quality Assurance&lt;/a&gt;.&lt;br /&gt;&lt;li&gt; possibilité de trouver tous les bugs pour un package&lt;br /&gt;&lt;li&gt; possibilité de trouver tous les bugs signalés par une personne&lt;br /&gt;&lt;li&gt; possibilité de trouver tous les bugs portant une certaine étiquette&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6257479717163488397?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6257479717163488397/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6257479717163488397' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6257479717163488397'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6257479717163488397'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/nouvelle-version-de-ma-page-doutils.html' title='Nouvelle version de ma page d&apos;outils pour Debian GNU/Linux'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1806942602982688119</id><published>2008-02-15T20:10:00.004+01:00</published><updated>2008-11-19T02:24:05.597+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CUPS'/><category scheme='http://www.blogger.com/atom/ns#' term='IPP'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Faire apparaître des imprimantes CUPS dans le Default Printer Browser de Mac OS X Tiger</title><content type='html'>Dans un &lt;a href="http://pierrebauduin.blogspot.com/2008/01/imprimer-partir-de-mac-os-x-sur-une.html"&gt;post précédent&lt;/a&gt; je vous parlais des "subtilités" qui peuvent survenir lorsque vous désirez installer une imprimante &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;. Il faut en effet indiquer non pas "Claire" comme nom  de file d'attente mais bien "/printers/Claire"&lt;br /&gt;&lt;br /&gt;Suite à mon interaction avec developer.apple.com, j'ai appris qu'il y avait une solution beaucoup plus intuitive et élégante à ce problème.&lt;br /&gt;&lt;br /&gt;Mon serveur &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; est une machine &lt;a href="http://en.wikipedia.org/wiki/Debian"&gt;Debian GNU/Linux&lt;/a&gt; 4.0 appelée &lt;font style="color: rgb(51, 51, 255);"&gt;cobra&lt;/font&gt;. Elle partage l'imprimante &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; appellée &lt;font style="color: rgb(51, 51, 255);"&gt;Canon GP300&lt;/font&gt;.&lt;br /&gt;&lt;br /&gt;Notez que tout ce qui suit n'est valable qu'avec &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Mac OS X 10.4 "Tiger"&lt;/a&gt; comme client.&lt;br /&gt;&lt;br /&gt;Je vais dans &lt;font style="color: rgb(51, 51, 255);"&gt;Préférences Systèmes&lt;/font&gt; &gt; &lt;font style="color: rgb(51, 51, 255);"&gt;Imprimantes et Fax&lt;/font&gt; et je clique sur le &lt;font style="color: rgb(51, 51, 255);"&gt;+&lt;/font&gt;.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4Pkux9IuP_c/R7WYfDXwjjI/AAAAAAAAAhw/FqMGX5VUTBY/s1600-h/macosx104printing01.png"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_4Pkux9IuP_c/R7WYfDXwjjI/AAAAAAAAAhw/FqMGX5VUTBY/s320/macosx104printing01.png" alt="" id="BLOGGER_PHOTO_ID_5167203806725836338" border="0"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;J'arrive dans le &lt;font style="color: rgb(51, 51, 255);"&gt;Default Printer Browser&lt;/font&gt; et je vois quelque chose comme ceci:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/R7WemzXwjlI/AAAAAAAAAiA/8snN74lismY/s1600-h/macosx104printing02.png"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/R7WemzXwjlI/AAAAAAAAAiA/8snN74lismY/s320/macosx104printing02.png" alt="" id="BLOGGER_PHOTO_ID_5167210536939589202" border="0"&gt;&lt;/a&gt;&lt;br /&gt;Ce que je vois là est la liste des imprimantes disponible sur le réseau. Je vois des imprimantes &lt;a href="http://en.wikipedia.org/wiki/AppleTalk"&gt;AppleTalk&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Bonjour_%28software%29"&gt;Bonjour&lt;/a&gt;... mais je ne vois pas l'imprimante qui m'intéresse: &lt;font style="color: rgb(51, 51, 255);"&gt;Canon GP300&lt;/font&gt; sur le serveur &lt;font style="color: rgb(51, 51, 255);"&gt;cobra&lt;/font&gt;.&lt;br /&gt;&lt;br /&gt;Voyons la partie &lt;font style="color: rgb(51, 51, 255);"&gt;"Browsing"&lt;/font&gt; du fichier &lt;tt&gt;/etc/cups/cupsd.conf&lt;/tt&gt; sur &lt;font style="color: rgb(51, 51, 255);"&gt;cobra&lt;/font&gt;. Comme j'ai laissé la configuration par défaut du &lt;font style="color: rgb(51, 51, 255);"&gt;"Browsing"&lt;/font&gt;, j'ai ceci:&lt;br /&gt;&lt;pre&gt;# Show shared printers on the local network.&lt;br /&gt;Browsing On&lt;br /&gt;BrowseOrder allow,deny&lt;br /&gt;BrowseAllow all&lt;/pre&gt;&lt;br /&gt;Le "Browsing" est activé. Donc le serveur &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; de cobra "publie" les informations sur les imprimantes. Cependant ce n'est pas suffisant pour que &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; "voie" mon imprimante &lt;font style="color: rgb(51, 51, 255);"&gt;Canon GP300&lt;/font&gt;. Je dois indiquer dans le fichier &lt;tt&gt;/etc/cups/cupsd.conf&lt;/tt&gt; sur cobra:&lt;br /&gt;&lt;pre&gt;Browsing On&lt;br /&gt;BrowseAddress 10.20.255.255&lt;br /&gt;BrowseAllow All&lt;br /&gt;BrowseOrder allow,deny&lt;/pre&gt;&lt;br /&gt;Où 10.20.255.255 est l'adresse de broadcast de votre connexion Ethernet.&lt;br /&gt;Si vous ne connaissez pas l'adresse de broadcast de votre machine, tapez &lt;tt style="color: rgb(51, 51, 255);"&gt;/sbin/ifconfig eth0&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;N'oubliez pas de redémarrer le &lt;a href="http://en.wikipedia.org/wiki/Daemon_%28computer_software%29"&gt;démon&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt;. Sous &lt;a href="http://en.wikipedia.org/wiki/Debian"&gt;Debian GNU/Linux&lt;/a&gt; c'est la commande &lt;tt style="color: rgb(51, 51, 255);"&gt;invoke-rc.d cupsys restart&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;Je vois maintenant ceci:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R7We1TXwjmI/AAAAAAAAAiI/SdHCeta9k34/s1600-h/macosx104printing03.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R7We1TXwjmI/AAAAAAAAAiI/SdHCeta9k34/s320/macosx104printing03.png" alt="" id="BLOGGER_PHOTO_ID_5167210786047692386" border="0"&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ca y est mon imprimante ImprimanteCanon est là ! Il ne me reste plus qu'à cliquer dessus et à l'installer:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R7WfDTXwjnI/AAAAAAAAAiQ/AEawNnVMcw0/s1600-h/macosx104printing04.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R7WfDTXwjnI/AAAAAAAAAiQ/AEawNnVMcw0/s320/macosx104printing04.png" alt="" id="BLOGGER_PHOTO_ID_5167211026565860978" border="0"&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1806942602982688119?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1806942602982688119/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1806942602982688119' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1806942602982688119'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1806942602982688119'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/faire-apparaitre-des-imprimantes-cups.html' title='Faire apparaître des imprimantes CUPS dans le Default Printer Browser de Mac OS X Tiger'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4Pkux9IuP_c/R7WYfDXwjjI/AAAAAAAAAhw/FqMGX5VUTBY/s72-c/macosx104printing01.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7531095566679441831</id><published>2008-02-14T23:10:00.002+01:00</published><updated>2008-02-14T23:38:27.782+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='VMware'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>VMware et un kernel 2.6.24.2</title><content type='html'>Je viens de compiler un kernel 2.6.24.2 pour Debian GNU/Linux "lenny". Tout fonctionne... sauf vmware qui n'arrive pas à compiler ses kernels modules. &lt;br /&gt;&lt;br /&gt;Quand je tente de compiler les kernel modules de VMWare pour un kernel 2.6.24.2, j'obtiens ceci:&lt;br /&gt;&lt;pre&gt;[root@cobra] /root&gt;/usr/vmware/bin/vmware-config.pl &lt;br /&gt;Making sure services for VMware Server are stopped.&lt;br /&gt;Stopping VMware services:&lt;br /&gt;   Virtual machine monitor  done&lt;br /&gt;   Bridged networking on /dev/vmnet0  done&lt;br /&gt;   DHCP server on /dev/vmnet1  done&lt;br /&gt;   Host-only networking on /dev/vmnet1  done&lt;br /&gt;   DHCP server on /dev/vmnet8  done&lt;br /&gt;   NAT service on /dev/vmnet8  done&lt;br /&gt;   Host-only networking on /dev/vmnet8  done&lt;br /&gt;   Virtual ethernet  done&lt;br /&gt;Configuring fallback GTK+ 2.4 libraries.&lt;br /&gt;In which directory do you want to install the mime type icons? &lt;br /&gt;[/usr/share/icons] &lt;br /&gt;What directory contains your desktop menu entry files? These files have a &lt;br /&gt;.desktop file extension. [/usr/share/applications] &lt;br /&gt;In which directory do you want to install the application's icon? &lt;br /&gt;[/usr/share/pixmaps] &lt;br /&gt;Trying to find a suitable vmmon module for your running kernel.&lt;br /&gt;None of the pre-built vmmon modules for VMware Server is suitable for your &lt;br /&gt;running kernel.  Do you want this program to try to build the vmmon module for &lt;br /&gt;your system (you need to have a C compiler installed on your system)? [yes] &lt;br /&gt;Using compiler "/usr/bin/gcc". Use environment variable CC to override.&lt;br /&gt;What is the location of the directory of C header files that match your running&lt;br /&gt;kernel? [/lib/modules/2.6.24.2/build/include] &lt;br /&gt;Extracting the sources of the vmmon module.&lt;br /&gt;Building the vmmon module.&lt;br /&gt;Building for VMware Server 1.0.0.&lt;br /&gt;Using 2.6.x kernel build system.&lt;br /&gt;make: entrant dans le répertoire « /tmp/vmware-config1/vmmon-only »&lt;br /&gt;make -C /lib/modules/2.6.24.2/build/include/.. SUBDIRS=$PWD SRCROOT=$PWD/. modules&lt;br /&gt;make[1]: entrant dans le répertoire « /usr/src/linux-2.6.24.2 »&lt;br /&gt;  CC [M]  /tmp/vmware-config1/vmmon-only/linux/driver.o&lt;br /&gt;  CC [M]  /tmp/vmware-config1/vmmon-only/linux/driverLog.o&lt;br /&gt;  CC [M]  /tmp/vmware-config1/vmmon-only/linux/hostif.o&lt;br /&gt;/tmp/vmware-config1/vmmon-only/linux/hostif.c: In function 'HostIF_BrokenCPUHelper':&lt;br /&gt;/tmp/vmware-config1/vmmon-only/linux/hostif.c:3042: warning: passing argument 1 of 'HostIFBrokenCPUHelper' discards qualifiers from pointer target type&lt;br /&gt;  CC [M]  /tmp/vmware-config1/vmmon-only/common/comport.o&lt;br /&gt;  CC [M]  /tmp/vmware-config1/vmmon-only/common/cpuid.o&lt;br /&gt;In file included from include/asm/bitops.h:2,&lt;br /&gt;                 from /tmp/vmware-config1/vmmon-only/./include/vcpuset.h:74,&lt;br /&gt;                from /tmp/vmware-config1/vmmon-only/./include/modulecall.h:23,&lt;br /&gt;                 from /tmp/vmware-config1/vmmon-only/common/vmx86.h:19,&lt;br /&gt;                 from /tmp/vmware-config1/vmmon-only/common/hostif.h:18,&lt;br /&gt;                 from /tmp/vmware-config1/vmmon-only/common/cpuid.c:15:&lt;br /&gt;include/asm/bitops_32.h:9:2: error: #error only &lt;linux/bitops.h&gt; can be included directly&lt;br /&gt;make[2]: *** [/tmp/vmware-config1/vmmon-only/common/cpuid.o] Erreur 1&lt;br /&gt;make[1]: *** [_module_/tmp/vmware-config1/vmmon-only] Erreur 2&lt;br /&gt;make[1]: quittant le répertoire « /usr/src/linux-2.6.24.2 »&lt;br /&gt;make: *** [vmmon.ko] Erreur 2&lt;br /&gt;make: quittant le répertoire « /tmp/vmware-config1/vmmon-only »&lt;br /&gt;Unable to build the vmmon module.&lt;br /&gt;For more information on how to troubleshoot module-related problems, please &lt;br /&gt;visit our Web site at "http://www.vmware.com/download/modules/modules.html" and&lt;br /&gt;"http://www.vmware.com/support/reference/linux/prebuilt_modules_linux.html".&lt;br /&gt;Execution aborted.&lt;/pre&gt;&lt;br /&gt;Ouille !&lt;br /&gt;Solution:&lt;br /&gt;&lt;ol&gt;&lt;br /&gt;&lt;li&gt; aller chercher le &lt;a href="http://knihovny.cvut.cz/ftp/pub/vmware/vmware-any-any-update115.tar.gz"&gt;patch vmware-any-any-update115.tar.gz&lt;/a&gt;&lt;br /&gt;&lt;li&gt; le décompresser (dans /tmp par exemple): &lt;tt&gt;time tar --preserve -zxvf vmware-any-any-update115.tar.gz&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; là dedans, décompresser &lt;tt&gt;vmmon.tar&lt;/tt&gt;: &lt;tt&gt;time tar --preserve -xvf vmmon.tar&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; éditer &lt;tt&gt;vmmon-only/include/vcpuset.h&lt;/tt&gt; et remplacer &lt;tt&gt;include "asm/bitops.h"&lt;/tt&gt; en &lt;tt&gt;#include "linux/bitops.h"&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; éditer &lt;tt&gt;vmmon-only/include/iocontrols_compat.h&lt;/tt&gt; et mettre 167 comme &lt;tt&gt;VMMON_VERSION_V6&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; éditer &lt;tt&gt;vmmon-only/include/iocontrols.h&lt;/tt&gt; et mettre 167 comme &lt;tt&gt;VMMON_VERSION&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; recompresser &lt;tt&gt;vmmon.tar&lt;/tt&gt; en faisant: &lt;tt&gt;time tar --preserve -cvf vmmon.tar vmmon-only&lt;/tt&gt;&lt;br /&gt;&lt;li&gt; lancer &lt;tt&gt;runme.pl&lt;/tt&gt;&lt;br /&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7531095566679441831?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7531095566679441831/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7531095566679441831' title='5 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7531095566679441831'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7531095566679441831'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/vmware-et-un-kernel-26242.html' title='VMware et un kernel 2.6.24.2'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>5</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-909727004154124674</id><published>2008-02-12T22:12:00.002+01:00</published><updated>2008-02-22T18:46:01.329+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='KDE'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Ajouter une partition montée en lecture/écriture à votre clef USB</title><content type='html'>Dans un &lt;a href="http://pierrebauduin.blogspot.com/2008/02/comment-crer-un-systme-debian-live-pour.html"&gt;post précédent&lt;/a&gt; je vous expliquais comment créer une clef USB bootable contenant un système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;La dernière étape consistait à faire une commande du genre:&lt;br /&gt;&lt;tt&gt;dd if=debian-live-binary.img of=/dev/sdX&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Vous avez donc créé sur la clef USB une table de partitions qui contient une seule partition:&lt;br /&gt;&lt;tt&gt;# fdisk -l /dev/sdb&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Le système de fichier /dev/sdb1 est mon système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ici c'est une clef de 1 GB, et il reste de l'espace. Je vais l'utiliser !&lt;br /&gt;&lt;br /&gt;D'abord je crée dans l'espace libre une partition primaire de type &lt;tt&gt;0x06&lt;/tt&gt; (FAT16).&lt;br /&gt;Pour cela j'utilise par exemple la commande &lt;tt&gt;cfdisk&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je la formate en FAT16:&lt;br /&gt;&lt;tt&gt;# time mkfs.vfat -c -F 16 -n DOCUMENTS /dev/sdX2&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Et voilà ! Je peux maintenant monter la partition avec une commande du genre:&lt;br /&gt;&lt;tt&gt;# mount -t vfat /dev/sdb2 /mnt/target&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Mais je peux faire beaucoup mieux: je peux faire en sorte que cette partition soit montée automatiquement en lecture/écriture lors du démarrage de &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; !&lt;br /&gt;&lt;br /&gt;Voici le script &lt;tt&gt;script usr/local/sbin/monter-partition-documents.sh&lt;/tt&gt; qui monte automatiquement la partition des documents:&lt;br /&gt;&lt;pre&gt;#!/bin/bash&lt;br /&gt;#&lt;br /&gt;# Monte la partition des documents (vfat) dans /home/user/Documents&lt;br /&gt;#&lt;br /&gt;# Pierre Bauduin&lt;br /&gt;# Le 12 février 2008&lt;br /&gt;#&lt;br /&gt;# Attention ici on suppose que:&lt;br /&gt;#       * la partition Debian Live est /dev/sdX1&lt;br /&gt;#       * la partition Documents est /dev/sdX2&lt;br /&gt;#&lt;br /&gt;# La partition qui m'interesse est sur le point de montage /live/image&lt;br /&gt;# Je trouve /dev/sdX1 et je le transforme en /dev/sdX2&lt;br /&gt;PART=`mount | grep /live/image | awk '{print $1}' | sed 's/1/2/'`&lt;br /&gt;[ -z "$PART" ] &amp;amp;&amp;amp; exit 1&lt;br /&gt;[ -d "$HOME/Documents" ] || mkdir $HOME/Documents&lt;br /&gt;sudo mount $PART $HOME/Documents \&lt;br /&gt;-t vfat \&lt;br /&gt;-o rw,noexec,nosuid,nodev,noatime,uid=999,gid=6,umask=027,codepage=850&lt;/pre&gt;&lt;br /&gt;Pour qu'il soit lancé automatiquement par l'utilisateur user au démarrage de KDE il suffit de faire:&lt;br /&gt;&lt;tt&gt;ln -s usr/local/sbin/monter-partition-documents.sh home/user/.kde/Autostarts&lt;/tt&gt;&lt;br /&gt;Et voilà !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-909727004154124674?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/909727004154124674/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=909727004154124674' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/909727004154124674'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/909727004154124674'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/ajouter-une-partition-montee-en.html' title='Ajouter une partition montée en lecture/écriture à votre clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3723161081858866700</id><published>2008-02-11T19:20:00.000+01:00</published><updated>2008-02-12T15:31:34.674+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Comment améliorer et/ou personnaliser un système Debian Live pour une clef USB</title><content type='html'>Dans un &lt;a href="http://pierrebauduin.blogspot.com/2008/02/comment-crer-un-systme-debian-live-pour.html"&gt;post précédent&lt;/a&gt; je vous expliquais comment j'ai pu créer un système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; bootable et le copier sur une clef USB.&lt;br /&gt;&lt;br /&gt;La version que j'ai obtenue fonctionne, mais j'ai quelques désagréments:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;par défaut, je n'ai pas la bonne disposition du clavier&lt;/li&gt;&lt;li&gt;par défaut, je n'ai pas la bonne locale&lt;/li&gt;&lt;li&gt;je n'ai pas mon prompt habituel (valeur de la variable d'environnement &lt;tt&gt;PS1&lt;/tt&gt;)&lt;/li&gt;&lt;li&gt;je n'ai pas mes réglages habituels dans &lt;tt&gt;vi&lt;/tt&gt; (tel que par exemple &lt;tt&gt;syntax on&lt;/tt&gt;)&lt;/li&gt;&lt;li&gt;je n'ai pas le choix des fortunes dans &lt;tt&gt;fortunes-fr&lt;/tt&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;Il est en fait possible, et relativement facile, de personnaliser votre installation &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Attention, pour tout ceci, je ne branche pas ma clef USB ! Je vais dans le répertoire où j'ai effectué &lt;tt&gt;lh_build&lt;/tt&gt; dans le &lt;a href="http://pierrebauduin.blogspot.com/2008/02/comment-crer-un-systme-debian-live-pour.html"&gt;post précédent&lt;/a&gt;. Chez moi c'est le répertoire &lt;tt&gt;/mnt/data/debian-live-usb&lt;/tt&gt;.&lt;br /&gt;&lt;br /&gt;Et maintenant:&lt;br /&gt;Je nettoie avant de personnaliser:&lt;br /&gt;&lt;tt&gt;[root@cobra] /mnt/data/debian-live-usb&gt;lh_clean --binary&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je me déplace dans le répertoire chroot:&lt;br /&gt;&lt;tt&gt;[root@cobra] /mnt/data/debian-live-usb&gt;cd chroot&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je place la dernière version sid du paquet &lt;tt&gt;user-setup&lt;/tt&gt; (que je suis allé chercher préalablement &lt;a href="http://packages.debian.org/sid/user-setup"&gt;ici&lt;/a&gt;) dans le répertoire root:&lt;br /&gt;&lt;tt&gt;[root@cobra] /mnt/data/debian-live-usb/chroot&gt;cp /home/pbn/download/user-setup_1.18_all.deb root/&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;J'édite les fichiers que je désire personnaliser, par exemple:&lt;br /&gt;&lt;tt&gt;etc/apt/sources.list&lt;br /&gt;etc/default/rcS&lt;br /&gt;etc/motd&lt;br /&gt;etc/vim/vimrc&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;(Note: dans &lt;tt&gt;etc/default/rcS&lt;/tt&gt; je conseille d'indiquer &lt;tt&gt;UTC=no&lt;/tt&gt;. En effet il est fort probable que les machines sur lesquelles ja vais booter ma clef USB auront leur horloge interne à l'heure locale.)&lt;br /&gt;&lt;br /&gt;Je rentre dans le système Debian Live avec la commande chroot:&lt;br /&gt;&lt;tt&gt;[root@cobra] /mnt/data/debian-live-usb&gt;chroot chroot&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je configure les quatre paquets assez importants:&lt;br /&gt;&lt;tt&gt;# dpkg-reconfigure locales&lt;br /&gt;# dpkg-reconfigure fortunes-fr&lt;br /&gt;# dpkg-reconfigure tzdata&lt;br /&gt;# dpkg-reconfigure console-data&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;J'installe le paquet user-setup que j'ai mis dans root:&lt;br /&gt;&lt;tt&gt;# dpkg -i root/user-setup_1.18_all.deb &lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je quitte le chroot:&lt;br /&gt;&lt;tt&gt;# Ctrl-D&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Je remonte d'un directory&lt;br /&gt;&lt;tt&gt;cd ..&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Et, enfin, je peux lancer la génération de mon image &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; personnalisée:&lt;br /&gt;&lt;tt&gt;# time nice --adjustment=1 lh_binary&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Quand c'est terminé, j'ai mon image binary.img, que je peux transférer sur ma clef USB:&lt;br /&gt;&lt;tt&gt;# time dd if=binary.img of=/dev/sdX&lt;/tt&gt;&lt;br /&gt;&lt;br /&gt;Remarques(rappel):&lt;ul&gt;&lt;li&gt;surtout, &lt;span style="color: rgb(255, 0, 0);"&gt;n'exécutez pas &lt;tt&gt;lh_build&lt;/tt&gt; ni &lt;tt&gt;lh_binary&lt;/tt&gt; directement sur votre clef USB !&lt;/span&gt; En effet, une clef USB est moins performante au niveau des temps d'accés et de la vitesse de lecture écriture. Mais surtout, les nombreuses opérations de lecture/écriture lors de la génération du système Debian Live diminuent fortement la durée de vie de votre clef USB !&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;faites très attention de ne pas vous tromper de périphérique lors de la commande dd&lt;/span&gt;. Si vous n'avez que des disques PATA, la clef USB sera probablement le périphérique /dev/sda. Mais si vous avez des disques SCSI ou SATA, le périphérique /dev/sda est votre premier disque dur ! Votre clef USB sera quelquechose comme /dev/sdb ou /dev/sdc ou /dev/sdd, etc... &lt;span style="color: rgb(255, 0, 0);"&gt;N'allez pas écrire binary.img sur votre disque dur, vous perdriez toutes vos données !&lt;br /&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;... et voilà !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3723161081858866700?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3723161081858866700/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3723161081858866700' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3723161081858866700'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3723161081858866700'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/comment-ameliorer-etou-personnaliser-un.html' title='Comment améliorer et/ou personnaliser un système Debian Live pour une clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2509911071428177824</id><published>2008-02-10T14:10:00.001+01:00</published><updated>2008-09-24T02:48:37.384+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Une commande Debian GNU/Linux peu connue: dpigs</title><content type='html'>Vous préparez une image compressée avec &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian-Live&lt;/a&gt;, et elle est trop grande pour votre CD / DVD/ clef USB ?&lt;br /&gt;&lt;br /&gt;Vous êtes sur une machine où la partition / et/ou /usr est presque pleine ?&lt;br /&gt;&lt;br /&gt;Vous vous demandez combien de place est utilisée/perdue dans des packages qui ne vous servent à rien ?&lt;br /&gt;&lt;br /&gt;Utilisez la commande &lt;span style="color: rgb(51, 51, 255);"&gt;dpigs&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Pour l'installer:&lt;br /&gt;(en tant que root)&lt;br /&gt;&lt;pre&gt;[root@cobra] /home/pbn&gt; aptitude-install debian-goodies&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Pour l'utiliser:&lt;br /&gt;(pas besoin d'être root)&lt;br /&gt;&lt;pre&gt;[pbn@cobra] /home/pbn&gt;dpigs&lt;br /&gt;95932 openoffice.org-core&lt;br /&gt;65368 sun-java5-bin&lt;br /&gt;61200 evolution-common&lt;br /&gt;51696 linux-image-2.6.22-3-686&lt;br /&gt;37968 kde-i18n-fr&lt;br /&gt;36220 wireshark-common&lt;br /&gt;35692 libwine&lt;br /&gt;34228 libgcj8-1&lt;br /&gt;34220 openoffice.org-common&lt;br /&gt;33548 w32codecs&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;... eh oui, ce programme vous donne la liste des dix packages qui prennent le plus de place sur votre système Debian. Vous pouvez demander une liste plus longue, par exemple les vingt packages qui prennent le plus de place en tapant:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;[pbn@cobra] /home/pbn&gt; dpigs -n 20&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2509911071428177824?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2509911071428177824/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2509911071428177824' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2509911071428177824'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2509911071428177824'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/une-commande-debian-gnulinux-peu-connue.html' title='Une commande Debian GNU/Linux peu connue: dpigs'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4044876327179366711</id><published>2008-02-07T20:42:00.000+01:00</published><updated>2008-02-08T23:16:09.488+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian Live'/><category scheme='http://www.blogger.com/atom/ns#' term='Clef USB'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Comment créer un système Debian Live pour une clef USB</title><content type='html'>Le projet &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian Live&lt;/a&gt; permet de créer une installation de Debian GNU/Linux qui fonction en "live", c'est à dire en démarrant sur un CD, un DVD ou une clef USB.&lt;br /&gt;&lt;br /&gt;Ceci est intéressant quand par exemple, sur le lieu de travail, on met une machine à votre disposition mais qu'elle est sous Windows. Avec un système &lt;a href="http://debian-live.alioth.debian.org/"&gt;Debian-Live&lt;/a&gt;, vous ne touchez aucunement au disque dur. C'est également très utile lorsque vous passez chez une connaissance et que vous voulez lui montrer comment Debian tourne sur sa machine, évidemment sans toucher à son disque dur.&lt;br /&gt;&lt;br /&gt;De plus votre système Debian Live fonctionne en "lecture seule", de la sorte il est impossible qu'un programme malveillant (virus, worm, rootkit) ne s'installe.&lt;br /&gt;&lt;br /&gt;Avant tout il vous faut installer le package &lt;a href="http://packages.debian.org/live-helper"&gt;live-helper&lt;/a&gt; qui contient tous les outils permettant de générer un système Debian-Live. Ce live-helper existe pour lenny et sid, mais il est recommandé d'installer la dernière version à partir du &lt;a href="http://live.debian.net/debian-snapshots/"&gt;site de Debian-Live&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Voici la commande (attention c'est long):&lt;br /&gt;&lt;tt&gt;&lt;br /&gt;#!/bin/sh&lt;br /&gt;#&lt;br /&gt;# Script qui génère un système Debian-Live&lt;br /&gt;# au format usb-hdd (système de fichier sur clef USB)&lt;br /&gt;#&lt;br /&gt;# Pierre Bauduin&lt;br /&gt;# Le 7 février 2008&lt;br /&gt;#&lt;br /&gt;lh_config --mirror-binary http://debian-mirror:7777/debian/ --mirror-binary-security http://debian-mirror:7777/debian-security/ --mirror-bootstrap http://debian-mirror:7777/debian/ --mirror-bootstrap-security http://debian-mirror:7777/debian-security/ -b usb-hdd -d lenny --bootappend-live "quickreboot locale=fr_BE@euro keyb=be2-latin1" --hostname debian-live --packages "akregator alsa-base alsaplayer-text alsa-tools alsa-utils amarok audacity aumix avidemux bzip2 cupsys cupsys-bsd cupsys-client debian-goodies dillo dvdrip eject elinks enscript finger fortunes fortunes-fr frozen-bubble gimp gwenview htop iceweasel iceweasel-l10n-fr iceweasel-l10n-nl imagemagick irssi k3b k3b-i18n kalarm kate kcalc kcheckgmail kde-i18n-fr kde-i18n-nl kdebase kdeprint keytouch kgoldrunner khangman kmahjongg kmix kompose kpat kpdf kpersonalizer kpoker krdc kreversi kscreensaver kscreensaver-xsavers ksirtet ksnapshot kweather kwin4 laptop-detect less lftp libdvdcss2 loadmeter lsdvd lshw lsof lynx mc memtest86+ mondo mpg123 mpg123-alsa mpg321 msttcorefonts mtools munin-node mutt ncftp nmap ntpdate openoffice.org openoffice.org-l10n-fr openoffice.org-l10n-nl openssh-server pidgin screen slay smb4k smbclient strace sun-java5-bin sun-java5-jre sun-java5-plugin sysstat tcpdump tcsh telnet tofrodos traceroute unzip vim w32codecs wamerican wdutch wfrench wget wine wireshark x-window-system-core xbill xchat xchm xdaliclock xine-ui x-ttcidfont-conf xmms xscreensaver xserver-xorg xsysinfo" &amp;amp;&amp;amp; time nice --adjustment=1 lh_build&lt;br /&gt;&lt;/tt&gt;&lt;br /&gt;Remarquez que:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;il est fortement recommandé d'utiliser un miroir local de Debian&lt;/li&gt;&lt;li&gt;dans cet exemple mon miroir s'appelle debian-mirror, il faut donc adapter le script (ou encore définir dans votre serveur DNS que debian-mirror est l'alias de votre machine miroir)&lt;/li&gt;&lt;li&gt;tous les fichiers seront créés dans le répertoire courant, je vous conseille donc fortement de faire &lt;tt&gt;mkdir debian-live &amp;amp;&amp;amp; cd debian-live&lt;/tt&gt; avant de lancer la commande&lt;/li&gt;&lt;li&gt;sur ma machine il faut environ 40 minutes pour générer le système Debian Live&lt;br /&gt;&lt;/li&gt;&lt;li&gt;pour des raisons de performance, il est fortement recommandé d'exécuter cette commande sur un filesystem local (c'est à dire, un disque qui existe physiquement, pas sur un tmpfs, ni nfs, ni smbfs)&lt;/li&gt;&lt;li&gt;veillez à exécuter cette commande sur un filesystem qui a suffisamment d'espace libre: dans le cas de la commande ci-dessus, la génération du Debian Live consomme 5,4 GB d'espace !&lt;br /&gt;&lt;/li&gt;&lt;li&gt;surtout, &lt;span style="color: rgb(255, 0, 0);"&gt;n'exécutez pas cette commande directement sur votre clef USB !&lt;/span&gt; En effet, une clef USB est moins performante au niveau des temps d'accés et de la vitesse de lecture écriture. Mais surtout, les nombreuses opérations de lecture/écriture lors de la génération du système Debian Live diminuent fortement la durée de vie de votre clef USB !&lt;/li&gt;&lt;li&gt;au final, vous obtenez un fichier binary.img d'environ 720 MB que vous pourrez transférer avec une commande du genre &lt;tt&gt;dd if=binary.img of=/dev/sdX&lt;/tt&gt; où &lt;tt&gt;sdX&lt;/tt&gt; est le bon périphérique pour votre clef usb&lt;/li&gt;&lt;li&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;faites très attention de ne pas vous tromper de périphérique lors de la commande dd&lt;/span&gt;. Si vous n'avez que des disques PATA, la clef USB sera probablement le périphérique /dev/sda. Mais si vous avez des disques SCSI ou SATA, le périphérique /dev/sda est votre premier disque dur ! Votre clef USB sera quelquechose comme /dev/sdb ou /dev/sdc ou /dev/sdd, etc... &lt;span style="color: rgb(255, 0, 0);"&gt;N'allez pas écrire binary.img sur votre disque dur, vous perdriez toutes vos données ! &lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;copier le binary.img sur ma clef USB prend environ 10 minutes (mais c'est une clef de marque &lt;a href="http://peakhardware.com/"&gt;Peak&lt;/a&gt;, ce n'est pas très performant...)&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4044876327179366711?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4044876327179366711/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4044876327179366711' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4044876327179366711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4044876327179366711'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/comment-crer-un-systme-debian-live-pour.html' title='Comment créer un système Debian Live pour une clef USB'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8777123405169217612</id><published>2008-02-02T14:21:00.000+01:00</published><updated>2008-02-02T16:24:07.990+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerPC'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><title type='text'>Une commande Mac OS X peu connue: machine</title><content type='html'>Il y a quelques jours &lt;a href="http://pierrebauduin.blogspot.com/2008/01/une-commande-mac-os-x-peu-connue-arch.html"&gt;je vous parlais de la commande arch de Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Voyons aujourd'hui une autre commande peu connue, la commande machine.&lt;br /&gt;&lt;br /&gt;Cette commande est un peu similaire à la commande arch dont je vous parlais l'autre fois. En fait la commande machine affiche le type de machine sur laquelle &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; tourne.&lt;br /&gt;&lt;br /&gt;Attention, l'architecture et le type de machine, ce n'est pas la même chose !&lt;br /&gt;&lt;br /&gt;L'architecture, donnée par la commande arch, est ppc, ppc64, i386 ou x86_64.&lt;br /&gt;&lt;br /&gt;Le type de machine, donnée par la commande machine, indique avec précision le type de processeur.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Exemple avec Mac OS X Tiger sur un Power Macintosh G3 Blue and white:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;[pierre@blueandwhite] /Users/pierre&gt;machine&lt;br /&gt;ppc750&lt;/pre&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Exemple avec Mac OS X Léopard sur un iMac Intel 20-inch:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;[pierre@albert] /Users/pierre&gt;machine&lt;br /&gt;i486&lt;/pre&gt;&lt;br /&gt;Voyons les pages de manuel de cette commande machine:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Mac OS X Tiger sur PowerPC:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;MACHINE(1)                BSD General Commands Manual               MACHINE(1)&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;    machine -- print machine type&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;    machine&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;    The machine command displays the machine type.&lt;br /&gt;&lt;br /&gt;SEE ALSO&lt;br /&gt;    make(1)&lt;br /&gt;&lt;br /&gt;HISTORY&lt;br /&gt;    The machine command is currently under development.&lt;br /&gt;&lt;br /&gt;BSD                              July 26, 1991                             BSD&lt;/pre&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Mac OS X Léopard sur Intel:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;MACHINE(1)                BSD General Commands Manual               MACHINE(1)&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;    machine -- print machine type&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;    machine&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;    The machine command displays the machine type.&lt;br /&gt;&lt;br /&gt;SEE ALSO&lt;br /&gt;    arch(1), make(1)&lt;br /&gt;&lt;br /&gt;HISTORY&lt;br /&gt;    The machine command is currently under development.&lt;br /&gt;&lt;br /&gt;BSD                              July 26, 1991                             BSD&lt;/pre&gt;... on constatera au passage que cette commande est toujours "&lt;tt&gt;currently under development&lt;/tt&gt;", étonnant :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8777123405169217612?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8777123405169217612/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8777123405169217612' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8777123405169217612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8777123405169217612'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/02/une-commande-mac-os-x-peu-connue.html' title='Une commande Mac OS X peu connue: machine'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4036009459760244096</id><published>2008-01-30T14:00:00.000+01:00</published><updated>2008-01-30T22:53:34.234+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerPC'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Une commande Unix / Linux / Mac OS X peu connue: arch</title><content type='html'>Voyons aujourd'hui une commande &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; peu connue: il s'agit de la commande arch.&lt;br /&gt;&lt;br /&gt;Cette commande renvoie l'architecture de la machine.&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;Le résultat peut être:&lt;/span&gt;&lt;br /&gt;&lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;li&gt;ppc  pour un Apple Macintosh basé sur un processeur PowerPC 32 bits (G3, G4, G5)&lt;/li&gt;&lt;li&gt;ppc64  pour un Apple Macintosh basé sur un processeur PowerPC  64 bits (G5)&lt;/li&gt;&lt;li&gt;i386 pour un Apple Macintosh basé sur un processeur x86 (Intel) 32 bits&lt;br /&gt;&lt;/li&gt;&lt;li&gt;x86_64 pour un Apple Macintosh basé sur un processeur x86_64 (Intel) 64 bits&lt;br /&gt;&lt;/li&gt;&lt;li&gt;??? (à vérifier - probablement arm) pour un iPhone, qui fait tourner Mac OS X sur un processeur arm.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Voyons les pages de manuel de cette commande arch:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; Tiger sur PowerPC:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ARCH(1)                   BSD General Commands Manual                  ARCH(1)&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;arch -- print architecture type&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;arch&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;The arch command displays the machine's architecture type.&lt;br /&gt;&lt;br /&gt;SEE ALSO&lt;br /&gt;machine(1)&lt;br /&gt;&lt;br /&gt;Mac OS                          August 20, 1997                         Mac OS&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; Leopard sur Intel:&lt;/span&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;ARCH(1)                   BSD General Commands Manual                  ARCH(1)&lt;br /&gt;&lt;br /&gt;NAME&lt;br /&gt;arch -- print architecture type or run selected architecture of a univer-&lt;br /&gt;sal binary&lt;br /&gt;&lt;br /&gt;SYNOPSIS&lt;br /&gt;arch&lt;br /&gt;arch [-h] [[-arch_name | -arch arch_name]...] prog [args ...]&lt;br /&gt;&lt;br /&gt;DESCRIPTION&lt;br /&gt;The arch command with no arguments, displays the machine's architecture&lt;br /&gt;type.&lt;br /&gt;&lt;br /&gt;The other use of the arch command it to run a selected architecture of a&lt;br /&gt;universal binary.  A universal binary contains code that can run on dif-&lt;br /&gt;ferent architectures.  By default, the operating system will select the&lt;br /&gt;architecture that most closely matches the processor type.  This means&lt;br /&gt;that an intel architecture is selected on intel processors and a powerpc&lt;br /&gt;architecture is selected on powerpc processors.  A 64-bit architecuture&lt;br /&gt;is preferred over a 32-bit architecture on a 64-bit processor, while only&lt;br /&gt;32-bit architectures can run on a 32-bit processor.&lt;br /&gt;&lt;br /&gt;When the most natural architecture is unavailable, the operating system&lt;br /&gt;will try to pick another architecture.  On 64-bit processors, a 32-bit&lt;br /&gt;architecture is tried.  If this is also unavailable, the operating system&lt;br /&gt;on an intel processor will try running a 32-bit powerpc architecture.&lt;br /&gt;Otherwise, no architecture is run, and an error results.&lt;br /&gt;&lt;br /&gt;The arch command can be use to alter the operating system's normal selec-&lt;br /&gt;tion order.  The most common use is to select the 32-bit architecture on&lt;br /&gt;a 64-bit processor, even if a 64-bit architecture is available.&lt;br /&gt;&lt;br /&gt;The -h option prints a usage message and exits.&lt;br /&gt;&lt;br /&gt;The arch_name argument must be one of the currently supported architec-&lt;br /&gt;tures:&lt;br /&gt;&lt;br /&gt;    i386    32-bit intel&lt;br /&gt;&lt;br /&gt;    ppc     32-bit powerpc&lt;br /&gt;&lt;br /&gt;    ppc64   64-bit powerpc&lt;br /&gt;&lt;br /&gt;    x86_64  64-bit intel&lt;br /&gt;&lt;br /&gt;Either prefix the architecture with a hyphen, or (for compatibility with&lt;br /&gt;other commands), use -arch followed by the architecture.&lt;br /&gt;&lt;br /&gt;If more than one architecture is specified, the operating system will try&lt;br /&gt;each one in order, skipping an architecture that is not supported on the&lt;br /&gt;current processor, or is unavailable in the universal binary.&lt;br /&gt;&lt;br /&gt;The prog argument is the command to run, followed by any arguments to&lt;br /&gt;pass to the command.  It can be a full or partial path, while a lone name&lt;br /&gt;will be lookup in the user's command search path.&lt;br /&gt;&lt;br /&gt;If no architectures are specified on the command line, the arch command&lt;br /&gt;takes the basename of the prog argument and searches for the first prop-&lt;br /&gt;erty list file with that basename and the .plist suffix, in the&lt;br /&gt;archSettings sub-directory in each of the standard domains, in the fol-&lt;br /&gt;lowing order:&lt;br /&gt;&lt;br /&gt;    ~/Library/archSettings         User settings&lt;br /&gt;&lt;br /&gt;    /Library/archSettings          Local settings&lt;br /&gt;&lt;br /&gt;    /Network/Library/archSettings  Network settings&lt;br /&gt;Either prefix the architecture with a hyphen, or (for compatibility with&lt;br /&gt;other commands), use -arch followed by the architecture.&lt;br /&gt;&lt;br /&gt;If more than one architecture is specified, the operating system will try&lt;br /&gt;each one in order, skipping an architecture that is not supported on the&lt;br /&gt;current processor, or is unavailable in the universal binary.&lt;br /&gt;&lt;br /&gt;The prog argument is the command to run, followed by any arguments to&lt;br /&gt;pass to the command.  It can be a full or partial path, while a lone name&lt;br /&gt;will be lookup in the user's command search path.&lt;br /&gt;&lt;br /&gt;If no architectures are specified on the command line, the arch command&lt;br /&gt;takes the basename of the prog argument and searches for the first prop-&lt;br /&gt;erty list file with that basename and the .plist suffix, in the&lt;br /&gt;archSettings sub-directory in each of the standard domains, in the fol-&lt;br /&gt;lowing order:&lt;br /&gt;&lt;br /&gt;    ~/Library/archSettings         User settings&lt;br /&gt;&lt;br /&gt;    /Library/archSettings          Local settings&lt;br /&gt;&lt;br /&gt;    /Network/Library/archSettings  Network settings&lt;br /&gt;Either prefix the architecture with a hyphen, or (for compatibility with&lt;br /&gt;other commands), use -arch followed by the architecture.&lt;br /&gt;&lt;br /&gt;If more than one architecture is specified, the operating system will try&lt;br /&gt;each one in order, skipping an architecture that is not supported on the&lt;br /&gt;current processor, or is unavailable in the universal binary.&lt;br /&gt;&lt;br /&gt;The prog argument is the command to run, followed by any arguments to&lt;br /&gt;pass to the command.  It can be a full or partial path, while a lone name&lt;br /&gt;will be lookup in the user's command search path.&lt;br /&gt;&lt;br /&gt;If no architectures are specified on the command line, the arch command&lt;br /&gt;takes the basename of the prog argument and searches for the first prop-&lt;br /&gt;erty list file with that basename and the .plist suffix, in the&lt;br /&gt;archSettings sub-directory in each of the standard domains, in the fol-&lt;br /&gt;lowing order:&lt;br /&gt;&lt;br /&gt;    ~/Library/archSettings         User settings&lt;br /&gt;&lt;br /&gt;    /Library/archSettings          Local settings&lt;br /&gt;&lt;br /&gt;    /Network/Library/archSettings  Network settings&lt;br /&gt;&lt;br /&gt;    /System/Library/archSettings   System settings&lt;br /&gt;&lt;br /&gt;This property list contains the architecture order preferences, as well&lt;br /&gt;as the full path to the real executable.  For examples of the property&lt;br /&gt;list format, look at the files in /System/Library/archSettings.&lt;br /&gt;&lt;br /&gt;Example&lt;br /&gt;On an intel processor:&lt;br /&gt;&lt;br /&gt;    % perl -MConfig -e 'printf "%s\n", $Config{byteorder}'&lt;br /&gt;    1234&lt;br /&gt;&lt;br /&gt;shows the intel little endian byte order, while:&lt;br /&gt;&lt;br /&gt;    % arch -ppc perl -MConfig -e 'printf "%s\n", $Config{byteorder}'&lt;br /&gt;    4321&lt;br /&gt;&lt;br /&gt;runs the powerpc architecture, and displays big endian byte order.&lt;br /&gt;&lt;br /&gt;Making links to the arch command&lt;br /&gt;When a link is made to arch command with a different name, that name is&lt;br /&gt;used to find the corresponding property list file.  Thus, other commands&lt;br /&gt;can be wrapped so that they have custom architecture selection order.&lt;br /&gt;Because of some internal logic in the code, hard links to the arch com-&lt;br /&gt;mand may not work quite right.  It is best to avoid using hard links, and&lt;br /&gt;only use symbolic links to the arch command.&lt;br /&gt;&lt;br /&gt;Environment&lt;br /&gt;The environment variable ARCHPREFERENCE can be used to provide architec-&lt;br /&gt;ture order preferences.  It is checked before looking for the correspond-&lt;br /&gt;ing property list file.&lt;br /&gt;&lt;br /&gt;The value of the environment variable ARCHPREFERENCE is composed of one&lt;br /&gt;or more specifiers, separated by semicolons.  A specifier is made up of&lt;br /&gt;one, two or three fields, separated by colons.  Architectures specified&lt;br /&gt;in order, are separated by commas and make up the last (mandatory) field.&lt;br /&gt;The first field, if specified, is a name of a program, which selects this&lt;br /&gt;specifier if that name matches the program name in question.  If the name&lt;br /&gt;field is empty or there is no name field, the specifier matches any pro-&lt;br /&gt;gram name.  Thus, ordering of specifiers is important, and the one with&lt;br /&gt;no name should be last.&lt;br /&gt;&lt;br /&gt;When the arch command is called directly, the prog name provides the path&lt;br /&gt;information to the executable (possibly via the command search path).&lt;br /&gt;When a name is specified in a ARCHPREFERENCE specifier, the path informa-&lt;br /&gt;tion can alternately be specified as a second field following the name.&lt;br /&gt;When the arch command is called indirectly via a link, this path informa-&lt;br /&gt;tion must be specified.  If not specified as a second field in a speci-&lt;br /&gt;fier, the executable path will be looked up in the corresponding property&lt;br /&gt;list file.&lt;br /&gt;&lt;br /&gt;Example ARCHPREFERENCE Values&lt;br /&gt;ppc,i386,ppc64,x86_64&lt;br /&gt;    A specifier that matches any name.&lt;br /&gt;&lt;br /&gt;foo:ppc,i386,ppc64,x86_64&lt;br /&gt;    A specifier that matches the program named foo (the full executable&lt;br /&gt;    path is in the foo.plist file).&lt;br /&gt;&lt;br /&gt;foo:/op/bin/boo:ppc,i386,ppc64,x86_64&lt;br /&gt;    A specifier with all fields specified.&lt;br /&gt;&lt;br /&gt;baz:ppc,i386;i386,ppc&lt;br /&gt;    A specifier for baz and a second specifier that would match any&lt;br /&gt;    other name.&lt;br /&gt;&lt;br /&gt;BUGS&lt;br /&gt;BUGS&lt;br /&gt;Running the arch command on an interpreter script may not work if the&lt;br /&gt;interpreter is a link to the arch command, especially if a 64-bit archi-&lt;br /&gt;tecture is specified (since the arch command is 2-way universal, 32-bit&lt;br /&gt;only).&lt;br /&gt;&lt;br /&gt;SEE ALSO&lt;br /&gt;machine(1)&lt;br /&gt;&lt;br /&gt;Mac OS X                       November 12, 2006                      Mac OS X&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;Il est à noter que sous &lt;a href="http://en.wikipedia.org/wiki/Debian"&gt;Debian GNU/Linux,&lt;/a&gt; la commande arch existe dans &lt;a href="http://www.de.debian.org/releases/etch/"&gt;Debian GNU/Linux 4.0 "etch"&lt;/a&gt;, mais a disparu de &lt;a href="http://www.de.debian.org/releases/lenny/"&gt;Debian GNU/Linux "lenny"&lt;/a&gt;, car elle est considérée "obsolète". Si vous en avez malgré tout besoin, utilisez la commande &lt;tt&gt;uname -m&lt;/tt&gt;. Il vous suffit de créer un petit shell script &lt;tt&gt;/bin/arch&lt;/tt&gt; du genre:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;#!/bin/sh&lt;br /&gt;#&lt;br /&gt;# Remplace la commande arch&lt;br /&gt;# Renvoie l'architecture de la machine&lt;br /&gt;#&lt;br /&gt;# Pierre Bauduin&lt;br /&gt;# Le 24 décembre 2007&lt;br /&gt;#&lt;br /&gt;/bin/uname -m&lt;/pre&gt;&lt;br /&gt;Certains distributions Linux ont la commande arch, d'autres ne l'ont pas.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Distributions Linux qui ont la commande arch: &lt;a href="http://www.de.debian.org/releases/etch/"&gt;Debian GNU/Linux 4.0 "etch"&lt;/a&gt;, &lt;a href="http://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Slackware"&gt;Slackware&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Arch_Linux"&gt;Arch Linux&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/OpenSUSE"&gt;OpenSUSE&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Distributions Linux qui n'ont pas la commande arch: &lt;a href="http://www.de.debian.org/releases/lenny/"&gt;Debian GNU/Linux "lenny"&lt;/a&gt;, &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;br /&gt;&lt;li&gt;Autres systèmes qui ont la commande arch: &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;li&gt;Autres systèmes qui n'ont pas la commande arch: &lt;a href="http://www.freebsd.org/"&gt;FreeBSD&lt;/a&gt;, &lt;a href="http://www.pcbsd.org/"&gt;PC-BSD&lt;/a&gt;&lt;br /&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4036009459760244096?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4036009459760244096/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4036009459760244096' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4036009459760244096'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4036009459760244096'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/une-commande-mac-os-x-peu-connue-arch.html' title='Une commande Unix / Linux / Mac OS X peu connue: arch'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-5285265091331228420</id><published>2008-01-25T22:10:00.000+01:00</published><updated>2008-01-26T00:03:41.049+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><category scheme='http://www.blogger.com/atom/ns#' term='slashdot'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='X11'/><title type='text'>Pourquoi Apple n'a pas choisi X11 pour l'affichage dans Mac OS X</title><content type='html'>Pour l'affichage dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;,  n' a donc pas choisi d'utiliser &lt;a href="http://en.wikipedia.org/wiki/X11"&gt;X11&lt;/a&gt; qui est majoritairement utilisé sous &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;, mais a développé sa propre technologie appelée &lt;a href="http://en.wikipedia.org/wiki/Quartz_%28graphics_layer%29"&gt;Quartz&lt;/a&gt;.Ce &lt;a href="http://developers.slashdot.org/comments.pl?sid=75257&amp;amp;cid=6734612"&gt;commentaire sur slashdot&lt;/a&gt; nous explique pourquoi et indique aussi que &lt;a href="http://en.wikipedia.org/wiki/Quartz_%28graphics_layer%29"&gt;Quartz&lt;/a&gt; est en partie basé sur &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt;. qui utilisait &lt;a href="http://en.wikipedia.org/wiki/Display_Postscript"&gt;Display Postscript&lt;/a&gt;, une technologie basée en gros sur le même principe...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-5285265091331228420?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/5285265091331228420/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=5285265091331228420' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5285265091331228420'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5285265091331228420'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/pourquoi-apple-na-pas-choisi-x11-pour.html' title='Pourquoi Apple n&apos;a pas choisi X11 pour l&apos;affichage dans Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-4174637658494226917</id><published>2008-01-24T10:00:00.000+01:00</published><updated>2008-01-24T10:27:15.033+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><category scheme='http://www.blogger.com/atom/ns#' term='Steve Jobs'/><title type='text'>Voyagons dans le temps: video: Steve Jobs présente NextStep 3.0</title><content type='html'>Voici une vidéo de 1992 où &lt;a href="http://en.wikipedia.org/wiki/Steve_Jobs"&gt;Steve Jobs&lt;/a&gt; nous présente &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt; 3.0:&lt;br /&gt;&lt;object height="355" width="425"&gt;&lt;param name="movie" value="http://www.youtube.com/v/j02b8Fuz73A&amp;amp;rel=1"&gt;&lt;param name="wmode" value="transparent"&gt;&lt;embed src="http://www.youtube.com/v/j02b8Fuz73A&amp;amp;rel=1" type="application/x-shockwave-flash" wmode="transparent" height="355" width="425"&gt;&lt;/embed&gt;&lt;/object&gt;&lt;br /&gt;&lt;br /&gt;Remarquez par exemple que lorsque l'on déplace une fenêtre contenant une image, on ne voit pas juste les bords se déplacer, mais toute la fenêtre se déplace de manière très fluide. A notre époque c'est banal, mais cette vidéo date de fin 1992. A cette époque ni un PC ni un Macintosh ne savaient le faire. Les seules machines à pouvoir le faire étaient probablement des &lt;a href="http://fr.wikipedia.org/wiki/Station_de_travail"&gt;stations de travail&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Sun_Microsystems"&gt;Sun&lt;/a&gt; ou &lt;a href="http://en.wikipedia.org/wiki/Silicon_Graphics"&gt;Silicon Graphics&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-4174637658494226917?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/4174637658494226917/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=4174637658494226917' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4174637658494226917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/4174637658494226917'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/voyagons-dans-le-temps-video-steve-jobs.html' title='Voyagons dans le temps: video: Steve Jobs présente NextStep 3.0'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2017846507690306085</id><published>2008-01-21T10:10:00.005+01:00</published><updated>2008-11-16T15:29:05.959+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='Linux'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='RHEL'/><category scheme='http://www.blogger.com/atom/ns#' term='Solaris'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Debian GNU/Linux'/><title type='text'>Une commande Unix/Linux peu connue: who -b</title><content type='html'>Comme vous le savez probablement, la célèbre commande &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;uptime&lt;/span&gt; vous permet de savoir depuis combien de temps une machine &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;/&lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;Linux&lt;/a&gt; est "up" c'est à dire "en service".&lt;br /&gt;&lt;br /&gt;L'uptime d'une machine est généralement un bon indicateur de la stabilité de son système d'exploitation.&lt;br /&gt;&lt;br /&gt;Cependant, il est peut être encore plus utile de savoir quand une machine a redémarré pour la dernière fois (date et heure précise). Ceci est particulièrement utile sur des serveurs au bureau. Connaître la date et heure exacte du dernier redémarrage est un bon indice pour déterminer la cause d'un redémarrage inopiné. Par exemple, qui était "de service" ce jour là à cette heure là ? Est-ce la nettoyeuse qui a débranché le serveur pour brancher son aspirateur ? Il suffit de taper:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;who -b&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Exemple sous Debian GNU/Linux:&lt;br /&gt;&lt;pre&gt;[pbn@cobra] /home/pbn&gt;who -b&lt;br /&gt;system boot  2007-12-04 08:42&lt;/pre&gt;Exemple sous Solaris:&lt;pre&gt;[pbn@fire] /export/home/pbn&gt;who -b&lt;br /&gt; .       system boot  Nov  8 10:55&lt;/pre&gt;Ceci fonctionne sur &lt;a href="http://en.wikipedia.org/wiki/RHEL"&gt;Red Hat Enterprise Linux&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Debian"&gt;Debian GNU/Linux&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, et &lt;a href="http://en.wikipedia.org/wiki/Solaris_%28operating_system%29"&gt;Solaris&lt;/a&gt;, mais pas sous &lt;a href="http://en.wikipedia.org/wiki/FreeBSD"&gt;FreeBSD&lt;/a&gt; ni &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2017846507690306085?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2017846507690306085/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2017846507690306085' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2017846507690306085'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2017846507690306085'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/une-commande-unixlinux-peu-connue-who-b.html' title='Une commande Unix/Linux peu connue: who -b'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6147423166442190598</id><published>2008-01-17T22:04:00.000+01:00</published><updated>2008-01-27T16:14:59.253+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mach-O'/><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='magic number'/><title type='text'>Les fat binaries sous Mac OS X: la commande lipo</title><content type='html'>Dans un &lt;a href="http://pierrebauduin.blogspot.com/2007/12/compiler-un-fat-binary-sur-un-imac.html"&gt;post précédent&lt;/a&gt; je vous expliquais comment créer des "&lt;span style="color: rgb(51, 51, 255);"&gt;fat binaries&lt;/span&gt;" sous Mac OS X.&lt;br /&gt;&lt;br /&gt;Je pars de mon &lt;a href="http://pierre.baudu.in/files/hello.c"&gt;petit programme hello.c&lt;/a&gt;. Il suffit en bref d'exécuter gcc avec certains paramètres:&lt;br /&gt;&lt;pre&gt;[pierre@albert] /Users/pierre/Documents/source&gt;gcc -arch i386 -arch ppc -arch ppc64 -o hello hello.c&lt;/pre&gt;La commande &lt;span style="color: rgb(51, 51, 255);"&gt;file&lt;/span&gt; nous indique bien qu'il y a trois exécutables dans ce &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;fichier Mach-O&lt;/a&gt;:&lt;br /&gt;&lt;pre&gt;[pierre@albert] /Users/pierre/Documents/source&gt;file hello&lt;br /&gt;hello: Mach-O universal binary with 3 architectures&lt;br /&gt;hello (for architecture i386):    Mach-O executable i386&lt;br /&gt;hello (for architecture ppc7400):    Mach-O executable ppc&lt;br /&gt;hello (for architecture ppc64):    Mach-O 64-bit executable ppc64&lt;/pre&gt;La commande otool -f nous est aussi utile, elle nous indique le "magic number" des "fat binaries":&lt;br /&gt;&lt;pre&gt;[pierre@albert] 18:56 /Users/pierre/Documents/source&gt;otool -f hello&lt;br /&gt;Fat headers&lt;br /&gt;fat_magic 0xcafebabe&lt;br /&gt;nfat_arch 3&lt;br /&gt;architecture 0&lt;br /&gt;  cputype 7&lt;br /&gt;  cpusubtype 3&lt;br /&gt;  capabilities 0x0&lt;br /&gt;  offset 4096&lt;br /&gt;  size 12588&lt;br /&gt;  align 2^12 (4096)&lt;br /&gt;architecture 1&lt;br /&gt;  cputype 18&lt;br /&gt;  cpusubtype 10&lt;br /&gt;  capabilities 0x0&lt;br /&gt;  offset 20480&lt;br /&gt;  size 8508&lt;br /&gt;  align 2^12 (4096)&lt;br /&gt;architecture 2&lt;br /&gt;  cputype 16777234&lt;br /&gt;  cpusubtype 0&lt;br /&gt;  capabilities 0x80&lt;br /&gt;  offset 32768&lt;br /&gt;  size 8552&lt;br /&gt;  align 2^12 (4096)&lt;/pre&gt;&lt;br /&gt;Voici maintenant le résultat de la commande &lt;span style="color: rgb(51, 51, 255);"&gt;lipo&lt;/span&gt;:&lt;br /&gt;&lt;pre&gt;[pierre@albert] /Users/pierre/Documents/source&gt;lipo -detailed_info hello&lt;br /&gt;Fat header in: hello&lt;br /&gt;fat_magic 0xcafebabe&lt;br /&gt;nfat_arch 3&lt;br /&gt;architecture i386&lt;br /&gt;cputype CPU_TYPE_I386&lt;br /&gt;cpusubtype CPU_SUBTYPE_I386_ALL&lt;br /&gt;offset 4096&lt;br /&gt;size 12588&lt;br /&gt;align 2^12 (4096)&lt;br /&gt;architecture ppc7400&lt;br /&gt;cputype CPU_TYPE_POWERPC&lt;br /&gt;cpusubtype CPU_SUBTYPE_POWERPC_7400&lt;br /&gt;offset 20480&lt;br /&gt;size 8508&lt;br /&gt;align 2^12 (4096)&lt;br /&gt;architecture ppc64&lt;br /&gt;cputype CPU_TYPE_POWERPC64&lt;br /&gt;cpusubtype CPU_SUBTYPE_POWERPC_ALL&lt;br /&gt;offset 32768&lt;br /&gt;size 8552&lt;br /&gt;align 2^12 (4096)&lt;br /&gt;&lt;/pre&gt;Eh bien, c'est intéressant, je vois de manière détaillée que ce fichier hello contient trois exécutables, et j'obtiens l'offset de chacun.&lt;br /&gt;&lt;br /&gt;... il est amusant de constater que le "magic number" pour les "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;" est &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;0xcafebabe&lt;/span&gt;. C'est en fait le même "magic number" que celui du &lt;a href="http://en.wikipedia.org/wiki/Java_bytecode"&gt;Java bytecode&lt;/a&gt;, c'est à dire des fichiers .class en &lt;a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;Java&lt;/a&gt;. Souvenons-nous que le nom "&lt;a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;Java&lt;/a&gt;" a été choisi car son créateur, &lt;a href="http://en.wikipedia.org/wiki/James_Gosling" title="James Gosling"&gt;James Gosling&lt;/a&gt;, est un grand consommateur de &lt;a href="http://fr.wikipedia.org/wiki/Caf%C3%83%C2%A9"&gt;café&lt;/a&gt;, sans quoi &lt;a href="http://en.wikipedia.org/wiki/Java_%28programming_language%29"&gt;Java&lt;/a&gt; se serait appelé &lt;a href="http://en.wikipedia.org/wiki/Oak"&gt;Oak&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;... au fait, pourquoi cette commande s'appelle-t-elle &lt;span style="color: rgb(51, 51, 255);"&gt;lipo&lt;/span&gt; ? Peut être une jeu de mot sur les "fat binaries" et la liposuccion ("&lt;a href="http://en.wikipedia.org/wiki/Liposuction"&gt;liposuction&lt;/a&gt;" en anglais) ?&lt;br /&gt;&lt;br /&gt;Vous pouvez aussi consulter ce &lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html"&gt;document officiel Apple sur la structure des exécutables Mach-O&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6147423166442190598?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6147423166442190598/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6147423166442190598' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6147423166442190598'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6147423166442190598'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/les-fat-binaries-sous-mac-os-x-la.html' title='Les fat binaries sous Mac OS X: la commande lipo'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-90125158126370568</id><published>2008-01-16T20:40:00.000+01:00</published><updated>2008-01-17T23:21:58.367+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Panther'/><category scheme='http://www.blogger.com/atom/ns#' term='FreeBSD'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='Jaguar'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='tcsh'/><title type='text'>Pourquoi le shell par défaut de Mac OS X est bash et non plus tcsh</title><content type='html'>Jusqu'à la version &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_v10.2"&gt;10.2 (Jaguar)&lt;/a&gt; de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, le &lt;a href="http://en.wikipedia.org/wiki/Shell_%28computing%29"&gt;shell&lt;/a&gt; par défaut était &lt;a href="http://en.wikipedia.org/wiki/Tcsh"&gt;tcsh&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Depuis la version &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_v10.3"&gt;10.3 (Panther)&lt;/a&gt; de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, sortie le 24 octobre 2003, le &lt;a href="http://en.wikipedia.org/wiki/Shell_%28computing%29"&gt;shell&lt;/a&gt; par défaut est &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Pourquoi ?&lt;br /&gt;&lt;br /&gt;De nombreuses explications contradictoires circulent.&lt;br /&gt;&lt;br /&gt;Une des plus connues est qu'&lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; aurait voulu faciliter le passage des utilisateurs &lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;Linux&lt;/a&gt; à &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;. En effet, sur la plupart des &lt;a href="http://en.wikipedia.org/wiki/Linux_distribution"&gt;distributions Linux&lt;/a&gt;, le &lt;a href="http://en.wikipedia.org/wiki/Shell_%28computing%29"&gt;shell&lt;/a&gt; par défaut est &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Par contre, dans &lt;a href="http://en.wikipedia.org/wiki/FreeBSD"&gt;FreeBSD&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/PC-BSD"&gt;PC-BSD&lt;/a&gt;, le &lt;a href="http://en.wikipedia.org/wiki/Shell_%28computing%29"&gt;shell&lt;/a&gt; par défaut est &lt;a href="http://en.wikipedia.org/wiki/Tcsh"&gt;tcsh&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;La vérité est tout autre: la raison principale du passage de &lt;a href="http://en.wikipedia.org/wiki/Tcsh"&gt;tcsh&lt;/a&gt; à &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt; est que &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt; supporte complètement l'&lt;a href="http://en.wikipedia.org/wiki/Unicode"&gt;Unicode&lt;/a&gt;. Le support &lt;a href="http://en.wikipedia.org/wiki/Unicode"&gt;Unicode&lt;/a&gt; intéresse énormément &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; puisque un de ses objectifs est de supporter le plus de langues possibles dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Je peux vous assurer de la véracité de cette information, c'est &lt;a href="http://en.wikipedia.org/wiki/Jordan_Hubbard"&gt;Jordan Hubbard&lt;/a&gt; lui-même qui l'écrit &lt;a href="http://macslash.org/comments.pl?sid=3642&amp;amp;op=&amp;amp;threshold=0&amp;amp;commentsort=0&amp;amp;mode=thread&amp;amp;cid=47997"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/Jordan_Hubbard"&gt;Jordan Hubbard&lt;/a&gt; était un des développeurs principaux de &lt;a href="http://en.wikipedia.org/wiki/FreeBSD"&gt;FreeBSD&lt;/a&gt;, jusqu'à ce qu'il soit engagé par &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; en juillet 2001 comme "Director of UNIX Technology". Si quelqu'un connaît bien la partie &lt;a href="http://en.wikipedia.org/wiki/BSD"&gt;BSD&lt;/a&gt; de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, c'est bien lui.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-90125158126370568?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/90125158126370568/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=90125158126370568' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/90125158126370568'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/90125158126370568'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/pourquoi-le-shell-par-dfaut-de-mac-os-x.html' title='Pourquoi le shell par défaut de Mac OS X est bash et non plus tcsh'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-7870029139059956092</id><published>2008-01-15T20:12:00.000+01:00</published><updated>2008-11-19T02:24:06.039+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='MacBook Air'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><title type='text'>Le MacBook Air est sorti !</title><content type='html'>Cela faisait un certain temps que la rumeur était dans l'air (si j'ose dire), maintenant il est là: le MacBook Air:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4Pkux9IuP_c/R40GKWCXbMI/AAAAAAAAAhM/NEzKtFkQTR4/s1600-h/SteveJobsMacBookAir20080115.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_4Pkux9IuP_c/R40GKWCXbMI/AAAAAAAAAhM/NEzKtFkQTR4/s320/SteveJobsMacBookAir20080115.jpg" alt="" id="BLOGGER_PHOTO_ID_5155783923193048258" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Site officiel:&lt;br /&gt;&lt;a href="http://www.apple.com/macbookair/"&gt;http://www.apple.com/macbookair/&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Première "prise en main" par macrumors.com, regardez les photos, c'est impressionnant:&lt;br /&gt;&lt;a href="http://www.macrumors.com/2008/01/15/first-look-at-the-macbook-air/"&gt;http://www.macrumors.com/2008/01/15/first-look-at-the-macbook-air/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-7870029139059956092?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/7870029139059956092/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=7870029139059956092' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7870029139059956092'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/7870029139059956092'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/le-mac-book-air-est-sorti.html' title='Le MacBook Air est sorti !'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4Pkux9IuP_c/R40GKWCXbMI/AAAAAAAAAhM/NEzKtFkQTR4/s72-c/SteveJobsMacBookAir20080115.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-31555435279572232</id><published>2008-01-14T12:04:00.000+01:00</published><updated>2008-11-19T02:24:06.328+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><title type='text'>Voyagons dans le temps: NextStep</title><content type='html'>Comme je vous l'ai déjà expliqué dans &lt;a href="http://pierrebauduin.blogspot.com/2007/02/mac-os-x-nextstep-inside.html"&gt;plusieurs articles précédents&lt;/a&gt;, Mac OS X descend en droite ligne du système d'exploitation &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt; créé par &lt;a href="http://en.wikipedia.org/wiki/Steve_Jobs"&gt;Steve Jobs&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Voici une capture d'écran:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/R4pgr2CXbLI/AAAAAAAAAhE/feCE7wZ6lAM/s1600-h/NextStep_desktop.jpg"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/R4pgr2CXbLI/AAAAAAAAAhE/feCE7wZ6lAM/s320/NextStep_desktop.jpg" alt="" id="BLOGGER_PHOTO_ID_5155039029835033778" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Vous pouvez reconnaître des éléments que l'on retrouve dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; aujourd'hui:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;le &lt;a href="http://en.wikipedia.org/wiki/Dock_%28computing%29"&gt;Dock&lt;/a&gt;&lt;/li&gt;&lt;li&gt;la navigation en plusieurs colonnes dans le système de fichier (présent dans le &lt;a href="http://en.wikipedia.org/wiki/Finder_%28software%29"&gt;Finder&lt;/a&gt; actuel)&lt;br /&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-31555435279572232?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/31555435279572232/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=31555435279572232' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/31555435279572232'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/31555435279572232'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/voyagons-dans-le-temps-nextstep.html' title='Voyagons dans le temps: NextStep'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_4Pkux9IuP_c/R4pgr2CXbLI/AAAAAAAAAhE/feCE7wZ6lAM/s72-c/NextStep_desktop.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3291245994891979330</id><published>2008-01-12T19:42:00.001+01:00</published><updated>2008-11-19T02:24:06.755+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><category scheme='http://www.blogger.com/atom/ns#' term='Rhapsody'/><category scheme='http://www.blogger.com/atom/ns#' term='Steve Jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Voyagons dans le temps: Rhapsody Developer Release 2</title><content type='html'>Comme je vous l'ai expliqué dans &lt;a href="http://pierrebauduin.blogspot.com/2007/02/mac-os-x-nextstep-inside.html"&gt;un article précédent&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; descend de &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;En bref, &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt; était un système d'exploitation très avancé pour son époque, créé par &lt;a href="http://en.wikipedia.org/wiki/Steve_Jobs"&gt;Steve Jobs&lt;/a&gt; lorsqu'il a été "mis dehors" d'&lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; en 1985.&lt;br /&gt;&lt;br /&gt;Fin 1996, &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; est dans de sérieuses difficultés financières et technologiques, notamment suite aux échecs successifs de trois projets de "système d'exploitation d'une nouvelle génération": &lt;a href="http://en.wikipedia.org/wiki/Taligent"&gt;Taligent&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Copland_%28operating_system%29"&gt;Copland&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Gershwin_operating_system"&gt;Gershwin&lt;/a&gt;. &lt;a href="http://en.wikipedia.org/wiki/Steve_Jobs"&gt;Jobs&lt;/a&gt; retourne alors chez &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; et reçoit "carte blanche". Il prend rapidement "le taureau par les cornes": il fait racheter par &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; sa propre société &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt; le 20 décembre 1996. Commence alors le développement  d'un "système d'exploitation d'une nouvelle génération", mais un qui verra le jour ! Ce projet s'appelle &lt;a href="http://en.wikipedia.org/wiki/Rhapsody_%28operating_system%29"&gt;Rhapsody&lt;/a&gt;. Il est présenté pour la première fois à la Worldwide Developer Conference début 1997 (Rhapsody Developer Release 1) .  Ensuite en août 1997 sort la Rhapsody Developer Release 2. Regardez attentivement les quelques captures d'écran:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/R4kH_2CXbII/AAAAAAAAAgs/pBFRPelUmck/s1600-h/rhapsody-dr2-02.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/R4kH_2CXbII/AAAAAAAAAgs/pBFRPelUmck/s320/rhapsody-dr2-02.png" alt="" id="BLOGGER_PHOTO_ID_5154660041920834690" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;... ceci nous rappelle furieusement l'écran de login de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Regardez un peu ceci:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4kIVmCXbJI/AAAAAAAAAg0/4BxY15Wwys8/s1600-h/rhapsody-dr2-04.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4kIVmCXbJI/AAAAAAAAAg0/4BxY15Wwys8/s320/rhapsody-dr2-04.png" alt="" id="BLOGGER_PHOTO_ID_5154660415582989458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;... c'est sans aucun doute un système de type &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt; !&lt;br /&gt;&lt;br /&gt;Regardez celle-ci:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4kI-mCXbKI/AAAAAAAAAg8/DXh_eZV2wgg/s1600-h/rhapsody-dr2-10.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4kI-mCXbKI/AAAAAAAAAg8/DXh_eZV2wgg/s320/rhapsody-dr2-10.png" alt="" id="BLOGGER_PHOTO_ID_5154661119957626018" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;... eh oui, de nombreux éléments de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; viennent en droite ligne de &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt; et/ou de &lt;a href="http://en.wikipedia.org/wiki/Rhapsody_%28operating_system%29"&gt;Rhapsody&lt;/a&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3291245994891979330?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3291245994891979330/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3291245994891979330' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3291245994891979330'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3291245994891979330'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/voyagons-dans-le-temps-rhapsody.html' title='Voyagons dans le temps: Rhapsody Developer Release 2'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4Pkux9IuP_c/R4kH_2CXbII/AAAAAAAAAgs/pBFRPelUmck/s72-c/rhapsody-dr2-02.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2144319597466576717</id><published>2008-01-09T10:21:00.000+01:00</published><updated>2008-01-27T16:15:46.788+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><category scheme='http://www.blogger.com/atom/ns#' term='Mach-O'/><category scheme='http://www.blogger.com/atom/ns#' term='x86'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerPC'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='magic number'/><title type='text'>Comparons le header Mach-O sous powerpc et x86</title><content type='html'>Le format d'exécutable sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; est le format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;La commande &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;otool -h&lt;/span&gt; permet d'analyser le header d'un fichier au format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Je lis à la &lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html#//apple_ref/doc/uid/20001298-BAJHHFFF"&gt;page 12&lt;/a&gt; de "&lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html"&gt;Mac OS X ABI Mach-O File Format Reference&lt;/a&gt;" que le header du format Mach-O a toujours la structure suivante:&lt;br /&gt;&lt;pre style="color: rgb(51, 51, 255);"&gt;struct mach_header&lt;br /&gt;{&lt;br /&gt;uint32_t magic;&lt;br /&gt;cpu_type_t cputype;&lt;br /&gt;cpu_subtype_t cpusubtype;&lt;br /&gt;uint32_t filetype;&lt;br /&gt;uint32_t ncmds;&lt;br /&gt;uint32_t sizeofcmds;&lt;br /&gt;uint32_t flags;&lt;br /&gt;};&lt;/pre&gt;&lt;br /&gt;Voyons le résultat de &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;otool -h&lt;/span&gt; sur un fichier &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt; bien connu (/bin/ls), mais sur deux architectures différentes:&lt;br /&gt;&lt;br /&gt;Mac OS X Leopard sur Intel (&lt;a href="http://en.wikipedia.org/wiki/x86"&gt;x86&lt;/a&gt;):&lt;br /&gt;&lt;pre style="color: rgb(51, 51, 255);"&gt;[pierre@albert] /Users/pierre&gt;otool -h /bin/ls&lt;br /&gt;/bin/ls:&lt;br /&gt;Mach header&lt;br /&gt;magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags&lt;br /&gt;0xfeedface       7          3  0x00          2    14       1304 0x00000085&lt;/pre&gt;&lt;br /&gt;Mac OS X Tiger sur PowerPC (&lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;powerpc&lt;/a&gt;):&lt;br /&gt;&lt;pre style="color: rgb(51, 51, 255);"&gt;[pierre@blueandwhite] /Users/pierre&gt;otool -h /bin/ls&lt;br /&gt;/bin/ls:&lt;br /&gt;Mach header&lt;br /&gt;magic cputype cpusubtype   filetype ncmds sizeofcmds      flags&lt;br /&gt;0xfeedface      18          0          2    11       1608 0x00000085&lt;/pre&gt;Regardez attentivement &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;cputype&lt;/span&gt;: c'est lui qui nous indique sur quelle architecture nous sommes.&lt;br /&gt;&lt;br /&gt;Voyez aussi la &lt;a href="http://developer.apple.com/documentation/Darwin/Reference/ManPages/man3/arch.3.html"&gt;page man de la commande arch&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;En fait, le format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt; est directement hérité de &lt;a href="http://en.wikipedia.org/wiki/NextStep"&gt;NextStep&lt;/a&gt;, qui au long de son existence a été disponible pour plusieurs architectures: &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/x86"&gt;x86&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/PA-RISC"&gt;PA-RISC&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/SPARC"&gt;SPARC&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2144319597466576717?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2144319597466576717/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2144319597466576717' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2144319597466576717'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2144319597466576717'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/comparons-le-header-mach-o-sous-powerpc.html' title='Comparons le header Mach-O sous powerpc et x86'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-3476302622487039444</id><published>2008-01-08T20:07:00.000+01:00</published><updated>2008-01-27T16:16:35.275+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Mach-O'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><category scheme='http://www.blogger.com/atom/ns#' term='magic number'/><title type='text'>"Magic number" dans les quatre premiers octets des fichiers au format Mach-O</title><content type='html'>Le format d'exécutable sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; est le format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Ce format a un certain nombre d'avantages, notamment la possibilité d'avoir des "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;", appelées "&lt;a href="http://en.wikipedia.org/wiki/Universal_binary"&gt;Universal Binaries&lt;/a&gt;" par Apple, d'ailleurs je vous en avais déjà parlé &lt;a href="http://pierrebauduin.blogspot.com/2007/12/comment-crer-un-universal-binary-sous.html"&gt;ici&lt;/a&gt; et &lt;a href="http://pierrebauduin.blogspot.com/2007/12/compiler-un-fat-binary-sur-un-imac.html"&gt;ici&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;La commande &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;otool -h&lt;/span&gt; permet d'analyser le header d'un fichier au format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;. Voyons le résultat sur un fichier &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt; bien connu (/bin/ls), et un autre fichier &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt; que j'ai compilé moi-même:&lt;br /&gt;&lt;pre&gt;[pierre@albert] /Users/pierre&gt;otool -h /bin/ls&lt;br /&gt;/bin/ls:&lt;br /&gt;Mach header&lt;br /&gt;magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags&lt;br /&gt;0xfeedface       7          3  0x00          2    14       1304 0x00000085&lt;br /&gt;[pierre@albert] /Users/pierre&gt;otool -h Documents/source/hello&lt;br /&gt;Documents/source/hello:&lt;br /&gt;Mach header&lt;br /&gt;magic cputype cpusubtype  caps    filetype ncmds sizeofcmds      flags&lt;br /&gt;0xfeedface       7          3  0x00          2    11        936 0x00000085&lt;br /&gt;&lt;/pre&gt;Il est amusant de constater que le "magic number" dans le header est &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;0xfeedface&lt;/span&gt;.&lt;br /&gt;En fait les quatre premiers octets de tout fichier au format &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt; sont toujours &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;0xfeedface &lt;/span&gt;ou &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;0xcefaedfe &lt;/span&gt;si vous lisez un fichier petit-boutiste (&lt;a href="http://en.wikipedia.org/wiki/Little-endian"&gt;little-endian&lt;/a&gt;) sur une machine grand-boutiste (&lt;a href="http://en.wikipedia.org/wiki/Big-endian"&gt;big-endian&lt;/a&gt;), ou l'inverse...&lt;br /&gt;&lt;br /&gt;Vous pouvez aussi consulter cette &lt;a href="http://developer.apple.com/documentation/DeveloperTools/Conceptual/MachORuntime/Reference/reference.html"&gt;documentation officielle Apple sur la structure des exécutables Mach-O&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-3476302622487039444?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/3476302622487039444/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=3476302622487039444' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3476302622487039444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/3476302622487039444'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/magic-number-dans-les-quatre-premiers.html' title='&quot;Magic number&quot; dans les quatre premiers octets des fichiers au format Mach-O'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8262603452621247045</id><published>2008-01-07T19:42:00.000+01:00</published><updated>2008-11-19T02:24:07.017+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='DNS'/><category scheme='http://www.blogger.com/atom/ns#' term='bash'/><category scheme='http://www.blogger.com/atom/ns#' term='Unix'/><category scheme='http://www.blogger.com/atom/ns#' term='bug'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Après avoir changé le nom d'une machine Mac OS X, l'ancien nom subsiste</title><content type='html'>Quelques jours après avoir mis en service mon iMac, je decide de changer le nom de la machine. Je lui avais d'abord donné comme nom imac, et je lui donne maintenant le nom albert.&lt;br /&gt;&lt;br /&gt;Pour changer le nom, évidemment j'utilise l'interface graphique. Il faut aller dans "&lt;span style="color: rgb(51, 51, 255);"&gt;Préférences Système &gt; Partage&lt;/span&gt;" (au passage, c'est un peu surprenant que le nom de la machine se trouve dans "Partage"), et je remplace &lt;span style="color: rgb(51, 51, 255);"&gt;imac&lt;/span&gt; par &lt;span style="color: rgb(51, 51, 255);"&gt;albert,&lt;/span&gt; regardez:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/R4JeemCXbGI/AAAAAAAAAgc/lvKBQfodxKg/s1600-h/mon_probleme_hostname_03.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/R4JeemCXbGI/AAAAAAAAAgc/lvKBQfodxKg/s320/mon_probleme_hostname_03.png" alt="" id="BLOGGER_PHOTO_ID_5152784803364826210" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Apparemment le nom a changé. Cependant, quand j'ouvre un Terminal.app, mon prompt est:&lt;br /&gt;&lt;pre&gt;[pierre@imac] /Users/pierre&gt;&lt;/pre&gt;D'où vient ce "imac" ? C'est la variable d'environnement &lt;span style="color: rgb(51, 51, 255);"&gt;$HOSTNAME&lt;/span&gt; dans &lt;a href="http://en.wikipedia.org/wiki/Bash"&gt;bash&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Vérifions le nom de la machine. Sous &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt; deux commandes me donnent le nom de la machine:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;hostname&lt;/span&gt; et &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;uname -n&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Allons-y:&lt;br /&gt;&lt;pre&gt;[pierre@imac] /Users/pierre&gt;hostname&lt;br /&gt;imac&lt;br /&gt;[pierre@imac] /Users/pierre&gt;uname -n&lt;br /&gt;imac&lt;/pre&gt;... eh bien ça alors, elle a encore l'ancien nom ?&lt;br /&gt;&lt;br /&gt;Je suis perplexe, et je décide de le faire "à la Windows": rebooter.&lt;br /&gt;&lt;br /&gt;Après le reboot, je vois à l'écran de login, en dessous de la pomme, que le nom de la machine est &lt;span style="color: rgb(51, 51, 255);"&gt;albert&lt;/span&gt;. Ensuite je me loggue, et je lance à nouveau &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;hostname&lt;/span&gt; et &lt;span style="color: rgb(51, 51, 255);font-family:courier new;" &gt;uname -n&lt;/span&gt;:&lt;br /&gt;&lt;pre&gt;[pierre@imac] /Users/pierre&gt;hostname&lt;br /&gt;imac&lt;br /&gt;[pierre@imac] /Users/pierre&gt;uname -n&lt;br /&gt;imac&lt;/pre&gt;Eh bien ça alors ?&lt;br /&gt;&lt;br /&gt;Je vais dans "&lt;span style="color: rgb(51, 51, 255);"&gt;Préférences Systèmes &gt; Partage&lt;/span&gt;"&lt;br /&gt;Et je vois:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4JiTWCXbHI/AAAAAAAAAgk/i3gdc8ZDXfo/s1600-h/mon_probleme_hostname_04.png"&gt;&lt;img style="cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R4JiTWCXbHI/AAAAAAAAAgk/i3gdc8ZDXfo/s320/mon_probleme_hostname_04.png" alt="" id="BLOGGER_PHOTO_ID_5152789008137809010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Que se passe-t-il ?&lt;br /&gt;&lt;br /&gt;... après quelques recherches, je me rends compte que ce nom "imac" persiste parceque mon serveur DNS contient toujours le nom "imac" pour l'adresse IP de cette machine.&lt;br /&gt;&lt;br /&gt;Donc en bref, quel que soit le nom que vous donnez à une machine Mac OS X dans "&lt;span style="color: rgb(51, 51, 255);"&gt;Préférences Systèmes &gt; Partage&lt;/span&gt;", elle va malgré tout contacter le serveur &lt;a href="http://en.wikipedia.org/wiki/Domain_name_system"&gt;DNS&lt;/a&gt; que vous avez configuré, et elle va prendre comme hostnome le nom correspondant au reverse &lt;a href="http://en.wikipedia.org/wiki/Domain_name_system"&gt;DNS&lt;/a&gt; de son adresse IP !&lt;br /&gt;&lt;br /&gt;Voilà qui est étonnant !&lt;br /&gt;&lt;br /&gt;Notez, c'est peut-être voulu...&lt;br /&gt;&lt;span style="font-style: italic;"&gt;"It's not a bug, it's a feature"&lt;/span&gt; comme disent certains...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8262603452621247045?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8262603452621247045/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8262603452621247045' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8262603452621247045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8262603452621247045'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/aprs-avoir-chang-le-nom-dune-machine_07.html' title='Après avoir changé le nom d&apos;une machine Mac OS X, l&apos;ancien nom subsiste'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_4Pkux9IuP_c/R4JeemCXbGI/AAAAAAAAAgc/lvKBQfodxKg/s72-c/mon_probleme_hostname_03.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2886800896923381056</id><published>2008-01-04T09:42:00.000+01:00</published><updated>2008-11-19T02:24:07.627+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CUPS'/><category scheme='http://www.blogger.com/atom/ns#' term='IPP'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='bug'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Imprimer à partir de Mac OS X sur une imprimante IPP:problème résolu !</title><content type='html'>Dans un &lt;a href="http://pierrebauduin.blogspot.com/2007/12/mac-os-x-lopard-problme-aprs-avoir-cr.html"&gt;post précédent je vous expliquais que je n'arrivais pas à imprimer sur une imprimante IPP à partir de Mac OS X Léopard&lt;/a&gt;. Après m'être gratté la tête un certain temps, j'ai fini par trouver la solution.&lt;br /&gt;&lt;br /&gt;Lorsque j'ajoute une imprimante dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; dans &lt;span style="color: rgb(51, 51, 255);"&gt;Préférences Systèmes &gt; Imprimantes et Fax&lt;/span&gt; et que je choisis la catégorie IP, j'ai l'écran suivant:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/R3u29mCXbAI/AAAAAAAAAfs/yjAQ2JnRqmQ/s1600-h/mon_probleme_imprimante_ipp_03.png"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/R3u29mCXbAI/AAAAAAAAAfs/yjAQ2JnRqmQ/s320/mon_probleme_imprimante_ipp_03.png" alt="" id="BLOGGER_PHOTO_ID_5150911768127040514" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Comme souvent avec &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, (je ne dis pas cela pour "passer la pommade" :) ), l'écran de configuration est clair et relativement intuitif. Dans &lt;span style="color: rgb(51, 51, 255);"&gt;"Adresse"&lt;/span&gt; j'entre donc l'adresse et le numéro de port, c'est à dire &lt;span style="color: rgb(51, 51, 255);"&gt;10.20.10.1:631&lt;/span&gt;, et dans &lt;span style="color: rgb(51, 51, 255);"&gt;"File d'attente"&lt;/span&gt; j'indique le nom de la file c'est à dire &lt;span style="color: rgb(51, 51, 255);"&gt;Claire&lt;/span&gt;. J'obtiens donc l'écran suivant:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/R3u3zWCXbBI/AAAAAAAAAf0/XzKiiiSLGFg/s1600-h/mon_probleme_imprimante_ipp_04.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/R3u3zWCXbBI/AAAAAAAAAf0/XzKiiiSLGFg/s320/mon_probleme_imprimante_ipp_04.png" alt="" id="BLOGGER_PHOTO_ID_5150912691545009170" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;... hélas, trois fois hélas, avec la configuration ci-dessus je n'imprimerai jamais rien sur mon imprimante Claire. Pourquoi ?&lt;br /&gt;Eh bien, en fait, j'ai fini par découvrir qu'il faut dire à &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; (c'est à dire au serveur &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;) d'imprimer non pas à l'adresse &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt; suivante:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ipp://10.20.10.1:631/Claire&lt;/span&gt;&lt;br /&gt;... mais bien à l'adresse &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt; suivante:&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;ipp://10.20.10.1:631/printers/Claire&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Or avec la configuration ci-dessus, je dis à &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; d'imprimer à l'adresse &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;ipp://10.20.10.1:631/Claire&lt;/span&gt;. La solution est donc de dire à &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; d'imprimer à l'adresse &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt; &lt;span style="color: rgb(51, 51, 255);"&gt;ipp://10.20.10.1:631/printers/Claire&lt;/span&gt;. Pour cela il faut remplir la fenêtre de configuration comme ci-dessous:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_4Pkux9IuP_c/R3u5gmCXbCI/AAAAAAAAAf8/xY65mF8OfRU/s1600-h/mon_probleme_imprimante_ipp_05.png"&gt;&lt;img style="cursor: pointer;" src="http://3.bp.blogspot.com/_4Pkux9IuP_c/R3u5gmCXbCI/AAAAAAAAAf8/xY65mF8OfRU/s320/mon_probleme_imprimante_ipp_05.png" alt="" id="BLOGGER_PHOTO_ID_5150914568445717538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Ce qui correspond à la configuration suivant dans &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt; sur ma machine &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_4Pkux9IuP_c/R3u6ZWCXbDI/AAAAAAAAAgE/Hz4cF31tJMY/s1600-h/mon_probleme_imprimante_ipp_06.png"&gt;&lt;img style="cursor: pointer;" src="http://2.bp.blogspot.com/_4Pkux9IuP_c/R3u6ZWCXbDI/AAAAAAAAAgE/Hz4cF31tJMY/s320/mon_probleme_imprimante_ipp_06.png" alt="" id="BLOGGER_PHOTO_ID_5150915543403293746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Et voilà, problème résolu !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2886800896923381056?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2886800896923381056/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2886800896923381056' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2886800896923381056'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2886800896923381056'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/imprimer-partir-de-mac-os-x-sur-une.html' title='Imprimer à partir de Mac OS X sur une imprimante IPP:problème résolu !'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_4Pkux9IuP_c/R3u29mCXbAI/AAAAAAAAAfs/yjAQ2JnRqmQ/s72-c/mon_probleme_imprimante_ipp_03.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8798417781793183189</id><published>2008-01-03T14:21:00.000+01:00</published><updated>2008-11-19T02:24:07.812+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Spotlight'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='iBook'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Mac OS X : Comment désactiver complètement Spotlight</title><content type='html'>Si comme moi &lt;a href="http://pierre.baudu.in/ibook/index.fr.html"&gt;vous utilisez Mac OS X Tiger sur un iBook G3 à 800 MHz avec 640 MB de RAM&lt;/a&gt;, vous pouvez améliorer les performances de votre machine en désactivant Spotlight. Voici comment faire:&lt;br /&gt;&lt;br /&gt;Attention, tout ceci est prévu pour &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt;, et je ne saurais garantir qu'il fonctionne avec d'autres versions...&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s1600-h/warning_120_105_avec_transparence.gif"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer;" src="http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s320/warning_120_105_avec_transparence.gif" alt="" id="BLOGGER_PHOTO_ID_5151243601595296850" border="0" /&gt;&lt;/a&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Attention vous allez travailler en ligne de commande avec l'utilisateur root. Soyez attentif...&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Tout d'abord devenez root en tapant sudo su - puis votre mot de passe.&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$ sudo su&lt;/code&gt;&lt;/pre&gt;Ensuite effectuez les commandes suivantes:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;&lt;br /&gt;# chmod 0000 /Library/Spotlight&lt;br /&gt;# chmod 0000 /System/Library/Spotlight&lt;br /&gt;# chmod 0000 /System/Library/CoreServices/Search.bundle&lt;br /&gt;# chmod 0000 /System/Library/PreferencePanes/Spotlight.prefPane&lt;br /&gt;# chmod 0000 /System/Library/Services/Spotlight.service&lt;br /&gt;# chmod 0000 /System/Library/Contextual Menu Items/SpotlightCM.plugin&lt;br /&gt;# chmod 0000 /System/Library/StartupItems/Metadata&lt;br /&gt;# chmod 0000 /usr/bin/mdimport&lt;br /&gt;# chmod 0000 /usr/bin/mdcheckschema&lt;br /&gt;# chmod 0000 /usr/bin/mdfind&lt;br /&gt;# chmod 0000 /usr/bin/mdls&lt;br /&gt;# chmod 0000 /usr/bin/mdutil&lt;br /&gt;# chmod 0000 /usr/bin/md&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Vous pouvez maintenant redémarrer votre machine&lt;br /&gt;Après le redémarrage, faites à nouveau:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;$ sudo su&lt;/code&gt;&lt;/pre&gt; et tapez votre mot de passe&lt;br /&gt;Ensuite:&lt;br /&gt;&lt;pre&gt;&lt;code&gt;# rm -r /.Spotlight-V100&lt;br /&gt;# rm -r /private/var/tmp/mds&lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Ce petit truc provient en fait d'&lt;a href="http://www.macosxhints.com/article.php?story=20050504012104186"&gt;une page sur Mac OS X Hints&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8798417781793183189?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8798417781793183189/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8798417781793183189' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8798417781793183189'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8798417781793183189'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/mac-os-x-dsactiver-compltement.html' title='Mac OS X : Comment désactiver complètement Spotlight'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_4Pkux9IuP_c/R3zkw2CXbFI/AAAAAAAAAgU/_fPXe6nNcDg/s72-c/warning_120_105_avec_transparence.gif' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6706397613054304314</id><published>2008-01-01T14:00:00.000+01:00</published><updated>2008-01-01T20:29:04.873+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='Big Brother'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Installer Big Brother client sur Mac OS X</title><content type='html'>Ah oui, tout d'abord, bonne année !&lt;br /&gt;&lt;br /&gt;Aujourd'hui je vais vous expliquer comment installer &lt;a href="http://bb4.org/"&gt;Big Brother&lt;/a&gt; client sur une machine Mac OS X. &lt;a href="http://bb4.org/"&gt;Big Brother&lt;/a&gt; est un outil de monitoring freeware (mais qui existe aussi en version commerciale). Je l'utilise ou je l'ai utilisé sous &lt;a href="http://www.debian.org/"&gt;Debian GNU/Linux&lt;/a&gt;, &lt;a href="http://www.redhat.com/"&gt;Red Hat&lt;/a&gt;, &lt;a href="http://www.pcbsd.org/"&gt;PC-BSD&lt;/a&gt;, &lt;a href="http://www.freebsd.org/"&gt;FreeBSD&lt;/a&gt;, &lt;a href="http://www.sun.com/software/solaris/"&gt;Solaris&lt;/a&gt;, &lt;a href="http://www-03.ibm.com/servers/fr/aix/"&gt;AIX&lt;/a&gt; et Windows. Voyons comment l'installer sous Mac OS X:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Création d'un utilisateur bb&lt;/span&gt;&lt;br /&gt;Tout d'abord je crée un utilisateur dont le login sera (par tradition) bb:&lt;br /&gt;Dans "&lt;span style="color: rgb(51, 51, 255);"&gt;Préférences Systèmes&lt;/span&gt;" allez dans "&lt;span style="color: rgb(51, 51, 255);"&gt;Comptes&lt;/span&gt;"&lt;br /&gt;&lt;span style="font-style: italic;"&gt;(Pour créer un utilisateur vous &lt;span style="font-weight: bold;"&gt;devez&lt;/span&gt; avoir un compte d'administrateur)&lt;/span&gt;&lt;br /&gt;Si le cadenas est fermé, je clique dessus, et je tape mon nom et mot de passe pour le débloquer.&lt;br /&gt;Cliquez sur le "+"&lt;br /&gt;Nom: &lt;span style="color: rgb(51, 51, 255);"&gt;Big Brother&lt;/span&gt;&lt;br /&gt;Nom abrégé: &lt;span style="color: rgb(51, 51, 255);"&gt;bb&lt;/span&gt;&lt;br /&gt;Pour le mot de passe, je tape quelque chose de difficile à trouver, par exemple 5dAkr42,  de toutes façons je n'aurai jamais besoin de ce mot de passe (nous verrons plus loin pourquoi)&lt;br /&gt;Je ne coche &lt;span style="font-weight: bold;"&gt;pas&lt;/span&gt; "&lt;span style="color: rgb(51, 51, 255);"&gt;Autoriser à administrer cet ordinateur&lt;/span&gt;"&lt;br /&gt;Je clique "&lt;span style="color: rgb(51, 51, 255);"&gt;Créer le compte&lt;/span&gt;"&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Rapatriement de Big Brother&lt;/span&gt;&lt;br /&gt;Je vais chercher Big Brother à l'adresse suivante:&lt;br /&gt;&lt;a href="http://bb4.org/dnld/bb-1.9i.tar.gz" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"&gt;  http://bb4.org/dnld/bb-1.9i&lt;wbr&gt;.tar.gz&lt;/a&gt;&lt;br /&gt;Je place ce fichier dans le répertoire /Users/bb&lt;br /&gt;&lt;br /&gt;Je deviens l'utilisateur Big Brother. Vous me direz: "Oui mais, je ne connais pas son mot de passe !". Pas besoin, avec mon compte d'administateur il me suffit de faire:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt;sudo su - bb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Décompression du fichier de Big Brother&lt;/span&gt;&lt;br /&gt;En tant que l'utilisatateur bb:&lt;br /&gt;Je décompresse le .tar.gz, j'obtiens trois fichiers:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;tar -zxvf bb-1.9i.tar.gz &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;BB.README.FIRST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;BBSVR-bb1.9i-btf.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;BBCLT-bbc1.9i-btf.tar&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;Il y a à ce moment trois fichiers que je peux effacer:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;rm bb-1.9i.tar.gz &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;rm BBSVR-bb1.9i-btf.tar &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;rm BB.README.FIRST &lt;/span&gt;&lt;br /&gt;(Le premier je viens de le décompresser, le deuxième c'est la partie serveur dont je n'ai pas du tout besoin sur Mac OS X, et le troisième, passons...)&lt;br /&gt;&lt;br /&gt;Il me reste le fichier BBCLT-bbc1.9i-btf.tar. Je le décompose:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;time tar -xvf BBCLT-bbc1.9i-btf.tar &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/LICENSE&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/README&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/README.INSTALL&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/README.CHANGES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/README.SECURITY&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/README.SUPPORT&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/runbb.sh.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-combo.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-cpu.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-disk.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-local.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-msgs.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-ping.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/bin/bb-procs.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-bbexttab.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-cputab.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-dftab.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-msgstab.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-proctab.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbchkcfg.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbchkcmds.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbchkhosts.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbdef.sh.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbdef-client.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbinc.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbinc-client.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbsys.sh&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bbwarnsetup.cfg&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/etc/bb-hosts&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/ext/ext-proto&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/README&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/README.SMS&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbconfig&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbmachine&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.aix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.bsdi&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.bsdi4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.caldera&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.darwin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.debian&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.dgux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.dynix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.fedora&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.freebsd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.hpux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.hpux9&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.irix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.linux&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.mandrake&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.netbsd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.openbsd&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.osf&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.redhat&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.redhatES&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.sco&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.sco3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.sinix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.solaris&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.sunos&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.suse&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.ultrix&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.unixware&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/install/bbsys.unixware7&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/tmp/.helloworld&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/README&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/bb.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/bb.h&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/bbrun.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/bbsend.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/bbstat.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/Makefile&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/README&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/bbmachine&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/genbbdefs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/genmake&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/getid&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/minimake/client&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/touchtime.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/utils.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/getipaddr.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;bbc1.9i-btf/src/Makefile&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je renomme le répertoire bbc1.9i-btf en bbclient:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;mv bbc1.9i-btf bbclient&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je me place dans le répertoire bbclient:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;cd bbclient&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Si vous êtes curieux et/ou si vous avez le temps, lisez le fichier README.INSTALL qui vous expliquera en détail l'installation. Mais bon comme j'explique tout ici vous n'avez pas vraiment besoin de &lt;a href="http://en.wikipedia.org/wiki/RTFM"&gt;RTFM&lt;/a&gt; :)&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Compilation de Big Brother&lt;/span&gt;&lt;br /&gt;Allons-y pour compiler le client Big Brother:&lt;br /&gt;D'abord, configurer les sources pour Mac OS X (Darwin):&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/install&gt;./bbconfig darwin&lt;/span&gt;&lt;br /&gt;(Lisez et acceptez la licence)&lt;br /&gt;&lt;br /&gt;Je répond à une première question:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Big Brother needs it's own user id.  If your BB user doesn't exist,  you'll have to create it then re-run bbconfig.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;What will be the user ID for BB [bb]:&lt;/span&gt;&lt;br /&gt;Je tape ENTER&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;---&gt; BB will only run from user 'bb'&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Making sure BBHOME  is writable...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;---&gt; OK, /Users/bb/bbclient is fine...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je répond à une deuxième question:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;When you set up your machines, you should use Fully Qualified&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Domain names, this means you use the whole name, like www.bb4.com,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;instead of just 'www'.  This is recommended.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Use FQDN (y/n): [y]&lt;/span&gt;&lt;br /&gt;Je réponds n pour non&lt;br /&gt;&lt;br /&gt;Ca y est, je peux compiler:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;cd /Users/bb/bbclient/src&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/src&gt;make&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Making darwin makefile&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;BBOS="darwin" CC="gcc" CFLAGS=" -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O" make -e bball&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o bb.o -c bb.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o bbsend.o -c bbsend.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o utils.o -c utils.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o ../bin.`./minimake/bbmachine OS`/bb bb.o bbsend.o utils.o&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o touchtime.o -c touchtime.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o ../bin.`./minimake/bbmachine OS`/touchtime touchtime.o&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o getipaddr.o -c getipaddr.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o ../bin.`./minimake/bbmachine OS`/getipaddr getipaddr.o utils.o&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o bbrun.o -c bbrun.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc  -DZOMBIE -Ddarwin -DGETTIMEOFDAY -DREGEXEC -O `./minimake/genbbdefs` -g -o ../bin.`./minimake/bbmachine OS`/bbrun bbrun.o utils.o&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/src&gt;make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Ah oui, évidemment, à cette étape le script d'installation fait appel à &lt;a href="http://directory.fsf.org/project/gcc/"&gt;gcc&lt;/a&gt;, il faut donc que vous ayez installé &lt;a href="http://developer.apple.com/tools/xcode/"&gt;XCode&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;La compilation est terminée, j'approche du but.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Création du fichier de configuration de Big Brother&lt;/span&gt;&lt;br /&gt;Il me faut maintenant créer le fichier de configuration. Allons dans le répertoire adéquat:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;cd bbclient/etc&lt;/span&gt;&lt;br /&gt;Je regarde le fichier bb-hosts livré par défaut:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/etc&gt;cat bb-hosts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je renomme le fichier livré par défaut:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/etc&gt;mv bb-hosts &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;bb-hosts.DIST&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Je crée mon fichier bb-hosts et j'y écris simplement deux lignes:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;10.42.10.1    venus  #     BBPAGER BBNET BBDISPLAY&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;10.42.10.28   ibook&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ici 10.42.10.28  ibook est l'adresse IP et le nom de ma machine client Mac OS X, et 10.42.10.1    venus l'adresse IP et le nom de ma machine serveur Big Brother. (Pour connaître l'adresse IP de votre machine, tapez &lt;span style="font-family:courier new;"&gt;ifconfig en0&lt;/span&gt; ou allez dans Préférences Systèmes &gt; Réseau). Evidemment cela ne fonctionnera correctement que si votre machine Mac OS X a une adresse IP fixe...&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Sur mon &lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);"&gt;serveur&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt; Big Brother,  j'ajoute une ligne du genre:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;span style="color: rgb(255, 0, 0);"&gt;10.42.10.28   ibook&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;(Ou si la machine Mac OS X n'est pas allumée en permanence:)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;&lt;span style="color: rgb(255, 0, 0);"&gt;10.42.10.28   ibook #noping&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255); font-weight: bold;"&gt;Premier lancement du client&lt;/span&gt;&lt;br /&gt;Je peux enfin lancer le client:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;cd /Users/bb/bbclient/&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient&gt;./runbb.sh start&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Starting Big Brother&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;        Starting Local tests (bb-local)...&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Big Brother 1.9i started&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Ca y est, ca tourne !&lt;br /&gt;Je regarde maintenant mon serveur Big Brother et j'y vois des boules vertes !&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Si vous voyez des boules rouges, il peut y avoir plusieurs problèmes:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Premier problème possible:&lt;/span&gt;&lt;br /&gt;La boule "msgs" est rouge, et quand je clique dessus je vois "&lt;span style="font-family:courier new;"&gt;/var/log/system.log is unreadable&lt;/span&gt;". Comme le message le dit, l'utilisateur &lt;span style="font-family:courier new;"&gt;bb&lt;/span&gt; ne peut pas ouvrir le fichier &lt;span style="font-family:courier new;"&gt;/var/log/system.log&lt;/span&gt; en lecture. Voyons les permissions sur ce fichier:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;-rw-r-----   1 root  admin    478K Jan  1 15:10 /var/log/system.log&lt;/span&gt;&lt;br /&gt;Dès lors, pour que l'utilisateur bb puisse lire ce fichier, deux solutions:&lt;br /&gt;a) Changer les permissions du fichier en . Mais alors, il est world-readable, ce qui peut être considéré comme un "problème de sécurité" par les Unix gurus.&lt;br /&gt;b) Mettre l'utilisateur bb dans le groupe adm. A nouveau, ceci peut être considéré comme un "problème de sécurité" par les Unix gurus.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Deuxième problème possible:&lt;/span&gt;&lt;br /&gt;La boule "&lt;span style="font-family:courier new;"&gt;disk&lt;/span&gt;" est rouge, et quand je clique dessus je vois&lt;span style="font-family:courier new,monospace;"&gt; "red Mon Dec 31 16:00:00 CET 2007 - Filesystem of /Users/bb/bbclient/tmp is FULL" &lt;/span&gt;&lt;br /&gt;J'ai constaté que ce problème survient avec &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;, mais pas avec &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Tiger"&gt;Tiger&lt;/a&gt;. Il est dû à une nouvelle syntaxe de la commande sort sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Mac OS X Léopard&lt;/a&gt;. &lt;a href="http://article.gmane.org/gmane.os.apple.fink.general/25063"&gt;La solution à ce problème m'a été donnée par &lt;span id="_user_costabel@wanadoo.fr" style="color: rgb(121, 6, 25);"&gt;Martin Costabel&lt;/span&gt;&lt;span style="font-weight: normal;" class="lg"&gt; &lt;/span&gt;(grand merci à lui).&lt;/a&gt; Il suffit d'éditer le fichier /Users/bb/bbclient/bin/bb-disk.sh . D'abord, je renomme l'original et je crée une copie:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;cd bbclient/bin&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/bin&gt; mv bb-disk.sh bb-disk.sh.DIST&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb/bbclient/bin&gt; cp bb-disk.sh.DIST bb-disk.sh&lt;/span&gt;&lt;br /&gt;Ensuite j'édite bb-disk.sh: je remplace &lt;span class="q"  style="font-family:courier new;"&gt;\"+${DFSORT}\"&lt;/span&gt; par &lt;span class="q"&gt;&lt;span style="font-family:courier new;"&gt;\"-k$(($DFSORT+1))\"&lt;/span&gt; &lt;/span&gt;(Attention: Il faut le faire deux fois à deux endroits différents dans le fichier)&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Pour que le client Big Brother démarre automatiquement&lt;/span&gt;&lt;br /&gt;Avec ceci, il faut à chaque démarrage de la machine Mac OS X, aller démarrer le client Big Brother en effectuant des commandes du genre:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sudo su - bb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;./bbclient/runbb.sh start&lt;/span&gt;&lt;br /&gt;... ce qui est assez pénible&lt;br /&gt;Je vous conseille donc fortement de mettre le client Big Brother en "démarrage automatique". Pour cela, devenez l'utilisateur bb (par &lt;span style="font-family:courier new;"&gt;sudo su - bb&lt;/span&gt; par exemple), et ensuite:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[bb@ibook] /Users/bb&gt;crontab -e&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Dans le crontab de bb, une seule ligne à écrire:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;@reboot   /Users/bb/bbclient/runbb.sh start&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Eventuellement, redémarrez pour vous assurer que le client Big Brother démarre bien tout seul&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Ajustement cosmétique&lt;/span&gt;&lt;br /&gt;Comme j'ai créé un utilisateur bb, il apparaît évidemment  dans l'écran de connexion et dans la "permutation rapide d'utilisateur". Cela vous ennuie ? J'ai la solution:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt; &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sudo defaults write /Library/Preferences/com.apple.loginwindow HiddenUsersList -array-add bb&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Pour les "bêtes de Mac OS X", enfin je veux dire: les utilisateurs avancés &lt;/span&gt;&lt;br /&gt;Il est possible de créer l'utilisateur bb, et de le mettre dans le bon groupe, tout ça en ligne de commande. Par exemple:&lt;br /&gt;Créer l'utilisateur bb:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb UserShell /bin/bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb RealName "Big Brother"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb UniqueID xxx&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb PrimaryGroupID 20&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;sudo dscl . -create /Users/bb NFSHomeDirectory /Users/bb&lt;br /&gt;sudo mkdir /Users/bb&lt;br /&gt;sudo chgrp staff &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/Users/bb&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;sudo chown bb &lt;/span&gt;&lt;span style="font-family:courier new;"&gt;/Users/bb&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;br /&gt;(où xxx est le UID, faites bien attention d'en choisir un qui n'existe pas déjà, pour cela faites &lt;span style="font-family:courier new;"&gt;sudo dscl . list /users UniqueID&lt;/span&gt; pour voir ceux qui sont déjà utilisés. Dans mon cas l'&lt;span style="font-family:courier new;"&gt;UniqueID&lt;/span&gt; est 503. Le &lt;span style="font-family:courier new;"&gt;PrimaryGroupID 20&lt;/span&gt; correspond à &lt;span style="font-family:courier new;"&gt;staff,&lt;/span&gt; en tous cas sous Tiger et Léopard)&lt;br /&gt;&lt;br /&gt;Ceci a l'avantage de pouvoir choisir avec précision l'UID et le GID. De plus, les répertoires "qui ne servent à rien" pour l'utilisateur bb: Library, Pictures, Desktop, Movies, Public, Documents,   Music, Sites ne sont pas créés.&lt;br /&gt;&lt;br /&gt;(N'oubliez pas de mettre un mot de passe en faisant&lt;span style="font-family:courier new;"&gt; sudo passwd bb&lt;/span&gt;)&lt;br /&gt;&lt;br /&gt;... et voilà, on y est arrivé !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6706397613054304314?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6706397613054304314/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6706397613054304314' title='1 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6706397613054304314'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6706397613054304314'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2008/01/installer-big-brother-client-sur-mac-os.html' title='Installer Big Brother client sur Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1011506107770480627</id><published>2007-12-31T20:10:00.000+01:00</published><updated>2008-11-19T02:24:08.039+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GIMP'/><category scheme='http://www.blogger.com/atom/ns#' term='banque'/><category scheme='http://www.blogger.com/atom/ns#' term='carte bancaire'/><title type='text'>Deuxième tentative de carte de banque personnalisée</title><content type='html'>C'est aujourd'hui le dernier jour pour faire ma demande de &lt;a href="https://www.fortisbanking.be/pics/BE/F/fr/anon/priv/prod/Fotokaart/Beschrijving.html"&gt;carte de banque personnalisée gratuite chez Fortis&lt;/a&gt;. &lt;a href="http://pierrebauduin.blogspot.com/2007/12/ma-carte-de-banque-personnalise-ma-t.html"&gt;Le premier essai n'avait pas été concluant&lt;/a&gt;: refusé par Fortis.&lt;br /&gt;&lt;br /&gt;Je tente donc à nouveau ma chance: peut-être que le fond ne leur a pas plus ? Regardez:&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3kibWCXa_I/AAAAAAAAAfk/_Fx57xkjw4A/s1600-h/carte_de_banque_Pierre_Bauduin_03.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3kibWCXa_I/AAAAAAAAAfk/_Fx57xkjw4A/s320/carte_de_banque_Pierre_Bauduin_03.jpg" alt="" id="BLOGGER_PHOTO_ID_5150185502042188786" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;... touchons du bois, qu'elle soit acceptée !&lt;br /&gt;C'est le dernier jour de l'année, ils pourraient "faire un geste" !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1011506107770480627?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1011506107770480627/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1011506107770480627' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1011506107770480627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1011506107770480627'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/12/deuxime-tentative-de-carte-de-banque.html' title='Deuxième tentative de carte de banque personnalisée'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4Pkux9IuP_c/R3kibWCXa_I/AAAAAAAAAfk/_Fx57xkjw4A/s72-c/carte_de_banque_Pierre_Bauduin_03.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-2288107889453219537</id><published>2007-12-31T14:00:00.000+01:00</published><updated>2008-11-19T02:24:08.268+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='GIMP'/><category scheme='http://www.blogger.com/atom/ns#' term='banque'/><category scheme='http://www.blogger.com/atom/ns#' term='carte bancaire'/><title type='text'>Ma carte de banque personnalisée m'a été refusée par Fortis</title><content type='html'>Aujourd'hui 31 décembre 2007 c'est le dernier jour pour obtenir une &lt;a href="https://www.fortisbanking.be/pics/BE/F/fr/anon/priv/prod/Fotokaart/Beschrijving.html"&gt;carte de banque personnalisée chez Fortis&lt;/a&gt;. J'ai donc lancé The GIMP et j'ai produit l'image suivante:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3jowmCXa-I/AAAAAAAAAfc/d9HBabr6BMI/s1600-h/carte_de_banque_Pierre_Bauduin.jpg"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3jowmCXa-I/AAAAAAAAAfc/d9HBabr6BMI/s320/carte_de_banque_Pierre_Bauduin.jpg" alt="" id="BLOGGER_PHOTO_ID_5150122095439997922" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;... eh bien, Fortis me la refuse !&lt;br /&gt;&lt;br /&gt;Voici le "règlement":&lt;br /&gt;(attention c'est long)&lt;br /&gt;&lt;p style="color: rgb(51, 51, 255);"&gt;La banque n'accepte aucune photo ni image comportant :&lt;/p&gt; &lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;li&gt;des portraits, des caricatures, des noms de célébrités comme les pop stars, les musiciens, les vedettes de cinéma, les sportifs, …&lt;/li&gt;&lt;li&gt;des sculptures, des dessins, des peintures&lt;/li&gt;&lt;li&gt;des textes, des notes de musique, des personnages de bande dessinée&lt;/li&gt;&lt;li&gt;des logos et des noms d'entreprises, de produits ou de services (y compris les abréviations)&lt;/li&gt;&lt;li&gt;de la publicité ou des demandes d'achat (y compris la publicité et les demandes d'achat pour l'entreprise, les produits ou services du titulaire de la carte)&lt;/li&gt;&lt;li&gt;des adresses, des numéros de téléphone, des adresses courriels, des adresses Internet, …&lt;/li&gt;&lt;/ul&gt; &lt;p style="color: rgb(51, 51, 255);"&gt;Ne sont pas non plus autorisés les photos, les images et/ou les textes qui :&lt;/p&gt; &lt;ul style="color: rgb(51, 51, 255);"&gt;&lt;li&gt;contiennent des photos d'identité, des documents d'identité ou des symboles (par ex. des drapeaux nationaux)&lt;/li&gt;&lt;li&gt;ont une inspiration politique ou religieuse&lt;/li&gt;&lt;li&gt;sont racistes ou insultants&lt;/li&gt;&lt;li&gt;sont obscènes ou à connotation sexuelle&lt;/li&gt;&lt;li&gt;sont violents, provocants, illégaux, choquants, subversifs, trompeurs&lt;/li&gt;&lt;li&gt;incitent à des délits, des crimes ou des actes terroristes ou y sont liés&lt;/li&gt;&lt;li&gt;font référence aux armes, à l'alcool, aux drogues et au tabac&lt;/li&gt;&lt;li&gt;font référence à des groupements qui ne sont pas acceptés par la société (comme les organisations criminelles et racistes…)&lt;/li&gt;&lt;li&gt;contiennent des codes&lt;/li&gt;&lt;li&gt;renvoient à des moyens de paiement&lt;/li&gt;&lt;li&gt;gênent ou compliquent la lisibilité d'indications essentielles sur la carte, ce qui peut contribuer à la fraude ou entraîner d'autres problèmes&lt;/li&gt;&lt;li&gt;portent préjudice au nom et à la réputation de la banque et/ou de ses concédants de licence&lt;/li&gt;&lt;/ul&gt;... je me demande laquelle de ces règles s'applique à mon image.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-2288107889453219537?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/2288107889453219537/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=2288107889453219537' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2288107889453219537'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/2288107889453219537'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/12/ma-carte-de-banque-personnalise-ma-t.html' title='Ma carte de banque personnalisée m&apos;a été refusée par Fortis'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4Pkux9IuP_c/R3jowmCXa-I/AAAAAAAAAfc/d9HBabr6BMI/s72-c/carte_de_banque_Pierre_Bauduin.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1493777041191629473</id><published>2007-12-31T10:20:00.000+01:00</published><updated>2008-01-07T11:38:22.179+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Compiler un "fat binary" sur un iMac Intel sous Léopard</title><content type='html'>J'en &lt;a href="http://pierrebauduin.blogspot.com/2007/12/comment-crer-un-universal-binary-sous.html"&gt;parlais déjà il y a quelques mois&lt;/a&gt;, mais avec la sortie de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;, voici à nouveau un petit exemple de comment créer un "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binary&lt;/a&gt;" c'est à dire un fichier qui comprend les exécutables pour plusieurs architectures.&lt;br /&gt;&lt;br /&gt;En l'occurence je compile le &lt;a href="http://pierre.baudu.in/files/hello.c"&gt;petit programme hello.c&lt;/a&gt; et je regarde quelle sorte de résultat j'obtiens:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@albert] 16:30 /Users/pierre/Documents/source&gt;gcc -arch i386 -arch ppc -arch ppc64 hello.c&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@albert] 16:30 /Users/pierre/Documents/source&gt;file a.out&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out: Mach-O universal binary with 3 architectures&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out (for architecture i386):    Mach-O executable i386&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out (for architecture ppc7400):    Mach-O executable ppc&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out (for architecture ppc64):    Mach-O 64-bit executable ppc64&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@albert] 16:30 /Users/pierre/Documents/source&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C'est donc un fichier qui comporte les exécutables pour trois architectures: &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; 32-bits et &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; 64-bits.&lt;br /&gt;&lt;br /&gt;En fait dans le cas de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; les "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;" sont une des fonctionnalités des exécutables &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;(Ceci a été effectué sur &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt; sur une machine &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Ah oui le terme officiel d'&lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; est "&lt;a href="http://en.wikipedia.org/wiki/Universal_Binary"&gt;Universal Binary&lt;/a&gt;"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1493777041191629473?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1493777041191629473/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1493777041191629473' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1493777041191629473'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1493777041191629473'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/12/compiler-un-fat-binary-sur-un-imac.html' title='Compiler un &quot;fat binary&quot; sur un iMac Intel sous Léopard'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-1236961624493562972</id><published>2007-12-24T10:42:00.000+01:00</published><updated>2008-11-19T02:24:08.399+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='CUPS'/><category scheme='http://www.blogger.com/atom/ns#' term='IPP'/><category scheme='http://www.blogger.com/atom/ns#' term='bug'/><category scheme='http://www.blogger.com/atom/ns#' term='PostScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='Leopard'/><title type='text'>Mac OS X Léopard: problème pour imprimer sur une imprimante IPP</title><content type='html'>Dans l'ensemble je suis assez content de la toute dernière version de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; (&lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_10.5"&gt;10.5&lt;/a&gt;, également appelée "&lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;").&lt;br /&gt;&lt;br /&gt;Cependant je suis tombé sur un "petit problème".&lt;br /&gt;&lt;br /&gt;J'ai chez moi une imprimante vers laquelle je peux imprimer en utilisant le protocole &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt;.&lt;br /&gt;J'arrive sans problème à imprimer vers cette imprimante à partir de:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://www.debian.org/"&gt;Debian GNU/Linux&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.freebsd.org/"&gt;FreeBSD&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://pcbsd.org/"&gt;PC-BSD&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Windows XP&lt;/li&gt;&lt;/ul&gt;Mais, à partir de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, je n'y arrive pas.&lt;br /&gt;En fait je pense que dans le cas de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;, c'est dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; lui-même qu'il y a un problème.&lt;br /&gt;&lt;br /&gt;Pour créer l'imprimante sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X_Leopard"&gt;Léopard&lt;/a&gt;, je suis allé dans "Préférences Systèmes", dans la partie "Imprimantes et fax"&lt;br /&gt;&lt;br /&gt;J'ai donc indiqué comme adresse &lt;a href="http://en.wikipedia.org/wiki/Internet_Printing_Protocol"&gt;IPP&lt;/a&gt;:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ipp://10.20.10.1:631/Claire&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Et j'ai mis comme pilote "Imprimante Postscript Générique". (Ainsi &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; envoie du &lt;a href="http://en.wikipedia.org/wiki/PostScript"&gt;PostScript&lt;/a&gt;, et sur le serveur, le &lt;a href="http://en.wikipedia.org/wiki/PostScript"&gt;PostScript&lt;/a&gt; est automatiquement traduit dans un langage compréhensible par l'imprimante)&lt;br /&gt;&lt;br /&gt;Après avoir créé l'imprimante je lance un navigateur et je le fais pointer sur la page de &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt;:&lt;br /&gt;&lt;a href="http://127.0.0.1:631/printers/Claire_IPP"&gt;http://127.0.0.1:631/printers/Claire_IPP&lt;/a&gt; pour commencer par imprimer une page de test (il y a un bouton à cet effet dans &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Et je vois ceci:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3aJNQKW8fI/AAAAAAAAAfU/YXXS5_TppdU/s1600-h/mon_probleme_imprimante_ipp_02.png"&gt;&lt;img style="cursor: pointer;" src="http://4.bp.blogspot.com/_4Pkux9IuP_c/R3aJNQKW8fI/AAAAAAAAAfU/YXXS5_TppdU/s320/mon_probleme_imprimante_ipp_02.png" alt="" id="BLOGGER_PHOTO_ID_5149454084714459634" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 0, 0);font-family:courier new;" &gt;/usr/libexec/cups/backend/ipp failed&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;... cela fait longtemps que j'utilise &lt;a href="http://en.wikipedia.org/wiki/CUPS"&gt;CUPS&lt;/a&gt;, mais ceci, je n'ai jamais eu !&lt;br /&gt;&lt;br /&gt;Le message d'erreur indique que la commande ipp de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; a échoué.&lt;br /&gt;J'ai essayé de lancer cette commande à la main:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@albert] /Users/pierre&gt;sudo /usr/libexec/cups/backend/ipp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Password:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;network ipp "Unknown" "Internet Printing Protocol (ipp)"&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@albert] /Users/pierre&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;... effectivement, elle ne s'exécute pas !&lt;br /&gt;&lt;br /&gt;... et le problème n'est pas dans l'imprimante IPP sur le serveur, le problème est dans Mac OS X lui-même.&lt;br /&gt;&lt;br /&gt;Espérons que le problème soit rapidement corrigé par &lt;a href="http://www.apple.com/support/"&gt;AppleCare&lt;/a&gt;...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-1236961624493562972?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/1236961624493562972/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=1236961624493562972' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1236961624493562972'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/1236961624493562972'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/12/mac-os-x-lopard-problme-aprs-avoir-cr.html' title='Mac OS X Léopard: problème pour imprimer sur une imprimante IPP'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_4Pkux9IuP_c/R3aJNQKW8fI/AAAAAAAAAfU/YXXS5_TppdU/s72-c/mon_probleme_imprimante_ipp_02.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-8246484757896672592</id><published>2007-05-14T20:24:00.000+02:00</published><updated>2007-12-29T17:46:07.907+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Fink'/><category scheme='http://www.blogger.com/atom/ns#' term='Perl'/><category scheme='http://www.blogger.com/atom/ns#' term='Open Source'/><category scheme='http://www.blogger.com/atom/ns#' term='AppleScript'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Avec ce script votre Macintosh va lire des citations</title><content type='html'>Voici un petit script en &lt;a href="http://en.wikipedia.org/wiki/AppleScript"&gt;AppleScript&lt;/a&gt; et en &lt;a href="http://en.wikipedia.org/wiki/Perl"&gt;Perl&lt;/a&gt;:&lt;br /&gt;&lt;br /&gt;&lt;a href="http://pierre.baudu.in/files/tellmeafortune.pl"&gt;tellmeafortune.pl&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Il va choisir une citation au hasard (en anglais) et va vous la lire à haute voix.&lt;br /&gt;&lt;br /&gt;Attention pour qu'il fonctionne il faut:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;installer &lt;a href="http://finkproject.org/"&gt;fink&lt;/a&gt;&lt;/li&gt;&lt;li&gt;dans &lt;a href="http://en.wikipedia.org/wiki/Terminal.app"&gt;Terminal.app&lt;/a&gt;, taper &lt;span style="font-family:courier new;"&gt;fink install fortune-mod&lt;/span&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;télécharger le fichier tellmeafortune.pl&lt;/li&gt;&lt;li&gt;dans Terminal.app, aller dans le répertoire où se trouve le script tellmeafortune.pl&lt;/li&gt;&lt;li&gt;dans Terminal.app, le rendre exécutable en effectuant la commande: &lt;span style="font-family:courier new;"&gt;chmod 755 tellmeafortune.pl&lt;/span&gt;&lt;/li&gt;&lt;li&gt;dans Terminal.app, et (enfin) l'exécuter en tapant: &lt;span style="font-family:courier new;"&gt;./tellmeafortune.pl&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;... oui je sais, tout est en anglais. Les &lt;a href="http://packages.debian.org/etch/fortunes-fr"&gt;citations existent en français&lt;/a&gt; mais hélas le synthétiseur vocal de Mac OS X ne parle que l'anglais.&lt;br /&gt;&lt;br /&gt;J'ai fait fonctionner ce script sur Mac OS X Tiger. Cependant il devrait fonctionner sur toutes les versions de Mac OS qui ont AppleScript et la synthèse vocale, c'est à dire probablement MacOS 8.x, 9.x et Mac OS X.&lt;br /&gt;&lt;br /&gt;Et voilà...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-8246484757896672592?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/8246484757896672592/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=8246484757896672592' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8246484757896672592'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/8246484757896672592'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/05/avec-ce-script-votre-macintosh-va-lire.html' title='Avec ce script votre Macintosh va lire des citations'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6162918555145014887</id><published>2007-04-29T16:42:00.000+02:00</published><updated>2007-12-29T20:09:59.690+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='XCode'/><category scheme='http://www.blogger.com/atom/ns#' term='Tiger'/><category scheme='http://www.blogger.com/atom/ns#' term='Kernel Panic'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Comment simuler un "kernel panic" sous Mac OS X ("panic screen")</title><content type='html'>Lorsqu'un système &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt; rencontre un sérieux problème, il effectue un &lt;a href="http://en.wikipedia.org/wiki/Kernel_panic"&gt;kernel panic&lt;/a&gt;. Ceci est, heureusement, particulièrement rare.&lt;br /&gt;&lt;br /&gt;Mac OS X étant un système basé sur &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix,&lt;/a&gt; il peut également subir un &lt;a href="http://en.wikipedia.org/wiki/Kernel_panic"&gt;kernel panic&lt;/a&gt;. Que se passe-t-il alors ? Eh bien vous ne l'avez probablement jamais vu :)&lt;br /&gt;&lt;br /&gt;Pour le voir, il vous suffit d'exécuter un tout petit programme dont voici le code source (ceci provient de l'excellent livre "&lt;a href="http://www.amazon.com/gp/product/0321278542/coinopbelgi03-21"&gt;Mac OS X Internals&lt;/a&gt;"):&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-family:courier new;font-size:85%;"  &gt;&lt;span style="font-size:100%;"&gt;// panic_test.c&lt;br /&gt;// from "Mac OS X Internals", ISBN 0321278542&lt;br /&gt;// figure 5.16 page 439&lt;br /&gt;// The source is being made available "as is" under the GNU General Public License (GPL).&lt;br /&gt;#include &lt;/span&gt;&lt;stdlib.h&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;#include &lt;/span&gt;&lt;sys h=""&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;#include &lt;/span&gt;&lt;sys h=""&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;#define KERN_PANICINFO_TEST (KERN_PANICINFO_IMAGE + 2)&lt;br /&gt;int&lt;br /&gt;main(void)&lt;br /&gt;{&lt;br /&gt;int ret;&lt;br /&gt;size_t oldnewlen = 0;&lt;br /&gt;int mib[3] = { CTL_KERN, KERN_PANICINFO, KERN_PANICINFO_TEST };&lt;br /&gt;ret = sysctl(mib, 3, NULL, (void *)&amp;amp;oldnewlen, NULL, oldnewlen);&lt;br /&gt;exit(ret);&lt;br /&gt;}&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/sys&gt;&lt;/sys&gt;&lt;/stdlib.h&gt;&lt;/span&gt;Pour votre facilité, vous pouvez télécharger ce petit programme sur mon site:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://pierre.baudu.in/macosxinternals/panic_test.c"&gt;source&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://pierre.baudu.in/macosxinternals/panic_test.bin"&gt;universal binary&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;Attention il faut l'exécuter avec sudo, comme ceci:&lt;br /&gt;&lt;ul&gt;&lt;li  style="font-family:courier new;"&gt;&lt;span style="font-size:100%;"&gt;sudo ./panic_test.bin&lt;/span&gt;&lt;/li&gt;&lt;li&gt;tapez votre mot de passe (vous devez être administateur de la machine)&lt;/li&gt;&lt;li&gt;le programme s'exécute&lt;/li&gt;&lt;/ul&gt;Voyez aussi éventuellement une &lt;a href="http://docs.info.apple.com/article.html?artnum=106227"&gt;page sur le site officiel Apple&lt;/a&gt;.&lt;br /&gt;... et voilà&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6162918555145014887?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6162918555145014887/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6162918555145014887' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6162918555145014887'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6162918555145014887'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/04/comment-simuler-un-kernel-panic-sous.html' title='Comment simuler un &quot;kernel panic&quot; sous Mac OS X (&quot;panic screen&quot;)'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-6707012418050795790</id><published>2007-03-20T18:24:00.000+01:00</published><updated>2008-01-07T20:19:09.822+01:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='gcc'/><category scheme='http://www.blogger.com/atom/ns#' term='XCode'/><category scheme='http://www.blogger.com/atom/ns#' term='Rosetta'/><category scheme='http://www.blogger.com/atom/ns#' term='fat binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Universal Binary'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><category scheme='http://www.blogger.com/atom/ns#' term='PowerPC'/><category scheme='http://www.blogger.com/atom/ns#' term='Intel'/><title type='text'>Comment créer un "Universal Binary" sous Mac OS X</title><content type='html'>Comme la gamme Apple est depuis 2006 "&lt;a href="http://en.wikipedia.org/wiki/Apple_Intel_transition"&gt;en transition&lt;/a&gt;" entre l'architecture &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; et l'architecture &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt;, on peut se demander si tout ceci ne cause pas de problèmes.&lt;br /&gt;&lt;br /&gt;En fait, grâce à l'architecture et aux outils de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, cela se passe très bien.&lt;br /&gt;Actuellement, un grand nombre de programmes sont distribués en "&lt;a href="http://en.wikipedia.org/wiki/Universal_Binary"&gt;Universal Binaries&lt;/a&gt;", c'est à dire en bref qu'ils contiennent des exécutables &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt;.&lt;br /&gt;Quoiqu'il en soit, sur un Mac &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt; sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, si vous essayez de lancer un exécutable &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC,&lt;/a&gt; il tournera de toutes façons gràce à &lt;a href="http://en.wikipedia.org/wiki/Rosetta_%28software%29"&gt;Rosetta&lt;/a&gt;, le composant de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; qui traduit directement le code &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; en code &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel.&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Il est intéressant de constater que sous &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, il est possible de créer un seul fichier exécutable qui contient les binaires pour les deux architectures &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; et &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt;. Il s'agit en fait de "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;" (qui sont appelées par Apple de l'euphémisme "&lt;a href="http://en.wikipedia.org/wiki/Universal_Binary"&gt;universal binaries&lt;/a&gt;"...). Le concept de "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;" est en fait relativement ancien, puisqu'il vient de &lt;a href="http://en.wikipedia.org/wiki/NeXTSTEP"&gt;NextStep&lt;/a&gt;, qui est un peu l'aïeul de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;. En fait dans le cas de &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; les "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binaries&lt;/a&gt;" sont une des fonctionnalités des exécutables &lt;a href="http://en.wikipedia.org/wiki/Mach-O"&gt;Mach-O&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;Regardez:&lt;br /&gt;(Vous devez avoir installé &lt;a href="http://en.wikipedia.org/wiki/XCode"&gt;XCode&lt;/a&gt; pour que ceci fonctionne)&lt;br /&gt;Pour créer un "&lt;a href="http://en.wikipedia.org/wiki/Fat_binary"&gt;fat binary&lt;/a&gt;":&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt; gcc -arch i386 -arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk hello.c&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Observons le résultat:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt; file a.out &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out: Mach-O fat file with 2 architectures&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out (for architecture i386):  Mach-O executable i386&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;a.out (for architecture ppc):   Mach-O executable ppc&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;(Ceci a été effectué sur Mac OS X Tiger sur une machine &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt;)&lt;br /&gt;&lt;br /&gt;Le seul inconvénient de la migration de &lt;a href="http://en.wikipedia.org/wiki/PowerPC"&gt;PowerPC&lt;/a&gt; vers &lt;a href="http://en.wikipedia.org/wiki/Intel"&gt;Intel&lt;/a&gt; est que les applications "Classic" (c'est à dire, développées pour Mac OS 7.x, 8.x, 9.x) sont pour la poubelle. Enfin, c'est peut-être le bon endroit :).&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-6707012418050795790?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/6707012418050795790/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=6707012418050795790' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6707012418050795790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/6707012418050795790'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/12/comment-crer-un-universal-binary-sous.html' title='Comment créer un &quot;Universal Binary&quot; sous Mac OS X'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3392442543993712157.post-5302176410780752206</id><published>2007-02-20T20:20:00.001+01:00</published><updated>2008-10-19T22:21:57.325+02:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='NextStep'/><category scheme='http://www.blogger.com/atom/ns#' term='Steve Jobs'/><category scheme='http://www.blogger.com/atom/ns#' term='Objective-C'/><category scheme='http://www.blogger.com/atom/ns#' term='Apple'/><category scheme='http://www.blogger.com/atom/ns#' term='Mac OS X'/><title type='text'>Mac OS X: NextStep inside !</title><content type='html'>Ce n'est un secret pour personne, &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; est basé sur &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;, et c'est une des raisons principales de mon enthousiasme pour ce système d'exploitation.&lt;br /&gt;&lt;br /&gt;En fait, on ne peut pas dire que &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; est "un &lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;" car pour pouvoir dire cela il faut payer The Open Group qui est l'actuel propriétaire de la marque déposée "&lt;a href="http://en.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;".&lt;br /&gt;&lt;br /&gt;On dira donc que &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; est un "&lt;a href="http://en.wikipedia.org/wiki/Unix-like"&gt;Unix-like&lt;/a&gt;", comme notamment &lt;a href="http://en.wikipedia.org/wiki/AIX_operating_system" title="AIX operating system"&gt;AIX&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/FreeBSD"&gt;FreeBSD&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/HP-UX" title="HP-UX"&gt;HP-UX&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/IRIX" title="IRIX"&gt;IRIX&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Linux"&gt;Linux&lt;/a&gt;,  &lt;a href="http://en.wikipedia.org/wiki/Solaris_Operating_System" title="Solaris Operating System"&gt;Solaris&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Tru64" title="Tru64"&gt;Tru64&lt;/a&gt;, et &lt;a href="http://en.wikipedia.org/wiki/Ultrix" title="Ultrix"&gt;Ultrix&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;En fait &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; descend en droite ligne de &lt;a href="http://en.wikipedia.org/wiki/NeXTStep"&gt;NextStep&lt;/a&gt;, le système d'exploitation du  &lt;a href="http://en.wikipedia.org/wiki/NeXT"&gt;NextCube&lt;/a&gt;. Le &lt;a href="http://en.wikipedia.org/wiki/NeXTcube"&gt;NextCube&lt;/a&gt; était une station de travail de la société &lt;a href="http://en.wikipedia.org/wiki/NeXT"&gt;NeXT Computer&lt;/a&gt;, la société que &lt;a href="http://en.wikipedia.org/wiki/Steve_Jobs"&gt;Steve Jobs&lt;/a&gt; créa après avoir été contraint à quitter &lt;a href="http://en.wikipedia.org/wiki/Apple_Computer"&gt;Apple&lt;/a&gt; le vendredi 13 septembre 1985 suite à une lutte interne avec le &lt;a href="http://en.wikipedia.org/wiki/CEO"&gt;CEO&lt;/a&gt; de l'époque, &lt;a href="http://en.wikipedia.org/wiki/John_Sculley" title="John Sculley"&gt;John Sculley&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://en.wikipedia.org/wiki/NeXTStep"&gt;NextStep&lt;/a&gt; était un système d'exploitation particulièrement avancé pour son époque, car il intégrait les caractéristiques suivantes:&lt;br /&gt;&lt;ul&gt;&lt;li&gt;basé sur un &lt;a href="http://en.wikipedia.org/wiki/Mach_kernel"&gt;kernel Mach&lt;/a&gt; et une couche &lt;a href="http://en.wikipedia.org/wiki/BSD"&gt;BSD&lt;/a&gt;&lt;/li&gt;&lt;li&gt;multi-tâches&lt;/li&gt;&lt;li&gt;multi-utilisateurs&lt;br /&gt;&lt;/li&gt;&lt;li&gt;environnement de développement orienté-objet en &lt;a href="http://en.wikipedia.org/wiki/Objective-C"&gt;Objective-C&lt;/a&gt;&lt;/li&gt;&lt;li&gt;une interface graphique très avancée, avec notamment le &lt;a href="http://en.wikipedia.org/wiki/Dock_%28computing%29"&gt;Dock&lt;/a&gt;&lt;/li&gt;&lt;li&gt;l'affichage géré par &lt;a href="http://en.wikipedia.org/wiki/Display_Postscript"&gt;Display PostScript&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;Il est intéressant de constater que l'on peut trouver des traces de &lt;a href="http://en.wikipedia.org/wiki/NeXTStep"&gt;NextStep&lt;/a&gt; dans &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;. Une commande &lt;a href="http://en.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt; relativement peu connue donne la liste de toutes les classes &lt;a href="http://en.wikipedia.org/wiki/Objective-C"&gt;Objective-C&lt;/a&gt; appelées par un processus, c'est la commande heap. Regardez:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;[pierre@ibook] /Users/pierre&gt; heap Dock&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Process 142: 1 zone&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Zone DefaultMallocZone_0x300000: Overall size: 9352KB; 5303 nodes malloced for 554KB (5% of capacity); largest unused: [0x01839e00-7992KB]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Zone DefaultMallocZone_0x300000: 5303 nodes - Sizes: 24KB[1] 20KB[2] 16KB[1] 11KB[1] 8KB[2] 5KB[1] 5KB[1] 4KB[11] 3072[5] 2560[9] 2048[6] 1536[14] 1024[48] 512[11] 480[4] 464[2] 448[5] 432[4] 400[2] 384[1] 352[2] 336[6] 320[4] 304[2] 288[13] 272[17] 256[12] 240[196] 224[24] 208[14] 192[38] 176[21] 160[7] 144[46] 128[47] 112[58] 96[190] 80[221] 64[212] 48[1137] 32[837] 16[2068] &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Found 510 ObjC classes in process 142&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;-----------------------------------------------------------------------&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;Zone DefaultMallocZone_0x300000: 5303 nodes (566912 bytes) &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                     CLASS_NAME     COUNT     BYTES       AVG&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                     ==========     =====     =====       ===&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                   &lt;non-object&gt;      2171    404016     186.1&lt;/non-object&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                     NSCFNumber      1213     19408      16.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                     NSCFString       721     27072      37.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                 NSCFDictionary       630     85824     136.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                       NSCFType       243     17296      71.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                      NSCFArray       162      4896      30.2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                          NSURL        62      1984      32.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                        NSCFSet        35      1696      48.5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                     NSMachPort        27      1728      64.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                       NSCFData        25      2544     101.8&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                           NSCFAttributedString        10       160      16.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                      NSCFTimer         2       160      80.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                           NSNotificationCenter         1        64      64.0&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;                                       NSThread         1        64      64.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;... toutes les classes &lt;a href="http://en.wikipedia.org/wiki/Objective-C"&gt;Objective-C&lt;/a&gt; commencent par NS, ce qui signifie bien entendu &lt;a href="http://en.wikipedia.org/wiki/NeXTStep"&gt;NextStep&lt;/a&gt;.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3392442543993712157-5302176410780752206?l=pierrebauduin.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://pierrebauduin.blogspot.com/feeds/5302176410780752206/comments/default' title='Publier les commentaires'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=3392442543993712157&amp;postID=5302176410780752206' title='0 commentaires'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5302176410780752206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3392442543993712157/posts/default/5302176410780752206'/><link rel='alternate' type='text/html' href='http://pierrebauduin.blogspot.com/2007/02/mac-os-x-nextstep-inside.html' title='Mac OS X: NextStep inside !'/><author><name>Pierre Bauduin</name><uri>http://www.blogger.com/profile/10841048491709749966</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='24' height='32' src='http://bp2.blogger.com/_4Pkux9IuP_c/R3UxPQKW8dI/AAAAAAAAAfE/uO0UDVxLMdQ/S220/pourprofil.jpg'/></author><thr:total>0</thr:total></entry></feed>
