Smokes your problems, coughs fresh air.

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

Done.

1 Comment

  1. Ranko Todorovic

    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.

© 2024 BigSmoke

Theme by Anders NorenUp ↑