Running .Net and ASP.Net applications
From PlugWiki
(Redirected from Dotnet)
The SheevaPlug can run ASP.Net websites via Mono.
Installing Mono
On the default Ubuntu install, use apt to install Mono:
root@debian:/tmp# apt-get install mono-2.0-devel
Create a Hello World program:
root@debian:/tmp# echo 'class X {static void Main() {System.Console.WriteLine("Hello World"); }}' > helloworld.cs
Compile and run it
root@debian:/tmp# gmcs2 helloworld.cs root@debian:/tmp# mono helloworld.exe Hello World
Getting ASP.Net applications to work
To get ASP.Net applications to run is not as straightforward. The default Ubuntu install needs to be slightly reconfigured. First, /tmp is not world writable. So change that:
root@debian:/tmp# chmod 7777 /tmp
and Mono requires /usr/bin/gmcs in addition to /usr/bin/gmcs, so just symlink it:
root@debian:/tmp# ln -s /usr/bin/gmcs2 /usr/bin/gmcs2
then you can follow the Ubuntu Instructions[1] to configure Apache and mod_mono.
