Running ASP.NET vnext on Ubuntu Linux

After reading a lot about ASP.NET vNext I finally found an hour to give it a try. I only got as far as running the first sample webs, but it’s very nice to see it work.

There where some steps I had to take to get it up and running: is a good starting point. Starting with the command to install the basic kvm script I already got kvm and was almost able to restore packages.

curl -sSL | sh && source ~/.kre/kvm/

The next step was to install Mono from

sudo apt-key adv --keyserver --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
apt-get update
apt-get install mono-complete

Next I cloned the aspnet Home samples:

git clone --depth=1 aspnet.Home
cd aspnet.Home/samples/HelloMvc/

Ready to go!

kpm restore

System.IO.IOException: The authentication or decryption has failed. —> Mono.Security.Protocol.Tls.TlsException

Some NuGet packages failed to restore because the certificate didn’t seem to be validated on my system. After some searching I found this helpful page:

Executed this scripts (with some manual approvals in between!):

sudo certmgr -ssl -m
sudo certmgr -ssl -m
sudo certmgr -ssl -m
sudo certmgr -ssl -m


kpm restore

later, all packages restored perfectly.

Run the web:

k kestrel

– next error, null reference:

Again the page helped with the script:

tar -xvf libuv-v1.0.0-rc1.tar.gz
cd libuv-v1.0.0-rc1/
./ -f make -Duv_library=shared_library
make -C out
sudo cp out/Debug/ /usr/lib/
sudo ln -s /usr/lib/

So maybe things would have been faster using the setup script from Punit Ganshani in the first place, which can also be found on github:

In the end, this was what I saw: aspnet-linux

Next: Using to edit the project in Sublime…

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.