# Base Installation steps

## Base Installation steps

## cQube\_Base Installation:

* Open Terminal
* Navigate to the directory from where cQube\_Base can be downloaded or cloned

  ```
  cd cQube_Base/
  git checkout release-3.6
  ```
* Copy the config.yml.template to config.yml

  ```
  cp config.yml.template config.yml
  ```
* Edit using `nano config.yml`
* If you are opting for storage\_type as s3. Copy the aws\_s3\_config.yml.template to aws\_s3\_config.yml

  ```
  cp aws_s3_config.yml.template aws_s3_config.yml
  ```
* Edit using `nano aws_s3_config.yml`
* If you are opting for storage\_type as local. Copy the local\_storage\_config.yml.template to local\_storage\_config.yml

  ```
  cp local_storage_config.yml.template local_storage_config.yml
  ```
* cQube\_Base installation process installs the components in a sequence as mentioned below:
  * Installs Ansible
  * Installs OpenJDK
  * Installs Python, pip and flask
  * Installs PostgreSQL
  * Installs NodeJS
  * Installs Angular and Chart JS
  * Installs Apache NIFI
  * Installs Keycloak
  * Installs Grafana
  * Installs Prometheus and node exporter
* Save and Close the file
* Give the following permission to the install.sh file

  ```
  chmod u+x install.sh
  ```
* Install cQube using the non-root user with sudo privilege
* Configuration filled in config.yml will be validated first. If there is any error during validation, you will be prompted with the appropriate error message and the installation will be aborted. Refer the error message and solve the errors appropriately, then re-run the installation script `sudo ./install.sh`
* Start the installation by running install.sh shell script file as mentioned below:

  ```
  sudo ./install.sh
  ```

Once installation is completed without any errors, you will be prompted the following message. **CQube installed successfully!!**
