Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Linux - Avoinding x server message when running .exe with wine

I'm trying to run a .exe file (that uses some other .dll files) with wine, in Ubuntu 11.04, command line, but i get an error regarding the x server not being started and that a window is being created (i attached a screenshot).

When I run it normally (normal ubuntu boot, x server running) everything is ok, but actually, no window is displayed, which is normal because no window is needed for the program to run. So I just want to know if there is a way to avoid that: somehow simulating that the x server is open or to set $DISPLAY in some way to "fool" the program.

Error message

like image 521
Andrei F Avatar asked Jul 01 '12 16:07

Andrei F


People also ask

How to run exe on Linux Wine?

Most binary Wine packages will associate Wine with .exe files for you. If that is the case, you should be able to simply double-click on the .exe file in your file manager, just like in Windows. You can also right-click on the file, choose "Run with", and choose "Wine".

Can Wine run. exe files?

Wine will allow you to run the Windows executable file on your Mac without using a Windows emulator.

What is an X server?

• An X-server allows you to display graphical problems from a UNIX/Linux machine on your local. computer. • Examples of programs with graphical front-ends include Matlab, R, S-Plus, SAS and emacs.

How to run game using Wine?

For the command, type in wine the-location-of-the-program.exe (e.g. wine /home/john/. wine/realplayer.exe). The most important part of creating a launcher is the command, the generic name is not as important. Just make sure you de-select "Run in terminal." This completes the process.


1 Answers

Just use Xvfb.

Xvfb :1 &
DISPLAY=:1 wine ...
like image 118
Igor Chubin Avatar answered Sep 22 '22 05:09

Igor Chubin