<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet title="XSL formatting" type="text/xsl" href="http://blog.jbheren.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/"
  xmlns:atom="http://www.w3.org/2005/Atom">
<channel>
  <title>Blog pro de Jean-Baptiste HEREN - Linux</title>
  <link>http://blog.jbheren.com/</link>
  <atom:link href="http://blog.jbheren.com/feed/category/Linux/rss2" rel="self" type="application/rss+xml"/>
  <description>Notes d'un consultant freelance en informatique</description>
  <language>fr</language>
  <pubDate>Fri, 11 May 2012 15:27:06 +0200</pubDate>
  <copyright></copyright>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Dotclear</generator>
  
    
  <item>
    <title>Convert virtual drive from virtualbox to vmware</title>
    <link>http://blog.jbheren.com/post/2011/06/21/Convert-virtual-drive-from-virtualbox-to-vmware</link>
    <guid isPermaLink="false">urn:md5:0106dedb3b300cafad3103ebcbeb3859</guid>
    <pubDate>Tue, 21 Jun 2011 23:03:00 +0200</pubDate>
    <dc:creator>Jean-Baptiste HEREN</dc:creator>
        <category>Linux</category>
        <category>cloud computing</category>    
    <description>&lt;p&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/virtualbox/.vbox_logo_t.jpg&quot; alt=&quot;vbox_logo.png&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; title=&quot;vbox_logo.png, juin 2011&quot; /&gt;You have a virtualbox image and want to use it in VMWARE ?&lt;/p&gt;


&lt;p&gt;If the .ova file does not fits your needs, you can try to convert the hard drive and then use it directly in a configured vmware machine.&lt;/p&gt;


&lt;p&gt;VirtualBox provides a command line tool to convert from .vdi to .vmdk : &lt;a href=&quot;http://www.virtualbox.org/manual/ch08.html#vboxmanage-clonevdi&quot; hreflang=&quot;en&quot;&gt;VBoxManage clonehd&lt;/a&gt;&lt;/p&gt;    &lt;h2&gt;Here is an Example&lt;/h2&gt;

&lt;pre&gt;[script]
jb$ cd /Users/jb/VirtualBox VMs/myvirtualdrive-bash: cd: /Users/jb/VirtualBox: No such file or directory
jb$ cd &amp;quot;/Users/jb/VirtualBox VMs/myvirtualdrive&amp;quot;
jb$ ls
Logs                myvirtualdrive.vbox      myvirtualdrive.vbox-prev myvirtualdrive.vdi
jb$ VBoxManage clonehd myvirtualdrive.vdi --format VMDK myvirtualdrive.vmdk
0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Clone hard disk created in format 'VMDK'. UUID: xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
&lt;/pre&gt;


&lt;h2&gt;Documentation from VirtualBox&lt;/h2&gt;


&lt;p&gt;This command duplicates a registered virtual hard disk image to a new image file with a new unique identifier (UUID). The new image can be transferred to another host system or imported into VirtualBox again using the Virtual Media Manager; see the section called “The Virtual Media Manager” and the section called “Cloning disk images”. The syntax is as follows:&lt;/p&gt;

&lt;pre&gt;
VBoxManage clonehd         &amp;lt;uuid&amp;gt;|&amp;lt;filename&amp;gt; &amp;lt;outputfile&amp;gt;
                           [--format VDI|VMDK|VHD|RAW|&amp;lt;other&amp;gt;]
                           [--variant Standard,Fixed,Split2G,Stream,ESX]
                           [--existing]
&lt;/pre&gt;


&lt;p&gt;where the parameters mean:&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;format&lt;/strong&gt;
Allow to choose a file format for the output file different from the file format of the input file.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;variant&lt;/strong&gt;
Allow to choose a file format variant for the output file. It is a comma-separated list of variant flags. Not all combinations are supported, and specifying inconsistent flags will result in an error message.&lt;/p&gt;


