Last active
October 18, 2017 23:38
-
-
Save gnfisher/c28a37d7306c5f580b7d208b8ed260b2 to your computer and use it in GitHub Desktop.
Ubuntu setup
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
# Capslock? pshaw. | |
setxkbmap -option ctrl:nocaps | |
# Lets get to it | |
sudo apt-get update | |
# install a bunch of build and dev libraries | |
sudo apt-get install build-essential libpq-dev libssl-dev libyaml-dev libreadline6-dev \ | |
zlib1g-dev libncurses5-dev libffi-dev libgdbm3 libgdbm-dev | |
# install & setup postgres | |
sudo apt-get install postgresql postgresql-contrib | |
sudo -u postgres createuser -s pguser | |
sudo -u postgres psql | |
postgres=# \password pguser | |
# install stuff i use | |
sudo apt-get install git vim-gtk tmux zsh curl | |
# change to zsh | |
chsh -s /usr/bin/zsh greg | |
# install rbenv & ruby-build | |
git clone https://github.com/rbenv/rbenv.git ~/.rbenv | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.zshrc | |
~/.rbenv/bin/rbenv init | |
echo 'eval "$(rbenv init -)"' >> ~/.zshrc | |
mkdir -p "$(rbenv root)"/plugins | |
git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build | |
# install ruby 2.4.1 and set it as default and bundler | |
rbenv install 2.4.1 | |
rbenv local 2.4.1 | |
gem install bundler | |
# install nvm and yarn | |
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash | |
# copy the following into zshrc | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm | |
# finish install node and yarn | |
nvm install node | |
npm install -g yarn | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment