ASP.NET vNext on Ubuntu Linux

Disclaimer: Please note that this description is made based on taken notes during installation and is a subject to change after additional verification.

Described installation has been made on Ubuntu 14.04.

In first step let’s update packages information using:

sudo apt-cache update

Next step is installation of Mono prerequisites:

sudo apt-get install git autoconf libtool automake build-essential mono-devel gettext libuv0.10

Then clone Mono repository from GitHub to selected folder, install it and verify instalation:

mkdir mono
cd mono
git clone
https://github.com/mono/mono.git

Change directory in order to execute autogen.sh script

./autogen.sh –prefix=/usr/local && make && sudo make install

And check Mono version using:

mono –version

By default this version of Ubuntu does not have installed Curl so we need to install it:

sudo apt-get install curl

Install KVM and perform upgrade:

curl -sSL https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.sh | sh && source ~/.kre/kvm/kvm.sh

kvm upgrade

You can clone now official GitHub repository for ASP.NET vNext using:

git clone https://github.com/aspnet/home

However in order to restore required nuget packages additional certificates installation is required:

CERTMGR=/usr/local/bin/certmgr
sudo $CERTMGR -ssl -m
https://go.microsoft.com
sudo $CERTMGR -ssl -m https://nugetgallery.blob.core.windows.net
sudo $CERTMGR -ssl -m https://nuget.org
mozroots –import –sync

Now you can call in selected project folder following command:

kpm restore

Everything should work for console application, however in order run e.g. MVC project additional configuration is needed (installation of Kestrel from source code):

sudo apt-get -qqy install \
autoconf \
automake \
build-essential \
libtool

In separate folder clone libuv repository:

git clone https://github.com/libuv/libuv

Install and configure it:

./autogen.sh && ./configure && sudo make install
sudo ldconfig

Now for MVC project after calling “kpm restore” you can now run it using:

k kestrel

Reklamy

Skomentuj

Wprowadź swoje dane lub kliknij jedną z tych ikon, aby się zalogować:

Logo WordPress.com

Komentujesz korzystając z konta WordPress.com. Wyloguj / Zmień )

Zdjęcie z Twittera

Komentujesz korzystając z konta Twitter. Wyloguj / Zmień )

Zdjęcie na Facebooku

Komentujesz korzystając z konta Facebook. Wyloguj / Zmień )

Zdjęcie na Google+

Komentujesz korzystając z konta Google+. Wyloguj / Zmień )

Connecting to %s

%d blogerów lubi to: