Setup/installation scripts for a SWCombine development system
- Download and install Oracle VirtualBox
- Create a new virtual machine with an 8-10 GB drive
- Download and install Debian 7.4 from the net install CD, follow the instructions. Host/domain are not important and can be whatever you like
- Add yourself to the sudoers file:
$ su root
# visudo
Add the line "<your username> ALL=NOPASSWD: ALL" without <>
Ctrl+o to write
Ctrl+x to exit
# exit
- Download the whole repository or just
swc_setup.sh
- Obtain a copy of
staging_prod.sql
from another dev (please don't distribute this to just anyone, for now) - Run
./swc_setup.sh
and follow the instructions
The results will look something like this:
There are a lot of minor tweaks that may be desirable for you to have a more comfortable working environment.
- Set up shared folders to have your code changes immediately visible on your dev VM while working outside of it with your existing IDE/tool setup.
- Set up port forwarding for port 80 and optionally port 22 for ssh, to access the VM site outside of your VM
- Automount your shared folder (via /etc/fstab) and run in headless mode to save resources normally used to run the (unnecessary) VM GUI. You will need to forward port 22 if you wish to run headless, so you can shut down your VM later