€•Ž7Œ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Œ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”“”)”}”(hhöh]”hŒ&https://www.mono-project.com/download/”…””}”(hhúhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”höuh1høhhôubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khhðubah}”(h]”h ]”h"]”h$]”h&]”uh1hîhŸh¶h KhhÜubh¸)”}”(hŒ0Instructions for compiling Mono can be found at:”h]”hŒ0Instructions for compiling Mono can be found at:”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KhhÜubhï)”}”(hŒ8https://www.mono-project.com/docs/compiling-mono/linux/ ”h]”h¸)”}”(hŒ7https://www.mono-project.com/docs/compiling-mono/linux/”h]”hù)”}”(hj(h]”hŒ7https://www.mono-project.com/docs/compiling-mono/linux/”…””}”(hj*hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”Œrefuri”j(uh1høhj&ubah}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h Khj"ubah}”(h]”h ]”h"]”h$]”h&]”uh1hîhŸ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 ”…””}”(hjDhžhhŸNh NubhŒliteral”“”)”}”(hŒ``/usr/bin/mono``”h]”hŒ /usr/bin/mono”…””}”(hjNhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhjDubhŒ0 (which could be located elsewhere, for example ”…””}”(hjDhžhhŸNh NubjM)”}”(hŒ``/usr/local/bin/mono``”h]”hŒ/usr/local/bin/mono”…””}”(hj`hžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhjDubhŒ ) is working.”…””}”(hjDhž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 NubjM)”}”(hŒ``CONFIG_BINFMT_MISC``”h]”hŒCONFIG_BINFMT_MISC”…””}”(hjŠhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhj‚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 NubjM)”}”(hŒ``binfmt_misc.txt``”h]”hŒbinfmt_misc.txt”…””}”(hjœhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhj‚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 NubjM)”}”(hŒ``/etc/rc.local``”h]”hŒ /etc/rc.local”…””}”(hjÆhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhj¾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 ”…””}”(hjÿhžhhŸNh NubjM)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhjÿubhŒS binaries can be ran without the need of a wrapper script, simply by launching the ”…””}”(hjÿhžhhŸNh NubjM)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hjhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhjÿubhŒ2 file directly from a command prompt, for example:”…””}”(hjÿhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h K=hjûubjß)”}”(hŒ/usr/bin/xsd.exe”h]”hŒ/usr/bin/xsd.exe”…””}”hj1sbah}”(h]”h ]”h"]”h$]”h&]”jîjïuh1jÞhŸh¶h KAhjûubhŒ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 ”…””}”(hjEhžhhŸNh NubjM)”}”(hŒ``.exe``”h]”hŒ.exe”…””}”(hjMhžhhŸNh Nubah}”(h]”h ]”h"]”h$]”h&]”uh1jLhjEubhŒ file has execute permissions.”…””}”(hjEhžhhŸNh Nubeh}”(h]”h ]”h"]”h$]”h&]”uh1h·hŸh¶h KEhjAubah}”(h]”h ]”h"]”h$]”h&]”uh1j?hjûubeh}”(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”}”jj~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.