App-DuckPAN
view release on metacpan or search on metacpan
Filename: ddh-vbox-2014-12-23.ova
MD5: 02a0fb03db2b2466504bf9fbc894c7dd
#### For VMWare hosts
https://ddg-community.s3.amazonaws.com/ddh-vmw-2014-12-23.ova
Filename: ddh-vmw-2014-12-23.ova
MD5: 6ecdeb8ead2c2eb7a9aba1db22359c4b
#### Roadmap
- Docker support
- Public AMI for use on EC2
### Installing the Virtual Machine
To use the Virtual Machine, you will need to download and install **VirtualBox**, **VMWare Workstation** or **VMWare Player**, depending on your current OS.
Then you will need to import the VM.
#### VirtualBox (free)
Website: https://www.virtualbox.org/
Supports: Windows, OS X, Linux
##### Import the VM
1. Download the OVA
2. Open VirtualBox, click "File" and then click "Import Appliance"
3. Click "Open appliance..." and select the DuckDuckHack virtual appliance OVA file -- click "Next"
4. Click "Import"
#### VMWare Player (free)
Website: https://www.vmware.com/products/player/
Supports: Windows, Linux
##### Import the VM
1. Download the OVA
2. Open VMWare Player, and click "Open a Virtual Machine"
3. Choose a storage path for the Virtual Machine -- click "Import"
### Using the Virtual Machine
#### Logging into the VM
Once you have installed the virtual machine you should be able to start up the VM and login with the following credentials:
- **username** : `vagrant`
- **password** : `duckduckhack`
#### Cloning the repository on the VM
**The DuckPAN client has already been installed for you.** To use it, you must 1st clone your instant answer git repository.
If you haven't already done so, [Determine your Instant Answer Type](http://docs.duckduckhack.com/welcome/determining-ia-type.html) and follow GitHub's instructions to [fork](https://help.github.com/articles/fork-a-repo) the instant answer repository...
The instant answer repositories are:
+ [zeroclickinfo-goodies](https://github.com/duckduckgo/zeroclickinfo-goodies)
+ [zeroclickinfo-spice](https://github.com/duckduckgo/zeroclickinfo-spice)
Then, run the git clone command to clone the repository. The URL is the **SSH clone URL** listed on the right side of the github webpage for your forked repository. (You can also use the **HTTPS clone URL**.)
```
git clone URL
```
#### Happy Hacking!
See the instructions below on [Using DuckPAN](#using-duckpan).
------
## Vagrant Virtual Environment
The Vagrant-based DuckDuckHack virtual environment provides a similar sandbox to the DuckDuckHack VM, but rather than downloading a prebuilt VM, Vagrant creates an environment for you based on the defined configuration. Vagrant is an awesome tool fo...
Through the Vagrant configuration, you can easily switch back and forth between a headless-mode and the traditional VirtualBox interface. The configuration defaults to headless.
### Setup Instructions
Refer to [the duckpan-vagrant readme](https://github.com/shedd/duckpan-vagrant#installation) for installation instructions.
Once the environment has been built, **the DuckPAN client is installed and ready to go.** You can now clone the Instant Answer repos and start developing/testing.
If you run into any issues, please file an issue in the [duckpan-vagrant issue page](https://github.com/shedd/duckpan-vagrant/issues).
##### Quick Overview of key Vagrant CLI commands
There are a couple of key Vagrant commands that you'll use to manage your environment.
```
$ vagrant
up - Build environment from Vagrantfile or resume a previously halted environment.
ssh - Connect to your running VM via SSH.
suspend - Pause the VM, storing its current state to disk.
resume - Bring a suspended VM back to life.
reload - The equivalent of running a halt followed by an up. Use this when you make changes to Vagrantfile.
halt - Shut down the VM. Tries to gracefully shutdown first; if that fails, it will forcefully shut the VM down.
destroy - Stop the currently running VM and blow everything away.
```
Run these commands from the directory containing your `Vagrantfile`.
( run in 1.627 second using v1.01-cache-2.11-cpan-437f7b0c052 )