Skip to content

Native execution of Windows programs on Linux

When I installed this laptop last year, I was pleasantly surprised by the performance of vanilla Wine (and Gentoo’s default Wine configuration). At that time, my only memory of Wine was that getting anything useful to work took work and that your best bet to get anything working was to install CrossOver Office. Things change and in the meantime Wine has even come to version 1.0.

I want to write down what I had to do to be able to execute Windows executables as if they are Linux native. This can be done thanks to Linux’ support for misc. binaries.

First, you have to enable CONFIG_BINFMT_MISC in your kernel configuration. If it was configured as a module, run /sbin/modprobe binfmt_misc.

Then you have to register the appropriate binary formats:

':windows:M::MZ::/usr/bin/wine:' > /proc/sys/fs/binfmt_misc/register

That’s it. Of course, the .exe files need to have their executable bit set:

chmod u+x program.exe


    2 Comments ( Add comment / trackback )

    1. On Jun 28, 2009 at 17:38

      […] together with Linux’s binfmt_misc makes executing Windows programs on Linux a breeze. « Back to top » Skip to […]

    2. (permalink)
      Comment by Ranko Todorovic
      On July 7, 2009 at 15:34

      I want to try to destroy stupid windows system fool of corupted programs, now i used and work with ubuntu linux-es, becouse that’s the best linux for now. But stupid people likes to see that exe files an setup programs works on linux. That’s all binnary files, and i have trubble to make popularity of the best OS on the world. My regards.