-
-
Save underhilllabs/fe9b2c5596f37eb42c93 to your computer and use it in GitHub Desktop.
CentOS install
This file contains hidden or 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
#!/usr/bin/env bash | |
echo "Checking for SSH key, generating one if it exists ..." | |
[[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa | |
echo "Copying public key to clipboard. Paste it into your Github account ..." | |
[[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub | xclip | |
open https://github.com/account/ssh | |
echo "Using yum to install OS packages so let's update it first ..." | |
sudo yum update -y | |
echo "Installing OS packages. You will be prompted for your password ..." | |
sudo yum install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev -y | |
echo "Install Postgres, a great open source relational database ..." | |
sudo yum install libpq5 libpq-dev postgresql -y | |
echo "Install Redis, a key-value database ..." | |
sudo yum install redis-server -y | |
echo "Installing ack, a good way to search through files ..." | |
sudo yum install ack-grep -y | |
echo "Installing ImageMagick, good for cropping and re-sizing images ..." | |
sudo yum install imagemagick --fix-missing -y | |
echo "Installing RVM (Ruby Version Manager) ..." | |
curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest | |
bash < <(curl -s https://raw.github.com/thoughtbot/laptop/master/ruby) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment