Linux Question

05/22/2011 06:44 vileelf#1
Am I able to host a CO2 Pserver on my dedicated linux server running centos?
05/22/2011 10:25 pro4never#2
Google .net linux and you can find some information.

As far as I know though it doesn't support the latest .net framework though... Alternatively you could probably do something with wine but I simply don't see why you would save a few bucks to but a linux server and then ruin your efficiency by having to then emulate windows or use a 'workaround' to make it work.

If you want to run on linux... code your server in java!

Alternatively shell out the like 5 bux extra to get a window server.
05/22/2011 12:35 unknownone#3
You can probably get a server running on the mono platform, but you might need to replace a few things, such as any code using P/Invoke (DllImport), certain parts of unsafe code, and any Windows specific libraries (Winforms for example).

Mono is a cross platform CLR & BCL implementation. The CLR is the core component that makes up .NET, and is an ECMA and ISO standard. The latest version of Mono is up to date with the latest CLR specification (ie, .NET 4.0).

.NET has other layers and libraries built on top of it's CLR implementation. These are not necessarily covered by any standard and may be patent encumbered. That can prevent them being implemented on linux. Microsoft have released a lot of the components under MS-PL/Apache 2.0 licenses though, which makes them available under linux.

There's still some components associated with .NET that aren't available though, for instance, WPF, Contracts, Rx, Winforms (Although it has a mostly complete clone of winforms which is compatible, based on Gtk#).

So, there shouldn't be much trouble to get your code running on linux if you're conservative with your choice of libraries, and avoid native interop where possible.
05/22/2011 14:52 .Beatz#4
@OP I have made a server run under linux but you will come across alot of issues while changing the code... Best idea is to just shell out the extra 5 bux and get a Windows server... Unless you have a lot of experience coding it will be quite hard to do even using Mono.