# Generic installation instructions

1\. Install [Docker](https://docs.docker.com/get-docker/) \[Linux/PREberry] or [Docker Desktop](https://www.docker.com/products/docker-desktop) \[Windows/Mac] on your target machine of your choice (see the options above)

2\. Get your node registration code at <https://nodes.presearch.com/dashboard>.

<div align="center"><img src="/files/-MXO-M5LsYAxQC4Dp_9u" alt=""></div>

3\. Run the node start commands below in your terminal to install your node \
\[ See tutorials for how to open terminal on [Mac](https://www.howtogeek.com/682770/how-to-open-the-terminal-on-a-mac/) & [Windows](https://www.wikihow.com/Open-Terminal-in-Windows) ]

Copy/Paste the operating-system-specific command below into your terminal:

{% tabs %}
{% tab title="Linux/Mac/PREberry/Windows-Powershell" %}
`docker stop presearch-node ; docker rm presearch-node ; docker stop presearch-auto-updater ; docker rm presearch-auto-updater ; docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node ; docker pull presearch/node ; docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=YOUR_REGISTRATION_CODE_HERE presearch/node ; docker logs -f presearch-node`
{% endtab %}

{% tab title="Windows-Command Line" %}
`docker stop presearch-node & docker rm presearch-node & docker stop presearch-auto-updater & docker rm presearch-auto-updater & docker run -d --name presearch-auto-updater --restart=unless-stopped -v /var/run/docker.sock:/var/run/docker.sock presearch/auto-updater --cleanup --interval 900 presearch-auto-updater presearch-node & docker pull presearch/node & docker run -dt --name presearch-node --restart=unless-stopped -v presearch-node-storage:/app/node -e REGISTRATION_CODE=$YOUR_REGISTRATION_CODE_HERE presearch/node & docker logs -f presearch-node`
{% endtab %}
{% endtabs %}

{% hint style="warning" %}
**IMPORTANT:** You need to insert your registration code from step #2 above into the script by replacing the text`YOUR_REGISTRATION_CODE_HERE`with your actual registration code. So, for example, if your registration code is `XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` then the final command would contain the text `REGISTRATION_CODE=XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX` .
{% endhint %}

The above command installs two services on your computer, the ***presearch-node*** and the ***presearch-auto-updater*****,** and configure both of them to be always running in the background.&#x20;

The *presearch-node* actually runs the decentralized search software, whereas the *presearch-auto-updater* is responsible for automatically upgrading the *presearch-node* to the newest versions when released to ensure the node stays up to date and can continue to connect to the Presearch network.


---

# 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://docs.presearch.io/nodes/setup/generic-installation-instructions.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.
