Last active
March 16, 2016 13:04
-
-
Save johnmeehan/8bdc4131b46570c6e9ba to your computer and use it in GitHub Desktop.
Setup a clean ubuntu install
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
#!/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 = [email protected] | |
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