{"id":437,"date":"2007-12-04T15:17:04","date_gmt":"2007-12-04T14:17:04","guid":{"rendered":"http:\/\/www.itwriting.com\/blog\/?p=437"},"modified":"2007-12-04T15:17:04","modified_gmt":"2007-12-04T14:17:04","slug":"mono-and-c-on-an-asus-eee-pc","status":"publish","type":"post","link":"https:\/\/www.itwriting.com\/blog\/437-mono-and-c-on-an-asus-eee-pc.html","title":{"rendered":"Mono and C# on an Asus Eee Pc"},"content":{"rendered":"<p>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:<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2007\/12\/mono-ee3.png\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"456\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2007\/12\/mono-ee-thumb2.png\" alt=\"mono_ee\" height=\"161\" style=\"border-width: 0px\" \/><\/a><\/p>\n<p>Unfortunately, I&#8217;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.<\/p>\n<p>Update &#8211;\u00a0 getting better &#8211; we have GUI:<\/p>\n<p><a href=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2007\/12\/mono-ee21.png\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" width=\"513\" src=\"http:\/\/www.itwriting.com\/blog\/wp-content\/uploads\/2007\/12\/mono-ee2-thumb1.png\" alt=\"mono_ee2\" height=\"233\" style=\"border-width: 0px\" \/><\/a><\/p>\n<p>Still can&#8217;t use -pkg though.<\/p>\n<h3>Update<\/h3>\n<p>The problem with -pkg is easy to fix. Just install pkg-config \ud83d\ude42<\/p>\n<p>I&#8217;m not clear yet whether the absence of binfmt could cause other problems.<\/p>\n<h3>Further update<\/h3>\n<p>Everything is working. I can compile and run the Hello World examples <a href=\"http:\/\/www.mono-project.com\/Mono_Basics\">here<\/a>. Note that the Gtk example there does not quit properly, so I suggest you use <a href=\"http:\/\/www.mono-project.com\/GtkSharp:_Hello_World\">this modified version<\/a>.<\/p>\n<p>To get this working, I did as follows:<\/p>\n<p>1. Added a xandros repository to \/etc\/apt\/sources.list:<\/p>\n<p>deb <a href=\"http:\/\/xnv4.xandros.com\/xs2.0\/upkg-srv2\">http:\/\/xnv4.xandros.com\/xs2.0\/upkg-srv2<\/a> etch main contrib non-free<\/p>\n<p>2. Installed mono-gmcs (.NET 2.0 compiler). (I think that is the minimum but I&#8217;m not 100% sure)<\/p>\n<p>3. Installed pkg-config<\/p>\n<p>4. Installed gtk-sharp2<\/p>\n<p>I&#8217;ve also installed JEdit for editing. Not in the repository, so I installed using the jar installer on the <a href=\"http:\/\/www.jedit.org\/index.php?page=download\">Jedit site<\/a>.<\/p>\n<p>df shows 30% used, not too bad.<\/p>\n<p style=\"display: inline; margin: 0px; padding: 0px\" id=\"scid:0767317B-992E-4b12-91E0-4F059A8CECA8:c0ee565b-3040-4308-85c0-e4772c1f4395\" class=\"wlWriterSmartContent\">Technorati tags: <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/mono\">mono<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/asus%20eee%20pc\">asus eee pc<\/a>, <a rel=\"tag\" href=\"http:\/\/technorati.com\/tags\/c#\">c#<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8217;ve not been able to do much more than that so &hellip; <a href=\"https:\/\/www.itwriting.com\/blog\/437-mono-and-c-on-an-asus-eee-pc.html\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Mono and C# on an Asus Eee Pc<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-437","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/437","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/comments?post=437"}],"version-history":[{"count":0,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/posts\/437\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/media?parent=437"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/categories?post=437"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itwriting.com\/blog\/wp-json\/wp\/v2\/tags?post=437"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}