&lt;p&gt;&lt;strong&gt;existing&lt;/strong&gt;
Perform the clone operation to an already existing destination medium. Only the portion of the source medium which fits into the destination medium is copied. This means if the destination medium is smaller than the source only a part of it is copied, and if the destination medium is larger than the source the remaining part of the destination medium is unchanged.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.jbheren.com/post/2011/06/21/Convert-virtual-drive-from-virtualbox-to-vmware#comment-form</comments>
      <wfw:comment>http://blog.jbheren.com/post/2011/06/21/Convert-virtual-drive-from-virtualbox-to-vmware#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.jbheren.com/feed/atom/comments/62</wfw:commentRss>
      </item>
    
  <item>
    <title>Repair HFS+ Volume on OSX</title>
    <link>http://blog.jbheren.com/post/2011/02/09/repair-hfs-volume-on-osx</link>
    <guid isPermaLink="false">urn:md5:d9b85ced7d1b39c6ab075404bc893e56</guid>
    <pubDate>Wed, 09 Feb 2011 00:26:00 +0100</pubDate>
    <dc:creator>Jean-Baptiste HEREN</dc:creator>
        <category>Linux</category>
        <category>disk repair</category><category>fsck</category><category>hfsplus</category><category>MacOSX</category><category>snow leopard</category>    
    <description>&lt;p&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/OSX/.harddrive_osx_m.jpg&quot; alt=&quot;harddrive_osx.png&quot; style=&quot;float:left; margin: 0 1em 1em 0;&quot; title=&quot;harddrive_osx.png, fév. 2011&quot; /&gt;Yesterday I had a little surprise on one of my disks (the backup one.Disk utility was unable to repair it, but here you will find some tips&lt;/p&gt;    &lt;h2&gt;1- read your disk with Linux&lt;/h2&gt;

&lt;p&gt;Boot on &lt;a href=&quot;http://www.ubuntu.com/desktop/get-ubuntu/download&quot; hreflang=&quot;en&quot;&gt;Ubuntu live CD&lt;/a&gt; and try to open your disk. It will mount read-only (default for HFS) but you will be able to grab most of your files to a network or FAT external drive. This saved my life a couple of times.&lt;/p&gt;


&lt;h2&gt;2- repair with fsck on OSX&lt;/h2&gt;

&lt;p&gt;Fsck is also available on OSX.
Let's open your terminal.
On the following commands, replace /dev/disk1s2 with the location of your disk's partition.&lt;/p&gt;


&lt;h3&gt;2.1 -  run a diagnostc&lt;/h3&gt;

&lt;pre&gt;[script]
MyMac:~ jb$ fsck -fy /dev/disk1s2
** /dev/rdisk1s2
BAD SUPER BLOCK: MAGIC NUMBER WRONG

LOOK FOR ALTERNATE SUPERBLOCKS? yes

SEARCH FOR ALTERNATE SUPER-BLOCK FAILED. YOU MUST USE THE
-b OPTION TO FSCK TO SPECIFY THE LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(8).
&lt;/pre&gt;


&lt;h3&gt;2.2 - repair by adding the r option&lt;/h3&gt;

&lt;p&gt;This can take a while, it took 60min for my 1,5TB Disk.&lt;/p&gt;

&lt;pre&gt;[script]
MyMac:~ jb$ fsck_hfs -fy /dev/disk1s2
** /dev/rdisk1s2
   Executing fsck_hfs (version diskdev_cmds-491.3~2).
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
   Invalid node structure
(4, 242826)
** The volume Grozor could not be verified completely.
iMac-de-la-familia:~ jb$ fsck_hfs -ypr /dev/disk1s2
   Executing fsck_hfs (version diskdev_cmds-491.3~2).
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
** Rebuilding catalog B-tree.
   Invalid node structure
(4, 242826)
   Invalid record count
(4, 242827)
   Invalid record count
(4, 242828)
   Invalid record count
(4, 242829)
   Invalid record count
(4, 242830)
   Invalid record count
(4, 242831)
** Rechecking volume.
** Checking Journaled HFS Plus volume.
** Checking extents overflow file.
** Checking catalog file.
   Missing thread record (id = 47443244)
   Incorrect number of thread records
(4, 21586)
   Incorrect number of thread records
(4, 21586)
** Checking multi-linked files.
   Incorrect number of file hard links
** Checking catalog hierarchy.
   Invalid directory item count
   (It should be 428 instead of 440)
   Missing thread record (id = 47443242)
   Invalid directory item count
   (It should be 0 instead of 1)
   Invalid directory item count
   (It should be 107 instead of 440)
   Invalid directory item count
   (It should be 673621 instead of 673646)
   Invalid volume file count
   (It should be 4308261 instead of 4309339)
** Checking extended attributes file.
   Incorrect number of extended attributes
   (It should be 1823295 instead of 1823257)
   Incorrect number of Access Control Lists
   (It should be 1823272 instead of 1823234)
** Checking multi-linked directories.
   Incorrect number of directory hard links
** Checking volume bitmap.
   Volume bitmap needs minor repair for orphaned blocks
** Checking volume information.
   Invalid volume free block count
   (It should be 19453978 instead of 7705538)
   Volume header needs minor repair
(2, 0)
** Repairing volume.
...
&lt;/pre&gt;


&lt;p&gt;If your drive is sill not repaired :&lt;/p&gt;

&lt;pre&gt;[script]
   Invalid first link in hard link chain (id = 47694526)
   (It should be 49482808 instead of 49484125)
** Look for missing items in lost+found directory.
** The volume Grozor could not be repaired.
&lt;/pre&gt;


&lt;p&gt;Then you can try to fix it again with your Disk utilities (Application/utilities)
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/OSX/.utilitaire_disques_m.jpg&quot; alt=&quot;utilitaire_disques.png&quot; style=&quot;float:right; margin: 0 0 1em 1em;&quot; title=&quot;utilitaire_disques.png, fév. 2011&quot; /&gt;&lt;/p&gt;


&lt;p&gt;Then if you are as lucky than I was, you will be able to mount under OSX.
Now it is wise to backup important files (if not already done) and run a physical test.&lt;/p&gt;</description>
    
    
    
          <comments>http://blog.jbheren.com/post/2011/02/09/repair-hfs-volume-on-osx#comment-form</comments>
      <wfw:comment>http://blog.jbheren.com/post/2011/02/09/repair-hfs-volume-on-osx#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.jbheren.com/feed/atom/comments/54</wfw:commentRss>
      </item>
    
  <item>
    <title>Installer Debian Lenny x64 en RAID Logiciel</title>
    <link>http://blog.jbheren.com/post/2010/05/30/Installer-Debian-Lenny-x64-en-RAID-Logiciel</link>
    <guid isPermaLink="false">urn:md5:8577537db508508c055b16758645c4fa</guid>
    <pubDate>Sun, 30 May 2010 13:33:00 +0200</pubDate>
    <dc:creator>Jean-Baptiste HEREN</dc:creator>
        <category>Linux</category>
        <category>debian</category><category>linux</category><category>RAID</category>    
    <description>&lt;p&gt;L'installation sur des disques configurés en RAID1 offre les avantages
suivants : &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Les données sont intégralement reproduites sur deux disques (miroir)&lt;/li&gt;
&lt;li&gt;Cela permet en cas d'avarie dur un disque, de conserver un système
fonctionnel&lt;/li&gt;
&lt;li&gt;Il est aisé de remplacer un disque défectueux &lt;/li&gt;
&lt;/ul&gt;
&lt;h1&gt;Installation d'une debian 5.04 en RAID.&lt;/h1&gt;
&lt;p&gt;Après avoir récupéré une image disque depuis http://www.debian.org, préparé
la machine avec au moins deux disques de capacité équivalente, on démarre.&lt;/p&gt;
&lt;p&gt;L'installateur nous demande de sélectionner une langue, une zone
géographique, un nom d'hôte.&lt;/p&gt;
&lt;div&gt;&lt;object type=&quot;application/x-shockwave-flash&quot; style=&quot;width:480px; height:385px;&quot; data=&quot;http://www.youtube.com/v/5dAZxXK3igk?rel=0&amp;amp;showsearch=0&amp;amp;fs=1&quot;&gt;&lt;param name=&quot;movie&quot; value=&quot;http://www.youtube.com/v/5dAZxXK3igk?rel=0&amp;amp;showsearch=0&amp;amp;fs=1&quot; /&gt;
&lt;param name=&quot;allowFullScreen&quot; value=&quot;true&quot; /&gt;&lt;/object&gt;
&lt;div style=&quot;font-size: 0.8em&quot;&gt;&lt;/div&gt;
&lt;/div&gt;    &lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-size: 18px; font-weight: bold;&quot;&gt;1- Préparation des disques pour le
RAID&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Nous allons créer trois partitions gérées en RAID : &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;/boot : contenant le noyau, démarré par le gestionnaire de boot GRUB&lt;/li&gt;
&lt;li&gt;/ : Le root contient l'ensemble des données système&lt;/li&gt;
&lt;li&gt;swap&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Il faudra avoir exactement les mêmes tailles de partitions sur les
deux disques.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Pour le partitionnement des disques, nous choisirons donc l'option
&amp;quot;Manuel&amp;quot;.&lt;/p&gt;
&lt;p&gt;Nous allons créer deux partitions sur chaque disque : &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;la première pour le boot, 512M&lt;/li&gt;
&lt;li&gt;le Root : 10G&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;Voici quelques copies d'écran illustrant les étapes de cette
opération.&lt;/div&gt;
&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_2.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_2_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_2.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_3.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_3_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_3.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_4.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_4_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_4.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_5.png&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_5.png, mai 2010&quot; /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_6.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_6_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_6.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_7.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_7_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_7.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_9.png&quot;&gt;&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_9_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_9.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;Voici ce que nous devrions obtenir à la fin de cette étape :&lt;/h3&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); background-color: rgb(249, 249, 249); border-style: none;&quot;&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: underline;&quot;&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_10.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_10_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_10.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;
&lt;h2&gt;2- Configuration dur RAID Logiciel&lt;/h2&gt;
&lt;div&gt;Nous allons ici créer deux périphériques multidisque. Il s'agit de
regrouper chacune de nos partitions identiques sur nos disques afin de créer un
disque RAID.&lt;/div&gt;
&lt;div&gt;Ces périphériques pourront être utilisés soit directement pour créer des
partitions, soit pour monter des volumes physiques LVM.&lt;/div&gt;
&lt;div&gt;Voici quelques images illustrant les différentes étapes : &lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_10.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_10_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_10.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_11.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_11_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_11.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_12.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_12_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_12.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_13.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_13_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_13.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_14.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_14_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_14.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_15.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_15_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_15.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_16.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_16_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_16.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_17.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_17_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_17.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h3&gt;Et voici le résultat attendu à cette étape: &lt;/h3&gt;
&lt;div&gt;Nous avons Maintenant deux périphériques RAID, exploitables comme s'il
s'agissait de disques physiques, et sur lesquels nous pouvons créer nos
partitions.&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/debian_64_RAID__en_fonction__-_Sun_VirtualBox_18.png&quot;&gt;
&lt;img src=&quot;http://blog.jbheren.com/public/tuto/debian_RAID/.debian_64_RAID__en_fonction__-_Sun_VirtualBox_18_m.jpg&quot; alt=&quot;&quot; title=&quot;debian_64_RAID__en_fonction__-_Sun_VirtualBox_18.png, mai 2010&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;h2&gt;3- Création des partitions&lt;/h2&gt;
&lt;div&gt;Il ne nous reste donc plus qu'à attribuer nos périphériques RAID à un
usage habituel (ext3 ou swap), de préciser les points de montage, puis de
poursuivre notre installation de manière classique !&lt;/div&gt;
&lt;div&gt;Sources :&lt;/div&gt;
&lt;div&gt;http://dev.jerryweb.org/raid-fr/&lt;/div&gt;
&lt;div&gt;http://www.supinfo-projects.com/fr/2005/lvm%5Fraid%5Flinux/2/&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;</description>
    
    
    
          <comments>http://blog.jbheren.com/post/2010/05/30/Installer-Debian-Lenny-x64-en-RAID-Logiciel#comment-form</comments>
      <wfw:comment>http://blog.jbheren.com/post/2010/05/30/Installer-Debian-Lenny-x64-en-RAID-Logiciel#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.jbheren.com/feed/atom/comments/14</wfw:commentRss>
      </item>
    
  <item>
    <title>Build &amp; use mod_auth_user_dir on debian 5.0 Lenny</title>
    <link>http://blog.jbheren.com/post/2010/04/02/Build-use-mod_auth_user_dir-on-debian-Lenny</link>
    <guid isPermaLink="false">urn:md5:d6f20dd68192a475bf4ac8d4ede58d82</guid>
    <pubDate>Fri, 02 Apr 2010 12:34:00 +0200</pubDate>
    <dc:creator>Jean-Baptiste HEREN</dc:creator>
        <category>Linux</category>
        <category>apache</category><category>debian</category><category>développement web</category><category>linux</category><category>webDAV</category>    
    <description>&lt;p&gt;In the need of a WebDAV functionnality that could allow one to share users
