Skip to content

Instantly share code, notes, and snippets.

@arrowrowe
Last active September 12, 2015 07:59
Show Gist options
  • Save arrowrowe/1b24b55ee4e97e46620f to your computer and use it in GitHub Desktop.
Save arrowrowe/1b24b55ee4e97e46620f to your computer and use it in GitHub Desktop.
Initialize a new Ubuntu.
#!/bin/bash
#### Necessary Update ###################
sudo apt-get update
#### Oh My ZSH ##########################
sudo apt-get -y install zsh git-core
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh
chsh -s `which zsh`
#### Nginx ##############################
sudo apt-get -y install nginx
#### Node ###############################
sudo apt-get -y install build-essential libssl-dev
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.26.1/install.sh | bash
printf "\nexport NVM_DIR=\"$NVM_DIR\"\n[ -s \"\$NVM_DIR/nvm.sh\" ] && . \"\$NVM_DIR/nvm.sh\" # This loads nvm\n\n" >> ~/.zshrc
. ~/.bashrc
nvm install v4.0.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment