Tag Info

Hot answers tagged

12

I posted some suggestions for books here: Recommended reading to better understand unix/linux internals As for developing on Linux with .NET, I strongly recommend that you install the MonoDevelop IDE.


10

Mono does not support AIX. If you want to try to port Mono to AIX, you would probably want to: Turn on the manual checking of dereferences in Mono, as AIX keeps the page at address zero mapped, preventing a whole class of errors from being caught. I forget the name of the define, but it was introduced some six months ago. You would have to make sure ...


7

When testing Mono/Linux vs .NET/Windows workloads, you have to remember that there is more at play than just the runtime environment. There are areas in which Linux performs better than Windows (Most IO and network operations tend to be faster for comparable C programs). At the same time, .NET has a more advanced garbage collector and a more advanced JIT ...


7

This is kinda a non-answer. However there isn't a real answer here. Unfortunately this thing is highly application-dependent. Your app could hit on something that Mono happens to do really well or you might be heavily using something that is implemented poorly or has some bugs. It's not really a case of Mono being X times slower/faster than IIS. My ...


7

Disclaimer: I offer this answer since I believe you should have control over what packages are on your system--not to flame the mono-hate flame war. Also this question is heavily edited since my first post. Removing Mono To remove mono completely all you have to do is remove the base mono libraries, and all files that depend on those libraries will also be ...


6

It is possible: Become root and turn on the binfmt module in your kernel with this command (you may want to add this command to your /etc/rc.local boot script, so that it will be executed on boot): modprobe binfmt Add the line below to your /etc/fstab file: binfmt_misc /proc/sys/fs/binfmt_misc binfmt_misc none Then, have your system run the following ...


5

There are a good number of programs that use mono in Ubuntu if you look at the whole repository. In the default install, I believe the following are the only mono apps: f-spot gbrainy tomboy There may be more, I just made this list from looking at which applications would be removed if I removed libmono*. However, even just having these means that a ...


4

So you're looking for a package containing a file called System.Windows.Forms.dll. You can search: on your machine: apt-file search System.Windows.Forms.dll (the apt-file package must be installed) online: at packages.ubuntu.com. Both methods lead you to libmono-winforms1.0-cil and libmono-winforms2.0-cil (on maverick).


4

No, Paint.NET will not run on Mono. There was some (currently abandoned) effort to port it to non-Windows systems. Also, it has inspired Pinta, a project which is supposed to be drop-in replacement for Paint.NET on non-Windows systems.


4

You have three options: 1) Emulation (Wine, Crossover Linux, Bordeaux) 2) Virtualization (VMware Player or VMware Workstation, Parallels Desktop, Oracle Virtualbox) 3) Dual Boot For C# development on Linux, Mono Project is the way to go. You can develop in MonoDevelop IDE and connect to SQL Server hosted in a virtual machine using SQL Client (for more ...


4

Bash has no such feature. Zsh does, you can set up aliases based on extensions: alias -s exe=mono This would only work in an interactive shell, however, not when a program invokes another. Under Linux, you can set up execution of foreign binaries through the binfmt_misc mechanism; see Rolf Bjarne Kvinge. Good Linux distributions set this up automatically ...


4

Most of this comes from http://wiki.phonicuk.com/Installing-Mono-in-CentOS-5-x.ashx 1) Satisfy the dependencies before compiling mono wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6-8.noarch.rpm yum install bison gettext glib2 freetype fontconfig libpng libpng-devel \ libX11 libX11-devel ...


3

It looks like monodevelop 2.95 is a development release, so won't find it in the repository. Monodevelop 3.0 has just been released (May 14, 2012). I think this is the version you need. You can download it from MonoDevelop web page. No prebuilt package is available for Ubuntu/Mint right now, so you best option is to build it from the source (using the ...


3

Do you mean something like a servlet interface? You could also pretty easily emulate something like this using an ASPX HTTP Handler. You simply inherit from IHttpAsyncHandler and you'll get a BeginProcessRequest method and an EndProcessRequest method. In your BeginRequest handler you can do context.Response.Write ();


3

Using the Java example from http://wiki.linuxhelp.net/index.php/Nano_Syntax_Highlighting, you can try to add something like the following into your ~/.nanorc: syntax "C# source" "\.cs$" color green "\<(bool|byte|sbyte|char|decimal|double|float|int|uint|long|ulong|new|object|short|ushort|string|base|this|void)\>" color red ...