personal directories with automated authentification, i found an apache module,
auth_user_dir, that looked fine to me on &lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px; white-space: pre;&quot;&gt;&lt;a href=&quot;http://www.genos.org&quot;&gt;http://www.genos.org&lt;/a&gt; :&lt;/span&gt;&lt;/p&gt;
&lt;blockquote&gt;
&lt;p style=&quot;line-height: 1.5em;&quot;&gt;You can create private user folders using the
WebDAV protocol. Users will have only permissions to access to their own
directory. Without this module, a htaccess file must be created inside every
user folder. This is completely unmanageable when the number of users is
big.&lt;/p&gt;
&lt;p style=&quot;line-height: 1.5em;&quot;&gt;We can build a file server accessible from
Windows and Linux using the WebDAV protocol and a web server like Apache.
Because the protocol is build upon HTTP, the server uses ports TCP 80 (HTTP)
and TCP 443 (HTTPS). These ports are commonly open in firewalls without any
other special requirement.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 18px; white-space: pre;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: normal; white-space: normal;&quot;&gt;The module appears to have been
developed in 2004 an  &lt;a href=&quot;http://matt.colyer.name/projects/mod_auth_user_dir.html&quot;&gt;attached
tutorial&lt;/a&gt; was referring to some patches that no longer exist. So here
is explained the way I managed to build this module on debian in 2010. I also
found some tricks to make the mysql authentication work. This is a little crap
but &lt;strong&gt;it worked&lt;/strong&gt; !&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;    &lt;div style=&quot;background-image: initial; background-repeat: initial; background-attachment: initial; -webkit-background-clip: initial; -webkit-background-origin: initial; background- border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-width: initial; border- background-position: initial initial;&quot;&gt;
&lt;h2&gt;&lt;strong&gt;Prerequisites&lt;/strong&gt;&lt;/h2&gt;
&lt;h4&gt;first install the needed dev packages if those are not already on your
system&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; apt-get install apache2
    \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  apache2-threaded-dev   
    \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libtool        
            \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libltdl3       
            \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libltdl3-dev     
          \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  automake       
            \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  make       
                \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libapache2-mod-auth-mysql  
