Last active
August 29, 2015 14:11
-
-
Save lsaffie/e4c303adf60c0e7b1f12 to your computer and use it in GitHub Desktop.
EC2 instance - ubuntu
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
#Make sure github is trusted prior to running this | |
# ssh github.com | |
#Usage wget --no-check-certificate -O - https://gist.github.com/lsaffie/5259be3fd24008ebb7db/raw/hsdevbox |bash | |
apt-get update | |
echo "base packages" | |
apt-get -y install curl libncurses-dev libgnome2-dev \ | |
libgtk2.0-dev libatk1.0-dev libbonoboui2-dev libcairo2-dev \ | |
libx11-dev libxpm-dev libxt-dev ruby-dev memcached build-essential openssl libssl-dev python libcurl3-openssl-dev | |
#mysql | |
apt-get -y install libmysqlclient-dev mysql-client | |
#nginx package | |
apt-get -y install nginx | |
# nokogiri requirements | |
apt-get -y install libxslt-dev libxml2-dev | |
#sqlite dependencies | |
apt-get install libsqlite3-dev | |
echo "=========== installing git =========" | |
apt-get -y install git-core | |
#run this as deploy user | |
su - deploy | |
echo "====== RVM ======" | |
\curl -L https://get.rvm.io | bash | |
export PATH=$PATH:$HOME/.rvm/bin | |
# disable autolibs otherwise it asks for sudo passwd | |
rvm autolibs disable | |
#install rubies | |
rvm install 2.0.0-p247 | |
rvm use --default 2.0.0-p247 | |
rvm gemset create homestars | |
#gemrc | |
echo "gem: --no-ri --no-rdoc" > ~/.gemrc | |
sudo apt-get -y autoremove | |
echo " === restart shell by logging out and back in ===" | |
echo " === update your ~/.gitconfig with your name and email ===" " " | |
#alias | |
echo "configure ssh: change port, add user" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment