Running ASP.Net on Linux

If you’re a fan of Windows based web application, then you’re going to love that the latest version of ASP.Net, which is ASP.NET 5, codenamed ASP.NET v5 can now be developed and hosted in three major platforms, Windows, Linux and Macs. If you haven’t started using ASP.NET v5, then this is the good time to begin using it. It’s a fun language to play, and you’ll expand your programming skills too! Now with that in mind, we’ll start installing ASP.Net on your Linux machine! on linux

Before everything, I suggest you update Linux to the latest version to make sure everything can work seamlessly and there are minimal bugs. On Ubuntu, you can use the following commands:

sudo apt-get update
sudo apt-get upgrade

Installing ASP.Net on Ubuntu

These steps also apply on the same derivatives as well as the parent, Debian. For the reference, the OS these commands were used is on Ubuntu 14.04. The very first step we’ll do is to install the DNVM, the .Net Version Manager.

  • If you already don’t have unzip or curl installed yet, you’re going to want to install them first. Use the following commands to install them:
sudo apt-get install unzip curl
  • Now, download and install DNVM using the following command:
curl -sSL | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/
  • Once it’s done, you can try running dnvm to see some help text.
  • Now, we’re going to install the .Net Execution Environment (DNX). We’re going to install the DNX prerequisites using the following command:
sudo apt-get install libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev
  • Now, using the DNVM we installed earlier, we are going to install DNX for the .NET core:
dnvm upgrade -r coreclr
  • If you want to install DNX for Mono, you’ll have to install Mono using the following command:

Then, after installation, use the following command:

  • Now, we can install DNX for Mono using DNVM:
dnvm upgrade -r mono
  • Now, we are going to install libuv. What is Libuv? It’s a cross platform asynchronous library, used by Kestrel and is a HTTP server for hosting ASP.NET 5 web applications. You need to build libuv using the following:
sudo apt-get install make automake libtool curl
curl -sSL | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.4.2
sudo sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/
sudo ldconfig

And that’s it! You now have a fully installed and running ASP.Net on your Linux machine!

Linux vs. Windows Hosting

Linux and Windows are entirely two different operating systems. There are advantages and disadvantages with each other and neither of them are perfect, each one has its flaws. In fact, it’s been an ongoing rivalry ever since Linux and Windows started to coexist, but Windows still wins the majority of home user’s choice. Linux on the other hand won over the hearts of computer enthusiasts as well as developers and programmers. In addition, it dominates the world of web servers, mainframes and other high-end field. However, keep in mind that when choosing about what operating system you’ll use for web hosting, your current operating system, that is, you home PC’s OS is entirely irrelevant. No matter if you’re a master of Linux or a Windows geek, choosing what OS you’ll use for web hosting should never be based on your current OS skill, preference and favorite. There are many important considerations to keep in mind when choosing which kinds of operating system you’ll choose for your web hosting venture.

Before we start, let’s dispel some common myths and misconceptions when choosing an operating system for your web host.


Do you use Windows OS? What if my Linux hosting requires app that’s incompatible? You asked that yourself? Then you shouldn’t worry about compatibility at all. You will never run anything on your computer from the host’s system. Things that run on your webhost is crafted for a web server and they will really never run on your system, no matter what OS it is.

There are many things to consider to make sure that you chose the correct operating system for your website hosting project. Things such as the applications you’ll need, functions you want and others. With that in mind, let’s guide you to choose the correct hosting operating system.

How to Choose a Web Hosting Platform OS?

That depends on two questions. The first question is: do you need ASP or .NET or Microsoft Access or Microsoft SQL server? Then choose the windows VPS platform. In a nutshell, if your website requires any Windows based web software, then you’ll need a Windows hosting platform. If you don’t understand any of those things, then you probably don’t need it.

The second question is: do you need PHP, MySQL, Perl, WordPress or a blogging software, etc? Then choose Linux hosting. If you just wanted to create a simple web blog, then Linux hosting is the best bet.

Linux and UNIX – What’s the Difference?

Linux and UNIX can be confusing for the average folk. If you’ll ask me, UNIX and Linux are closely related to one another, with Linux as UNIX’s offspring. Linux is becoming very popular nowadays because it started dominating web servers, in fact, Linux is actually a UNIX clone. Linux was created as an open source alternative to UNIX. Now with that in mind, we’ll see the difference between Linux and UNIX to clear out any misconceptions that you may have.

Linux is Free, Unix is Not Always

Linux can be freely distributed, downloaded and can even be shipped along with magazines, books, etc. There are also priced Linux versions, but it’s often cheaper than Windows. Unix on the other hand can vary greatly in price, depending upon the vendor and manufacturer. One example of Unix-based OS is MACS.

Linux is Community Created, Unix is Not

The Linux kernel is developed by the community with Linus Torvalds as the main man behind the project. The three biggest distributions of Unix are Solaris by Oracle, AIX by IBM and HP UX by Hewlett Packard. Apple creates a UNIX based OS, the OSX.

Linux is Open Source, Unix is Mixed

Linux is developed by our community programmers and developers. Many developers around the world shares and collaborate the code and features through forums, IRC, etc. In addition to that, Linux can be distributed by various vendors, often free of charge. Unix systems are subdivided into various flavors, but AT&T is the major developer or Unix.

Linux is Multipurpose, Unix is Mainly for Mainframes, Servers and Workstations

Linux is targeted for a multipurpose use. Linux can be seen from home computers, to servers up to mainframe computers. Unix operating systems have been developed mainly for the purpose of using them for mainframe computers as well as servers and workstations. OSX, developed by Apple is an exception, which is targeted for home users.

Linux vs. Unix

Linux is a great example of what the open source community can do. They can be of complex operating system, which is free and very functional. Unix on the other hand is a popular operating system used in universities, internet servers, It’s also used as a backbone of many financial infrastructures, and there are many computers operating 24x7x365.

Linux can be installed on a variety of hardware, from mobile phones, tablet computers and even video game consoles up to advanced requirements such as mainframe computers and supercomputers. In addition to that, Linux can run on a variety of consumer processers and other processor types, but Unix can only run on x86/x64, Sparc, Power, Itanium, PA-RISC, PowerPC and many other kinds processors.