aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/mono.txt
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:20:36 -0400
commit1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch)
tree0bba044c4ce775e45a88a51686b5d9f90697ea9d /Documentation/mono.txt
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history, even though we have it. We can create a separate "historical" git archive of that later if we want to, and in the meantime it's about 3.2GB when imported into git - space that would just make the early git days unnecessarily complicated, when we don't have a lot of good infrastructure for it. Let it rip!
Diffstat (limited to 'Documentation/mono.txt')
-rw-r--r--Documentation/mono.txt66
1 files changed, 66 insertions, 0 deletions
diff --git a/Documentation/mono.txt b/Documentation/mono.txt
new file mode 100644
index 000000000000..6739ab9615ef
--- /dev/null
+++ b/Documentation/mono.txt
@@ -0,0 +1,66 @@
1 Mono(tm) Binary Kernel Support for Linux
2 -----------------------------------------
3
4To configure Linux to automatically execute Mono-based .NET binaries
5(in the form of .exe files) without the need to use the mono CLR
6wrapper, you can use the BINFMT_MISC kernel support.
7
8This will allow you to execute Mono-based .NET binaries just like any
9other program after you have done the following:
10
111) You MUST FIRST install the Mono CLR support, either by downloading
12 a binary package, a source tarball or by installing from CVS. Binary
13 packages for several distributions can be found at:
14
15 http://go-mono.com/download.html
16
17 Instructions for compiling Mono can be found at:
18
19 http://www.go-mono.com/compiling.html
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
252) 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 can not 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
333) Add the following enries to /etc/rc.local or similar script
34 to be run at system startup:
35
36# Insert BINFMT_MISC module into the kernel
37if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
38 /sbin/modprobe binfmt_misc
39 # Some distributions, like Fedora Core, perform
40 # the following command automatically when the
41 # binfmt_misc module is loaded into the kernel.
42 # Thus, it is possible that the following line
43 # is not needed at all. Look at /etc/modprobe.conf
44 # to check whether this is applicable or not.
45 mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
46fi
47
48# Register support for .NET CLR binaries
49if [ -e /proc/sys/fs/binfmt_misc/register ]; then
50 # Replace /usr/bin/mono with the correct pathname to
51 # the Mono CLR runtime (usually /usr/local/bin/mono
52 # when compiling from sources or CVS).
53 echo ':CLR:M::MZ::/usr/bin/mono:' > /proc/sys/fs/binfmt_misc/register
54else
55 echo "No binfmt_misc support"
56 exit 1
57fi
58
594) Check that .exe binaries can be ran without the need of a
60 wrapper script, simply by launching the .exe file directly
61 from a command prompt, for example:
62
63 /usr/bin/xsd.exe
64
65 NOTE: If this fails with a permission denied error, check
66 that the .exe file has execute permissions.