Mono and C# on an Asus Eee Pc

I am having a lot of fun with the Asus Eee PC. In its way, it is a game changer. I wondered if it would run Mono applications, enabling support for the open source version of Microsoft .NET. The news is partially good:


Unfortunately, I’ve not been able to do much more than that so far. I tried compiling a basic forms application, but got a pkg-config error. This may be because of a kernel module called binfmt, which let you register interpreters for different binary formats. This is normally present in Linux, but seems to be omitted from the Eee kernel. If I am right, then fixing this means figuring out how to recompile the kernel on the Eee. You can still execute Mono applications by running mono as in the screenshot, but the compiler seems to expect binfmt to work. I am sure someone will figure this out.

Update –  getting better – we have GUI:


Still can’t use -pkg though.


The problem with -pkg is easy to fix. Just install pkg-config 🙂

I’m not clear yet whether the absence of binfmt could cause other problems.

Further update

Everything is working. I can compile and run the Hello World examples here. Note that the Gtk example there does not quit properly, so I suggest you use this modified version.

To get this working, I did as follows:

1. Added a xandros repository to /etc/apt/sources.list:

deb etch main contrib non-free

2. Installed mono-gmcs (.NET 2.0 compiler). (I think that is the minimum but I’m not 100% sure)

3. Installed pkg-config

4. Installed gtk-sharp2

I’ve also installed JEdit for editing. Not in the repository, so I installed using the jar installer on the Jedit site.

df shows 30% used, not too bad.

Technorati tags: , ,

Related posts:

  1. Users petition Asus over locked bootloader in Asus Transformer Prime
  2. Patent threat lifted from Mono
  3. Mono in IT Week
  4. Mono’s new GUI library: how is this hype justified?
  5. Fixing wi-fi on Asus Eee PC 901 with Linux

5 comments to Mono and C# on an Asus Eee Pc

  • 2fat4u

    > but got a pkg-config error

    Which error?

  • Tim

    error CS8027: Couldn’t run pkg-config: ApplicationName=’pkg-config’, CommandLine=’…libs dotnet’, CurrentDirectory=”, PATH=’/usr/local/bin:/usr/bin:/usr/games’


  • 2fat4u

    Can you run pkg-config from the command line?

  • Tim

    It turned out that pkg-config was not installed at all, which I’ve now fixed.

    I’m still puzzled by the single file in /usr/lib/cli:


    and wondering whether this will cause problems?


  • Henrik Pedersen

    Can you please tell me witch version of the compiler you downloaded… I just get my Eee and would like to develope on it..

    Thanks Henrik