<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://www.llaumgui.com/feed/rss2/xslt" ?><rss version="2.0"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xmlns:wfw="http://wellformedweb.org/CommentAPI/"
  xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
  <title>Le blog de llaumgui - HAL</title>
  <link>http://www.llaumgui.com/</link>
  <description>Linux en général, Fedora en particulier...</description>
  <language>fr</language>
  <pubDate>Fri, 04 Jul 2008 15:07:50 +0200</pubDate>
  <copyright>http://creativecommons.org/licenses/by-nc-nd/2.5/</copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>HAL et mon Meizu M3</title>
    <link>http://www.llaumgui.com/post/HAL-et-mon-Meizu-M3</link>
    <guid isPermaLink="false">urn:md5:8de6c7ec706d761342a47073cd8d2b80</guid>
    <pubDate>Sun, 03 Jun 2007 22:29:00 +0200</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>HAL</category><category>hardware</category><category>Meizu M3</category>    
    <description>    &lt;p&gt;Comme ceux qui lisent régulièrement mon blog le savent, &lt;a href=&quot;http://www.llaumgui.com/post/Meizu-M3-premieres-impressions&quot; hreflang=&quot;fr&quot; title=&quot;Meizu M3, premières impressions&quot;&gt;je me suis acheté un nouveau baladeur MP3&lt;/a&gt;. Ce dernier est parfaitement reconnu sous Linux, mais je regrettais juste qu'il apparaisse comme disque amovible sur mon bureau et qu'il soit monté dans /medi/disk/.&lt;/p&gt;


&lt;p&gt;C'est après un passage sur &lt;a href=&quot;http://forums.fedora-fr.org/&quot; hreflang=&quot;fr&quot; title=&quot;fedora-fr - Communauté francophone Fedora Core - Linux&quot;&gt;les forums de fedora-fr&lt;/a&gt; ou j'ai trouvé &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?pid=163977#p163977&quot; hreflang=&quot;fr&quot;&gt;la réponse&lt;/a&gt; à &lt;a href=&quot;http://forums.fedora-fr.org/viewtopic.php?id=21160&quot; hreflang=&quot;fr&quot; title=&quot;Renommer des périphérique USB&quot;&gt;ma question&lt;/a&gt;, que je me suis fait ce petit fichier *.fdi qui permet de monter le Meizu dans /media/meizu_m3 et de l'afficher sur le bureau avec le nom &amp;quot;Meizu M3&amp;quot;.&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;llaumgui@enterprise ~&amp;gt; &lt;span style=&quot;color: #c20cb9; font-weight: bold;&quot;&gt;cat&lt;/span&gt; /usr/share/hal/fdi/policy/95userpolicy/&lt;span style=&quot;color: #000000;&quot;&gt;95&lt;/span&gt;-meizu-m3.fdi &lt;br /&gt;
&amp;lt;?xml &lt;span style=&quot;color: #007800;&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;encoding=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;ISO-8859-1&amp;quot;&lt;/span&gt;?&amp;gt;&lt;br /&gt;
&amp;lt;deviceinfo &lt;span style=&quot;color: #007800;&quot;&gt;version=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;0.2&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;lt;!-- /usr/share/hal/fdi/policy/95userpolicy --&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;device&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;match &lt;span style=&quot;color: #007800;&quot;&gt;key=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.uuid&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;string=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;68DE-5DE7&amp;quot;&lt;/span&gt;&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;merge &lt;span style=&quot;color: #007800;&quot;&gt;key=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.label&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;string&amp;quot;&lt;/span&gt;&amp;gt;Meizu M3&amp;lt;/merge&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;lt;merge &lt;span style=&quot;color: #007800;&quot;&gt;key=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.policy.desired_mount_point&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #007800;&quot;&gt;type=&lt;/span&gt;&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;string&amp;quot;&lt;/span&gt;&amp;gt;meizu_m3&amp;lt;/merge&amp;gt; &lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;lt;/match&amp;gt;&lt;br /&gt;
&amp;nbsp; &amp;lt;/device&amp;gt;&lt;br /&gt;
&amp;lt;/deviceinfo&amp;gt;&lt;/code&gt;


&lt;p&gt;Je recherchais une méthode sans passer par &lt;a href=&quot;http://fr.wikipedia.org/wiki/Hardware_abstraction_layer&quot; hreflang=&quot;fr&quot; title=&quot;Hardware Abstraction Layer&quot;&gt;hal&lt;/a&gt; et plus orientée user (fichier dans /home/), mais, au final, cette méthode me convient parfaitement.&lt;/p&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/config/95-meizu-m3.fdi"
      length="370" type="text/plain" />
    
    
          <comments>http://www.llaumgui.com/post/HAL-et-mon-Meizu-M3#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/HAL-et-mon-Meizu-M3#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/210</wfw:commentRss>
      </item>
    
  <item>
    <title>Partition UTF-8 et clefs USB montées via HAL</title>
    <link>http://www.llaumgui.com/post/partition-utf-8-et-clefs-usb-montees-via-hal</link>
    <guid isPermaLink="false">urn:md5:1b47aa0cd7b9b1cb07c7edf4c2a22ccd</guid>
    <pubDate>Fri, 28 Oct 2005 12:22:00 +0000</pubDate>
    <dc:creator>llaumgui</dc:creator>
        <category>Linux</category>
        <category>HAL</category><category>hardware</category><category>UTF-8</category>    
    <description>&lt;p&gt;Afin d'assurer une compatibilité Linux/Windows de mes partitions (Bien que cela fait 3 mois que je n'ai pas utilisé un Windows), mes partitions de stockage sont actuellement en &lt;a href=&quot;http://fr.wikipedia.org/wiki/File_allocation_table&quot; hreflang=&quot;fr&quot; title=&quot;FAT&quot;&gt;FAT&lt;/a&gt; et encodées en &lt;a href=&quot;http://fr.wikipedia.org/wiki/UTF-8&quot; hreflang=&quot;fr&quot; title=&quot;UTF-8&quot;&gt;UTF-8&lt;/a&gt;.&lt;/p&gt;    &lt;p&gt;Le problème est que les clefs USB montées automatiquement sur le bureau supportent mal cette configuration. S'en suit une incompatibilité des caractères spéciaux (é, è, ç, à, etc...) entraînant l'impossibilité de copier/coller des fichiers contenant des accents de mes disques durs vers une clef USB :&lt;/p&gt;


