I read some news that it is possible to install ASP.NET 5 on Linux. Would somebody please have some legal tutorial that could assist me in this? I would install on Ubuntu.
I read some news that it is possible to install ASP.NET 5 on Linux. Would somebody please have some legal tutorial that could assist me in this? I would install on Ubuntu.
To install ASP.NET on Linux, follow the instructions below, based on the following link: link
Install the prerequisites if they are not already on your machine:
sudo apt-get install unzip curl git
Update the apt-get references
sudo apt-get update
Install the .NET version manager
curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh && source ~/.dnx/dnvm/dnvm.sh
Install the .NET runtime environment
sudo apt-get install libunwind8 gettext libssl-dev libcurl4-openssl-dev zlib1g libicu-dev uuid-dev
dnvm upgrade -r coreclr
Install 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
Now you can download examples and run .NET applications on Ubuntu machine. Following the tutorial above, see the following steps to run an example .NET application
Create a sample directory for ASP.NET applications
cd ~/ && mkdir aspnet-samples && cd ~/aspnet-samples
Clone the ASP.NET 5 project
git clone https://github.com/aspnet/Home.git
Check the version installed on your machine to run the correct sample:
dnx --version
See the version used. When I ran the command, the version returned was: .0.0-rc1-update1
Go to the directory for the version returned by the command below:
cd ~/aspnet-samples/Home/samples/1.0.0-rc1-update1/
Recover NuGet packages
dnu restore
Go to the HelloWeb sample directory
cd ~/aspnet-samples/Home/samples/1.0.0-rc1-update1/HelloWeb
Rerun the command to retrieve NuGet dependencies
dnu restore
And finally run the application
dnu web
In your browser, go to the link URL and see the running application.