Skip to content

Instantly share code, notes, and snippets.

@magohl
Last active February 21, 2016 19:41
Show Gist options
  • Save magohl/029efefbf15527b5f10d to your computer and use it in GitHub Desktop.
Save magohl/029efefbf15527b5f10d to your computer and use it in GitHub Desktop.
Raspberry Pi 2 - Install mono and ASP.NET 5
Raspian
-Resize sdcard
-Install mono
-Install DNVM
-Install DNVM Execution Env
-Download ASPNET samples
-Resore packages for HelloWorldMvc
-Run HelloWorldMvc
sudo raspi-config
Select "Resize SD option..."
Reboot
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb http://download.mono-project.com/repo/debian wheezy main" | sudo tee /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install mono-complete
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh
source ~/.dnx/dnvm/dnvm.sh
dnvm upgrade
https://github.com/aspnet/Home.git
cd Homes/samples/HelloMvc
kpm restore
dnx . kestrel
@Miega
Copy link

Miega commented Aug 20, 2015

You're missing the installation instructions for libuv. It should be installed after mono.

sudo apt-get install automake libtool curl
curl -sSL https://github.com/libuv/libuv/archive/v1.4.2.tar.gz | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.4.2
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.4.2 && cd ~/
sudo ldconfig

Lines 25 and 26 should be:

git clone https://github.com/aspnet/Home.git
cd Home/samples/latest/HelloMvc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment