Advertisement
Guest User

Untitled

a guest
Aug 23rd, 2015
647
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.89 KB | None | 0 0
  1. ##################################################################
  2. # For minimal setup of CentOS 6.5/6.6
  3. ##################################################################
  4.  
  5. ##################################################################
  6. # Basic Server essentials
  7. ##################################################################
  8. yum -y update
  9. yum -y install yum-utils epel-release
  10. yum clean all && yum makecache
  11. yum -y groupinstall 'Development tools'
  12.  
  13. ##################################################################
  14. # Install Mono (Latest Version)
  15. ##################################################################
  16. yum -y install git autoconf libtool automake build-essential gettext
  17. git clone git://github.com/mono/mono.git
  18. cd mono
  19. ./autogen.sh --prefix=/usr/local
  20. make get-monolite-latest
  21. make EXTERNAL_MCS="${PWD}/mcs/class/lib/monolite/gmcs.exe"
  22. make
  23. make install
  24.  
  25. ##################################################################
  26. # Install LibUV (Latest Version)
  27. ##################################################################
  28. yum -y install gcc automake libtool
  29. git clone https://github.com/libuv/libuv.git
  30. cd libuv
  31. sh autogen.sh
  32. ./configure
  33. make
  34. make install
  35. ldconfig
  36.  
  37. ##################################################################
  38. # Install Node (Latest Version)
  39. ##################################################################
  40. yum remove -y nodejs npm
  41. curl -sL https://rpm.nodesource.com/setup | bash -
  42. yum install -y nodejs
  43.  
  44. ##################################################################
  45. # Install Yeoman and Generator Support (Latest Version)
  46. ##################################################################
  47. yum -y install npm
  48.  
  49. #update npm to latest
  50. npm install -g npm@latest
  51. npm install -g yo
  52.  
  53. #install Generator support
  54. npm install -g generator-aspnet
  55.  
  56. ##################################################################
  57. # Install DNVM (Latest Version)
  58. ##################################################################
  59. yum -y install unzip
  60. curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_BRANCH=dev sh
  61. source ~/.dnx/dnvm/dnvm.sh
  62.  
  63. ##################################################################
  64. # Update Mozilla Root Server Certificates
  65. ##################################################################
  66. mozroots --import --sync
  67.  
  68. ## for dnu restore to work more reliably, increase concurrent threads
  69. echo -e '\r\n## Enable greater Mono concurrency (helps dnu restore)\r\nexport MONO_THREADS_PER_CPU=2000' >> ~/.bashrc
  70.  
  71. ## dnx needs this to load libuv on CentOS (why not on Ubuntu?)
  72. 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
  73.  
  74. ## done - print final instructions
  75. 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