This gist is a little long in the tooth, so your mileage my vary.  We also covered NPK in a [podcast episode](https://7ms.us/7ms-369-cracking-hashes-with-npk/).

---

>This is an in-progress quick start install guide for [NPK](https://github.com/Coalfire-Research/npk) on Ubuntu 18.  

From a new Ubuntu 18 box, install the essentials:

````
apt install unzip -y
apt install python3-pip -y
apt install jq -y
apt install npm -y
pip3 install awscli --upgrade —-user
````
**Download/build install the [Google version of jsonnet](https://github.com/google/jsonnet)!!!  Installing the apt/snap version from Ubuntu was a major [issue](https://github.com/Coalfire-Research/npk/issues/31) for me that caused NPK's install to fail terribly!**

Now open `~/.profile` and add this to the end:

````
export PATH=~/.local/bin:$PATH
````

Now update that file with:

````
source ~/.profile
````

Download a working version of Terraform (the very latest seems not to work right with NPK):

````
cd /tmp
wget https://releases.hashicorp.com/terraform/0.11.2/terraform_0.11.2_linux_amd64.zip
unzip terraform_0.11.2_linux_amd64.zip
cp terraform ./local/bin
````

Create an `npk` user with awscli:

````
aws configure —-profile npk
````

When asked, fill out AWS access key, secret access key, default region name (I think *us-east-1* is fine).

Then download NPK:

````
git clone https://github.com/Coalfire-Research/npk.git /opt/npk
````

Now follow their [instructions](https://github.com/Coalfire-Research/npk) to configure the `npk-settings.json` file and then you should (fingers crossed) be ready to run `deploy.sh` and let the crackin' begin!