Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##################################################################
- # For minimal setup of CentOS 6.5/6.6
- ##################################################################
- ##################################################################
- # Basic Server essentials
- ##################################################################
- yum -y update
- yum -y install yum-utils epel-release
- yum clean all && yum makecache
- yum -y groupinstall 'Development tools'
- ##################################################################
- # Install Mono (Latest Version)
- ##################################################################
- yum -y install git autoconf libtool automake build-essential gettext
- git clone git://github.com/mono/mono.git
- cd mono
- ./autogen.sh --prefix=/usr/local
- make get-monolite-latest
- make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/gmcs.exe"
- make
- make install
- ##################################################################
- # Install LibUV (Latest Version)
- ##################################################################
- yum -y install gcc automake libtool
- git clone https://github.com/libuv/libuv.git
- cd libuv
- sh autogen.sh
- ./configure
- make
- make install
- ldconfig
- ##################################################################
- # Install Node (Latest Version)
- ##################################################################
- yum remove -y nodejs npm
- curl -sL https://rpm.nodesource.com/setup | bash -
- yum install -y nodejs
- ##################################################################
- # Install Yeoman and Generator Support (Latest Version)
- ##################################################################
- yum -y install npm
- #update npm to latest
- npm install -g npm@latest
- npm install -g yo
- #install Generator support
- npm install -g generator-aspnet
- ##################################################################
- # Install DNVM (Latest Version)
- ##################################################################
- yum -y install unzip
- curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh
- source ~/.dnx/dnvm/dnvm.sh
- ##################################################################
- # Update Mozilla Root Server Certificates
- ##################################################################
- mozroots --import --sync
- ## for dnu restore to work more reliably, increase concurrent threads
- echo -e '\r\n## Enable greater Mono concurrency (helps dnu restore)\r\nexport MONO_THREADS_PER_CPU=2000' >> ~/.bashrc
- ## dnx needs this to load libuv on CentOS (why not on Ubuntu?)
- echo -e '\r\n## dnx needs this to load libuv on CentOS (why not on Ubuntu?)\r\nexport LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH' >> ~/.bashrc
- ## done - print final instructions
- echo -e '\r\nDone installing ASP.NET 5 prerequisites and DNVM.\r\nOpen new shell environment\r\nor\r\n$ source .bashrc to keep using this one.\r\n'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement