So you want a Vagrant Server with LAMP, Gulp, Bower, NPM, blah blah. And you want it done today, not next Christmas.
"Sounds good Chris, I don't feel like copying hundreds of lines of text from the Ubuntu Help Forum."
- Work your way through this: https://box.scotch.io/
- Install some useful system stuff:
sudo apt-get install htop php5-gd
- Update to the latest Ruby & use a version manager: Installation
- Use this command to install Sass Gems:
\curl -sSL https://get.rvm.io | bash -s stable --ruby --gems=compass,sass,bootstrap-sass
- Update to the latest Node & use a version manager:: Installation then run
nvm install stable ; nvm alias default stable
- Increase the memory / CPU allocation on the VM - do this responsibly.
- Using Wordpress? Install WP-CLI
- PHPMyAdmin Setup Instructions
- Set up the mail server so Wordpress can send emails.
- Note Regarding Step 1: If Google Apps / Gmail is used by the domain name of the server, you will need to ensure that Postfix doesn't hijack the domain name and prevent email from being sent. So when asked during setup, set the hostname / domain name to something other than the Google Apps domain. http://serverfault.com/questions/301280/why-does-postfix-deliver-mails-locally-instead-of-relaying-them-to-google-apps#comment287558_301299
- ZSH:
sudo apt-get install zsh
- and then Oh My ZSH (your sudo password is: vagrant)
- Install Antigen
- Add the following to
~/.zshrc
:git clone https://github.com/zsh-users/antigen.git .antigen
source /antigen/antigen.zsh
# Load the oh-my-zsh's library.
antigen use oh-my-zsh
antigen bundle zsh-users/zsh-syntax-highlighting # Prompt command highlighting niceness
antigen bundle git # Oh My Zsh - git extras
antigen bundle nojhan/liquidprompt # More informative prompt for GIT
antigen bundle joel-porquet/zsh-dircolors-solarized.git #Decent looking colour system for the ls command
# Load the theme. Disabled because we're using Liquid Prompt instead.
# antigen theme robbyrussell
# Tell antigen that you're done.
antigen apply
# ZSH colored autocompletion - use my LS_COLORS - gets rid of fugly green folder appearance when <tab>bing autocomplete
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
If you're developing themes using Roots & Sage
- run
sudo apt-get install autoconf
before compiling anything - If you're migrating a theme to another location or you are switching Git branches in a theme run:
npm cache clean ; rm -rf node_modules ; npm install
in the theme folder.