Skip to content

Latest commit

 

History

History
73 lines (48 loc) · 2.49 KB

README.md

File metadata and controls

73 lines (48 loc) · 2.49 KB

Creating preinstalled box in order to create local Haaukins

This is a repository to create pre-configured environment to run Haaukins on it.

Prerequisites

Before attempting to create pre-configured VM on your local computer, make sure that required software installed to your computer

In addition mentioned tools above, you should be sure that you have enough resources (CPU, Memory).

This repository might not be needed if you want to use your actual Linux environment instead of running VM under your machine

Make sure that you have pre-configured box installed in your local computer by given instructions from the repo sec0x

Include your local paths to sync folders with Virtual environment. Update .env.example and rename it to .env in the same place where Vagrantfile is located.

Content of example .env file:

GO_PATH=$HOME/go 
VMDKS=<path-to-vmdks-folder-in-your-local-computer>
HKND_CONFIGS=<path-to-configs-folder-in-your-local-computer>
HKND_FRONTENDS=<path-to-frontends-folder-in-your-local-computer>
HKND_PROJECTS=<path-to-projects-folder-in-your-local-computer>

Check this requirements before building the box

Before building the box make sure about followings:

  • Generated .env file before building the box as described above.

  • Installed plugins to have working Vagrantfile

     # install vagrant-disksize  
     $ vagrant plugin install vagrant-disksize 
     # install vagrant-env

Demonstration of steps

Following cast is showing the process of making the vagrant up and ready after, you have cloned the repository.

asciicast

Build required image with following command

git clone https://github.com/aau-network-security/sec0x
cd sec0x/hkn-base/
./build.sh
cd ../
vagrant up
## after that you can ssh to vagrant easily
vagrant ssh

Examples to configuration files

Can be observed from following place: