title: How to run wine inside a chrooted environment in ubuntu?
body: <p>I'm trying to run wine inside a 'pseudo' jail inside Ubuntu.</p>
  
  <p>I've been able to debootstrap an Ubuntu install and run wine inside it so far.</p>
  
  <p>Problem is that there are a LOT of libraries that are being included.</p>
  
  <p>Is there a simple way to figure out which libraries are required by wine ?</p>
  
  <p>I've tried ldd /usr/bin/wine</p>
  
  <pre><code>linux-gate.so.1 =&gt;  (0xf7702000)
  libwine.so.1 =&gt; /usr/bin/../lib32/libwine.so.1 (0xf75bf000)
  libpthread.so.0 =&gt; /lib32/libpthread.so.0 (0xf7590000)
  libc.so.6 =&gt; /lib32/libc.so.6 (0xf7433000)
  libdl.so.2 =&gt; /lib32/libdl.so.2 (0xf742f000)
  /lib/ld-linux.so.2 (0xf7703000)
  </code></pre>
  
  <p>But that doesn't help me much to figure out which libraries are actually needed.</p>
  
  <p>EDIT:
  i'm running wine from Xvnc (.vnc/xstartup):</p>
  
  <pre><code>env DISPLAY=127.0.0.1$DISPLAY CHROOT_DIR=/home/chroot \
  COMMAND="/usr/bin/wine $HOME/myapp.exe"
  </code></pre>
  
  <p>Where '/home/chroot' is the debootstrapped install. </p>
  
  <p>Is there a better way?</p>