Skip to content

Instantly share code, notes, and snippets.

@johnmeehan
Last active March 16, 2016 13:04
Show Gist options
  • Save johnmeehan/8bdc4131b46570c6e9ba to your computer and use it in GitHub Desktop.
Save johnmeehan/8bdc4131b46570c6e9ba to your computer and use it in GitHub Desktop.
Setup a clean ubuntu install
#!/bin/sh
# John Meehan 9/3/2016
# Setup a clean ubuntu install
# run with . <filename>.sh
# Get password to be used with sudo commands
# Script still requires password entry during rvm and heroku installs
echo -n "Enter password to be used for sudo commands:"
read -s password
# Function to issue sudo command with password
function sudo-pw {
echo $password | sudo -S $@
}
# install git
sudo-pw apt-get install git-all
sudo-pw apt-get install -y chromium-browser
# install rvm with latest ruby
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
curl -sSL https://get.rvm.io | bash -s stable --ruby
# install bundler
gem install bundler
# .gemrc
echo "gem: --no-ri --no-doc" >> ~/.gemrc
# .gitconfig
echo <<GITCONF >> ~/.gitconfig
[user]
name = John Meehan
email = john.meehan1@gmail.com
GITCONF
# zsh
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# install atom editor
sudo-pw dpkg -i atom-amd64.deb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment