Vagrant development environment provisioned with shell scripts on a (linux/ubuntu) precise64 box
- Install VirtualBox (version 4.1.22 or 4.1.23 not 4.2)
- Install Vagrant (vagrantup.com)
- Clone repo
git clone git://github.com/pixelhandler/vagrant-dev-env.git
- Build box
cd vagrant-dev-env
- Add submodule
git submodule init
- Update vagrant-shell-scripts submodule
git submodule update
- Fire up your box
vagrant up
- Add to your hosts file:
echo '192.168.50.4 precise64' >> /etc/hosts
(If bin/lamp.sh is incuded in provision script) Visit http://precise64 or http://precise64/phpinfo.php to working apache vhost
The precise64 box uses a shell script to provision the vagrant box. Also in the /bin/ directory are the shell scripts for installing apache, mysql, php, mongo, node.js, ruby, yeoman.io and my vim-config with a bunch of tools for an IDE.
INFO:
- Using v2 configuration for Vagrantfile
- Vagrant Shell Scripts by StanAngeloff
- Boxes
- Vim-config using pathogen
- If not already in the repo's root directory
cd vagrant-dev-env
(or the path you created) - Login to your presice64 box via ssh
vagrant ssh
(the examples below are run from the vagrant box after connecting via ssh)