LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-05-2015, 05:40 AM   #1
pmkumaar
LQ Newbie
 
Registered: Mar 2015
Posts: 1

Rep: Reputation: Disabled
Smile How to host and Run .Net C# on Linux Headless Servers


It would be great if someone could share and provide some useful pointers/ advice on the feasibility of running .Net C# code on Linux Headless VPS Servers.
 
Old 03-06-2015, 06:46 AM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,226

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
.NET on Linux

Well, .NET code is somewhat Microsoft focused (since they invented it) but I see two options: both have worked for me.
#1 load up the latest Wine and install the latest .NET that it supports. Testing this worked for my applications, though with display issues related to the (MS propriatery) fonts. Note: Wine has advanced well beyond the version available in most distro repos, you may need to go to the source.

#2 load up the latest Mono, and test. This also worked for me. Starting requires explicitly calling the mono interpreter to run your application. I like this option better, but found that poorly designed (MS specific) design in the application was more likely to express in painful ways than under Wine.
 
Old 03-07-2015, 04:03 AM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,107

Rep: Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478Reputation: 2478
if you go the mono route
.net is at 4.5
mono is ? maybe at the old dot net 2 maybe 3

it lags FAR behind the Microsoft.net framework 4.5

your BEST bet
BUY and install Microsoft "windows server 2012 R2 "
 
Old 03-07-2015, 06:39 AM   #4
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,226

Rep: Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893Reputation: 893
No John

John:
He specificly asked about hosting the app on Linux, so let us assume that Windows Server licensing is not an option here.

I used Mono in the latest version to run .NET 4.5 apps, it is far more along than your comment would lead one to believe. Always check the source, the distribution repos are quite behind on both Wine and Mono, both are better than you know.

OP:
FWIW: I ran some google searches, and found some GREAT how-to information. The best information about running under Wine with .NET 4.5 was on the WINE site itself, the rest are all a bit dated or incomplete. Nonethless, I would read several and then follow the official one with more tricks and knowledgte to fall back on.

NOTE1: Do NOT try to mix Mono and .NET installs, they so not always play welll together! Try Wine with .NET, or Mono on Linux without Wine: not both at the same time.

NOTE2: www.winehq.org is the best place to start with Wine. Mono is at www.mono-project.com and is today in release 3.12.1. Official and up-to-date packages are available for

Debian, Ubuntu, and derivatives
CentOS, Fedora, and derivatives
openSUSE and SLES
(Also Windows and Mac)

Third party and maintainer packages are available for all of those and many more, but those are rarely current versions.

It not only looks doable to host your application on Linux using one of these solutions, but it looks pretty easy! I plan to retest my (successful) earlier applciation testing using the new tricks and see if it works better, faster, and easier than when I started.

Last edited by wpeckham; 03-07-2015 at 06:52 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Run the same command on many Linux servers at once LXer Syndicated Linux News 0 05-23-2014 03:20 PM
LXer: Run the same command on many Linux servers at once LXer Syndicated Linux News 0 06-12-2013 05:21 AM
mysqld_multi errors when starting servers, servers start when run manually jason.rohde Linux - Server 2 10-29-2011 08:18 AM
Help! Possible to run vb.net (.net framework) using wine? if not where can i download jetro2k5 Linux - Software 5 04-18-2007 01:53 AM
Why is Linux better than windows to run game servers? Rens Linux - Newbie 3 04-23-2006 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:50 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration