Hello, I want to run some program with Wine in a headless server. However, I want to access it via VNC, so I am using Xvnc (vncserver is a wrapper script) from tightvnc as a X server. But I have a problem: wine doesn't detect the display of the X server. This is what happens: Code: [martin@urano ~]$ DISPLAY=:1 [martin@urano ~]$ vncserver :1 New 'X' desktop is urano:1 (...) [martin@urano ~]$ rm -rf .wine/ # just to be sure everything is clean [martin@urano ~]$ winemine wine: created the configuration directory '/home/martin/.wine' ALSA lib seq_hw.c:457:(snd_seq_hw_open) open /dev/snd/seq failed: No such file or directory Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. err:ole:apartment_createwindowifneeded CreateWindow failed with error 1114 err:ole:apartment_createwindowifneeded CreateWindow failed with error 1114 Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. err:ole:apartment_createwindowifneeded CreateWindow failed with error 1114 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 Could not load Mozilla. HTML rendering will be disabled. err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error 0 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error 0 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:ole:apartment_createwindowifneeded CreateWindow failed with error -536870654 err:wgl:process_attach X11DRV or GDI32 not loaded. Cannot create default context. wine: configuration in '/home/martin/.wine' has been updated. Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. Application tried to create a window, but no driver could be loaded. Make sure that your X server is running and that $DISPLAY is set correctly. I tried with Xvfb but I get the exact same result. I remember doing this in the past in other computer, and it worked great! I am not sure what is wrong here. I am using Arch Linux, but I tried with Ubuntu JeOS 8.04.1 (in a virtual machine) and got the exact same result. Here is some info... Code: [martin@urano ~]$ wine --version wine-1.1.17 [martin@urano ~]$ uname -a Linux urano 2.6.28-ARCH #1 SMP PREEMPT Sun Mar 8 10:18:28 UTC 2009 i686 Intel(R) Core(TM)2 Duo CPU E8400 @ 3.00GHz GenuineIntel GNU/Linux Any ideas on what I am doing wrong? Thanks in advance :)