~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/Documentation/admin-guide/mono.rst

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 Mono(tm) Binary Kernel Support for Linux
  2 -----------------------------------------
  3 
  4 To configure Linux to automatically execute Mono-based .NET binaries
  5 (in the form of .exe files) without the need to use the mono CLR
  6 wrapper, you can use the BINFMT_MISC kernel support.
  7 
  8 This will allow you to execute Mono-based .NET binaries just like any
  9 other program after you have done the following:
 10 
 11 1) You MUST FIRST install the Mono CLR support, either by downloading
 12    a binary package, a source tarball or by installing from Git. Binary
 13    packages for several distributions can be found at:
 14 
 15         https://www.mono-project.com/download/
 16 
 17    Instructions for compiling Mono can be found at:
 18 
 19         https://www.mono-project.com/docs/compiling-mono/linux/
 20 
 21    Once the Mono CLR support has been installed, just check that
 22    ``/usr/bin/mono`` (which could be located elsewhere, for example
 23    ``/usr/local/bin/mono``) is working.
 24 
 25 2) You have to compile BINFMT_MISC either as a module or into
 26    the kernel (``CONFIG_BINFMT_MISC``) and set it up properly.
 27    If you choose to compile it as a module, you will have
 28    to insert it manually with modprobe/insmod, as kmod
 29    cannot be easily supported with binfmt_misc.
 30    Read the file ``binfmt_misc.txt`` in this directory to know
 31    more about the configuration process.
 32 
 33 3) Add the following entries to ``/etc/rc.local`` or similar script
 34    to be run at system startup:
 35 
 36    .. code-block:: sh
 37 
 38     # Insert BINFMT_MISC module into the kernel
 39     if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
 40         /sbin/modprobe binfmt_misc
 41         # Some distributions, like Fedora Core, perform
 42         # the following command automatically when the
 43         # binfmt_misc module is loaded into the kernel
 44         # or during normal boot up (systemd-based systems).
 45         # Thus, it is possible that the following line
 46         # is not needed at all.
 47         mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
 48     fi
 49 
 50     # Register support for .NET CLR binaries
 51     if [ -e /proc/sys/fs/binfmt_misc/register ]; then
 52         # Replace /usr/bin/mono with the correct pathname to
 53         # the Mono CLR runtime (usually /usr/local/bin/mono
 54         # when compiling from sources or CVS).
 55         echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
 56     else
 57         echo "No binfmt_misc support"
 58         exit 1
 59     fi
 60 
 61 4) Check that ``.exe`` binaries can be ran without the need of a
 62    wrapper script, simply by launching the ``.exe`` file directly
 63    from a command prompt, for example::
 64 
 65         /usr/bin/xsd.exe
 66 
 67    .. note::
 68 
 69       If this fails with a permission denied error, check
 70       that the ``.exe`` file has execute permissions.

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php