3

{ my-mono-app 2>&1 >&3 3>&1 | awk ' {print} /ref unused/ {print "Exiting."; exit(1)}' >&2 } 3>&1 awk would exit as soon as it reads one of those messages, causing my-mono-app to be killed by a SIGPIPE the next time it tries to write something on stderr. Don't use mawk there which buffers stdin in a stupid way ...


2

Maybe it's a little bit too late to be usefull for you. Maybe it will be usefull to others. Anyway I developed a fastcgi protocol implementation for .NET/mono. You can find it on github here: https://github.com/gigi81/sharpfastcgi


2

Edit: my answer is about "how to install Mono without root access". Clearly Miguel's answer about Mono not working on AIX makes the rest moot. Alex is right, you can install in your home directory. Full instructions for installing Mono outside of /usr are available here: http://www.mono-project.com/Parallel_Mono_Environments Following these instructions ...


2

Just compile from sources and install it into you home directory with ./configure --prefix=$HOME; make; make install. This way you don't need root access at any step. To run .net assemblies with your compiled version of mono run ~/bin/mono program.exe or add ~/bin to your PATH and just use mono program.exe.


2

You are using DESTDIR in a nonstandard way. It is not the installation prefix of your package, it's the "fakeroot" prefix for things such as package builds. The more typical way to write this is something like this: prefix = /usr/local bindir = $(prefix)/bin libdir = $(prefix)/lib install: $(PHONIX) $(ANTLR) doc install -m 0755 -d ...


2

Open Synaptic and search for System.Windows.Forms and select libmono-winforms2.0-cil or libmono-winforms1.0-cil and then apply. (optional) You might need to install System.Runtime package as well. just search for that and install libmono-system-runtime2.0-cil or libmono-system-runtime1.0-cil


2

Currently, Debian testing is in a freeze state. This means that new uploads must be approved by the release team, and generally must fix RC (release critical) bugs. It is very rare for the release team to accept new upstream releases (rather than patches specifically for RC bugs) after the freeze. So the answer to this question is after the following has ...


2

The apt-cache utility has the ability to search for packages. Currently, apache modules are in the form of libapache2-mod-<module name>. On my Debian system: $ apt-cache search libapache2-mod-mono libapache2-mod-mono - Apache module for running ASP.NET applications on Mono mono-apache-server1 - ASP.NET 1.1 backend for mod_mono Apache module ...


2

Enable the mod_mono control panel. In httpd.conf, add <Location /mono> SetHandler mono-ctrl Order deny,allow Deny from all Allow from 127.0.0.1 </Location> You will need to modify the addresses that can access it in the Allow from line. Reload httpd and now you can go to http://some.website.domain/mono. You can, among other things, ...


2

The easy way: touch web.config in the root of your web app (make sure web.config has the right casing). You can also kill the mod_mono process for the web application you want to restart (ps auxfww and try to find the pid, then kill -9 pid).


2

Although the process used to find it would make you think it is, it isn't actually a repository, it is in fact just a simple file-share. In this situation, your best bet would be to remove all your openSUSE-provided mono packages (zypper rm), lock them (zypper al), and install (zypper in) the packages from the mono-project file-share. Alternatively, mono in ...


2

From the page at http://www.go-mono.com/mono-downloads/download.html, it seems like they used to have downloads for other distros for 2.10.x, under "Other", however it is stated that they are supported by their own communities. My guess would be that the third parties packaging Mono 2.10.x for Ubuntu and Debian have not submitted the packages to Mono. Also, ...


2

It worked for me after I made a few changes to the stock install on CentOS 6.5 64-bit: I added /opt/mono/bin to the PATH, and restarted my shell. The mono-opt package should arguably do this, but it does not. In the freshly-created solution, right click the project (one step below the solution level) and select Options from the context menu. Go into Run > ...


1

Check the Mono:Factory project in OBS - it's not considered stable yet. You can also get there from the opensuse package directory - click "select other versions" then "show unstable versions".


1

Well I apologize in advance, the real problem was actually really quite simple... it was a problem with globbing files, but not because my shell had explicitly disabled it, or relative pathing. I was launching "shell scripts" and shell commands but outside the context of bash/sh/tcsh etc. Executing cp directly is gonna just be problematic as far as that ...



Only top voted, non community-wiki answers of a minimum length are eligible