&lt;p&gt;&lt;img src=&quot;http://www.llaumgui.com/public/images/linux/erreur_usb.png&quot; alt=&quot;Erreur lors de la copie&quot; style=&quot;display:block; margin:0 auto;&quot; /&gt;&lt;/p&gt;


&lt;p&gt;L'une des solutions est de monter les clefs USB en ligne de commande, mais cela s'avère vite très lourd. L'autre solution est de configurer
&lt;a href=&quot;http://fr.wikipedia.org/wiki/Hardware_abstraction_layer&quot; hreflang=&quot;fr&quot; title=&quot;HAL&quot;&gt;HAL&lt;/a&gt; pour qu'il monte les périphéries de stockages USB en &lt;em&gt;ISO 8859-15&lt;/em&gt;.
Petit rappel à propos de HAL, lorsque vous introduisez une  périphérie de stockage USB, c'est HAL qui se charge de rajouter la ligne correspondant dans votre fichier &lt;a href=&quot;http://fr.wikipedia.org/wiki/Point_de_montage#Montage_et_d.C3.A9montage_sous_Unix&quot; hreflang=&quot;fr&quot; title=&quot;fstab&quot;&gt;fstab&lt;/a&gt; :&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;/dev/sdb1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /media/CLEF_USB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vfat &amp;nbsp; &amp;nbsp;pamconsole,&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exec&lt;/span&gt;,noauto,&lt;span style=&quot;color: #007800;&quot;&gt;fscontext=&lt;/span&gt;system_u:object_r:removable_t,managed &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Le but de la modification est d'y rajouter le paramètre &amp;quot;&lt;em&gt;iocharset=iso8859-15&lt;/em&gt;&amp;quot;.&lt;/p&gt;


&lt;p&gt;Avec votre éditeur de fichiers, créez &lt;strong&gt;&lt;a href=&quot;http://www.llaumgui.com/public/files/clef-usb-utf8.fdi&quot; hreflang=&quot;fr&quot;&gt;/etc/hal/fdi/policy/clef-usb-utf8.fdi&lt;/a&gt;&lt;/strong&gt;.&lt;/p&gt;

&lt;code class=&quot;xml&quot;&gt;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;?xml&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;1.0&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;encoding&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;UTF-8&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;?&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;deviceinfo&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;version&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;0.2&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;device&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;match&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;block.is_volume&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;bool&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;true&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;match&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.fsusage&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;string&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;filesystem&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;match&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.fstype&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;string&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;vfat&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;merge&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.policy.mount_option.iocharset=utf8&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;bool&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;true&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/merge&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;merge&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;key&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;volume.policy.mount_option.codepage=850&amp;quot;&lt;/span&gt; &lt;span style=&quot;color: #000066;&quot;&gt;type&lt;/span&gt;=&lt;span style=&quot;color: #ff0000;&quot;&gt;&amp;quot;bool&amp;quot;&lt;/span&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;true&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/merge&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/match&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/match&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/match&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&amp;nbsp; &amp;nbsp;&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/device&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: #009900;&quot;&gt;&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;lt;/deviceinfo&lt;span style=&quot;font-weight: bold; color: black;&quot;&gt;&amp;gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;


&lt;p&gt;Insérez une clef USB, vous devriez avoir dans votre fstab, une ligne du style :&lt;/p&gt;

&lt;code class=&quot;bash&quot;&gt;/dev/sdb1 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; /media/CLEF_USB &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; vfat &amp;nbsp; &amp;nbsp;pamconsole,&lt;span style=&quot;color: #7a0874; font-weight: bold;&quot;&gt;exec&lt;/span&gt;,noauto,&lt;span style=&quot;color: #007800;&quot;&gt;fscontext=&lt;/span&gt;system_u:object_r:removable_t,&lt;span style=&quot;color: #007800;&quot;&gt;iocharset=&lt;/span&gt;iso8859&lt;span style=&quot;color: #000000;&quot;&gt;-15&lt;/span&gt;,managed &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt; &lt;span style=&quot;color: #000000;&quot;&gt;0&lt;/span&gt;&lt;/code&gt;</description>
    
          <enclosure url="http://www.llaumgui.com/public/files/config/clef-usb-utf8.fdi"
      length="458" type="text/plain" />
    
    
          <comments>http://www.llaumgui.com/post/partition-utf-8-et-clefs-usb-montees-via-hal#comment-form</comments>
      <wfw:comment>http://www.llaumgui.com/post/partition-utf-8-et-clefs-usb-montees-via-hal#comment-form</wfw:comment>
      <wfw:commentRss>http://www.llaumgui.com/feed/rss2/comments/53</wfw:commentRss>
      </item>
    
</channel>
</rss>