Wine 1.1.17 not detecting Xvnc display

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
hapablap
Newbie
Newbie
Posts: 2
Joined: Fri Mar 20, 2009 7:33 pm

Wine 1.1.17 not detecting Xvnc display

Post by hapablap »

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: Select all

[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: Select all

[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 :)
hapablap
Newbie
Newbie
Posts: 2
Joined: Fri Mar 20, 2009 7:33 pm

Post by hapablap »

I hate when this happens. The exact moment I posted my last message, I got with the solution. It looks like I was setting incorrectly the environment variable, since this works:

Code: Select all

[martin@urano ~]$ DISPLAY=:1 winemine
At least I hope that my mistake is useful to somebody :)
Usurp
Level 4
Level 4
Posts: 161
Joined: Sat Apr 19, 2008 7:16 am

Post by Usurp »

hapablap wrote:I hate when this happens. The exact moment I posted my last message, I got with the solution. It looks like I was setting incorrectly the environment variable, since this works:

Code: Select all

[martin@urano ~]$ DISPLAY=:1 winemine
At least I hope that my mistake is useful to somebody :)
The correct way is to export the environment variable, making it available when not having to repeat it for every program.

Code: Select all

[martin@urano ~]$ export DISPLAY=:1
[martin@urano ~]$ winemine
[martin@urano ~]$ regedit
[martin@urano ~]$ wine someotherprogram.exe
Locked