# 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!!**


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cqube.sunbird.org/cqube-v-4.1-beta/base-installation-steps.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
