Created
July 8, 2012 09:49
-
-
Save pnegri/3070216 to your computer and use it in GitHub Desktop.
Testing a Ubuntu Bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get -y update | |
sudo apt-get -y install gcc g++ build-essential libssl-dev libreadline-gplv2-dev zlib1g-dev linux-headers-generic libsqlite3-dev libxslt-dev libxml2-dev imagemagick libmysqlclient-dev graphicsmagick-libmagick-dev-compat git-core wkhtmltopdf git bison openssl curl zlib1g autoconf | |
mkdir -p /tmp/bootstrap/ruby && cd /tmp/bootstrap/ruby | |
sudo wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.2-p290.tar.gz | |
tar -xvzf ruby-1.9.2-p290.tar.gz | |
cd ruby-1.9.2-p290/ | |
sudo ./configure --prefix=/usr/local/ruby && sudo make && sudo make install | |
sudo sh -c 'echo \'PATH="/usr/local/ruby/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"\\' > /etc/environment' | |
source /etc/environment | |
sudo gem install tzinfo builder memcache-client rack rack-test erubis mail text-format bundler thor i18n sqlite3-ruby rdoc unicorn sinatra mysql2 | |
sudo sed 's|secure_path="\(.*\)"|secure_path=\"/usr/local/ruby/bin:\1\"|g' -i /etc/sudoers | |
sudo usermod -G www-data ubuntu | |
sudo sh -c 'echo $PATH' | |
sudo apt-get -y install nginx |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment