Skip to content

Instantly share code, notes, and snippets.

@VictorVelarde
Last active April 2, 2016 19:14
Show Gist options
  • Save VictorVelarde/7b1e2cd80cacda57238fa159b93e19cd to your computer and use it in GitHub Desktop.
Save VictorVelarde/7b1e2cd80cacda57238fa159b93e19cd to your computer and use it in GitHub Desktop.
Ubuntu 15.10: entorno aspnet5 (dnx - nodejs - npm - yeoman)
# Fuentes:
# * http://yoember.com/nodejs/the-best-way-to-install-node-js/
# * http://www.mithunvp.com/asp-net-core-visual-studio-code-yeoman/
# -------------------------
# 1. Instalación de aspnet
# Installing ASP.NET 5 On Linux: https://docs.asp.net/en/latest/getting-started/installing-on-linux.html
# dnvm
sudo apt-get install unzip curl
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
# dnx .net Core
sudo apt-get install libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev
dnvm upgrade -r coreclr
dnvm list
# Mono 3.x
#sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --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
#apt-get install mono-complete
# Mono 4.x
sudo add-apt-repository ppa:keks9n/monodevelop-latest
apt-get update
apt-get install mono-complete
# dnx for Mono
dnvm upgrade -r mono
# libuv
sudo apt-get install make automake libtool curl
curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src
cd /usr/local/src/libuv-1.8.0
sudo sh autogen.sh
sudo ./configure
sudo make
sudo make install
sudo rm -rf /usr/local/src/libuv-1.8.0 && cd ~/
sudo ldconfig
# -------------------------
# ASPNET: problemas en 15.10 = https://github.com/aspnet/dnx/issues/3059
# 2. Visual Studio Code
sudo apt-add-repository ppa:ubuntu-desktop/ubuntu-make
sudo apt-get update
sudo apt-get install ubuntu-make
umake web visual-studio-code
# -------------------------
# 2. Instalación de nodejs
## 2.1 Limpieza previa
sudo apt-get purge nodejs && sudo apt-get autoremove && sudo apt-get autoclean
## 2.2. Descarga gestor https://github.com/creationix/nvm
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
exit # reiniciar consola
## 2.3. Listado / instalación node & npm
nvm list
nvm ls-remote
nvm install 5.9.1
nvm use 5.9.1
nvm alias default 5.9.1
node -v
npm install -g npm
npm -v
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
# -------------------------
## 3. Instalación yeoman y generadores
npm install -g yo
npm install -g generator-aspnet
# si hubiera error: 'No .yo-rc.json file in home directory': borrar fichero --> rm .yo-rc.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment