> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/installation-setup/installation/linux-ubuntu-centos.md).

# Linux (Ubuntu / CentOS)

If you would like to deploy and use ngSurvey on a Linux you may use following ready to use scripts following scripts which will setup ngSurvey on your host in just a couple of minutes  :\
\ <mark style="color:red;">**To get your access token contact ngSurvey's sales team.**</mark>

## Ubuntu

you may use following shell script from your Ubuntu shell.&#x20;

```
curl -o ngs-ubuntu-docker.auth.sh https://ngsurvey.s3.eu-central-1.amazonaws.com/ngs-ubuntu-docker.auth.sh 
sudo chmod +x ./ngs-ubuntu-docker.auth.sh 
sudo ./ngs-ubuntu-docker.auth.sh ngsurvey YOUR_ACCESSTOKEN 
```

## CentOS

you may use following shell script from your CentOS shell.&#x20;

```
curl -o ngs-centos-docker.sh https://ngsurvey.s3.eu-central-1.amazonaws.com/ngs-centos-docker.auth.sh sudo chmod +x ./ngs-centos-docker.auth.sh 
sudo sed -i 's/\r$//' ngs-centos-docker.auth.sh 
sudo ./ngs-centos-docker.auth.sh ngsurvey YOUR_ACCESSTOKEN
```

{% hint style="danger" %}
We would strongly recommend setting up as well an nginx reverse proxy to your host to proxy the request to your host for added security and performances.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.ngsurvey.com/installation-setup/installation/linux-ubuntu-centos.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
