Stephan Dekker

If you are out to describe the truth, leave elegance to the tailor. (Albert Einstein, 1879 - 1955)

Mono by default installed in Ubuntu

I already figured it out from the website, but it's nice when the website is actaully correct: Ubuntu comes with Mono installed. Some apps, F-Spot for instance, need it, so it's installed out of the box.

I just compiled a hello world, console app, copied it to my virtual Linux box (Share on my Win box asVirtual PC doesn't allow higher resolutions than 800x600 for some reason and that makes the Ok button for the "Sharing permissions" window, drop out of reach) Browsing to my local box btw is a pretty awesomeexperience. Not as awesome as, let say, diving with whales, but still.... You open up the "Windows Network" folder, the machine then goes off and finds you all the domains on the network, which is, in my case, My own AD domain at home, My company AD domain as I'm using my work laptop, Workspace and another insignificant one. Probably my router come to think of it... So you'll double click on the domain you need and it go out and find all the machines on that domain. If you then double click on the machine it asks you to login, so I punched in the username, domain and password and Bang! I'm in!!

Sorry, focus....

So compiled my hello world console app, opened linux pulled it from a share on my windows host OS and copied it into a folder under my user account. Don't know if that matters, but just to be safe. Double clicked.....   Error.... Damn....   Double clicked again.....  Error again.... Bloody computers, allways so consistent....

What you need to do is run it with mono. (Mind the lower case btw.) So open a console window and use:

mono DotNetHelloWorldApp.exe

And capow!!! a nice hello world message is staring right in the face!

I haven't tried any fancy stuff, but I have seen windows and other trivial .NET features being used, so it shouldn't give me a lot of grief.

Take care!

 

Published Fri, Dec 11 2009 12:46 PM by Stephan Dekker
Filed under: ,

Leave a Comment

(required) 
(required) 
(optional)
(required) 
Please add 5 and 5 and type the answer here: