Is the following true? If so, what does it mean-- what will happen if I fail to "make the EXE binaries compatible with the kernel?"


You can make your mono .exe files executable by following these steps:

  1. Enabling binfmt in your kernel.
  2. Adding the line below to your fstab:
    binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc none
    
  3. On boot run the command below:
    echo ':CLR:M::MZ::/usr/bin/mono:' >
    /proc/sys/fs/binfmt_misc/register
    
  4. chmod +x foobar.exe
Another way to accomplish the above is to wrap the
mono .exe file it in a shell script, like this:
#!/bin/sh
/usr/bin/mono "$@"

If you installed mono to a different location, substitute that for /usr/bin/mono. You can check with the "which mono" command.

Reply via email to