Guest User

Untitled

a guest
Apr 25th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. #!/bin/bash
  2. # You can run this on your server by doing this:
  3. # bash -c "`wget -O - frozenplague.net/boris`"
  4. # If you don't have wget, use curl.
  5.  
  6. echo "Need your password to update time & install things:"
  7. sudo ntpdate pool.ntp.org
  8. sudo apt-get -y update
  9. sudo apt-get -y install build-essential mysql-server libmysqlclient15-dev apache2 libssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev zlib1g zlib1g-dev
  10.  
  11. mkdir ruby
  12. cd ruby
  13. wget --progress=bar ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p376.tar.gz -O - | tar -zxf - --strip-components 1
  14. ./configure
  15. make
  16. echo "Need your password to install Ruby:"
  17. sudo make install
  18.  
  19. cd ext/openssl
  20. ruby extconf.rb
  21. make
  22. sudo make install
  23.  
  24. cd ~
  25. sudo rm -rf ruby
  26.  
  27. sudo gem install mysql passenger rails
Add Comment
Please, Sign In to add comment