\&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libapache2-mod-ldap-userdir
\&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libapr1        
            \&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;  libapr1-dev      
          \&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Get the module source code (or take the ready to make &lt;a href=&quot;http://blog.jbheren.com/public/tuto/mod_auth_user_dir/mod_auth_user_dir.tar.bz2&quot;&gt;&lt;span style=&quot;font: normal normal normal 18px/normal 'Lucida Grande';&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;text-decoration: none;&quot;&gt;&lt;strong&gt;attached
file&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;)&lt;/h2&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; cd /root&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; mkdir src&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; cd src&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'; color: #1e00af&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px color: #000000&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; wget
&lt;a href=&quot;http://www.genos.org/downloads/mod_authuserdir-1.0.tgz&quot;&gt;&lt;span style=&quot;text-decoration: underline ; letter-spacing: 0.0px&quot;&gt;http://www.genos.org/downloads/mod_authuserdir-1.0.tgz&lt;/span&gt;&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; tar -xzvf
mod_authuserdir-1.0.tgz&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; cd
mod_auth_user_dir/&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Then download the replacement files attached or patch &lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; patch -p1 &amp;lt;
Makefile.am.diff&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; patch -p1 &amp;lt;
configure.in.diff&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;build the module&lt;/h2&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; aclocal&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; autoconf&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; automake -a&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; ./configure
--with-apache=/usr/include/apache2&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Install the module&lt;/h2&gt;
&lt;h4&gt;Build and install library&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; apxs2 -i -a -n
auth_user_dir libmod_auth_user_dir.la&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Create the needed file for activation of this module in apache2, the debian
way&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; echo 'LoadModule
mod_auth_user_module /usr/lib/apache2/modules/libmod_auth_user_dir.so'
\&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt;
/etc/apache2/mods-available/auth_user_dir.load&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Enable the needed modules&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; a2enmod
auth_mysql&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; a2enmod dav&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; a2enmod
dav_fs&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; a2enmod
auth_user_dir&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Create database and tables for mysql_auth . (Here we assume you already
have mysql running)&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; mysqladmin -uroot -p
create davusers&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; mysql -uroot -p
davusers&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;mysql&amp;gt; CREATE TABLE users (&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt;   user_name CHAR(30) NOT
NULL,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt;   user_passwd CHAR(20) NOT
NULL,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt;   user_group CHAR(10),&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt;   PRIMARY KEY
(user_name)&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; );&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Add one user to database&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; INSERT INTO 
`davusers`.`user_info` (&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; `user_name` ,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; `user_passwd` ,&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; `user_group`&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; ) VALUES (&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; 'test',  'test', 
''&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;gt; );&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Create folder for DAV &amp;amp; users subfolders&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;# mkdir /var/davshare&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;# mkdir /var/davshare/test&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Change apache virtualhost configuration&lt;/h2&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Add the following directory to your
virtualhost conf file&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Alias /webdav /var/davshare&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;lt;Location /webdav&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;# Activate DAV module on this
location&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;DAV On&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;# Specific auth_user_Dir
Parameter&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;  AuthUserDirRoot 
&amp;quot;/var/davsharev&amp;quot;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;# auth_mysql parameters&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthName &amp;quot;Secured access&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthGroupFile /dev/null&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthUserFile /dev/null&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthType Basic&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthBasicAuthoritative Off&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL On&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Host localhost&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_User admin&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Password mmypassword&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Authoritative on&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_DB davusers&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Password_Table
user_info&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Username_Field
user_name&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Password_Field
user_passwd&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Group_Field user_group&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Group_Table user_info&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;AuthMySQL_Encryption_Types Plaintext
PHP_MD5 Crypt_DES&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;lt;Limit GET PUT POST DELETE PROPFIND
PROPPATCH MKCOL COPY MOVE LOCK UNLOCK&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;require valid-user&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;lt;/Limit&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&amp;lt;/Location&amp;gt;&lt;/span&gt;&lt;/p&gt;
&lt;h4&gt;Restart Apache2&lt;/h4&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; /etc/init.d/apache2
restart&lt;/span&gt;&lt;/p&gt;
&lt;h2&gt;Does it works ?&lt;/h2&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;If you are on a linux, then you can test
your connexion with a command line client : cadaver.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; apt-get install
cadaver&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 13.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;#&lt;/strong&gt; cadaver
my.virtual.host/webdav/test&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;cadaver should ask you a username and
password. type the ones you added in mysql table and you should see a dav
prompt like it :&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;&lt;strong&gt;dav:/webdav/&amp;gt;&lt;/strong&gt;
ls&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Listing collection `/webdav/':
succeeded.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Coll:   test      
                     
        0  Apr  2 16:14&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Courier New'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Coll:   notme      
                     
     0  Apr  2 16:14&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Then if you try to access to a folder
different from the user you specified at logon, you will be asked for the
correct username and password.&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;So it should work. the last issue is that
users can see the list on folders in the dav share, even if they cannot see the
contents. If anyone has an idea to fix this issue ...&lt;/span&gt;&lt;/p&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;Also here is a nice description on how you
can get connected to a webDAV Share using Any operating system : &lt;a href=&quot;http://plone.org/documentation/kb/webdav&quot;&gt;&lt;span style=&quot;text-decoration: underline ; letter-spacing: 0.0px color: #1e00af&quot;&gt;http://plone.org/documentation/kb/webdav&lt;/span&gt;&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;br /&gt;
&lt;p style=&quot;margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px 'Lucida Grande'&quot;&gt;
&lt;span style=&quot;letter-spacing: 0.0px&quot;&gt;I hope this will help someone, it already
helped myself :)&lt;/span&gt;&lt;/p&gt;
&lt;/div&gt;</description>
    
          <enclosure url="http://blog.jbheren.com/public/tuto/mod_auth_user_dir/mod_auth_user_dir.tar.bz2"
      length="454942" type="application/x-bzip" />
          <enclosure url="http://blog.jbheren.com/public/tuto/mod_auth_user_dir/Makefile.am.diff"
      length="498" type="text/plain" />
          <enclosure url="http://blog.jbheren.com/public/tuto/mod_auth_user_dir/configure.in.diff"
      length="668" type="text/plain" />
    
    
          <comments>http://blog.jbheren.com/post/2010/04/02/Build-use-mod_auth_user_dir-on-debian-Lenny#comment-form</comments>
      <wfw:comment>http://blog.jbheren.com/post/2010/04/02/Build-use-mod_auth_user_dir-on-debian-Lenny#comment-form</wfw:comment>
      <wfw:commentRss>http://blog.jbheren.com/feed/atom/comments/15</wfw:commentRss>
      </item>
    
</channel>
</rss>
