€•8Œsphinx.addnodes”Œdocument”“”)”}”(Œ rawsource”Œ”Œchildren”]”(Œ translations”Œ LanguagesNode”“”)”}”(hhh]”(hŒ pending_xref”“”)”}”(hhh]”Œdocutils.nodes”ŒText”“”ŒChinese (Simplified)”…””}”Œparent”hsbaŒ attributes”}”(Œids”]”Œclasses”]”Œnames”]”Œdupnames”]”Œbackrefs”]”Œ refdomain”Œstd”Œreftype”Œdoc”Œ reftarget”Œ$/translations/zh_CN/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuŒtagname”hhh ubh)”}”(hhh]”hŒChinese (Traditional)”…””}”hh2sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/zh_TW/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒItalian”…””}”hhFsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/it_IT/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒJapanese”…””}”hhZsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ja_JP/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒKorean”…””}”hhnsbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/ko_KR/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒPortuguese (Brazilian)”…””}”hh‚sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/pt_BR/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubh)”}”(hhh]”hŒSpanish”…””}”hh–sbah}”(h]”h ]”h"]”h$]”h&]”Œ refdomain”h)Œreftype”h+Œ reftarget”Œ$/translations/sp_SP/admin-guide/mono”Œmodname”NŒ classname”NŒ refexplicit”ˆuh1hhh ubeh}”(h]”h ]”h"]”h$]”h&]”Œcurrent_language”ŒEnglish”uh1h hhŒ _document”hŒsource”NŒline”NubhŒsection”“”)”}”(hhh]”(hŒtitle”“”)”}”(hŒ(Mono(tm) Binary Kernel Support for Linux”h]”hŒ(Mono(tm) Binary Kernel Support for Linux”…””}”(hh¼h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hºhh·h²hh³Œ>/var/lib/git/docbuild/linux/Documentation/admin-guide/mono.rst”h´KubhŒ paragraph”“”)”}”(hŒºTo configure Linux to automatically execute Mono-based .NET binaries (in the form of .exe files) without the need to use the mono CLR wrapper, you can use the BINFMT_MISC kernel support.”h]”hŒºTo configure Linux to automatically execute Mono-based .NET binaries (in the form of .exe files) without the need to use the mono CLR wrapper, you can use the BINFMT_MISC kernel support.”…””}”(hhÍh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhÌ)”}”(hŒvThis will allow you to execute Mono-based .NET binaries just like any other program after you have done the following:”h]”hŒvThis will allow you to execute Mono-based .NET binaries just like any other program after you have done the following:”…””}”(hhÛh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khh·h²hubhŒenumerated_list”“”)”}”(hhh]”(hŒ list_item”“”)”}”(hXþYou MUST FIRST install the Mono CLR support, either by downloading a binary package, a source tarball or by installing from Git. Binary packages for several distributions can be found at: https://www.mono-project.com/download/ Instructions for compiling Mono can be found at: https://www.mono-project.com/docs/compiling-mono/linux/ Once the Mono CLR support has been installed, just check that ``/usr/bin/mono`` (which could be located elsewhere, for example ``/usr/local/bin/mono``) is working. ”h]”(hÌ)”}”(hŒ»You MUST FIRST install the Mono CLR support, either by downloading a binary package, a source tarball or by installing from Git. Binary packages for several distributions can be found at:”h]”hŒ»You MUST FIRST install the Mono CLR support, either by downloading a binary package, a source tarball or by installing from Git. Binary packages for several distributions can be found at:”…””}”(hhôh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K hhðubhŒ block_quote”“”)”}”(hŒ'https://www.mono-project.com/download/ ”h]”hÌ)”}”(hŒ&https://www.mono-project.com/download/”h]”hŒ reference”“”)”}”(hj h]”hŒ&https://www.mono-project.com/download/”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j uh1j hjubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khjubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´KhhðubhÌ)”}”(hŒ0Instructions for compiling Mono can be found at:”h]”hŒ0Instructions for compiling Mono can be found at:”…””}”(hj(h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhðubj)”}”(hŒ8https://www.mono-project.com/docs/compiling-mono/linux/ ”h]”hÌ)”}”(hŒ7https://www.mono-project.com/docs/compiling-mono/linux/”h]”j )”}”(hj<h]”hŒ7https://www.mono-project.com/docs/compiling-mono/linux/”…””}”(hj>h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j<uh1j hj:ubah}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj6ubah}”(h]”h ]”h"]”h$]”h&]”uh1jh³hÊh´KhhðubhÌ)”}”(hŒ£Once the Mono CLR support has been installed, just check that ``/usr/bin/mono`` (which could be located elsewhere, for example ``/usr/local/bin/mono``) is working.”h]”(hŒ>Once the Mono CLR support has been installed, just check that ”…””}”(hjXh²hh³Nh´NubhŒliteral”“”)”}”(hŒ``/usr/bin/mono``”h]”hŒ /usr/bin/mono”…””}”(hjbh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjXubhŒ0 (which could be located elsewhere, for example ”…””}”(hjXh²hh³Nh´Nubja)”}”(hŒ``/usr/local/bin/mono``”h]”hŒ/usr/local/bin/mono”…””}”(hjth²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjXubhŒ ) is working.”…””}”(hjXh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khhðubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîhhëh²hh³hÊh´Nubhï)”}”(hXqYou have to compile BINFMT_MISC either as a module or into the kernel (``CONFIG_BINFMT_MISC``) and set it up properly. If you choose to compile it as a module, you will have to insert it manually with modprobe/insmod, as kmod cannot be easily supported with binfmt_misc. Read the file ``binfmt_misc.txt`` in this directory to know more about the configuration process. ”h]”hÌ)”}”(hXpYou have to compile BINFMT_MISC either as a module or into the kernel (``CONFIG_BINFMT_MISC``) and set it up properly. If you choose to compile it as a module, you will have to insert it manually with modprobe/insmod, as kmod cannot be easily supported with binfmt_misc. Read the file ``binfmt_misc.txt`` in this directory to know more about the configuration process.”h]”(hŒGYou have to compile BINFMT_MISC either as a module or into the kernel (”…””}”(hj–h²hh³Nh´Nubja)”}”(hŒ``CONFIG_BINFMT_MISC``”h]”hŒCONFIG_BINFMT_MISC”…””}”(hjžh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj–ubhŒÀ) and set it up properly. If you choose to compile it as a module, you will have to insert it manually with modprobe/insmod, as kmod cannot be easily supported with binfmt_misc. Read the file ”…””}”(hj–h²hh³Nh´Nubja)”}”(hŒ``binfmt_misc.txt``”h]”hŒbinfmt_misc.txt”…””}”(hj°h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hj–ubhŒ@ in this directory to know more about the configuration process.”…””}”(hj–h²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´Khj’ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîhhëh²hh³hÊh´Nubhï)”}”(hXÙAdd the following entries to ``/etc/rc.local`` or similar script to be run at system startup: .. code-block:: sh # Insert BINFMT_MISC module into the kernel if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then /sbin/modprobe binfmt_misc # Some distributions, like Fedora Core, perform # the following command automatically when the # binfmt_misc module is loaded into the kernel # or during normal boot up (systemd-based systems). # Thus, it is possible that the following line # is not needed at all. mount -t binfmt_misc none /proc/sys/fs/binfmt_misc fi # Register support for .NET CLR binaries if [ -e /proc/sys/fs/binfmt_misc/register ]; then # Replace /usr/bin/mono with the correct pathname to # the Mono CLR runtime (usually /usr/local/bin/mono # when compiling from sources or CVS). echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register else echo "No binfmt_misc support" exit 1 fi ”h]”(hÌ)”}”(hŒ]Add the following entries to ``/etc/rc.local`` or similar script to be run at system startup:”h]”(hŒAdd the following entries to ”…””}”(hjÒh²hh³Nh´Nubja)”}”(hŒ``/etc/rc.local``”h]”hŒ /etc/rc.local”…””}”(hjÚh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjÒubhŒ/ or similar script to be run at system startup:”…””}”(hjÒh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K!hjÎubhŒ literal_block”“”)”}”(hXP# Insert BINFMT_MISC module into the kernel if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then /sbin/modprobe binfmt_misc # Some distributions, like Fedora Core, perform # the following command automatically when the # binfmt_misc module is loaded into the kernel # or during normal boot up (systemd-based systems). # Thus, it is possible that the following line # is not needed at all. mount -t binfmt_misc none /proc/sys/fs/binfmt_misc fi # Register support for .NET CLR binaries if [ -e /proc/sys/fs/binfmt_misc/register ]; then # Replace /usr/bin/mono with the correct pathname to # the Mono CLR runtime (usually /usr/local/bin/mono # when compiling from sources or CVS). echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register else echo "No binfmt_misc support" exit 1 fi”h]”hXP# Insert BINFMT_MISC module into the kernel if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then /sbin/modprobe binfmt_misc # Some distributions, like Fedora Core, perform # the following command automatically when the # binfmt_misc module is loaded into the kernel # or during normal boot up (systemd-based systems). # Thus, it is possible that the following line # is not needed at all. mount -t binfmt_misc none /proc/sys/fs/binfmt_misc fi # Register support for .NET CLR binaries if [ -e /proc/sys/fs/binfmt_misc/register ]; then # Replace /usr/bin/mono with the correct pathname to # the Mono CLR runtime (usually /usr/local/bin/mono # when compiling from sources or CVS). echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register else echo "No binfmt_misc support" exit 1 fi”…””}”hjôsbah}”(h]”h ]”h"]”h$]”h&]”Œ xml:space”Œpreserve”Œforce”‰Œlanguage”Œsh”Œhighlight_args”}”uh1jòh³hÊh´K$hjÎubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîhhëh²hh³Nh´Nubhï)”}”(hX.Check that ``.exe`` binaries can be ran without the need of a wrapper script, simply by launching the ``.exe`` file directly from a command prompt, for example:: /usr/bin/xsd.exe .. note:: If this fails with a permission denied error, check that the ``.exe`` file has execute permissions.”h]”(hÌ)”}”(hŒ¡Check that ``.exe`` binaries can be ran without the need of a wrapper script, simply by launching the ``.exe`` file directly from a command prompt, for example::”h]”(hŒ Check that ”…””}”(hjh²hh³Nh´Nubja)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hjh²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubhŒS binaries can be ran without the need of a wrapper script, simply by launching the ”…””}”(hjh²hh³Nh´Nubja)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hj-h²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjubhŒ2 file directly from a command prompt, for example:”…””}”(hjh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´K=hjubjó)”}”(hŒ/usr/bin/xsd.exe”h]”hŒ/usr/bin/xsd.exe”…””}”hjEsbah}”(h]”h ]”h"]”h$]”h&]”jjuh1jòh³hÊh´KAhjubhŒnote”“”)”}”(hŒcIf this fails with a permission denied error, check that the ``.exe`` file has execute permissions.”h]”hÌ)”}”(hŒcIf this fails with a permission denied error, check that the ``.exe`` file has execute permissions.”h]”(hŒ=If this fails with a permission denied error, check that the ”…””}”(hjYh²hh³Nh´Nubja)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hjah²hh³Nh´Nubah}”(h]”h ]”h"]”h$]”h&]”uh1j`hjYubhŒ file has execute permissions.”…””}”(hjYh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1hËh³hÊh´KEhjUubah}”(h]”h ]”h"]”h$]”h&]”uh1jShjubeh}”(h]”h ]”h"]”h$]”h&]”uh1hîhhëh²hh³Nh´Nubeh}”(h]”h ]”h"]”h$]”h&]”Œenumtype”Œarabic”Œprefix”hŒsuffix”Œ)”uh1héhh·h²hh³hÊh´K ubeh}”(h]”Œ'mono-tm-binary-kernel-support-for-linux”ah ]”h"]”Œ(mono(tm) binary kernel support for linux”ah$]”h&]”uh1hµhhh²hh³hÊh´Kubeh}”(h]”h ]”h"]”h$]”h&]”Œsource”hÊuh1hŒcurrent_source”NŒ current_line”NŒsettings”Œdocutils.frontend”ŒValues”“”)”}”(hºNŒ generator”NŒ datestamp”NŒ source_link”NŒ source_url”NŒ toc_backlinks”Œentry”Œfootnote_backlinks”KŒ sectnum_xform”KŒstrip_comments”NŒstrip_elements_with_classes”NŒ strip_classes”NŒ report_level”KŒ halt_level”KŒexit_status_level”KŒdebug”NŒwarning_stream”NŒ traceback”ˆŒinput_encoding”Œ utf-8-sig”Œinput_encoding_error_handler”Œstrict”Œoutput_encoding”Œutf-8”Œoutput_encoding_error_handler”j»Œerror_encoding”Œutf-8”Œerror_encoding_error_handler”Œbackslashreplace”Œ language_code”Œen”Œrecord_dependencies”NŒconfig”NŒ id_prefix”hŒauto_id_prefix”Œid”Œ dump_settings”NŒdump_internals”NŒdump_transforms”NŒdump_pseudo_xml”NŒexpose_internals”NŒstrict_visitor”NŒ_disable_config”NŒ_source”hÊŒ _destination”NŒ _config_files”]”Œ7/var/lib/git/docbuild/linux/Documentation/docutils.conf”aŒfile_insertion_enabled”ˆŒ raw_enabled”KŒline_length_limit”M'Œpep_references”NŒ pep_base_url”Œhttps://peps.python.org/”Œpep_file_url_template”Œpep-%04d”Œrfc_references”NŒ rfc_base_url”Œ&https://datatracker.ietf.org/doc/html/”Œ tab_width”KŒtrim_footnote_reference_space”‰Œsyntax_highlight”Œlong”Œ smart_quotes”ˆŒsmartquotes_locales”]”Œcharacter_level_inline_markup”‰Œdoctitle_xform”‰Œ docinfo_xform”KŒsectsubtitle_xform”‰Œ image_loading”Œlink”Œembed_stylesheet”‰Œcloak_email_addresses”ˆŒsection_self_link”‰Œenv”NubŒreporter”NŒindirect_targets”]”Œsubstitution_defs”}”Œsubstitution_names”}”Œrefnames”}”Œrefids”}”Œnameids”}”j•j’sŒ nametypes”}”j•‰sh}”j’h·sŒ footnote_refs”}”Œ citation_refs”}”Œ autofootnotes”]”Œautofootnote_refs”]”Œsymbol_footnotes”]”Œsymbol_footnote_refs”]”Œ footnotes”]”Œ citations”]”Œautofootnote_start”KŒsymbol_footnote_start”KŒ id_counter”Œ collections”ŒCounter”“”}”…”R”Œparse_messages”]”Œtransform_messages”]”Œ transformer”NŒ include_log”]”Œ decoration”Nh²hub.