Skip to content

Instantly share code, notes, and snippets.

@llaughlin
Last active August 29, 2015 14:20
Show Gist options
  • Save llaughlin/da46b4647acf86c0a087 to your computer and use it in GitHub Desktop.
Save llaughlin/da46b4647acf86c0a087 to your computer and use it in GitHub Desktop.
ASP5 Linux
# Linux
# execute sudo <something> first before running this script
# https://github.com/aspnet/Home/blob/dev/GettingStartedDeb.md
# also http://docs.asp.net/en/latest/
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
#if ubuntu 12.04 - http://www.mono-project.com/docs/getting-started/install/linux/#older-ubuntu-releases-ubuntu-1210-and-1204
#echo "deb http://download.mono-project.com/repo/debian wheezy-libtiff-compat main" | sudo tee -a /etc/apt/sources.list.d/mono-xamarin.list
sudo apt-get update
sudo apt-get install -y Mono-Complete
# install libuv
sudo apt-get install -y 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
touch ~/.bashrc
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
mozroots --import --sync
sudo mkdir -p ~/.config/NuGet/
#vim ~/.config/NuGet/NuGet.config
echo '<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<add key="AspNetVNext" value="https://www.myget.org/F/aspnetvnext/api/v2/" />
<add key="nuget.org" value="https://www.nuget.org/api/v2/" />
</packageSources>
<disabledPackageSources />
</configuration>' > ~/.config/NuGet/NuGet.config
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
dnvm upgrade -u
# install nodejs
curl -sL https://deb.nodesource.com/setup | sudo bash
sudo apt-get -y install nodejs
# fix npm bin location
echo prefix=~/.node >> ~/.npmrc
echo 'export PATH=$HOME/.node/bin:$PATH' >> ~/.profile
# install npm
curl -L https://www.npmjs.com/install.sh | bash
# update npm via npm
npm update -g npm
# install bower and grunt
npm install -g bower grunt-cli
# cd to frontend app
dnu restore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment