Sunday, January 25, 2015

ASP.NET 5(vNext) on Ubuntu 14.4(Linux)

As we all know Microsoft has recently launched ASP.NET 5 and Microsoft has made announcement that it will work on any version of Linux and OSx. So in this post we are going to learn how we can use ASP.NET 5 on Ubuntu.

Installing Ubuntu on Oracle Virtual Box:

As I don’t have spare computer where I can install Ubuntu so that I’m going to install it on Oracle Virtual Box. If you don’t know about Virtual Box then it it a powerful x86 and AMD/Intel 64  virtualization product for enterprise or home box. It is freely available as GNU Licence.

You can find more about  Oracle Virtual Box here- https://www.virtualbox.org/

There are few things you to consider before going this route.
  • You need to first make sure that your computer supports virtualization or not. There are some utilities available for that like Intel processor identification utility – You can download from the here- https://downloadcenter.intel.com/Detail_Desc.aspx?DwnldID=7838. It will tell you whether your processor supports Virtualization or not.
intel-processor-utility
  • After checking whether your processor supports virtualization, you need to enable virtualization from Bios. That is different as per your Processor and you can learn how you can enable virtualization on your pc via searching on internet.
  • Make sure you have at least 4 GB ram to run this virtual OS smoothly. If you less RAM then it will work but thing will be slow.

How to install Ubuntu on Oracle Virtual Box:

There are lots of sources available on internet so I am going to show you step by step installation walk through Here. Followings are some of links I have used.

https://www.youtube.com/watch?v=QkJmahizwO4
http://www.wikihow.com/Install-Ubuntu-on-VirtualBox

Here I would like to mention in Network settings of your Virtual OS please select bridge adapter which will use your parent PC Internet.

Bridge-Adaptor

Another tip to make clipboard available to Bi-directional so that you can copy past from parent to virtual and virtual to parent OS.

ClipBoard

Installiing ASP.NET 5 (VNext):

It’s very easy to install ASP.NET 5(vNext) on Ubuntu and Graeme Christie has already written a great post to install ASP.NET 5  on Ubuntu. I have completely followed his post and I would recommend you to follow the same.

Here is the complete post for Installing ASP.NET 5(vNext) on Ubuntu- http://graemechristie.github.io/graemechristie/blog/2014/09/30/asp-dot-net-vnext-on-osx-and-linux-redux/

Here are some of screenshot I have taken while running command as per the above post.

Upgrade your package cache:

app-get-upate-ubntu-asp-vnext

Installing mono develop:

apt-get-ubntu-mono-develop-install-for-asp-net-vext

Adding certificate to store:

certificate-store

Checking Mono Version: Make sure you have mono 3.8 or higher version.

Mono-version-avnext

Install Curl:

install-curl

Bootstrap KVM:

bootstrap-kvm-image

KVM Upgrade:

Kvm-Upgrade

Install Git:

Install-Git

Git Clone of David Fowler Repository:

git-clone

KPM Restore on HelloWorldNext directory:

Kpm-Restore

CD to Source Directory:

cd-source

Web Server Started:

WebServer-Started

Browser:

Hello-World

That’s it. Hope you like it. Stay tuned for more!
Share:

0 comments:

Post a Comment

Your feedback is very important to me. Please provide your feedback via putting comments.

Search This Blog
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews