Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@joshteng
Last active August 29, 2015 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joshteng/f157359b9848a91d4790 to your computer and use it in GitHub Desktop.
Save joshteng/f157359b9848a91d4790 to your computer and use it in GitHub Desktop.

#Setting Up a Ubuntu Machine

####Step 1 Install all dependencies using Laptop by Thoughtbot

bash <(wget -qO- https://raw.githubusercontent.com/thoughtbot/laptop/master/linux) 2>&1 | tee ~/laptop.log

####Step 2 Restart computer

####Step 3 Make sure zsh is the default shell and edit ~/.zshrc to ensure that /home/<user>/rbenv/bin is loaded in path

####Step 4 Ensure rbenv is evaluated at load eval "$(rbenv init -)" is after that line in ~/.zshrc

####Step 5 Restart terminal

####Step 6 Set up current linux user to be superadmin for Postgres (which enables commands like rake db:create)

sudo su postgres
createuser --interactive #create a user with the same name as the linux user and be made admin

####Step 7 Download sublime and add subl as a command by creating a symbolic link inside PATH

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment