Last active
September 28, 2015 13:18
-
-
Save acook/1444793 to your computer and use it in GitHub Desktop.
Simple setup script for a ruby environment on Ubuntu server.
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
#!/usr/bin/env/bash | |
# run this like: `curl https://gist.github.com/acook/1444793/raw/ruby_dev_machine_setup.sh | bash` | |
echo "Enter password to install packages..." | |
sudo apt-get update | |
sudo apt-get install -y 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 libtool ack-grep vim-nox ctags | |
\curl -#L https://get.rvm.io | bash -s stable --ruby | |
source ~/.bashrc | |
gem install bundler | |
echo "Enter your email address for your SSH key: " | |
read email | |
ssh-keygen -t rsa -C $email | |
cat ~/.ssh/id_rsa.pub | |
read -p "Copy above public key into GitHub at: https://github.com/settings/ssh, then press any key to continue..." | |
cd ~ | |
mkdir projects | |
mkdir .user-setup | |
cd .user-setup | |
git clone https://github.com/acook/my-scripts.git | |
git clone https://github.com/acook/config.git | |
./my-scripts/install | |
./config/install.sh -n | |
echo "source ~/.bash_profile" >> ~/.bashrc | |
echo "Now `source ~/.bash_profile` and you're ready to go!" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment